/* ───────────────────────── Haven — tokens ───────────────────────── */
:root {
  --mist: #EEE6E1;
  --haze: #D1D1D3;
  --dawn: #F4CEBC;
  --honey: #B8906D;
  --moss: #23382C;
  --poppy: #BA4E2A;
  --dusk: #1A211E;
  --ink: var(--moss);
  --ink-soft: rgba(35, 56, 44, 0.66);
  --line: rgba(35, 56, 44, 0.14);
  --white: #FBF8F5;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --edge: clamp(0px, 6vw, 110px);
  --radius: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
::selection { background: var(--poppy); color: var(--white); }

:focus-visible { outline: 2px solid var(--poppy); outline-offset: 4px; border-radius: 6px; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--moss); color: var(--white); padding: 10px 16px; border-radius: 999px;
  transition: top .4s var(--ease);
}
.skip:focus { top: 16px; }

/* Film grain — very subtle, keeps flats from looking digital */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .07; mix-blend-mode: multiply;
}

/* ───────────────────────── Type ───────────────────────── */
.eyebrow {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  margin: 0 0 22px; color: var(--ink-soft);
}
.eyebrow--light { color: rgba(251, 248, 245, .78); }
.eyebrow--soft { opacity: .7; }

.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.75rem, 6.4vw, 6.75rem); line-height: .95; letter-spacing: -.02em;
  margin: 0 0 28px; text-wrap: balance;
}
.h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.75rem, 2.6vw, 2.6rem); line-height: 1; letter-spacing: -.01em; margin: 0 0 12px;
}
.h2 em, .h3 em, .hero__title em, .footer__title em, .quote__text em { font-style: italic; color: var(--poppy); }
.body { margin: 0 0 18px; max-width: 34ch; color: var(--ink-soft); }
.body--muted { opacity: .7; }

/* SplitText helpers */
.split-line { overflow: clip; padding-bottom: .06em; margin-bottom: -.06em; }
.split, .split-hero { font-kerning: none; }

/* ───────────────────────── Buttons ───────────────────────── */
.btn {
  --bg: var(--moss); --fg: var(--white);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 7px 20px 7px 7px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-size: 14.5px; font-weight: 500; letter-spacing: -.005em;
  transition: background-color .6s var(--ease), color .6s var(--ease), box-shadow .6s var(--ease);
  will-change: transform;
}
.btn__icon {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--poppy); color: var(--white); flex: none; overflow: hidden;
}
.btn__icon svg, .arrow svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .8s var(--ease); }
.btn:hover .btn__icon svg, .arrow:hover svg { transform: translateX(3px); }
.btn--light { --bg: var(--white); --fg: var(--moss); box-shadow: 0 8px 30px -12px rgba(35, 56, 44, .35); }
.btn--dark { --bg: var(--moss); --fg: var(--white); }
.btn--nav { --bg: var(--white); --fg: var(--moss); padding: 5px 16px 5px 5px; font-size: 13.5px; }
.btn--nav .btn__icon { width: 28px; height: 28px; }

.link-quiet { font-size: 14.5px; font-weight: 500; padding: 10px 4px; position: relative; color: var(--moss); }
.link-quiet::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(.3); transform-origin: left; transition: transform .9s var(--ease); }
.link-quiet:hover::after { transform: scaleX(1); }

.arrow {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--moss); color: var(--white);
}
.arrow--light { background: var(--white); color: var(--moss); }

/* ───────────────────────── Nav ───────────────────────── */
.nav {
  position: fixed; inset: 18px var(--gutter) auto; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav__logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; justify-self: start; color: var(--moss); }
.nav__logo svg { width: 22px; height: 22px; fill: none; stroke: var(--poppy); stroke-width: 1.6; stroke-linecap: round; }
.nav__pill {
  display: flex; gap: 2px; padding: 5px; border-radius: 999px;
  background: rgba(251, 248, 245, .72); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 10px 30px -18px rgba(35, 56, 44, .4);
}
.nav__pill a { font-size: 13px; padding: 7px 14px; border-radius: 999px; color: var(--ink-soft); transition: color .5s var(--ease), background-color .5s var(--ease); }
.nav__pill a:hover { color: var(--moss); }
.nav__pill a.is-active { background: var(--moss); color: var(--white); }
.nav .btn--nav { justify-self: end; }
.nav__logo {
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(251, 248, 245, .72); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 10px 30px -18px rgba(35, 56, 44, .4);
  transition: color .8s var(--ease), background-color .8s var(--ease);
}
.nav.is-dark .nav__logo { color: var(--white); background: rgba(26, 33, 30, .45); }

/* ───────────────────────── Hero ───────────────────────── */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; color: var(--moss); }
.hero__media { position: absolute; inset: 0; will-change: transform; transform-origin: 50% 70%; }
.hero__video, .hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__poster { z-index: -1; }
.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 46% at 50% 36%, rgba(238, 230, 225, .62), rgba(238, 230, 225, 0) 72%),
    linear-gradient(180deg, rgba(238, 230, 225, .25) 0%, rgba(238, 230, 225, 0) 30%, rgba(26, 33, 30, 0) 70%, rgba(26, 33, 30, .28) 100%);
}
.hero__content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: clamp(120px, 21vh, 220px) var(--gutter) 0; text-align: center;
}
.hero__eyebrow {
  color: var(--moss); background: rgba(251, 248, 245, .55); padding: 6px 12px; border-radius: 999px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); margin-bottom: 26px;
}
.hero__title {
  font-family: var(--serif); font-weight: 400; margin: 0;
  font-size: clamp(3.6rem, 10.5vw, 11.5rem); line-height: .9; letter-spacing: -.03em;
}
.hero__sub { margin: 26px 0 30px; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.5; color: var(--moss); max-width: 40ch; }
.hero__ctas { display: flex; align-items: center; gap: 22px; }
.hero__foot {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 26px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  color: var(--white);
}
.hero__note { margin: 0; max-width: 30ch; font-size: 13.5px; line-height: 1.5; text-shadow: 0 1px 12px rgba(26, 33, 30, .45); }
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.hero__scroll i { width: 1px; height: 42px; background: rgba(251, 248, 245, .4); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--white); animation: drip 2.6s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }

/* ───────────────────────── Reveals ───────────────────────── */
.reveal, .reveal-x { position: relative; overflow: hidden; border-radius: var(--radius); margin: 0; }
.reveal__inner { position: relative; width: 100%; height: 100%; }
.reveal__inner img, .reveal__inner video { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 60%; will-change: transform; }

/* ───────────────────────── Seed ───────────────────────── */
.seed {
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 110px);
  align-items: center; padding: clamp(110px, 16vw, 220px) calc(var(--gutter) + var(--edge)) clamp(40px, 5vw, 90px);
}
.seed__copy .h2 { max-width: 11ch; }
.seed__copy .btn { margin-top: 12px; }
.seed__figure { aspect-ratio: 4 / 5; max-height: 86vh; justify-self: end; width: min(100%, 640px); }

/* ───────────────────────── Statement ───────────────────────── */
.statement {
  position: relative; display: grid; grid-template-columns: 1fr minmax(240px, 28vw) 1fr; gap: clamp(28px, 4vw, 72px);
  align-items: center; min-height: 100vh;
  padding: clamp(60px, 8vw, 140px) calc(var(--gutter) + var(--edge));
}
.statement__figure { grid-column: 2; grid-row: 1; width: 100%; aspect-ratio: 3 / 4; }
.statement__text {
  font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3.5rem); line-height: 1.02; letter-spacing: -.015em;
  margin: 0; max-width: 12ch; position: relative; z-index: 2;
}
.statement__text--left { grid-column: 1; grid-row: 1; align-self: end; padding-bottom: 6vh; }
.statement__text--right { grid-column: 3; grid-row: 1; align-self: start; justify-self: end; text-align: right; padding-top: 6vh; }
.fill .word { opacity: .2; }

/* ───────────────────────── Grow (pinned horizontal) ───────────────────────── */
.grow { position: relative; overflow: hidden; }
.grow__pin { height: 100svh; display: flex; flex-direction: column; padding: 108px 0 48px; }
.grow__head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 calc(var(--gutter) + var(--edge)); }
.grow__count { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--ink-soft); margin: 0; }
.grow__current { color: var(--poppy); }
.grow__track {
  position: relative; flex: 1; display: flex; align-items: center; gap: clamp(40px, 6vw, 110px);
  padding: 0 calc(var(--gutter) + var(--edge)); width: max-content; will-change: transform;
}
.grow__stem { position: absolute; left: 0; right: 0; top: 50%; width: 100%; height: 200px; transform: translateY(-50%); pointer-events: none; overflow: visible; }
.grow__stem path { fill: none; stroke: var(--moss); stroke-opacity: .35; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.stage { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 3vw, 48px); align-items: end; width: clamp(560px, 58vw, 900px); }
.stage--intro { display: block; width: clamp(340px, 34vw, 560px); margin-left: clamp(0px, 4vw, 80px); }
.stage--intro .h2 { max-width: 9ch; }
.stage__figure { width: clamp(240px, 24vw, 380px); aspect-ratio: 4 / 5; }
.stage__copy { padding-bottom: 8px; }
.stage__copy .eyebrow { color: var(--poppy); margin-bottom: 14px; }

/* ───────────────────────── Features / bento ───────────────────────── */
.features { padding: clamp(110px, 12vw, 200px) calc(var(--gutter) + var(--edge)) clamp(90px, 10vw, 160px); }
.features__head { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.features__head .h2 { margin: 0; max-width: 13ch; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(250px, auto); gap: 14px; }
.card { position: relative; border-radius: var(--radius); padding: 26px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.card--light { background: rgba(251, 248, 245, .62); box-shadow: 0 0 0 1px var(--line) inset; }
.card--dark { background: var(--moss); color: var(--white); }
.card--dark .body { color: rgba(251, 248, 245, .74); max-width: 40ch; font-size: 15px; }
.card--poppy { background: var(--poppy); color: var(--white); }
.card--media { padding: 0; background: var(--haze); }
.card__num { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; margin: 0; color: var(--ink-soft); }
.card--poppy .card__num { color: rgba(251, 248, 245, .8); }
.card__big { font-family: var(--serif); font-size: clamp(3.5rem, 6vw, 6rem); line-height: .9; margin: auto 0 0; letter-spacing: -.02em; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--ink-soft); padding-top: 16px; border-top: 1px solid var(--line); }
.card__video, .card__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__poster { z-index: 0; }
.card__video { z-index: 1; }
.card__chip {
  position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 16px; border-radius: 16px; font-size: 13.5px; color: var(--moss);
  background: rgba(251, 248, 245, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.card__chip .arrow--light { background: var(--moss); color: var(--white); width: 34px; height: 34px; }
.card--a { grid-column: 1 / span 4; grid-row: span 2; }
.card--b { grid-column: 5 / span 4; grid-row: span 2; }
.card--c { grid-column: 9 / span 4; grid-row: span 1; min-height: 330px; }
.card--d { grid-column: 9 / span 2; }
.card--e { grid-column: 11 / span 2; }
.card--e .arrow { align-self: flex-end; }
.card--d .body { font-size: 14.5px; }

/* ───────────────────────── Quote ───────────────────────── */
.quote { padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(120px, 14vw, 220px); position: relative; }
.quote__figure { height: clamp(380px, 78vh, 820px); margin: 0 var(--edge); }
.quote__body { margin: clamp(48px, 6vw, 96px) auto 0; position: relative; z-index: 2; max-width: 1100px; padding: 0 var(--gutter); text-align: center; }
.quote__text {
  font-family: var(--serif); font-size: clamp(2.4rem, 5.6vw, 5.8rem); line-height: 1; letter-spacing: -.02em; margin: 0 0 30px;
  color: var(--moss); text-wrap: balance;
}
.quote__by { display: flex; justify-content: center; gap: 18px; }
.quote__by .eyebrow { margin: 0; color: var(--moss); }

/* ───────────────────────── Footer ───────────────────────── */
.footer { position: relative; min-height: 100svh; color: var(--white); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: var(--dusk); }
.footer__media { position: absolute; inset: 0; }
.footer__video, .footer__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.footer__poster { z-index: 0; }
.footer__video { z-index: 1; }
.footer__veil { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, var(--dusk) 0%, rgba(26, 33, 30, .55) 22%, rgba(26, 33, 30, .12) 55%, rgba(26, 33, 30, .7) 100%); }
.footer__content { position: relative; z-index: 3; padding: clamp(120px, 16vh, 200px) calc(var(--gutter) + var(--edge)) 0; }
.footer__title { font-family: var(--serif); font-weight: 400; font-size: clamp(3.4rem, 10vw, 11rem); line-height: .9; letter-spacing: -.03em; margin: 0 0 40px; }
.footer__title em { color: var(--dawn); }
.footer__bottom { position: relative; z-index: 3; padding: 0 calc(var(--gutter) + var(--edge)) 28px; }
.footer__links { display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 48px); padding: 26px 0; border-top: 1px solid rgba(251, 248, 245, .22); }
.ripple { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2.3rem); line-height: 1.1; display: inline-flex; overflow: hidden; padding: 4px 0; }
.ripple .char { display: inline-block; will-change: transform; }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(251, 248, 245, .62); }

/* ───────────────────────── Edges ───────────────────────── */
.edges { position: fixed; inset: 0; z-index: 4; pointer-events: none; transition: opacity 1.2s var(--ease); }
.edges.is-quiet { opacity: .3; }
.edge { position: absolute; bottom: 0; height: 92vh; width: auto; overflow: visible; }
.edge--left { left: 0; }
.edge--right { right: 0; }
.edge path { fill: none; stroke: var(--moss); stroke-width: 1.1; stroke-linecap: round; stroke-opacity: .5; vector-effect: non-scaling-stroke; transition: stroke .8s var(--ease); }
.edges.is-dark .edge path { stroke: var(--dawn); stroke-opacity: .55; }
.seeds { position: absolute; inset: 0; overflow: hidden; }
.seed-fluff { position: absolute; top: 0; width: 18px; height: 24px; opacity: 0; }
.seed-fluff path { fill: none; stroke: var(--moss); stroke-width: 1; stroke-linecap: round; stroke-opacity: .55; }
.edges.is-dark .seed-fluff path { stroke: var(--dawn); }

/* ───────────────────────── Cursor ───────────────────────── */
.cursor { position: fixed; inset: 0; z-index: 95; pointer-events: none; display: none; opacity: 0; transition: opacity .6s var(--ease); }
.cursor.is-on { opacity: 1; }
.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring { position: absolute; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--poppy); }
.cursor__ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(35, 56, 44, .35); transition: width .6s var(--ease), height .6s var(--ease), margin .6s var(--ease), border-color .6s var(--ease), background-color .6s var(--ease); }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: transparent; background: rgba(186, 78, 42, .12); }
.cursor.is-dark .cursor__ring { border-color: rgba(251, 248, 245, .45); }

/* ───────────────────────── Initial states (JS-enhanced only) ───────────────────────── */
.js .hero__eyebrow, .js .hero__sub, .js .hero__ctas, .js .hero__foot, .js .nav { opacity: 0; }
.js .hero__video, .js .hero__poster { opacity: 0; filter: blur(24px); }
.js .reveal .reveal__inner { height: 116%; top: -8%; }

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 1100px) {
  .nav__pill { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .card--a { grid-column: 1 / span 3; }
  .card--b { grid-column: 4 / span 3; }
  .card--c { grid-column: 1 / span 6; min-height: 380px; }
  .card--d { grid-column: 1 / span 3; }
  .card--e { grid-column: 4 / span 3; }
}

@media (max-width: 900px) {
  :root { --edge: 0px; }
  .edges { display: none; }
  .seed { grid-template-columns: 1fr; gap: 48px; }
  .seed__figure { justify-self: stretch; width: 100%; max-height: none; }
  .statement { grid-template-columns: 1fr; min-height: 0; gap: 48px; }
  .statement__figure, .statement__text--left, .statement__text--right { grid-column: 1; grid-row: auto; padding: 0; }
  .statement__figure { width: 72%; justify-self: center; }
  .features__head { grid-template-columns: 1fr; gap: 0; }
  .grow__pin { height: auto; padding: 100px 0 40px; }
  .grow__track { flex-direction: column; align-items: stretch; width: auto; gap: 72px; padding-top: 40px; }
  .grow__count, .grow__stem { display: none; }
  .stage, .stage--intro { grid-template-columns: 1fr; width: auto; }
  .stage__figure { width: 100%; }
  .hero__note { display: none; }
  .hero__foot { justify-content: center; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: 1fr; }
  .card--a, .card--b, .card--c, .card--d, .card--e { grid-column: 1 / -1; grid-row: auto; }
  .card--a, .card--b { min-height: 380px; }
  .hero__ctas { flex-direction: column; gap: 8px; }
  .footer__legal { flex-direction: column; gap: 6px; }
}

/* ───────────────────────── Reduced motion ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero__video, .footer__video, .card__video { display: none !important; }
  .hero__poster, .footer__poster, .card__poster { z-index: 0; }
  .js .hero__poster { opacity: 1; filter: none; }
  .js .reveal .reveal__inner { height: 100%; top: 0; }
  .hero__scroll i::after { animation: none; }
  .grow__pin { height: auto; }
  .grow__track { flex-wrap: wrap; width: auto; row-gap: 72px; padding-top: 40px; }
  .grow__count, .grow__stem { display: none; }
  .edge path { stroke-dasharray: none !important; }
  .fill .word { opacity: 1; }
  * { scroll-behavior: auto !important; }
}
