/* ==================================================================
   TESFA · 3D concept rebuild
   Dark, warm, cinematic. WebGL behind, editorial type in front.
================================================================== */

/* ------------------------------ tokens ------------------------------ */
:root {
  /* base */
  --ink:        #0B0705;
  --ink-2:      #140D08;
  --ink-3:      #1E1410;
  --cream:      #F6EEE2;
  --cream-dim:  #CDBFAE;
  --muted:      #8C7F72;

  /* spice */
  --ember:      #E2542B;
  --ember-hot:  #FF7A45;
  --turmeric:   #E9A63A;
  --gold:       #FFD08A;
  --sumac:      #8E2B3A;
  --zhug:       #6E8F4A;

  /* surfaces */
  --glass:      rgba(28, 19, 14, .55);
  --glass-2:    rgba(246, 238, 226, .06);
  --line:       rgba(246, 238, 226, .12);
  --line-2:     rgba(246, 238, 226, .06);

  /* type */
  --display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --ui: 'Space Grotesk', ui-sans-serif, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* rhythm */
  --gut: clamp(20px, 4.4vw, 76px);
  --sect: clamp(96px, 14vh, 190px);
  --r: 14px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, .05, .36, 1);
}

/* ------------------------------ reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body, h1, h2, h3, h4, p, figure, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }

::selection { background: var(--ember); color: #fff; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--ui);
  font-weight: 350;
  font-size: clamp(15px, .55vw + 13px, 17px);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; height: 100vh; }
body.no-scroll  { overflow: hidden; }

/* ------------------------------ webgl layer ------------------------------ */
#gl {
  position: fixed; inset: 0;
  width: 100vw; height: 100dvh;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease) .1s;
  touch-action: pan-y;
}
body.gl-ready #gl { opacity: 1; }

#grain {
  position: fixed; inset: -120%;
  z-index: 2; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(6) infinite;
  will-change: transform;
}
@keyframes grain {
  0%,100% { transform: translate(0,0) }
  20% { transform: translate(-6%, 4%) }
  40% { transform: translate(4%, -5%) }
  60% { transform: translate(-3%, -3%) }
  80% { transform: translate(5%, 3%) }
}

#vignette {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(130% 90% at 50% 42%, transparent 38%, rgba(6,3,2,.62) 100%),
    linear-gradient(180deg, rgba(6,3,2,.55), transparent 22%, transparent 78%, rgba(6,3,2,.7));
}

/* ------------------------------ preloader ------------------------------ */
#preloader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--ink);
  transition: opacity .8s var(--ease), visibility .8s;
}
#preloader::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 55%, rgba(226,84,43,.14), transparent 70%);
}
body.loaded #preloader { opacity: 0; visibility: hidden; pointer-events: none; }

.pre__inner { position: relative; z-index: 1; width: min(440px, 78vw); text-align: center; }

.pre__mark {
  display: flex; justify-content: center; gap: .04em;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(46px, 12vw, 92px);
  letter-spacing: .1em;
  line-height: 1;
  color: var(--cream);
}
.pre__letter {
  display: inline-block;
  opacity: 0; transform: translateY(24px) rotateX(-60deg);
  animation: preIn .9s var(--ease) forwards;
}
.pre__letter:nth-child(1) { animation-delay: .05s }
.pre__letter:nth-child(2) { animation-delay: .12s }
.pre__letter:nth-child(3) { animation-delay: .19s }
.pre__letter:nth-child(4) { animation-delay: .26s }
.pre__letter:nth-child(5) { animation-delay: .33s }
@keyframes preIn { to { opacity: 1; transform: none } }

.pre__meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 22px 0 10px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}
.pre__pct { font-variant-numeric: tabular-nums; color: var(--turmeric); }
.pre__bar { height: 1px; background: var(--line); overflow: hidden; }
.pre__bar > i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--ember), var(--gold));
  transition: width .35s var(--ease);
}

/* ------------------------------ cursor ------------------------------ */
#cursor { position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none; mix-blend-mode: difference; }
#cursorDot, #cursorRing {
  position: absolute; border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
#cursorDot { width: 6px; height: 6px; background: var(--cream); }
#cursorRing {
  width: 34px; height: 34px; border: 1px solid rgba(246,238,226,.5);
  transition: width .3s var(--ease), height .3s var(--ease), border-color .3s;
}
#cursorLabel {
  position: absolute; transform: translate(-50%, -50%);
  font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
  font-style: normal; opacity: 0; transition: opacity .25s;
  white-space: nowrap;
}
body.cursor-hot #cursorRing { width: 62px; height: 62px; border-color: rgba(246,238,226,.9); }
body.cursor-hot #cursorLabel { opacity: 1; }
body.cursor-hot #cursorDot { opacity: 0; }
@media (hover: none), (pointer: coarse) { #cursor { display: none } }

/* ------------------------------ nav ------------------------------ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 18px var(--gut);
  transition: background .45s var(--ease), backdrop-filter .45s, padding .45s var(--ease), border-color .45s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(11,7,5,.72);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--line-2);
  padding-top: 12px; padding-bottom: 12px;
}
.nav.is-hidden { transform: translateY(-102%); }
.nav { transition-property: transform, background, backdrop-filter, padding, border-color; }

.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__glyph {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 14px; color: var(--turmeric);
  transition: border-color .4s, color .4s, transform .5s var(--ease);
}
.nav__brand:hover .nav__glyph { border-color: var(--ember); color: var(--ember-hot); transform: rotate(-12deg); }
.nav__word { font-family: var(--display); font-weight: 400; letter-spacing: .3em; font-size: 15px; }

.nav__links { display: flex; gap: 30px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--cream-dim); }
.nav__links a { position: relative; padding: 6px 0; transition: color .3s; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--ember); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--cream); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__status {
  display: flex; align-items: center; gap: 7px;
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--cream-dim);
}
.nav__status i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.nav__status.is-open i { background: #7FD489; box-shadow: 0 0 0 0 rgba(127,212,137,.6); animation: pulse 2.4s infinite; }
.nav__status.is-closed i { background: var(--ember); }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(127,212,137,0) } 100% { box-shadow: 0 0 0 0 rgba(127,212,137,0) } }

.nav__burger { display: none; width: 44px; height: 44px; position: relative; }
.nav__burger span {
  position: absolute; left: 11px; width: 22px; height: 1px; background: var(--cream);
  transition: transform .45s var(--ease), opacity .3s;
}
.nav__burger span:nth-child(1) { top: 19px }
.nav__burger span:nth-child(2) { top: 25px }
body.drawer-open .nav__burger span:nth-child(1) { transform: translateY(3px) rotate(45deg) }
body.drawer-open .nav__burger span:nth-child(2) { transform: translateY(-3px) rotate(-45deg) }

/* drawer */
.drawer {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 0 var(--gut);
  background: rgba(9,6,4,.94);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
}
body.drawer-open .drawer { opacity: 1; visibility: visible; }
.drawer a {
  font-family: var(--display); font-size: clamp(30px, 9vw, 52px); font-weight: 300;
  padding: 8px 0; opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s;
}
body.drawer-open .drawer a { opacity: 1; transform: none; }
body.drawer-open .drawer a:nth-child(1) { transition-delay: .06s }
body.drawer-open .drawer a:nth-child(2) { transition-delay: .11s }
body.drawer-open .drawer a:nth-child(3) { transition-delay: .16s }
body.drawer-open .drawer a:nth-child(4) { transition-delay: .21s }
body.drawer-open .drawer a:nth-child(5) { transition-delay: .26s }
body.drawer-open .drawer a:nth-child(6) { transition-delay: .31s }
.drawer a:active { color: var(--ember-hot) }
.drawer__order { color: var(--turmeric) }
.drawer__tel { font-family: var(--ui) !important; font-size: 15px !important; letter-spacing: .14em; color: var(--cream-dim) }

/* ------------------------------ shared bits ------------------------------ */
main { position: relative; z-index: 3; }
/* direct children only: the menu renders <section> per group and must not
   pick up a full page section's padding */
main > section { position: relative; padding: var(--sect) var(--gut); }

/* Text-heavy sections get a scrim so copy never depends on where the
   3D backdrop happens to be bright. main owns the stacking context, so
   z-index -1 sits under the copy and over the canvas. */
.scrim::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(11,7,5,0) 0%,
    rgba(11,7,5,.72) 7%,
    rgba(11,7,5,.86) 40%,
    rgba(11,7,5,.86) 60%,
    rgba(11,7,5,.72) 93%,
    rgba(11,7,5,0) 100%);
}

.sect__head { max-width: 1400px; margin: 0 auto clamp(40px, 6vw, 84px); }
.sect__head--center { text-align: center; }
.sect__kicker {
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--turmeric); margin-bottom: 18px;
}
.sect__title {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(38px, 8.2vw, 108px);
  line-height: .96; letter-spacing: -.025em;
}
.sect__title em { font-style: italic; color: var(--turmeric); font-weight: 300; }
.sect__note { margin-top: 20px; color: var(--muted); font-size: 13px; letter-spacing: .04em; }

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 100px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .4s, transform .4s var(--ease);
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(100deg, var(--ember), var(--turmeric));
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--fill { background: var(--cream); color: var(--ink); }
.btn--fill:hover { color: #200e06; }
.btn--ghost { border: 1px solid var(--line); color: var(--cream); }
.btn--ghost:hover { color: #200e06; border-color: transparent; }
.btn--sm { min-height: 38px; padding: 0 18px; font-size: 10px; border: 1px solid var(--line); }
.btn--sm:hover { color: #200e06; border-color: transparent; }
.btn:active { transform: scale(.97); }

.link {
  display: inline-block; margin-top: 10px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--turmeric); border-bottom: 1px solid rgba(233,166,58,.35);
  padding-bottom: 3px; transition: border-color .3s, color .3s;
}
.link:hover { color: var(--gold); border-color: var(--gold); }

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

/* split-letter reveal, one line at a time */
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line .w { display: block; }
.char {
  display: inline-block; will-change: transform;
  opacity: 0; transform: translateY(115%) rotate(4deg);
  transition: transform 1.05s var(--ease), opacity .7s var(--ease);
}
.w.in .char { opacity: 1; transform: none; }

/* split-word reveal */
.wordwrap { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .04em; }
.wordwrap > i {
  display: inline-block; font-style: inherit;
  transform: translateY(108%);
  transition: transform .95s var(--ease);
}
[data-split-words].in .wordwrap > i { transform: none; }

/* ------------------------------ hero ------------------------------ */
.hero {
  min-height: 100dvh;
  display: flex; align-items: center;
  padding-top: clamp(92px, 13vh, 168px);
  padding-bottom: clamp(64px, 9vh, 130px);
}
.hero__grid { width: 100%; max-width: 1500px; margin: 0 auto; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--cream-dim);
  margin-bottom: clamp(14px, 2.6vh, 34px);
}
.hero__eyebrow i {
  width: 34px; height: 1px; background: linear-gradient(90deg, var(--ember), transparent);
}

.hero__title {
  font-family: var(--display); font-weight: 300;
  /* height matters as much as width here: four lines have to clear the fold */
  font-size: clamp(52px, min(9.6vw, 11.4vh), 148px);
  line-height: .9; letter-spacing: -.035em;
  max-width: 15ch;
}
.hero__title .line--alt .w { font-style: italic; color: var(--gold); }
.hero__title em { font-style: normal; color: var(--ember); }

.hero__lede {
  max-width: 46ch; margin-top: clamp(18px, 2.8vh, 40px);
  color: var(--cream-dim); font-size: clamp(15px, 1.15vw, 19px); line-height: 1.65;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 3.2vh, 44px); }

.hero__facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, max-content));
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(26px, 5vh, 84px);
  padding-top: clamp(16px, 2.4vh, 26px); border-top: 1px solid var(--line-2);
}
.hero__facts dt { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.hero__facts dd { font-size: 14px; color: var(--cream); }
.hero__facts a { border-bottom: 1px solid var(--line); transition: border-color .3s; }
.hero__facts a:hover { border-color: var(--ember); }

.hero__scroll {
  position: fixed; left: 50%; bottom: 24px; z-index: 4;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
  transition: opacity .5s var(--ease);
}
body.scrolled .hero__scroll { opacity: 0; }
.hero__scroll i { width: 1px; height: 46px; background: linear-gradient(180deg, var(--line), transparent); position: relative; overflow: hidden; }
.hero__scroll i::after {
  content: ''; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--turmeric); animation: scrollDot 2.2s var(--ease-io) infinite;
}
@keyframes scrollDot { 0% { top: -50% } 100% { top: 100% } }

.hero__badge {
  position: absolute; right: var(--gut); bottom: clamp(70px, 12vh, 130px);
  width: clamp(88px, 9vw, 124px); aspect-ratio: 1;
  display: grid; place-items: center;
}
.hero__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.hero__badge text { font-family: var(--ui); font-size: 11.5px; letter-spacing: .16em; fill: var(--cream-dim); }
.hero__badge b { font-size: 22px; color: var(--turmeric); font-weight: 400; }
@keyframes spin { to { transform: rotate(360deg) } }

/* ------------------------------ manifesto ------------------------------ */
.manifesto { max-width: 1500px; margin: 0 auto; }
.manifesto__kicker { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--turmeric); margin-bottom: 26px; }
.manifesto__body {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(22px, 3.3vw, 48px); line-height: 1.24; letter-spacing: -.018em;
  max-width: min(100%, 28ch);
}

.manifesto__row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: clamp(50px, 7vw, 100px); padding-top: 34px; border-top: 1px solid var(--line-2);
}
.stat b {
  display: block; font-family: var(--display); font-weight: 300;
  font-size: clamp(34px, 4.6vw, 68px); line-height: 1; color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: 8px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ------------------------------ signatures ------------------------------ */
/* The ring lives in the fixed WebGL layer, centred on the viewport. The
   panel is pinned over it for the length of the track, so the section
   heading is out of frame by the time the carousel takes the screen. */
.sigs { padding-bottom: 0; }
.sigs__track { height: 240vh; position: relative; }
.sigs__stage {
  position: sticky; top: 0;
  height: 100dvh;
  max-width: 1500px; margin: 0 auto;
  display: flex; align-items: flex-end;
  padding-bottom: clamp(30px, 7vh, 80px);
  pointer-events: none;
}
.sigs__stage > * { pointer-events: auto; }

/* touch-action pan-y keeps vertical scrolling native while horizontal drags
   are claimed for the ring. sits under the panel so its buttons still work. */
.sigs__grab {
  position: absolute; inset: 0; z-index: 1;
  touch-action: pan-y;
  cursor: grab;
}
.sigs__grab:active { cursor: grabbing; }
body.is-dragging .sigs__grab { cursor: grabbing; }
body.is-dragging { user-select: none; }
.sigs__col { position: relative; z-index: 2; }

/* The panel and hint ride the same 0..1 the 3D ring uses, so copy and
   carousel always appear together. Defaults to 1 for the no-WebGL path. */
.sigs__col { width: min(400px, 100%); }
.sigs__hint {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 14px 2px;
  font-size: 9px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted);
  opacity: calc(var(--sigsOn, 1) * .85); transition: opacity .4s linear;
}
.sigs__hint::before { content: ''; width: 26px; height: 1px; background: var(--line); flex: 0 0 auto; }
body.sigs-dragged .sigs__hint { opacity: 0 }

.sigs__panel {
  position: relative;
  width: min(400px, 100%);
  opacity: var(--sigsOn, 1);
  transition: opacity .3s linear;
  padding: 26px 30px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
}
.sigs__panel::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(246,238,226,.07), transparent 46%);
}
.sigs__kicker { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--turmeric); }
.sigs__name { font-family: var(--display); font-weight: 300; font-size: clamp(26px, 3vw, 40px); line-height: 1.05; margin: 8px 0 12px; letter-spacing: -.02em; }
.sigs__blurb { color: var(--cream-dim); font-size: 14px; line-height: 1.6; min-height: 4.8em; }
.sigs__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.sigs__price { font-family: var(--display); font-size: 26px; color: var(--gold); font-variant-numeric: tabular-nums; }
.sigs__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.sigs__tags b {
  font-weight: 400; font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 100px; border: 1px solid var(--line); color: var(--cream-dim);
}
.sigs__nav { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.sigs__nav button {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.sigs__nav button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.sigs__nav button:hover { border-color: var(--ember); background: rgba(226,84,43,.12); }
.sigs__nav button:active { transform: scale(.92); }
.sigs__count { font-size: 11px; letter-spacing: .18em; color: var(--muted); font-variant-numeric: tabular-nums; }

.sigs__fallback { display: none; }

/* ------------------------------ spice ------------------------------ */
.spice__row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4vw, 22px);
  max-width: 1500px; margin: 0 auto;
}
.spice__card {
  position: relative; overflow: hidden;
  padding: clamp(20px, 2.2vw, 30px);
  min-height: clamp(300px, 32vw, 400px);
  border: 1px solid var(--line); border-radius: var(--r);
  background: rgba(15, 10, 7, .62);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  /* orb gets its own row so the copy can never ride up under it */
  display: grid; grid-template-rows: 1fr auto;
  opacity: 0; transform: translateY(30px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), border-color .5s, background .5s;
}
.spice__card.in { opacity: 1; transform: none; }
.spice__card:hover, .spice__card:focus-visible { border-color: rgba(246,238,226,.3); outline: none; }
.spice__orbwrap { position: relative; display: grid; place-items: center; min-height: 110px; }
.spice__orb {
  position: relative;
  width: min(148px, 62%); aspect-ratio: 1; border-radius: 50%;
  transition: transform .8s var(--ease);
}
.spice__card:hover .spice__orb, .spice__card:focus-within .spice__orb { transform: scale(1.08) translateY(-4px); }
.spice__orb::after {
  content: ''; position: absolute; inset: -34%; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--glow), transparent 64%);
  opacity: .4;
}
.spice__body { position: relative; }
.spice__name { font-family: var(--display); font-weight: 300; font-size: clamp(23px, 2.2vw, 32px); letter-spacing: -.02em; }
.spice__sub { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--turmeric); margin-bottom: 6px; }
/* three lines reserved so all four titles land on the same baseline */
.spice__note {
  color: var(--cream-dim); font-size: 13px; line-height: 1.55; margin-top: 10px;
  min-height: calc(3 * 1.55em);
}
.spice__price {
  display: block; margin-top: 12px; min-height: 1.5em;
  font-family: var(--display); font-size: 20px; color: var(--gold);
}
.spice__foot { text-align: center; margin-top: clamp(34px, 4vw, 54px); color: var(--muted); font-size: 13px; }
.spice__foot a { color: var(--turmeric); border-bottom: 1px solid rgba(233,166,58,.35); }

/* ------------------------------ menu ------------------------------ */
/* Full-bleed, and pinned to whatever the nav is currently doing. The nav
   auto-hides on scroll down, so a fixed offset would leave a transparent
   strip with menu rows sliding through it. --stickyTop is written by the
   nav scroll handler: nav height when it is showing, 0 when it is not. */
.menu__tools {
  position: sticky; top: var(--stickyTop, 0px); z-index: 20;
  margin: 0 calc(var(--gut) * -1) 32px;
  padding: 16px var(--gut) 14px;
  /* Fully opaque across the controls: a gradient here let rows show through
     the tab row. The fade lives in ::after, entirely below the band, so it
     stays correct no matter how the padding changes. */
  background: rgb(11, 7, 5);
  transition: top .45s var(--ease);
}
.menu__tools::after {
  content: ''; position: absolute; left: 0; right: 0; top: 100%;
  height: 36px; pointer-events: none;
  background: linear-gradient(180deg, rgb(11, 7, 5), rgba(11, 7, 5, 0));
}
.menu__toolsin { max-width: 1500px; margin: 0 auto; }
.menu__search { position: relative; max-width: 460px; margin-bottom: 12px; }
.menu__search svg {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.5;
}
.menu__search input {
  width: 100%; height: 50px; padding: 0 46px;
  background: var(--glass-2); border: 1px solid var(--line); border-radius: 100px;
  font-size: 14px; color: var(--cream);
  transition: border-color .35s, background .35s;
}
.menu__search input::placeholder { color: var(--muted); }
.menu__search input:focus { outline: none; border-color: rgba(233,166,58,.55); background: rgba(246,238,226,.09); }
.menu__search input::-webkit-search-cancel-button { display: none; }
#menuClear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; color: var(--muted); font-size: 20px; line-height: 1;
}
#menuClear:hover { color: var(--cream); }

.menu__tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -ms-overflow-style: none; }
.menu__tabs::-webkit-scrollbar { display: none; }
.menu__tabs button {
  flex: 0 0 auto; min-height: 38px; padding: 0 16px; border-radius: 100px;
  border: 1px solid var(--line); color: var(--cream-dim);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  transition: color .3s, border-color .3s, background .3s;
}
.menu__tabs button:hover { color: var(--cream); border-color: rgba(246,238,226,.3); }
.menu__tabs button.is-active { color: var(--ink); background: var(--gold); border-color: var(--gold); }

.menu__body { max-width: 1500px; margin: 0 auto; }
.menu__group { padding: 0; margin-bottom: clamp(44px, 5vw, 76px); }
.menu__grouphead { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.menu__grouphead h3 { font-family: var(--display); font-weight: 300; font-size: clamp(24px, 3vw, 42px); letter-spacing: -.02em; }
.menu__grouphead p { font-size: 12px; letter-spacing: .05em; color: var(--muted); font-style: italic; }
.menu__grouphead b { margin-left: auto; font-weight: 400; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.menu__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }

/* thumb | name | price, with the description spanning under name and price */
.menu__item {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  grid-template-areas: 'thumb name price' 'thumb desc desc';
  align-items: baseline;
  column-gap: 16px; row-gap: 6px;
  padding: 16px 16px; border-radius: 12px;
  transition: background .35s var(--ease);
  opacity: 0; transform: translateY(16px);
}
.menu__item.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease), background .35s; }
.menu__item:hover { background: rgba(246,238,226,.05); }
.menu__item h4 { grid-area: name; font-family: var(--display); font-weight: 400; font-size: clamp(16px, 1.35vw, 21px); letter-spacing: -.01em; }
.menu__item .price { grid-area: price; font-family: var(--display); font-size: clamp(15px, 1.25vw, 19px); color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu__item .desc { grid-area: desc; font-size: 13px; line-height: 1.55; color: var(--muted); max-width: 54ch; }

.menu__thumb {
  grid-area: thumb;
  align-self: start;
  width: 64px; height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  transition: transform .5s var(--ease), border-color .4s;
}
.menu__item:hover .menu__thumb { transform: scale(1.05); border-color: rgba(246,238,226,.22); }

/* dishes with no photograph of their own */
.menu__thumb--mono {
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 300; font-size: 24px;
  color: rgba(233,166,58,.55);
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(233,166,58,.12), transparent 60%),
    var(--ink-3);
}
.menu__item .tag {
  display: inline-block; margin-left: 8px; vertical-align: middle;
  font-size: 8px; letter-spacing: .16em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 100px; border: 1px solid rgba(110,143,74,.5); color: #A9C97C;
}
mark { background: rgba(233,166,58,.25); color: var(--gold); border-radius: 3px; padding: 0 2px; }

.menu__empty { max-width: 1500px; margin: 0 auto; color: var(--muted); font-size: 14px; }
.menu__empty button { color: var(--turmeric); border-bottom: 1px solid rgba(233,166,58,.4); }

/* ------------------------------ visit ------------------------------ */
.visit__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 22px);
  max-width: 1500px; margin: 0 auto;
}
.visit__card {
  padding: clamp(24px, 2.6vw, 38px);
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--glass-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.visit__card h3 { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--turmeric); margin-bottom: 20px; }
.visit__card address { font-family: var(--display); font-size: clamp(20px, 1.9vw, 27px); font-weight: 300; line-height: 1.4; }
.visit__card--cta { display: flex; flex-direction: column; }
.visit__card--cta p { color: var(--cream-dim); font-size: 14px; margin-bottom: 22px; }
.visit__card--cta .btn { align-self: flex-start; }
.visit__status { margin-top: auto; padding-top: 20px; font-size: 12px !important; letter-spacing: .1em; color: var(--muted) !important; }

.hours li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-bottom: 1px solid var(--line-2);
  font-size: 13px;
}
.hours li:last-child { border-bottom: 0; }
.hours li span:first-child { color: var(--cream-dim); }
.hours li span:last-child { font-variant-numeric: tabular-nums; color: var(--cream); }
.hours li.is-today { color: var(--gold); }
.hours li.is-today span { color: var(--gold) !important; }
.hours li.is-today span:first-child::after { content: ' · today'; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }

.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr);
  gap: 10px; max-width: 1500px; margin: clamp(40px, 5vw, 70px) auto 0;
  overflow-x: auto; padding-bottom: 8px; scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip li { aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: var(--ink-3); }
.strip img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3) brightness(.85); transition: filter .6s var(--ease), transform .8s var(--ease); }
.strip li:hover img { filter: none; transform: scale(1.06); }

/* ------------------------------ footer ------------------------------ */
.foot { position: relative; z-index: 3; padding: clamp(50px, 7vw, 90px) var(--gut) 34px; border-top: 1px solid var(--line-2); overflow: hidden; }
.foot__big { max-width: 1500px; margin: 0 auto; }
.foot__big span {
  display: block; font-family: var(--display); font-weight: 300;
  font-size: clamp(64px, 21vw, 320px); line-height: .82; letter-spacing: -.04em;
  background: linear-gradient(180deg, rgba(246,238,226,.16), rgba(246,238,226,.02));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.foot__row {
  max-width: 1500px; margin: clamp(24px, 3vw, 44px) auto 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}

/* ------------------------------ rail ------------------------------ */
.rail { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70; background: transparent; }
.rail > i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--ember), var(--gold)); }

/* ==================================================================
   RESPONSIVE
================================================================== */

/* --- tablet / small laptop --- */
@media (max-width: 1100px) {
  .spice__row { grid-template-columns: repeat(2, 1fr); }
  .menu__list { grid-template-columns: 1fr; }
  .visit__grid { grid-template-columns: 1fr 1fr; }
  .visit__card--cta { grid-column: 1 / -1; }
}

/* --- stacked panels --- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__status { display: none; }
  .hero__badge { display: none; }
  .manifesto__row { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .sigs__panel, .sigs__col { width: 100%; }
  /* the slider card sits where the hint would be, and the arrows already
     make the affordance obvious on touch */
  .sigs__hint { display: none; }
}

/* --- phone --- */
@media (max-width: 760px) {
  :root { --sect: clamp(76px, 11vh, 110px); }
  .hero { min-height: 100dvh; padding-top: 104px; }
  /* on a narrow screen the model sits behind the headline, so the hero
     needs the same contrast guarantee the other sections get */
  .hero::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
      linear-gradient(180deg, rgba(11,7,5,.80) 0%, rgba(11,7,5,.58) 22%, rgba(11,7,5,.66) 48%, rgba(11,7,5,.82) 74%, rgba(11,7,5,.94) 100%);
  }
  .hero__grid { position: relative; }
  .hero__title { max-width: none; font-size: clamp(42px, 13.5vw, 82px); }
  .hero__facts { grid-template-columns: 1fr; gap: 18px; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .hero__scroll { display: none; }
  .manifesto__body { max-width: none; font-size: clamp(21px, 5.6vw, 32px); }
  .spice__row { grid-template-columns: 1fr; }
  .spice__card { min-height: 280px; }
  .visit__grid { grid-template-columns: 1fr; }
  /* toolbar offset comes from --stickyTop on every width, so no override here */
  .strip { grid-auto-columns: minmax(150px, 1fr); }
  .foot__row { flex-direction: column; gap: 8px; }
}

/* --- narrow phone --- */
@media (max-width: 480px) {
  :root { --gut: 18px; --r: 12px; }
  .hero__eyebrow { font-size: 10px; letter-spacing: .2em; }
  .hero__lede { font-size: 15px; }
  .hero__facts dd { font-size: 13px; }
  .sect__title { font-size: clamp(34px, 11vw, 52px); }
  .sigs__stage { min-height: 76vh; }
  .sigs__panel { padding: 22px 20px 20px; }
  .sigs__blurb { font-size: 13px; min-height: 0; }
  .sigs__nav button { width: 44px; height: 44px; }
  .menu__item {
    grid-template-columns: 52px 1fr auto;
    column-gap: 12px;
    padding: 12px 10px;
  }
  .menu__thumb { width: 52px; height: 52px; border-radius: 9px; }
  .menu__thumb--mono { font-size: 20px; }
  .menu__item .desc { font-size: 12px; }
  .menu__grouphead b { display: none; }
  .hours li { font-size: 12px; }
  .stat b { font-size: clamp(30px, 11vw, 44px); }
  .stat span { font-size: 10px; letter-spacing: .14em; }
  .foot__row { font-size: 10px; }
}

/* --- short desktop windows: the facts repeat in Visit, so drop them --- */
@media (min-width: 761px) and (max-height: 790px) {
  .hero__facts { display: none; }
}

/* --- short landscape phones --- */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; padding-top: 88px; padding-bottom: 52px; }
  .hero__facts, .hero__scroll { display: none; }
  .hero__lede { display: none; }
}

/* --- motion / power --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal, .spice__card, .menu__item { opacity: 1 !important; transform: none !important; }
  .manifesto__body .wordwrap > i { transform: none !important; }
  #grain { display: none; }
}

/* --- no webgl fallback --- */
body.no-gl #gl, body.no-gl #grain { display: none; }
body.no-gl {
  background:
    radial-gradient(90% 70% at 70% 8%, rgba(226,84,43,.20), transparent 60%),
    radial-gradient(70% 60% at 12% 92%, rgba(233,166,58,.14), transparent 62%),
    var(--ink);
  background-attachment: fixed;
}
body.no-gl .sigs__stage { display: none; }
body.no-gl .sigs__fallback {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  max-width: 1500px; margin: 0 auto;
}
body.no-gl .sigs__fallback li { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--glass-2); }
body.no-gl .sigs__fallback img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
body.no-gl .sigs__fallback .fb__body { padding: 18px 20px 22px; }
body.no-gl .sigs__fallback h3 { font-family: var(--display); font-weight: 300; font-size: 22px; margin-bottom: 6px; }
body.no-gl .sigs__fallback p { font-size: 13px; color: var(--cream-dim); }
body.no-gl .sigs__fallback b { display: block; margin-top: 12px; font-family: var(--display); font-weight: 400; font-size: 19px; color: var(--gold); }
@media (max-width: 900px) { body.no-gl .sigs__fallback { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { body.no-gl .sigs__fallback { grid-template-columns: 1fr; } }
