/* ============================================================
   WINDREST — Mercury style system, re-tuned to the hero video:
   pale luminous sky, meadow greens, deep loam, one scarf-gold accent.
   ============================================================ */

:root {
  /* Colors — adapted from hero footage */
  --color-scarf-gold: #d2a14a;      /* primary CTA — the scarf in the wind */
  --color-ghost-gold: #e9dcb4;      /* secondary / hover, translucent use */
  --color-deep-loam: #14160e;       /* outermost background (abyss) */
  --color-night-moss: #1a1d12;      /* primary section background */
  --color-undergrowth: #232818;     /* interactive surfaces */
  --color-lead: #6e7260;            /* borders, dividers */
  --color-starlight: #efeee4;       /* primary text, warm */
  --color-silver: #c2c3b2;          /* secondary text */
  --color-ink-moss: #262b1a;        /* dark text over the bright hero sky */
  --color-on-gold: #1f1a0c;         /* text on gold CTA */

  /* Typography */
  --font-display: 'Manrope', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: 'Manrope', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --text-display: clamp(42px, 7vw, 65px);
  --text-heading-lg: clamp(34px, 5vw, 49px);
  --text-heading: 32px;
  --text-heading-sm: 21px;
  --text-subheading: 18px;
  --text-body: 16px;
  --text-body-sm: 14px;
  --text-caption: 12px;

  --w-light: 300;   /* Mercury 360 — authority through restraint */
  --w-regular: 400;
  --w-medium: 500;  /* Mercury 480 */

  /* Layout */
  --page-max: 1200px;
  --radius-pill: 32px;
  --radius-pill-lg: 40px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* settle in from black on first load */
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
body { animation: page-in 1s ease both; }

body {
  background: var(--color-deep-loam);
  color: var(--color-starlight);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.5;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--color-scarf-gold); color: var(--color-on-gold); }

.container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 32px;
}
.container--narrow { max-width: 800px; }
.center { text-align: center; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  padding: 20px 0;
  transition: background 0.4s ease, padding 0.4s ease;
}
.nav--scrolled {
  background: rgba(20, 22, 14, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0;
}
.nav__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__logo {
  font-size: var(--text-heading-sm);
  font-weight: var(--w-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-ink-moss);
  transition: color 0.4s ease;
}
.nav--scrolled .nav__logo { color: var(--color-starlight); }
.nav__links { display: flex; gap: 8px; margin-left: auto; }
.nav__link {
  color: var(--color-ink-moss);
  text-decoration: none;
  font-size: var(--text-body-sm);
  font-weight: var(--w-medium);
  letter-spacing: 0.02em;
  padding: 8px 14px;
  transition: opacity 0.2s ease, color 0.4s ease;
}
.nav--scrolled .nav__link { color: var(--color-starlight); }
.nav__link:hover { opacity: 0.6; }
.nav__cta {
  font-size: var(--text-body-sm);
  font-weight: var(--w-medium);
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--color-ink-moss);
  background: rgba(38, 43, 26, 0.12);
  border: 1px solid rgba(38, 43, 26, 0.25);
  border-radius: var(--radius-pill-lg);
  padding: 8px 20px;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.4s ease, border-color 0.4s ease;
}
.nav__cta:hover { background: rgba(38, 43, 26, 0.22); }
.nav--scrolled .nav__cta {
  color: var(--color-starlight);
  background: rgba(233, 220, 180, 0.14);
  border-color: transparent;
}
.nav--scrolled .nav__cta:hover { background: rgba(233, 220, 180, 0.24); }

/* ============ HERO ============ */
/* pinned: the island holds still while the page slides up over it */
.hero {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
main, .footer {
  position: relative;
  z-index: 3;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}
/* gentle brightening at the top so dark text sits in clean sky */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(244, 246, 242, 0.5) 0%, rgba(244, 246, 242, 0.18) 42%, rgba(244, 246, 242, 0) 62%),
    linear-gradient(180deg, rgba(244, 246, 242, 0.35) 0%, rgba(244, 246, 242, 0) 45%);
  pointer-events: none;
}
.hero__fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 18vh;
  background: linear-gradient(180deg, rgba(20, 22, 14, 0) 0%, rgba(20, 22, 14, 0.85) 100%);
  pointer-events: none;
}
.hero {
  --hero-lift: -5vh;
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 32px;
  text-align: left;
  transform: translateY(calc(var(--hero-lift) + var(--hero-drift, 0px)));
  will-change: transform, opacity;
}
.hero__video { will-change: transform; }
.hero__eyebrow {
  color: var(--color-ink-moss);
  font-size: var(--text-body-sm);
  font-weight: var(--w-medium);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero__title {
  color: var(--color-ink-moss);
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: var(--w-light);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
.hero__sub {
  color: var(--color-ink-moss);
  font-size: var(--text-heading-sm);
  font-weight: var(--w-regular);
  opacity: 0.85;
  margin-bottom: 40px;
  max-width: 480px;
}
.hero__note {
  color: var(--color-ink-moss);
  font-size: var(--text-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-top: 16px;
}

/* ============ EMAIL CAPTURE (joined pill) ============ */
.capture {
  display: inline-flex;
  align-items: stretch;
}
.capture--center { justify-content: center; }
.capture__input {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-ink-moss);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(38, 43, 26, 0.35);
  border-right: none;
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  padding: 16px 24px;
  width: min(300px, 52vw);
  outline: none;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.capture__input::placeholder { color: rgba(38, 43, 26, 0.55); }
.capture__input:focus { background: rgba(255, 255, 255, 0.7); border-color: rgba(38, 43, 26, 0.6); }
.capture__btn {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--w-medium);
  letter-spacing: 0.01em;
  color: var(--color-on-gold);
  background: var(--color-scarf-gold);
  border: none;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  padding: 16px 24px;
  cursor: pointer;
  transition: background 0.25s ease;
  white-space: nowrap;
}
.capture__btn:hover { background: #e0b260; }

/* dark sections — invert the capture field */
.section .capture__input {
  color: var(--color-starlight);
  background: transparent;
  border-color: var(--color-lead);
}
.section .capture__input::placeholder { color: var(--color-lead); }
.section .capture__input:focus { background: rgba(233, 220, 180, 0.06); border-color: var(--color-silver); }

/* ============ SECTIONS ============ */
.section {
  position: relative;
  overflow: hidden;
  background: var(--color-night-moss);
  padding: 128px 0;
}
.section > .container { position: relative; z-index: 1; }
.section--deep { background: var(--color-deep-loam); }
.section--cta { padding: 160px 0; }

.kicker {
  color: var(--color-silver);
  font-size: var(--text-body-sm);
  font-weight: var(--w-medium);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.heading-lg {
  font-family: var(--font-display);
  font-size: var(--text-heading-lg);
  font-weight: var(--w-light);
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-bottom: 32px;
}
.heading {
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: var(--w-light);
  line-height: 1.2;
  margin-bottom: 56px;
}

.prose { max-width: 680px; }
.prose p {
  color: var(--color-silver);
  font-size: var(--text-subheading);
  line-height: 1.6;
}
.prose p + p { margin-top: 20px; }

/* stats */
.stats {
  list-style: none;
  display: flex;
  gap: 72px;
  margin-top: 72px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num {
  font-family: var(--font-display);
  font-size: var(--text-heading-lg);
  font-weight: var(--w-light);
  line-height: 1.1;
}
.stat__label {
  color: var(--color-silver);
  font-size: var(--text-body-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ============ FEATURES (interactive list) ============ */
.features { list-style: none; }
.feature {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 32px;
  padding: 32px 16px;
  cursor: pointer;
  transition: background 0.3s ease, padding-left 0.3s ease;
}
/* divider lines draw themselves in as each row reveals */
.feature::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(110, 114, 96, 0.4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}
.feature.is-visible::after { transform: scaleX(1); }
.feature:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: rgba(110, 114, 96, 0.4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature:first-child.is-visible::before { transform: scaleX(1); }
.feature:hover { background: var(--color-undergrowth); padding-left: 28px; }
.feature__index {
  color: var(--color-lead);
  font-size: var(--text-body-sm);
  font-weight: var(--w-medium);
  letter-spacing: 0.1em;
  min-width: 32px;
}
.feature__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: var(--w-medium);
  line-height: 1.2;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}
.feature:hover .feature__title { color: var(--color-ghost-gold); }
.feature__text {
  color: var(--color-silver);
  max-width: 560px;
}
.feature__arrow {
  margin-left: auto;
  color: var(--color-lead);
  font-size: var(--text-heading-sm);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}
.feature:hover .feature__arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--color-ghost-gold);
}

/* ============ STUDIO ============ */
.studio-quote p {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: var(--w-light);
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.studio-quote cite {
  display: block;
  margin-top: 24px;
  color: var(--color-silver);
  font-size: var(--text-body-sm);
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.studio-note {
  margin-top: 40px;
  color: var(--color-silver);
  font-size: var(--text-subheading);
  line-height: 1.6;
  max-width: 620px;
}

/* ============ FINAL CTA ============ */
.cta-sub {
  color: var(--color-silver);
  font-size: var(--text-subheading);
  max-width: 480px;
  margin: 0 auto 40px;
}
.ghost-cta {
  display: table;
  margin: 24px auto 0;
  color: var(--color-silver);
  font-size: var(--text-body-sm);
  font-weight: var(--w-medium);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.25s ease;
}
.ghost-cta:hover { color: var(--color-ghost-gold); }

/* ============ FOOTER ============ */
.footer {
  background: var(--color-deep-loam);
  border-top: 1px solid rgba(110, 114, 96, 0.3);
  padding: 56px 0 32px;
}
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer__logo {
  font-size: var(--text-heading-sm);
  font-weight: var(--w-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer__tag {
  color: var(--color-silver);
  font-size: var(--text-body-sm);
  margin-top: 8px;
}
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a {
  color: var(--color-silver);
  font-size: var(--text-body-sm);
  text-decoration: none;
  transition: color 0.25s ease;
}
.footer__links a:hover { color: var(--color-starlight); }
.footer__legal {
  margin-top: 56px;
  color: var(--color-lead);
  font-size: var(--text-caption);
  letter-spacing: 0.02em;
}

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.12s; }
.d2 { transition-delay: 0.24s; }
.d3 { transition-delay: 0.36s; }
.d4 { transition-delay: 0.48s; }

/* blur-to-sharp variant — like fog clearing */
.reveal--blur { filter: blur(10px); transition-property: opacity, transform, filter; transition-duration: 1.3s; }
.reveal--blur.is-visible { filter: blur(0); }

/* word-by-word headline reveal — wind catching the words */
.reveal-words .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.7em) rotate(1.5deg);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-words.is-visible .word { opacity: 1; transform: translateY(0) rotate(0); }

/* ============ SCROLL CUE ============ */
.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-cue__line {
  display: block;
  width: 1px;
  height: 48px;
  background: rgba(239, 238, 228, 0.25);
  overflow: hidden;
  position: relative;
}
.scroll-cue__line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(239, 238, 228, 0.85);
  animation: cue-drop 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes cue-drop {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ============ POLLEN DRIFT (dark sections) ============ */
.seeds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.seed {
  position: absolute;
  width: var(--size, 3px);
  height: var(--size, 3px);
  border-radius: 50%;
  background: var(--color-ghost-gold);
  filter: blur(0.5px);
  opacity: 0;
  animation: seed-drift var(--dur, 14s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes seed-drift {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  15%  { opacity: var(--o, 0.35); }
  75%  { opacity: var(--o, 0.35); }
  100% { transform: translate3d(var(--sx, 30px), -160px, 0); opacity: 0; }
}

/* ============ ALTITUDE METER ============ */
.alt-meter {
  position: fixed;
  right: 28px;
  bottom: 24px;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  color: var(--color-silver);
  text-shadow: 0 1px 8px rgba(20, 22, 14, 0.4);
  transition: color 0.4s ease, opacity 0.4s ease;
  font-variant-numeric: tabular-nums;
}
.alt-meter__label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.6;
}
.alt-meter__value {
  font-size: var(--text-body-sm);
  font-weight: var(--w-medium);
  letter-spacing: 0.08em;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal--blur { filter: none; }
  .reveal-words .word { opacity: 1; transform: none; transition: none; }
  .feature::after, .feature:first-child::before { transform: scaleX(1); transition: none; }
  .seed, .scroll-cue__line::after { animation: none; }
  .seed { opacity: 0.25; }
  body { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__inner { justify-content: space-between; }
  .nav__cta { font-size: var(--text-caption); padding: 8px 16px; }
  .hero { --hero-lift: -4vh; }
  .alt-meter, .scroll-cue { display: none; }
  /* shift framing so the child stands right of the copy */
  .hero__video { object-position: 36% 65%; }
  .capture { flex-direction: column; gap: 12px; width: 100%; max-width: 360px; }
  .capture__input {
    width: 100%;
    border-right: 1px solid rgba(38, 43, 26, 0.35);
    border-radius: var(--radius-pill);
    text-align: center;
  }
  .section .capture__input { border-right-color: var(--color-lead); }
  .capture__btn { border-radius: var(--radius-pill); }
  .section { padding: 80px 0; }
  .stats { gap: 40px; }
  .feature { flex-wrap: wrap; gap: 12px; }
  .feature__arrow { display: none; }
  .footer__inner { flex-direction: column; }
}
