/* ============================================================
   The Topanga Tea Company — Landing
   Editorial / wabi-sabi / canyon golden-hour
   ============================================================ */

:root {
  --ink:       #08120d;
  --ink-2:     #0f1d14;
  --ink-3:     #17291c;
  --moss:      #1e3826;
  --sage:      #5b7a5d;
  --jade:      #2d4f34;
  --bone:      #f0e7d4;
  --bone-2:    #e7dcc4;
  --bone-dim:  rgba(240, 231, 212, 0.55);
  --bone-ghost:rgba(240, 231, 212, 0.18);
  --ember:     #c9561e;
  --ember-2:   #e2723a;
  --gold:      #d4a84a;
  --gold-dim:  rgba(212, 168, 74, 0.55);
  --rule:      rgba(240, 231, 212, 0.14);

  --f-display: 'Fraunces', Georgia, serif;
  --f-italic:  'Instrument Serif', Georgia, serif;
  --f-body:    'Newsreader', Georgia, serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;

  --ease-out:  cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--ember); color: var(--bone); }

html {
  scroll-behavior: smooth;
  background: var(--ink);
  color-scheme: dark;
}

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

/* ------------------------------------------------------------
   Background canvas, grain, vignette
   ------------------------------------------------------------ */

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 0.95  0 0 0 0 0.85  0 0 0 0.12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.9;
  animation: grain-shift 8s steps(6) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-2%,1%); }
  40%  { transform: translate(1%,-2%); }
  60%  { transform: translate(-1%,2%); }
  80%  { transform: translate(2%,1%); }
  100% { transform: translate(0,0); }
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(8,18,13,0.65) 100%),
    linear-gradient(to bottom, rgba(8,18,13,0.1) 0%, transparent 20%, transparent 80%, rgba(8,18,13,0.55) 100%);
}

/* ------------------------------------------------------------
   Base utility
   ------------------------------------------------------------ */

section { position: relative; z-index: 2; }
main { position: relative; z-index: 2; }

em { font-style: italic; }

a {
  color: inherit;
  text-decoration: none;
  position: relative;
}

.section-num {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dim);
  padding: 6px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.section-num.light { color: var(--ink); border-color: rgba(8,18,13,0.2); }

.section-title {
  font-family: var(--f-display);
  font-weight: 200;
  font-variation-settings: "SOFT" 80, "opsz" 144;
  font-size: clamp(48px, 8vw, 140px);
  line-height: 0.86;
  letter-spacing: -0.028em;
  color: var(--bone);
  margin: 24px 0 20px;
}
.section-title em {
  font-family: var(--f-italic);
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.section-sub {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 22px;
  color: var(--bone-dim);
  max-width: 520px;
}

/* ------------------------------------------------------------
   Navigation
   ------------------------------------------------------------ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 28px 44px;
  color: var(--bone);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }

.mark {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--bone);
}
.mark-glyph {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  display: inline-block;
  transform: translateY(-2px);
  transition: transform 0.6s var(--ease-out), color 0.4s;
}
.mark-glyph.big {
  font-size: 72px;
  display: block;
  margin-bottom: 10px;
}
.mark:hover .mark-glyph { transform: translateY(-2px) rotate(-8deg); }

.mark-wordmark {
  font-family: var(--f-display);
  font-weight: 300;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-size: 17px;
  letter-spacing: 0.01em;
}

.nav-meta {
  display: flex;
  gap: 12px;
  justify-self: center;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.nav-meta .dot { color: var(--gold-dim); }

.nav-coord {
  justify-self: end;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--bone-dim);
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */

.hero {
  min-height: 100vh;
  padding: 0 44px 44px;
  display: flex;
  align-items: stretch;
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  padding-top: 140px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-eyebrow .tick {
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--gold);
}

.title {
  align-self: center;
  font-family: var(--f-display);
  font-weight: 200;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-size: clamp(68px, 15.5vw, 290px);
  line-height: 0.8;
  letter-spacing: -0.038em;
  color: var(--bone);
  padding: 20px 0;
}
.title-line { display: block; }
.title-line.l1 { text-indent: -0.02em; }
.title-line.l2 {
  text-align: right;
  padding-right: 2%;
}
.title em {
  font-family: var(--f-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  font-size: 1.18em;
  padding: 0 0.04em 0 0.02em;
  display: inline-block;
  transform: translateY(0.03em);
}

.reveal-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.28em;
  margin-bottom: -0.28em;
}
.reveal-inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 1.4s var(--ease-in-out), opacity 1s var(--ease-out);
}
.loaded .reveal-inner { transform: translateY(0); opacity: 1; }

/* Falling letters (hero title) — petals drifting into place */
@keyframes leaf-fall {
  0% {
    transform: translate3d(var(--lx, 0px), var(--ly, -560px), 0)
               rotate(var(--lr, -25deg))
               scale(0.92);
    opacity: 0;
    filter: blur(4px);
  }
  12% {
    opacity: 1;
  }
  70% {
    filter: blur(0);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(0) scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

.letter {
  display: inline-block;
  transform-origin: 50% 50%;
  will-change: transform, opacity, filter;
  opacity: 0;
  animation-name: leaf-fall;
  animation-duration: var(--ldur, 2s);
  animation-delay: var(--ldelay, 0ms);
  animation-timing-function: cubic-bezier(0.22, 0.78, 0.32, 1.05);
  animation-fill-mode: both;
}
.letter.letter-space {
  animation: none;
  opacity: 1;
}

/* ------------------------------------------------------------
   Language cycling — subtle random crossfade between scripts
   (Used on the hero "Tea" word and the small nav 茶 glyph)
   ------------------------------------------------------------ */

/* Scoped to the two known parents so specificity beats the parent rules
   (.title em and .mark-glyph both set display:inline-block). */
.title em.cycle,
.nav .mark-glyph.cycle {
  display: inline-grid;
  grid-template-areas: "x";
  vertical-align: baseline;
  line-height: inherit;
}

.cycle > .cycle-item {
  grid-area: x;
  opacity: 0;
  filter: blur(6px);
  transition:
    opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1),
    filter 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  color: inherit;
  font-style: inherit;
  white-space: nowrap;
}
.cycle > .cycle-item.active {
  opacity: 1;
  filter: blur(0);
}

.lang-zh { font-family: 'Noto Serif SC', 'Songti SC', 'Yu Mincho', serif; font-weight: 500; font-style: normal; }
.lang-ko { font-family: 'Noto Serif KR', 'Nanum Myeongjo', serif; font-weight: 500; font-style: normal; }
.lang-th { font-family: 'Noto Serif Thai', 'Sarabun', serif; font-weight: 500; font-style: normal; }
.lang-en { font-family: inherit; font-style: italic; }

/* Hero Tea word — optical adjustments per script so they visually balance */
.title em.cycle {
  /* inline-grid collapses the em's whitespace; keep a whisper of padding
     so it doesn't visually touch the word "Company" after it. */
  padding: 0 0.04em 0 0.02em;
}
.title em .cycle-item.lang-zh,
.title em .cycle-item.lang-ko,
.title em .cycle-item.lang-th {
  font-size: 0.88em;
}

/* Nav glyph — tiny container, scripts visually sized to match */
.nav .mark-glyph.cycle {
  min-width: 30px;
  justify-items: center;
}
.nav .mark-glyph .cycle-item { color: var(--gold); }
.nav .mark-glyph .cycle-item.lang-th { font-size: 0.82em; }

@media (prefers-reduced-motion: reduce) {
  .cycle > .cycle-item { transition: none; }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}
.loaded .reveal { opacity: 1; transform: translateY(0); }

.hero-foot {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  align-items: end;
  gap: 50px;
  padding-top: 30px;
}

.tagline {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.35;
  color: var(--bone-2);
  max-width: 380px;
}
.tagline em { color: var(--gold); }

.hero-meta {
  display: flex;
  gap: 36px;
}
.meta-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meta-k {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.meta-v {
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 100, "opsz" 36;
  font-size: 16px;
  color: var(--bone);
}

.scroll-hint {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bone-dim);
  padding-bottom: 4px;
}
.scroll-hint .scroll-line {
  width: 1px;
  height: 72px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  transform-origin: top;
  animation: scroll-pulse 2.4s var(--ease-in-out) infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(0.25); opacity: 0.4; }
  50%      { transform: scaleY(1);    opacity: 1; }
}

/* ------------------------------------------------------------
   Manifesto
   ------------------------------------------------------------ */

.manifesto {
  padding: 180px 44px 180px;
  background: linear-gradient(to bottom, transparent, rgba(8,18,13,0.4) 20%, rgba(8,18,13,0.4) 80%, transparent);
}

.manifesto-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 80px;
  align-items: start;
}

.manifesto-num {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 140px;
}
.roman {
  font-family: var(--f-display);
  font-weight: 200;
  font-variation-settings: "SOFT" 80, "opsz" 144;
  font-size: 80px;
  line-height: 1;
  color: var(--gold);
}
.manifesto-num .label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.manifesto-body {
  font-family: var(--f-body);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.5;
  color: var(--bone);
  max-width: 780px;
}
.manifesto-body p + p { margin-top: 28px; }
.manifesto-body em { font-style: italic; color: var(--gold); }

.drop { position: relative; }
.dropcap {
  float: left;
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-weight: 300;
  font-size: 92px;
  line-height: 0.85;
  padding: 10px 16px 0 0;
  color: var(--gold);
}

.sig {
  margin-top: 50px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.sig-line {
  width: 40px;
  height: 1px;
  background: var(--gold-dim);
}
.sig-text {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 16px;
  color: var(--bone-dim);
}

/* ------------------------------------------------------------
   Origins
   ------------------------------------------------------------ */

.origins {
  padding: 120px 44px 160px;
  background: var(--ink-2);
  position: relative;
  overflow: hidden;
}
.origins::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(212,168,74,0.08), transparent 60%);
  pointer-events: none;
}

.origins-head {
  max-width: 1400px;
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 18px 40px;
  align-items: end;
}
.origins-head .section-num { grid-column: 1; grid-row: 1; align-self: start; }
.origins-head .section-title { grid-column: 1 / -1; grid-row: 2; }
.origins-head .section-sub { grid-column: 2; grid-row: 1; align-self: end; text-align: right; justify-self: end; }

.origins-list {
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}

.origin {
  display: grid;
  grid-template-columns: 80px 1.2fr 2fr 180px;
  gap: 40px;
  padding: 44px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  transition: background 0.6s var(--ease-out);
  position: relative;
}
.origin::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(212,168,74,0.04), transparent);
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
  pointer-events: none;
}
.origin:hover::before { opacity: 1; }
.origin:hover .origin-name { letter-spacing: 0.005em; }
.origin:hover .origin-line { transform: scaleX(1); }

.origin-rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 18px;
}
.origin-n {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold-dim);
}
.origin-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.8s var(--ease-out);
}

.origin-name {
  font-family: var(--f-display);
  font-weight: 200;
  font-variation-settings: "SOFT" 80, "opsz" 144;
  font-size: clamp(44px, 5vw, 76px);
  line-height: 0.9;
  color: var(--bone);
  letter-spacing: -0.02em;
  transition: letter-spacing 0.6s var(--ease-out);
}
.origin-sub {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 16px;
  color: var(--bone-dim);
  margin-top: 8px;
}

.origin-desc {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--bone-2);
  padding-top: 22px;
  max-width: 440px;
}

.origin-tags {
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-self: end;
}
.origin-tags span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 1px;
  text-align: center;
}

/* ------------------------------------------------------------
   Canyon — parallax illustration
   ------------------------------------------------------------ */

.canyon {
  position: relative;
  min-height: 120vh;
  padding: 180px 44px;
  background: linear-gradient(to bottom,
    #e8d8a8 0%,
    #e0c488 25%,
    #c58a52 55%,
    #6b3a27 90%,
    var(--ink) 100%);
  overflow: hidden;
  color: var(--ink);
  isolation: isolate;
}

.canyon-layer {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  will-change: transform;
}

.canyon-layer.sky {
  top: 0;
  height: 80%;
  background: radial-gradient(
    circle 200vmax at 80% 18%,
    rgba(255, 222, 142, 0.58) 0%,
    rgba(255, 200, 118, 0.28) 10%,
    rgba(255, 175, 92, 0.10) 25%,
    rgba(255, 160, 80, 0.03) 40%,
    transparent 60%
  );
}

.canyon-layer.ridge-far {
  bottom: 0;
  height: 55%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 400' preserveAspectRatio='none'%3E%3Cpath d='M0,320 C120,260 220,290 340,250 C460,210 580,260 720,230 C860,200 980,250 1120,220 C1260,190 1360,240 1440,210 L1440,400 L0,400 Z' fill='%23a86a3d'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
  opacity: 0.7;
}
.canyon-layer.ridge-mid {
  bottom: 0;
  height: 45%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 400' preserveAspectRatio='none'%3E%3Cpath d='M0,280 C100,220 200,260 320,210 C440,160 560,220 700,180 C840,140 980,200 1120,170 C1260,140 1360,190 1440,160 L1440,400 L0,400 Z' fill='%23784226'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
}
.canyon-layer.ridge-near {
  bottom: 0;
  height: 35%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 400' preserveAspectRatio='none'%3E%3Cpath d='M0,240 C100,180 200,220 320,190 C440,160 560,200 700,170 C840,140 980,180 1120,150 C1260,120 1360,170 1440,140 L1440,400 L0,400 Z' fill='%23321c12'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
}

.canyon-text {
  position: relative;
  z-index: 3;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto auto;
  gap: 40px 80px;
  align-items: start;
  color: var(--ink);
}

.canyon-text .section-num {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  justify-self: start;
}

.canyon-title {
  grid-column: 1 / -1;
  grid-row: 2;
  font-family: var(--f-display);
  font-weight: 200;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-size: clamp(64px, 12vw, 220px);
  line-height: 0.82;
  letter-spacing: -0.038em;
  color: var(--ink);
  margin-top: 8px;
}
.canyon-title span { display: block; }
.canyon-title .big { font-size: 1.3em; padding-left: 12%; }
.canyon-title em {
  font-family: var(--f-italic);
  font-style: italic;
  color: #6b2a10;
  font-weight: 400;
}

.canyon-body {
  grid-column: 2;
  grid-row: 3;
  font-family: var(--f-body);
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.6;
  color: var(--ink);
  max-width: 520px;
  justify-self: end;
}
.canyon-body p + p { margin-top: 18px; }

.canyon-stats {
  grid-column: 1 / -1;
  grid-row: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  align-items: end;
  padding-top: 36px;
  border-top: 1px solid rgba(8,18,13,0.25);
  margin-top: 40px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-n {
  font-family: var(--f-display);
  font-weight: 200;
  font-variation-settings: "SOFT" 80, "opsz" 144;
  font-size: clamp(48px, 5vw, 88px);
  line-height: 0.9;
  color: var(--ink);
}
.stat-l {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(8,18,13,0.6);
}

/* ------------------------------------------------------------
   Waitlist
   ------------------------------------------------------------ */

.waitlist {
  padding: 180px 44px 160px;
  background: var(--ink);
  position: relative;
}

.waitlist-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.waitlist-title {
  font-family: var(--f-display);
  font-weight: 200;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-size: clamp(48px, 7vw, 110px);
  line-height: 0.92;
  letter-spacing: -0.028em;
  color: var(--bone);
  margin: 30px 0 18px;
}
.waitlist-title em {
  font-family: var(--f-italic);
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.waitlist-sub {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 22px;
  color: var(--bone-dim);
  margin-bottom: 50px;
}

.waitlist-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  align-items: stretch;
  max-width: 620px;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.waitlist-form label {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 18px 0;
  gap: 4px;
}
.field-label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.waitlist-form input {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 80, "opsz" 36;
  font-size: 22px;
  color: var(--bone);
  padding: 4px 0;
}
.waitlist-form input::placeholder {
  color: var(--bone-ghost);
  font-style: italic;
}

.waitlist-form button {
  background: transparent;
  border: none;
  color: var(--gold);
  font-family: var(--f-display);
  font-weight: 300;
  font-variation-settings: "SOFT" 80, "opsz" 36;
  font-size: 18px;
  padding: 0 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: gap 0.5s var(--ease-out), color 0.3s;
}
.waitlist-form button:hover {
  gap: 22px;
  color: var(--ember-2);
}
.btn-arrow { font-family: var(--f-body); transform: translateY(-1px); }

.sent-msg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s;
}
.waitlist-form.sent .sent-msg { opacity: 1; }

.waitlist-foot {
  margin-top: 22px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-ghost);
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

.footer {
  padding: 80px 44px 40px;
  background: var(--ink);
  border-top: 1px solid var(--rule);
  position: relative;
  z-index: 3;
}

.footer-main {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 80px;
}

.footer-col { font-size: 14px; color: var(--bone-2); }
.footer-col p { margin-top: 4px; line-height: 1.6; }
.footer-k {
  display: block;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 12px;
}
.footer-mark {
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 100, "opsz" 72;
  font-size: 22px;
  color: var(--bone);
  margin-top: 0;
}
.footer-col a { border-bottom: 1px solid var(--rule); transition: border-color 0.3s; }
.footer-col a:hover { border-color: var(--gold); }

.footer-base {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  gap: 20px;
  flex-wrap: wrap;
}
.colophon { font-style: italic; text-transform: none; letter-spacing: 0.04em; font-family: var(--f-italic); font-size: 12px; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 900px) {
  .nav { padding: 22px 24px; grid-template-columns: auto 1fr; }
  .nav-meta, .nav-coord { display: none; }

  .hero { padding: 0 24px 30px; }
  .hero-grid { padding-top: 120px; }
  .title { font-size: clamp(56px, 16vw, 120px); }
  .title-line.l2 { padding-right: 0; text-align: left; padding-left: 6%; }
  .hero-foot { grid-template-columns: 1fr; gap: 30px; }
  .hero-meta { gap: 24px; flex-wrap: wrap; }
  .scroll-hint { justify-self: start; }

  .manifesto { padding: 100px 24px; }
  .manifesto-grid { grid-template-columns: 1fr; gap: 40px; }
  .manifesto-num { position: static; }
  .roman { font-size: 56px; }
  .manifesto-body { font-size: 18px; }
  .dropcap { font-size: 68px; }

  .origins { padding: 80px 24px 100px; }
  .origins-head { grid-template-columns: 1fr; }
  .origins-head .section-sub { grid-column: 1; text-align: left; justify-self: start; grid-row: 3; }
  .origin {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 32px 0;
  }
  .origin-rail { flex-direction: row; align-items: center; padding-top: 0; }
  .origin-line { width: 24px; }
  .origin-name { font-size: 44px; }
  .origin-desc, .origin-tags { padding-top: 0; }
  .origin-tags { flex-direction: row; justify-self: start; flex-wrap: wrap; }

  .canyon { padding: 120px 24px; }
  .canyon-text { grid-template-columns: 1fr; gap: 24px; }
  .canyon-title .big { padding-left: 0; }
  .canyon-body { justify-self: start; }
  .canyon-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .waitlist { padding: 100px 24px; }
  .waitlist-title { font-size: clamp(40px, 10vw, 70px); }
  .waitlist-form { grid-template-columns: 1fr; }
  .waitlist-form button { padding: 16px 0; justify-content: flex-start; border-top: 1px solid var(--rule); }

  .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 50px; }
  .footer-base { flex-direction: column; gap: 10px; }
}

@media (max-width: 520px) {
  .footer-main { grid-template-columns: 1fr; }
  .hero-eyebrow { font-size: 9px; gap: 10px; }
  .tagline { font-size: 17px; }
}

/* ------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-inner { transform: none; opacity: 1; }
  .reveal { opacity: 1; transform: none; }
  .letter {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}
