/* ============================================================
   Koshi Chhyang — v2 experience
   Theme-morphing custom properties: JS tweens --bg/--fg/--muted/
   --line/--accent as you scroll between sections.
   Palette: fermented night, rice-paper cream, marcha clay, brass.
   ============================================================ */

:root {
  /* live theme (tweened by JS) */
  --bg: #0d0a10;
  --fg: #f3ecdc;
  --muted: rgba(243, 236, 220, 0.64);
  --line: rgba(243, 236, 220, 0.16);
  --accent: #c9994e;

  /* fixed palette */
  --night: #0d0a10;
  --night-2: #18121f;
  --paper: #f3ecdc;
  --paper-2: #e9dcc3;
  --ink: #181410;
  --clay: #c14e28;
  --brass: #c9994e;
  --milk: #efe6d2;

  --max: 1360px;
  --font-display: "Fraunces", serif;
  --font-body: "Inter", sans-serif;
  --font-dev: "Noto Serif Devanagari", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.83, 0, 0.17, 1);
}

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

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--clay); color: var(--paper); }

section[id], footer { scroll-margin-top: 72px; }

img, video { max-width: 100%; display: block; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 10000;
  background: var(--ink); color: var(--paper);
  padding: 0.7rem 1.3rem; border-radius: 999px;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; transition: top 0.25s var(--ease);
}
.skip-link:focus-visible { top: 1rem; }

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

/* ---------- shared type ---------- */
.kicker {
  display: inline-block; font-size: 0.7rem; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--accent);
}
.h2 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.8rem, 8vw, 6.8rem); line-height: 0.95; letter-spacing: -0.01em;
  color: var(--fg);
}

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 9000;
  opacity: 0.4; mix-blend-mode: soft-light;
}

/* ---------- cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9500;
  pointer-events: none; opacity: 0;
  transition: opacity 0.3s;
}
.cursor.is-active { opacity: 1; }
.cursor__dot {
  position: absolute; top: 0; left: 0; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
  transform: translate(-50%, -50%);
  transition: opacity 0.25s, background 0.4s;
}
.cursor__ring {
  position: absolute; top: 0; left: 0; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid var(--accent);
  transform: translate(-50%, -50%) scale(0.55);
  opacity: 0.65;
  transition: transform 0.35s var(--ease), opacity 0.35s, background 0.35s, border-color 0.4s;
}
.cursor__label {
  position: absolute; top: 0; left: 0;
  transform: translate(-50%, -50%);
  font-size: 0.58rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--night); opacity: 0; white-space: nowrap;
  transition: opacity 0.25s;
}
.cursor.is-hover .cursor__ring { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.cursor.is-label .cursor__ring {
  transform: translate(-50%, -50%) scale(2.1);
  background: var(--accent); opacity: 0.96;
}
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__ring { transform: translate(-50%, -50%) scale(0.8); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--night); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
}
.preloader__inner { text-align: center; }
.preloader__dev {
  display: block; font-family: var(--font-dev);
  font-size: clamp(3.4rem, 9vw, 6.5rem); color: var(--brass);
  line-height: 1.2;
}
.preloader__count {
  display: block; font-family: var(--font-display);
  font-size: 1.1rem; letter-spacing: 0.35em; text-transform: uppercase;
  margin-top: 1.2rem; font-variant-numeric: tabular-nums;
}
.preloader__step {
  display: block; font-size: 0.72rem; letter-spacing: 0.3em;
  text-transform: uppercase; opacity: 0.55; margin-top: 0.8rem;
  min-height: 1.2em;
}
.preloader__bar {
  display: block; width: min(260px, 56vw); height: 1px;
  background: rgba(243, 236, 220, 0.18); margin: 1.6rem auto 0;
}
.preloader__bar-fill {
  display: block; width: 100%; height: 100%;
  background: var(--brass); transform: scaleX(0); transform-origin: left center;
}
.preloader__pct {
  position: absolute; right: clamp(1.4rem, 4vw, 3rem); bottom: clamp(1rem, 3vw, 2rem);
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(3.5rem, 9vw, 7rem); line-height: 1; color: rgba(243, 236, 220, 0.22);
  font-variant-numeric: tabular-nums;
}

/* ---------- page progress hairline ---------- */
.pageprogress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1200;
  background: var(--accent); transform: scaleX(0); transform-origin: left center;
  pointer-events: none;
}

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-block; padding: 1rem 2.1rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color 0.35s var(--ease), border-color 0.35s;
}
.btn > span { position: relative; z-index: 2; display: inline-block; }
.btn::after {
  content: ""; position: absolute; inset: -2px; z-index: 1;
  border-radius: inherit; background: var(--clay);
  transform: translateY(102%); transition: transform 0.45s var(--ease-io);
}
.btn:hover::after, .btn:focus-visible::after { transform: translateY(0); }

.btn--solid { background: var(--fg); color: var(--bg); }
.btn--solid:hover, .btn--solid:focus-visible { color: var(--paper); }
.btn--ghost { border-color: var(--fg); color: var(--fg); background: transparent; }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--paper); border-color: var(--clay); }
.btn--paper { background: var(--paper); color: var(--night); border: none; }
.btn--paper::after { background: var(--night); }
.btn--paper:hover, .btn--paper:focus-visible { color: var(--paper); }
.btn.is-done::after { transform: translateY(0); background: var(--brass); }
.btn.is-done { color: var(--night); pointer-events: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.05rem clamp(1.25rem, 4vw, 3rem);
  transition: transform 0.5s var(--ease), background 0.4s, backdrop-filter 0.4s;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__brand { text-decoration: none; color: var(--fg); display: flex; align-items: baseline; gap: 0.5rem; }
.nav__brand-en { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; }
.nav__brand-ne { font-family: var(--font-dev); color: var(--accent); font-size: 1rem; }

.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  position: relative; text-decoration: none; color: var(--muted);
  font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase;
  transition: color 0.25s; padding: 0.2rem 0;
}
.nav__links a::before {
  content: attr(data-chapter);
  margin-right: 0.45em; color: var(--accent); font-size: 0.62rem;
}
.nav__links a:hover { color: var(--fg); }

/* flip-on-hover label */
[data-hover-flip] { overflow: hidden; display: inline-block; }
[data-hover-flip] > span {
  display: inline-block; position: relative;
  transition: transform 0.4s var(--ease);
}
[data-hover-flip] > span::after {
  content: attr(data-text); position: absolute; top: 100%; left: 0;
}
[data-hover-flip]:hover > span { transform: translateY(-100%); }

.nav__end { display: flex; align-items: center; gap: 0.9rem; }
.nav__basket {
  position: relative; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line);
  cursor: pointer; transition: border-color 0.3s, background 0.3s;
}
.nav__basket svg {
  width: 17px; height: 17px; fill: none;
  stroke: var(--fg); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round;
  transition: stroke 0.3s;
}
.nav__basket:hover { border-color: var(--accent); }
.nav__basket-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 4px;
  display: grid; place-items: center;
  background: var(--clay); color: var(--paper);
  border-radius: 999px; font-size: 0.62rem; font-weight: 600;
  transform: scale(0); transition: transform 0.3s var(--ease);
}
.nav__basket-count.is-on { transform: scale(1); }

.nav__burger {
  display: none; flex-direction: column; justify-content: center; gap: 6px;
  width: 42px; height: 42px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line);
  cursor: pointer; align-items: center;
}
.nav__burger span {
  display: block; width: 16px; height: 1.5px; background: var(--fg);
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
}

/* ---------- fullscreen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 1050;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(5rem, 12vh, 8rem) clamp(1.5rem, 7vw, 6rem) clamp(2rem, 6vh, 4rem);
  visibility: hidden; pointer-events: none;
}
.menu.is-open { visibility: visible; pointer-events: auto; }
.menu__bg {
  position: absolute; inset: 0; background: var(--night-2);
  transform: scaleY(0); transform-origin: top center;
}
.menu__links { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 0.3rem; }
.menu__link {
  display: flex; align-items: baseline; gap: 1.2rem;
  text-decoration: none; color: var(--paper);
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.4rem, 9vw, 5.4rem); line-height: 1.12; text-transform: uppercase;
  opacity: 0; transform: translateY(40px);
  transition: color 0.3s;
}
.menu__link em {
  font-family: var(--font-body); font-style: normal; font-size: 0.72rem;
  letter-spacing: 0.3em; color: var(--brass);
}
.menu__link:hover { color: var(--brass); }
.menu__foot {
  position: relative; z-index: 2; margin-top: clamp(2rem, 8vh, 5rem);
  display: flex; gap: 2rem; flex-wrap: wrap;
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(243, 236, 220, 0.5);
  opacity: 0; transform: translateY(20px);
}
.menu__dev { font-family: var(--font-dev); color: var(--brass); text-transform: none; letter-spacing: 0; }

/* ---------- split text ---------- */
[data-split-chars] .word,
[data-split] .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
[data-split-chars] .char,
[data-split] .char {
  display: inline-block;
  transform: translateY(115%) rotate(4deg);
  transform-origin: left bottom;
  will-change: transform;
}
[data-split-words] .word { display: inline-block; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 7rem 1.5rem 6rem; overflow: hidden;
}
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 52%, rgba(13, 10, 16, 0.66) 0%, rgba(13, 10, 16, 0.18) 60%, transparent 100%),
    linear-gradient(to bottom, rgba(13, 10, 16, 0.5), transparent 30%, transparent 72%, rgba(13, 10, 16, 0.7));
}
.hero__dev {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-dev); font-size: clamp(14rem, 38vw, 36rem);
  color: rgba(243, 236, 220, 0.045); z-index: 1; user-select: none; line-height: 1;
  will-change: transform;
}
.hero__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }

.hero__eyebrow {
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.7rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--brass);
  margin-bottom: 2.2rem;
}
.rule { display: inline-block; width: 52px; height: 1px; background: var(--brass); opacity: 0.55; }

.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(4rem, 14.5vw, 13.5rem);
  line-height: 0.9; letter-spacing: -0.02em; text-transform: uppercase;
  color: var(--paper);
}
.hero__row { display: block; }
.hero__row--accent { font-style: italic; font-weight: 300; color: var(--clay); margin-top: -0.04em; }

.hero__tag {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem); margin-top: 2.2rem;
  color: rgba(243, 236, 220, 0.82);
}
.hero__rotator {
  margin-top: 0.4rem;
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem); color: var(--brass);
}
.rotator { display: inline-grid; text-align: left; vertical-align: bottom; overflow: hidden; }
.rotator__word {
  grid-area: 1 / 1; white-space: nowrap;
  opacity: 0; transform: translateY(110%);
}
.rotator__word.is-on { opacity: 1; transform: none; }

.hero__sub {
  max-width: 34rem; margin-top: 1.6rem;
  color: rgba(243, 236, 220, 0.66); font-size: 0.95rem;
}
.hero__actions { display: flex; gap: 1rem; margin-top: 2.6rem; flex-wrap: wrap; justify-content: center; }

.hero__foot {
  position: absolute; bottom: 1.6rem; left: 0; right: 0; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 clamp(1.4rem, 4vw, 3rem);
}
.hero__coord {
  font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(243, 236, 220, 0.4);
}
.hero__scrollcue {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(243, 236, 220, 0.55);
}
.hero__scrollline { width: 1px; height: 44px; background: rgba(243, 236, 220, 0.25); overflow: hidden; position: relative; }
.hero__scrollline::after {
  content: ""; position: absolute; inset: 0; background: var(--brass);
  animation: scrolldrip 1.8s var(--ease) infinite;
}
@keyframes scrolldrip { 0% { transform: translateY(-100%);} 60% { transform: translateY(0);} 100% { transform: translateY(100%);} }
@media (max-width: 700px) { .hero__coord { display: none; } }

/* ---------- marquee ---------- */
.marquee {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 1rem 0; display: grid; gap: 0.6rem;
}
.marquee__row {
  display: flex; white-space: nowrap; width: max-content;
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1rem, 2vw, 1.35rem); color: var(--accent);
  will-change: transform;
}
.marquee__row--alt { color: var(--muted); font-style: normal; font-size: clamp(0.85rem, 1.6vw, 1.05rem); letter-spacing: 0.08em; text-transform: uppercase; }
.marquee__row span { padding-right: 0.5em; }

/* ---------- manifesto ---------- */
.manifesto {
  padding: clamp(7rem, 16vh, 13rem) clamp(1.5rem, 8vw, 8rem);
  max-width: var(--max); margin: 0 auto;
}
.manifesto__text {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.7rem, 3.6vw, 3.1rem); line-height: 1.32; color: var(--fg);
}
.manifesto__sig {
  display: block; margin-top: 2.4rem;
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent);
}

/* ---------- lineage ---------- */
.lineage { padding: clamp(6rem, 14vh, 11rem) clamp(1.5rem, 6vw, 5rem); }
.lineage__head { max-width: var(--max); margin: 0 auto 5.5rem; text-align: center; }
.lineage__head .kicker { margin-bottom: 1.4rem; }
.lineage__intro {
  max-width: 32rem; margin: 1.6rem auto 0;
  font-family: var(--font-display); font-style: italic;
  font-size: 1.15rem; color: var(--muted);
}

.lineage__timeline {
  position: relative; max-width: 60rem; margin: 0 auto;
  display: flex; flex-direction: column; gap: clamp(4rem, 10vh, 7rem);
  padding-left: clamp(2.2rem, 6vw, 3.5rem);
}
.lineage__line {
  position: absolute; top: 0.4rem; bottom: 0.4rem; left: 0.55rem;
  width: 1px; background: var(--line);
}
.lineage__line-fill {
  display: block; width: 100%; height: 100%;
  background: var(--clay); transform: scaleY(0); transform-origin: top center;
}

.milestone {
  position: relative; max-width: 38rem;
  transition: transform 0.5s var(--ease);
  will-change: transform;
}
.milestone__marker {
  position: absolute; top: 0.4rem;
  left: calc(-1 * clamp(2.2rem, 6vw, 3.5rem) + 0.55rem - 5px);
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--clay);
}
.milestone__meta { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 0.9rem; }
.milestone__index { font-family: var(--font-dev); font-size: 1.3rem; color: var(--clay); }
.milestone__era { font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.milestone__title {
  font-family: var(--font-display); font-weight: 400; color: var(--fg);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.1; margin-bottom: 0.8rem;
}
.milestone__body p { color: var(--muted); font-size: 0.97rem; max-width: 32rem; }
.milestone__body p em { font-family: var(--font-display); font-style: italic; color: var(--clay); }
.milestone__body .btn { margin-top: 1.7rem; }
.milestone--founder .milestone__title { color: var(--clay); }

/* ---------- journey ---------- */
.journey { position: relative; }
.journey__pin { position: relative; overflow: hidden; background: var(--night); color: var(--paper); }
.journey__progress {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: rgba(243, 236, 220, 0.12); z-index: 5;
}
.journey__progress-fill {
  display: block; height: 100%; width: 100%;
  background: var(--brass); transform: scaleX(0); transform-origin: left center;
}
.journey__index {
  position: absolute; top: 1.6rem; right: clamp(1.4rem, 4vw, 3rem); z-index: 5;
  font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.18em;
  color: rgba(243, 236, 220, 0.65); font-variant-numeric: tabular-nums;
}
.journey__index i { font-style: normal; margin: 0 0.35em; color: var(--brass); }
.journey__track { display: flex; height: 100svh; width: max-content; will-change: transform; }
/* static fallback (reduced motion / no GSAP): stack chapters vertically */
.journey__track.is-static { flex-direction: column; height: auto; width: 100%; }
.journey__track.is-static .chapter { width: 100%; height: auto; min-height: 100svh; }

.chapter {
  position: relative; width: 100vw; height: 100%;
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center;
  padding: clamp(4rem, 9vh, 7rem) clamp(2rem, 7vw, 7rem); gap: 2rem;
  flex-shrink: 0; overflow: hidden;
}
.chapter__num {
  position: absolute; right: clamp(1rem, 4vw, 4rem); bottom: -0.18em;
  font-family: var(--font-dev); font-size: clamp(9rem, 26vh, 19rem);
  line-height: 1; color: rgba(243, 236, 220, 0.06); user-select: none;
}
.chapter__body { max-width: 32rem; position: relative; z-index: 2; }
.chapter__body .kicker { display: block; color: var(--brass); margin-bottom: 1.4rem; }
.chapter__title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: 0.95; letter-spacing: -0.01em;
  margin-bottom: 1.6rem; color: var(--paper);
}
.chapter__text { color: rgba(243, 236, 220, 0.72); font-size: 1rem; max-width: 28rem; }
.chapter__fact {
  display: inline-block; margin-top: 1.8rem; padding: 0.5rem 1.1rem;
  border: 1px solid rgba(243, 236, 220, 0.25); border-radius: 999px;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass);
}
.chapter__body .btn { margin-top: 1.8rem; }
.chapter__art { display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.chapter__art svg { width: min(46vh, 88%); height: auto; overflow: visible; }

.chapter--grain  { background: linear-gradient(160deg, var(--night) 55%, #1b2415 100%); }
.chapter--marcha { background: linear-gradient(160deg, var(--night) 55%, #2b1d12 100%); }
.chapter--wait   { background: linear-gradient(160deg, var(--night) 55%, var(--night-2) 100%); }
.chapter--pour   { background: linear-gradient(160deg, var(--night) 55%, #241a23 100%); }
.chapter--table  { background: linear-gradient(160deg, var(--night) 55%, #13202b 100%); }

/* art: terraces */
.art-terraces path { fill: none; stroke: var(--brass); stroke-width: 1.5; opacity: 0.8; }
.art-terraces .art-sun { fill: var(--clay); stroke: none; opacity: 0.9; }

/* art: marcha */
.art-marcha .marcha-cake { fill: rgba(201, 153, 78, 0.12); stroke: var(--brass); stroke-width: 1.5; }
.art-marcha .marcha-ring { fill: none; stroke: rgba(243, 236, 220, 0.35); stroke-dasharray: 4 7; }
.art-marcha .marcha-specks circle { fill: var(--clay); }

/* art: vessel */
.art-vessel {
  width: min(30vh, 240px); height: min(44vh, 360px);
  border: 1.5px solid var(--brass); border-radius: 28px 28px 110px 110px;
  position: relative; overflow: hidden;
}
.art-vessel__liquid {
  position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  background: linear-gradient(180deg, rgba(201, 153, 78, 0.35), rgba(193, 78, 40, 0.3));
}
.art-vessel__liquid::before {
  content: ""; position: absolute; top: -8px; left: -20%; right: -20%; height: 16px;
  background: rgba(243, 236, 220, 0.25); border-radius: 50%;
}
.art-vessel__bubbles { position: absolute; inset: 0; }
.bubble {
  position: absolute; bottom: -20px; border-radius: 50%;
  border: 1px solid rgba(243, 236, 220, 0.5);
  animation: bubbleRise linear infinite;
}
@keyframes bubbleRise {
  0%   { transform: translateY(0) scale(0.6); opacity: 0; }
  15%  { opacity: 0.9; }
  100% { transform: translateY(-340px) scale(1.1); opacity: 0; }
}

/* daycount */
.chapter__daycount { display: flex; align-items: baseline; gap: 0.8rem; margin-top: 1.8rem; }
.daycount__label, .daycount__of {
  font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(243, 236, 220, 0.55);
}
.daycount__value {
  font-family: var(--font-display); font-size: clamp(3rem, 7vh, 4.5rem);
  line-height: 1; color: var(--brass); font-variant-numeric: tabular-nums;
}

/* art: pour */
.art-pour .pour-stream { fill: none; stroke: var(--paper); stroke-width: 3; opacity: 0.85; }
.art-pour .pour-bowl { fill: rgba(243, 236, 220, 0.08); stroke: var(--brass); stroke-width: 1.5; }
.art-pour .pour-surface { fill: rgba(243, 236, 220, 0.3); }

/* art: table */
.art-table .table-line { stroke: var(--brass); stroke-width: 1.5; }
.art-table .table-cup path { fill: rgba(243, 236, 220, 0.1); stroke: var(--paper); stroke-width: 1.5; }
.art-table .table-moon { fill: none; stroke: var(--brass); stroke-width: 1.5; stroke-dasharray: 3 6; }

/* film panels */
.chapter--film {
  display: flex; align-items: center; justify-content: center; gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 8vh, 5rem) clamp(2rem, 6vw, 6rem);
  background: var(--night);
}
.film__bg {
  position: absolute; inset: -40px;
  background-image: var(--poster);
  background-size: cover; background-position: center;
  filter: blur(36px) brightness(0.32) saturate(0.85);
  z-index: 0;
}
.film__video {
  position: relative; z-index: 1;
  height: min(82vh, 100%); aspect-ratio: 9 / 16; width: auto;
  object-fit: cover; border-radius: 18px;
  border: 1px solid rgba(243, 236, 220, 0.25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  filter: saturate(0.95) contrast(1.03);
  transition: transform 0.6s var(--ease);
}
.film__video:hover { transform: scale(1.02); }
.film__caption { position: relative; z-index: 2; max-width: 24rem; }
.film__caption .kicker { display: block; color: var(--brass); margin-bottom: 0.9rem; }
.film__caption p {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.3rem, 2.8vw, 2.1rem); line-height: 1.25; color: var(--paper);
}

@media (max-width: 820px) {
  .journey__track { flex-direction: column; height: auto; width: 100%; }
  .chapter {
    width: 100%; min-height: 100svh; height: auto;
    grid-template-columns: 1fr; text-align: left; gap: 3rem;
    padding-top: 5.5rem; padding-bottom: 5.5rem;
  }
  .chapter__art { order: -1; }
  .chapter__art svg { width: min(60vw, 320px); }
  .chapter--film { flex-direction: column; min-height: 0; }
  .film__video { height: auto; width: min(78vw, 340px); }
  .film__caption { text-align: center; }
  .journey__progress, .journey__index { display: none; }
}

/* ---------- stats ---------- */
.stats { padding: clamp(5rem, 12vh, 9rem) clamp(1.5rem, 5vw, 4rem); }
.stats__grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.stat { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.stat__value {
  display: block; font-family: var(--font-display); font-weight: 300;
  font-size: clamp(3rem, 6vw, 5rem); line-height: 1; color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.stat__value small { font-size: 0.45em; color: var(--accent); }
.stat__label {
  display: block; margin-top: 0.6rem; font-size: 0.74rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
@media (max-width: 820px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- shop ---------- */
.shop { padding: clamp(6rem, 14vh, 11rem) clamp(1.5rem, 5vw, 4rem); text-align: center; }
.shop__inner { max-width: 66rem; margin: 0 auto; }
.shop__inner .kicker { margin-bottom: 1.5rem; }
.shop__meta { margin: 1.4rem auto 0; max-width: 34rem; font-size: 0.95rem; color: var(--muted); }

.shop__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
  margin: 3.6rem 0 1.8rem; align-items: stretch;
  perspective: 1200px;
}
.product {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  padding: 2.5rem 1.6rem 2.3rem;
  border: 1px solid rgba(243, 236, 220, 0.32); border-radius: 20px;
  background: rgba(13, 10, 16, 0.14);
  transform-style: preserve-3d;
  transition: background 0.35s, border-color 0.35s, box-shadow 0.4s;
  overflow: hidden;
}
.product:hover {
  background: rgba(13, 10, 16, 0.24);
  border-color: rgba(243, 236, 220, 0.6);
  box-shadow: 0 30px 70px rgba(13, 10, 16, 0.3);
}
.product__glare {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(243, 236, 220, 0.14), transparent 60%);
  transition: opacity 0.4s;
}
.product:hover .product__glare { opacity: 1; }
.product--feature {
  background: var(--night); border-color: var(--night);
  box-shadow: 0 24px 60px rgba(13, 10, 16, 0.4);
  color: var(--paper);
}
.product--feature:hover { background: var(--night-2); border-color: var(--night-2); }
.product__badge {
  font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase;
  padding: 0.35rem 0.9rem; border: 1px solid rgba(243, 236, 220, 0.4); border-radius: 999px;
  color: var(--brass);
}
.product__name { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; }
.product__desc { font-size: 0.85rem; opacity: 0.78; max-width: 16rem; flex: 1; }
.product__price { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; }
@media (max-width: 820px) { .shop__grid { grid-template-columns: 1fr; } }

.shop__note {
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 3rem;
}
.shop__waitlist { margin-top: 1rem; }
.shop__waitlist p { max-width: 30rem; margin: 0 auto 1.4rem; font-size: 0.9rem; color: var(--muted); }

/* fly-to-basket dot */
.flydot {
  position: fixed; z-index: 9600; width: 12px; height: 12px;
  border-radius: 50%; background: var(--brass); pointer-events: none;
}

/* ---------- forms ---------- */
.wave-form { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.wave-form input {
  min-width: min(320px, 80vw); padding: 1rem 1.4rem;
  border-radius: 999px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--fg) 7%, transparent);
  color: var(--fg);
  font-family: var(--font-body); font-size: 0.9rem; outline: none;
  transition: border-color 0.3s, background 0.3s;
}
.wave-form input::placeholder { color: var(--muted); }
.wave-form input:focus { border-color: var(--accent); background: color-mix(in srgb, var(--fg) 12%, transparent); }
.wave-form.is-done input { border-color: var(--brass); }

/* ---------- footer ---------- */
.footer {
  position: relative; overflow: hidden;
  padding: clamp(6rem, 14vh, 11rem) clamp(1.5rem, 5vw, 4rem) 2.5rem;
}
.footer__dev {
  position: absolute; right: -4vw; bottom: -6vh;
  font-family: var(--font-dev); font-size: clamp(16rem, 34vw, 30rem); line-height: 1;
  color: rgba(243, 236, 220, 0.035); user-select: none; pointer-events: none;
}
.footer__cta { position: relative; text-align: center; max-width: 52rem; margin: 0 auto; }
.footer__title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.2rem, 6.4vw, 5rem); line-height: 1; margin-bottom: 1.4rem; color: var(--fg);
}
.footer__cta p { color: var(--muted); margin-bottom: 1.9rem; font-size: 0.95rem; }

.footer__grid {
  position: relative; max-width: var(--max); margin: 5rem auto 0;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem;
  padding-top: 3rem; border-top: 1px solid var(--line);
  text-align: left;
}
.footer__brand { font-family: var(--font-display); font-size: 1.4rem; display: block; margin-bottom: 0.8rem; color: var(--fg); }
.footer__brand em { font-family: var(--font-dev); font-style: normal; color: var(--brass); font-size: 1rem; margin-left: 0.4rem; }
.footer__grid p { color: var(--muted); font-size: 0.88rem; }
.footer__head {
  display: block; font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.footer__grid a {
  display: block; width: fit-content; color: var(--muted); text-decoration: none;
  font-size: 0.92rem; padding: 0.22rem 0; transition: color 0.25s;
}
.footer__grid a:hover { color: var(--fg); }

.footer__legal {
  position: relative; max-width: var(--max); margin: 3rem auto 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: 0.74rem; color: var(--muted);
}
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- reveal defaults ---------- */
.reveal { opacity: 0; transform: translateY(30px); will-change: transform, opacity; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  [data-split-chars] .char, [data-split] .char { transform: none; }
  .rotator__word { opacity: 0; transform: none; }
  .rotator__word.is-on { opacity: 1; }
  .marquee__row, .hero__scrollline::after, .bubble { animation: none !important; }
  html { scroll-behavior: auto; }
  .preloader { display: none; }
  .hero__gl { display: none; }
}
