:root {
  --brand-dark: #372113;
  --brand-accent: #B67C4B;

  --canvas: color-mix(in srgb, var(--brand-accent) 6%, #FBF7F2);
  --surface: #FFFFFF;
  --border: color-mix(in srgb, var(--brand-dark) 9%, transparent);
  --ink: #241C29;
  --ink-muted: #7D7280;
  --brand-accent-soft: color-mix(in srgb, var(--brand-accent) 16%, white);
  --brand-accent-deep: color-mix(in srgb, var(--brand-accent) 65%, black);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Manrope', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
}

/* fixed grain */

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* bands */

.band {
  position: relative;
  z-index: 2;
}

.band-cream {
  background: var(--canvas);
}

.band-white {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* header / nav */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 18px 0;
  background: rgba(251, 247, 242, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 400ms var(--ease);
}

header.site-header.scrolled {
  border-bottom-color: var(--border);
}

header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 24px;
  height: 24px;
}

.brand .name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

nav.site-nav {
  display: flex;
  gap: 28px;
}

nav.site-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  position: relative;
  padding-bottom: 2px;
}

nav.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--brand-dark);
  transition: right 300ms var(--ease);
}

nav.site-nav a:hover {
  color: var(--brand-dark);
}

nav.site-nav a:hover::after {
  right: 0;
}

/* reveal */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease), filter 900ms var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--brand-accent-soft);
  color: var(--brand-accent-deep);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-bottom: 24px;
}

h2.label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin: 0 0 28px;
  font-weight: 700;
}

/* hero */

.hero {
  padding: 76px 0 88px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 40px;
}

h1 {
  font-family: 'Fraunces', 'Georgia', serif;
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(36px, 5.4vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--brand-dark);
  max-width: 15ch;
}

.hero p.lede {
  font-size: 18px;
  color: var(--ink-muted);
  max-width: 46ch;
  margin: 0;
}

.hero-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 220px;
}

.hero-mark .blob {
  position: absolute;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, var(--brand-accent) 0%, transparent 68%);
  opacity: 0.16;
  filter: blur(4px);
  animation: drift 24s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-mark img {
  position: relative;
  width: 168px;
  height: 168px;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-5%, 6%) scale(1.1); }
}

/* about */

.about-section {
  padding: 88px 0;
}

.about p {
  font-size: 18px;
  max-width: 60ch;
  margin: 0 0 16px;
}

.about p:first-of-type::first-letter {
  font-family: 'Fraunces', serif;
  font-size: 42px;
  font-weight: 500;
  color: var(--brand-dark);
  float: left;
  line-height: 0.85;
  padding-right: 8px;
  padding-top: 4px;
}

/* approach */

.approach-section {
  padding: 88px 0;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.principle-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 26px;
  transition: transform 450ms var(--ease), box-shadow 450ms var(--ease);
}

.principle-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px -20px rgba(42, 21, 53, 0.22);
}

.principle-card .idx {
  font-family: 'Fraunces', serif;
  font-size: 13px;
  color: var(--brand-accent-deep);
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}

.principle-card h3 {
  font-size: 16px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.principle-card p {
  font-size: 14.5px;
  color: var(--ink-muted);
  margin: 0;
}

/* now */

.now-section {
  padding: 48px 0;
}

.now-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15.5px;
  color: var(--ink);
}

.now-line .dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--brand-accent);
  box-shadow: 0 0 0 4px var(--brand-accent-soft);
  flex-shrink: 0;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* contact */

.contact-section {
  padding: 88px 0;
}

.contact-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-shell p {
  margin: 0 0 6px;
  color: var(--ink-muted);
  font-size: 15px;
}

.contact-shell .heading {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  color: var(--brand-dark);
  margin: 0 0 8px;
}

.mail-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--brand-dark);
  color: #FBF7F2;
  text-decoration: none;
  padding: 8px 8px 8px 22px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 14.5px;
  transition: transform 350ms var(--ease), box-shadow 350ms var(--ease);
  white-space: nowrap;
}

.mail-btn:hover {
  box-shadow: 0 14px 28px -14px rgba(42, 21, 53, 0.45);
}

.mail-btn:active {
  transform: scale(0.98);
}

.mail-btn .icon {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 350ms var(--ease);
}

.mail-btn:hover .icon {
  transform: translate(2px, -2px);
}

.mail-btn .icon svg {
  width: 14px;
  height: 14px;
}

/* footer */

footer {
  position: relative;
  z-index: 2;
  background: var(--brand-dark);
  color: rgba(251, 247, 242, 0.72);
  padding: 40px 0;
}

footer .wrap {
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

footer strong {
  color: #FBF7F2;
}

@media (max-width: 760px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-mark {
    order: -1;
    min-height: 160px;
  }
  .hero-mark img {
    width: 100px;
    height: 100px;
  }
  .hero-mark .blob {
    width: 220px;
    height: 220px;
  }
  nav.site-nav {
    gap: 18px;
  }
  nav.site-nav a {
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .principles {
    grid-template-columns: 1fr;
  }
  .contact-shell {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 28px;
  }
  .hero {
    padding: 56px 0 64px;
  }
  .about-section, .approach-section, .contact-section {
    padding: 64px 0;
  }
}
