:root {
  --ivory: #F0E8D8;
  --ivory-2: #E4D9C6;
  --ivory-3: #D6C9B3;
  --moss: #111A16;
  --moss-2: #26352D;
  --moss-3: #1A2620;
  --brass: #9C865C;
  --brass-deep: #7D6A46;
  --leaf: #5F6F52;
  --ink: #111A16;
  --muted: #5C6358;
  --hair: rgba(17, 26, 22, 0.12);
  --hair-strong: rgba(17, 26, 22, 0.2);
  --paper-dim: rgba(240, 232, 216, 0.72);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1.125rem;
  --space-4: 1.75rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 9rem;
  --nav-h: 5.25rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.02rem, 0.96rem + 0.24vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
::selection { background: var(--moss); color: var(--ivory); }

@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.42s;
  animation-timing-function: var(--ease-out);
}

.grain {
  position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.skip {
  position: absolute; left: -999px; top: 0; z-index: 80;
  background: var(--brass); color: var(--moss); padding: 0.7rem 1.2rem; font-weight: 600;
}
.skip:focus { left: 0; }

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 72;
}
h1 { font-size: clamp(2.5rem, 1.1rem + 5.6vw, 6.1rem); line-height: 1.08; }
h2 { font-size: clamp(2rem, 1.05rem + 2.8vw, 3.5rem); }
h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: balance;
}
.lede { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.wrap { width: min(1180px, calc(100% - 2.5rem)); margin-inline: auto; }
.wrap-s { width: min(780px, calc(100% - 2.5rem)); margin-inline: auto; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* Nav — floating island */
.nav {
  position: fixed; top: 1rem; left: 50%; z-index: 50;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 1.75rem;
  padding: 0.55rem 0.55rem 0.55rem 1.25rem;
  width: max-content; max-width: calc(100vw - 1.5rem);
  background: color-mix(in oklch, var(--moss) 55%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(240, 232, 216, 0.12);
  border-radius: 999px;
  color: var(--ivory);
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.nav.is-light {
  background: color-mix(in oklch, var(--ivory) 78%, transparent);
  color: var(--moss);
  border-color: var(--hair);
}
.nav .mark {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.nav ul { display: flex; gap: 1.25rem; list-style: none; }
.nav ul a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.78;
  padding: 0.35rem 0;
}
.nav ul a[aria-current="page"], .nav ul a:hover { opacity: 1; }
.nav-end { display: flex; align-items: center; gap: 0.6rem; }
.nav-toggle {
  display: none; width: 44px; height: 44px; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: currentColor;
  position: absolute; left: 13px; transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

.menu-overlay {
  position: fixed; inset: 0; z-index: 45;
  background: color-mix(in oklch, var(--moss) 88%, transparent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column; justify-content: center; gap: 1.25rem;
  padding: 5rem 2rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
body.menu-open .menu-overlay { opacity: 1; pointer-events: auto; }
.menu-overlay a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.4rem);
  color: var(--ivory);
  transform: translateY(1.2rem);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}
body.menu-open .menu-overlay a { transform: none; opacity: 1; }
body.menu-open .menu-overlay a:nth-child(1) { transition-delay: 0.08s; }
body.menu-open .menu-overlay a:nth-child(2) { transition-delay: 0.14s; }
body.menu-open .menu-overlay a:nth-child(3) { transition-delay: 0.2s; }
body.menu-open .menu-overlay a:nth-child(4) { transition-delay: 0.26s; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.65rem;
  min-height: 44px;
  padding: 0.7rem 0.55rem 0.7rem 1.25rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.45s var(--ease-out), background 0.35s var(--ease);
}
.btn .dot {
  width: 2rem; height: 2rem; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(17, 26, 22, 0.12);
  font-size: 0.95rem;
  transition: transform 0.45s var(--ease-out);
}
.btn:hover { transform: translateY(-1px) scale(0.99); }
.btn:hover .dot { transform: translateX(2px); }
.btn:active { transform: scale(0.97); }
.btn-fill { background: var(--brass); color: var(--moss); }
.btn-fill:hover { background: var(--ivory); }
.btn-ghost {
  background: transparent; color: inherit;
  border: 1px solid currentColor;
  padding-right: 1.15rem;
}
.hero .btn-ghost { color: var(--ivory); border-color: rgba(240, 232, 216, 0.35); }
.hero .btn-fill .dot { background: rgba(17, 26, 22, 0.16); }

/* Hero */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: var(--ivory);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 28%;
  opacity: 0;
  transform: scale(1.08);
  animation: ken 22s var(--ease) infinite;
}
.hero-media img:nth-child(1) { animation-delay: 0s; }
.hero-media img:nth-child(2) { animation-delay: 7.3s; }
.hero-media img:nth-child(3) { animation-delay: 14.6s; }
@keyframes ken {
  0% { opacity: 0; transform: scale(1.08); }
  6% { opacity: 1; }
  30% { opacity: 1; transform: scale(1); }
  38% { opacity: 0; }
  100% { opacity: 0; transform: scale(1); }
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(17,26,22,0.25) 0%, rgba(17,26,22,0.15) 38%, rgba(17,26,22,0.82) 100%),
    linear-gradient(90deg, rgba(17,26,22,0.55) 0%, rgba(17,26,22,0.12) 58%, transparent 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto 4.5rem;
  display: grid;
  gap: 1.5rem;
  max-width: 42rem;
  justify-self: start;
  margin-left: max(1.25rem, calc((100% - 1180px) / 2));
}
.hero-inner .eyebrow { color: var(--brass); }
.hero-inner h1 { color: var(--ivory); }
.hero-inner .lede { color: rgba(240, 232, 216, 0.78); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.hero-meta {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  max-width: 32rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(240, 232, 216, 0.16);
}
.hero-meta dt {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(240, 232, 216, 0.45); margin-bottom: 0.25rem;
}
.hero-meta dd { font-family: var(--font-display); font-size: 1.05rem; font-style: italic; }

@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; opacity: 0; transform: none; }
  .hero-media img:first-child { opacity: 1; }
}

/* Sections */
.section { padding: var(--space-7) 0; }
.section-dark { background: var(--moss); color: var(--ivory); }
.section-moss { background: var(--moss-2); color: var(--ivory); }
.section-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hair-strong), transparent);
  border: 0;
}
.chapter-head { margin-bottom: var(--space-6); max-width: 40rem; }
.chapter-head h2 { margin: 0.4rem 0 0.9rem; }
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: center;
}
.split.reverse { grid-template-columns: 0.9fr 1.1fr; }
.split.reverse .copy { order: 2; }
.split.reverse .media { order: 1; }

.shell {
  padding: 0.4rem;
  background: color-mix(in oklch, var(--ink) 5%, transparent);
  border: 1px solid var(--hair);
  border-radius: 1.6rem;
}
.shell .core {
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--ivory-2);
}
.shell .core img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.shell.wide .core img { aspect-ratio: 16/10; }

.list-plain { list-style: none; display: grid; gap: 0.9rem; }
.list-plain li {
  display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.7rem;
  color: var(--muted);
}
.list-plain li::before {
  content: "";
  width: 0.45rem; height: 0.45rem; border-radius: 999px;
  background: var(--brass); margin-top: 0.55rem;
}

/* Method chapters */
.method { display: grid; gap: 0; }
.method article {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.5rem;
  padding: var(--space-6) 0;
  border-top: 1px solid var(--hair);
}
.method .num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 0.9;
  color: var(--brass);
  font-style: italic;
  font-weight: 500;
}
.method h3 { margin-bottom: 0.5rem; }
.method .kicker {
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--leaf); margin-bottom: 0.35rem; font-weight: 600;
}

.lanes {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}
.lane {
  padding: 1.6rem 1.7rem 1.5rem;
  min-height: 16rem;
  display: flex; flex-direction: column; gap: 0.8rem;
}
.lane p { color: var(--muted); }
.lane .btn { margin-top: auto; align-self: flex-start; }

/* Proof */
.quote-xl blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 1.1rem + 1.8vw, 2.45rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
  font-weight: 500;
  text-wrap: pretty;
}
.quote-xl figcaption {
  display: flex; align-items: center; gap: 0.9rem; margin-top: 1.5rem;
}
.quote-xl img, .proof-card img {
  width: 3rem; height: 3rem; border-radius: 999px; object-fit: cover;
}
.quote-xl cite, .proof-card cite { font-style: normal; font-weight: 650; display: block; }
.quote-xl span, .proof-card span { font-size: 0.85rem; color: var(--muted); }
.proof-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem;
}
.proof-card {
  padding: 1.4rem 1.5rem;
}
.proof-card p { color: var(--muted); font-size: 0.98rem; }

/* Fit */
.fit {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem;
}
.fit ul { list-style: none; display: grid; gap: 0.85rem; }
.fit li { padding-left: 1.4rem; position: relative; color: var(--muted); }
.fit .yes li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 0.55rem; height: 0.55rem; border-radius: 999px; background: var(--leaf);
}
.fit .no { opacity: 0.72; }
.fit .no li::before {
  content: ""; position: absolute; left: 0; top: 0.7em;
  width: 0.7rem; height: 1px; background: var(--muted);
}

/* Workshops */
.workshops {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.wk { padding: 1.5rem 1.45rem 1.4rem; height: 100%; }
.wk ol { margin-top: 1rem; padding-left: 1.1rem; color: var(--muted); display: grid; gap: 0.35rem; }

/* Contact */
.form { display: grid; gap: 1rem; }
.field { position: relative; display: block; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 1.3rem 1rem 0.55rem;
  background: transparent;
  border: 1px solid var(--hair-strong);
  border-radius: 4px;
  font: inherit;
  color: var(--ink);
  min-height: 44px;
}
.field textarea { min-height: 8rem; resize: vertical; padding-top: 1.5rem; }
.field span {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
  transition: transform 0.25s var(--ease), font-size 0.25s var(--ease);
}
.field textarea + span { top: 1.15rem; transform: none; }
.field input:focus + span,
.field input:not(:placeholder-shown) + span,
.field select:focus + span,
.field select:not([value=""]) + span,
.field textarea:focus + span,
.field textarea:not(:placeholder-shown) + span {
  transform: translateY(-1.15rem); font-size: 0.7rem;
}
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid {
  border-color: #8a3a32;
}
.err { display: none; color: #8a3a32; font-size: 0.85rem; }
.field input:user-invalid ~ .err,
.field textarea:user-invalid ~ .err { display: block; }
.form-status { display: none; padding: 1.5rem; border: 1px solid var(--hair); border-radius: 1rem; }
.form.is-loading [type="submit"] { opacity: 0.6; pointer-events: none; }
.form.is-success { display: none; }
.form-status.is-on { display: block; }
.form-status h3 { margin-bottom: 0.4rem; }

/* Footer */
.foot {
  background: var(--moss); color: var(--ivory);
  padding: var(--space-7) 0 2rem;
}
.foot .display {
  font-size: clamp(3.2rem, 12vw, 9.5rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  margin-bottom: var(--space-6);
  color: var(--ivory);
}
.foot-cols {
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(240,232,216,0.12);
}
.foot a { opacity: 0.75; }
.foot a:hover { opacity: 1; }
.foot-meta {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 1.25rem; font-size: 0.82rem; color: rgba(240,232,216,0.5);
}

/* Sticky mobile CTA */
.sticky-cta { display: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal { opacity: 0; }

.page-hero {
  padding: calc(var(--nav-h) + 2.4rem) 0 2.4rem;
  background: var(--moss); color: var(--ivory);
}
.page-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.15rem, 0.85rem + 3.5vw, 4.25rem);
  line-height: 1.06;
}
.page-hero .lede { color: rgba(240,232,216,0.72); max-width: 36rem; margin-top: 1rem; }
.page-hero .list-plain li { color: inherit; }
.page-hero .core img { max-height: 62dvh; object-fit: cover; }
.page-hero + .section { padding-top: var(--space-6); }
.page-hero .btn-ghost { color: var(--ivory); border-color: rgba(240,232,216,0.35); }
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.field select {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  appearance: none;
}

@media (max-width: 900px) {
  .split, .split.reverse, .lanes, .fit, .workshops, .proof-grid, .method article, .grid-2 {
    grid-template-columns: 1fr;
  }
  .split.reverse .copy, .split.reverse .media { order: unset; }
  .method article { grid-template-columns: 1fr; gap: 0.5rem; }
  .hero-inner { margin-left: 1.25rem; margin-right: 1.25rem; width: auto; }
  .nav ul, .nav .btn { display: none; }
  .nav-toggle { display: block; }
  .nav { left: 1rem; right: 1rem; transform: none; width: auto; justify-content: space-between; }
}
@media (max-width: 767px) {
  .wrap, .wrap-s { width: calc(100% - 2rem); }
  .section { padding: var(--space-6) 0; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .sticky-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
    background: var(--moss);
    justify-content: center;
  }
  .sticky-cta .btn { width: 100%; justify-content: center; }
  body.has-sticky { padding-bottom: 5.2rem; }
  .hero-inner { margin-bottom: 5.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .menu-overlay a { transform: none; opacity: 1; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero-media img { animation: none !important; }
  .hero-media img:first-child { opacity: 1 !important; }
}
