/* ==========================================================================
   THAI TO WALK — Brand stylesheet v2
   Dark-first "night market" design system.
   Editorial serif display (Fraunces) + grotesk body (Hanken) + mono dockets
   (Space Mono) + Thai script accents (Chonburi).
   Brand palette unchanged: orange #F58220, warm charcoal, bone.
   No frameworks, no build step.
   ========================================================================== */

:root {
  /* Brand colour palette */
  --orange:       #F58220;
  --orange-deep:  #D96A10;
  --ember:        #C2410C;
  --charcoal:     #161412;
  --charcoal-2:   #211D19;
  --charcoal-3:   #2B2620;
  --black:        #0C0B0A;
  --bone:         #F6F0E6;
  --bone-2:       #ECE3D3;
  --ink:          #1C1916;
  --ink-muted:    rgba(28, 25, 22, .64);
  --cream-muted:  rgba(246, 240, 230, .62);
  --hairline-on-dark:  rgba(245, 130, 32, .22);
  --hairline-on-light: rgba(28, 25, 22, .14);

  /* Type */
  --display: 'Fraunces', Georgia, serif;
  --body:    'Hanken Grotesk', system-ui, sans-serif;
  --mono:    'Space Mono', ui-monospace, 'SF Mono', monospace;
  --thai:    'Chonburi', var(--display);

  /* Type scale — deliberate leap from text sizes to display sizes */
  --step--1: 0.8125rem;
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1:  clamp(1.25rem, 1.1rem + 0.8vw, 1.625rem);
  --step-2:  clamp(1.75rem, 1.4rem + 1.8vw, 2.75rem);
  --step-3:  clamp(2.5rem, 1.8rem + 3.5vw, 4.5rem);
  --step-display: clamp(3rem, 1.4rem + 7.5vw, 7.25rem);

  /* Motion — one easing system everywhere */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-mask: cubic-bezier(0.65, 0, 0.35, 1);
  --d-fast: 350ms;
  --d-med:  700ms;
  --d-slow: 1100ms;
  --stagger: 80ms;

  /* Rhythm */
  --maxw: 1340px;
  --gutter: clamp(20px, 4vw, 72px);
  --sec-pad: clamp(6rem, 13vh, 11rem);
  --radius: 18px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-size: var(--step-0);
  color: var(--bone);
  background: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: italic; }

/* Film-grain overlay — kills the flat digital feel */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 2000;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--orange); color: var(--charcoal); }

/* ---------- Type roles ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 580;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.eyebrow {
  font-family: var(--mono);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: .9em;
}
.eyebrow::before {
  content: ""; width: 30px; height: 1px; background: var(--orange);
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; }

/* Light sections */
.on-light { background: var(--bone); color: var(--ink); }
.on-light ::selection { background: var(--ink); color: var(--bone); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .65em;
  font-family: var(--body); font-weight: 600; font-size: .95rem;
  letter-spacing: .02em;
  padding: 1em 1.9em; border-radius: 999px;
  cursor: pointer; border: 1px solid transparent;
  background: transparent;
  transition: transform var(--d-fast) var(--ease-out),
              background var(--d-fast) ease, color var(--d-fast) ease,
              border-color var(--d-fast) ease, box-shadow var(--d-fast) ease;
}
.btn svg { width: 1em; height: 1em; transition: transform var(--d-fast) var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--orange); color: var(--charcoal); }
.btn-primary:hover { background: var(--bone); transform: translateY(-2px); }
.btn-line { border-color: rgba(246,240,230,.35); color: var(--bone); }
.btn-line:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.on-light .btn-line { border-color: rgba(28,25,22,.3); color: var(--ink); }
.on-light .btn-line:hover { border-color: var(--ember); color: var(--ember); }
.btn-dark { background: var(--ink); color: var(--bone); }
.btn-dark:hover { background: var(--ember); transform: translateY(-2px); }

/* Underline-draw link */
.link-draw {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--mono); font-size: var(--step--1); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding-bottom: 5px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 1px;
  transition: color var(--d-fast) ease, background-size var(--d-fast) var(--ease-out);
}
.link-draw:hover { color: var(--orange); background-size: 35% 1px; }
.link-draw svg { width: 1em; height: 1em; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background var(--d-fast) ease, padding var(--d-fast) var(--ease-out),
              border-color var(--d-fast) ease;
}
.site-header.scrolled {
  background: rgba(22, 20, 18, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-color: rgba(246, 240, 230, .08);
  padding: 12px var(--gutter);
}
.site-header .brand { display: flex; align-items: center; z-index: 130; position: relative; }
.site-header .brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(8px, 1.6vw, 26px); }
.nav a {
  position: relative;
  font-weight: 500; font-size: .92rem; letter-spacing: .03em;
  color: var(--cream-muted);
  padding: 6px 2px;
  background-image: linear-gradient(var(--orange), var(--orange));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0% 1px;
  transition: color var(--d-fast) ease, background-size var(--d-fast) var(--ease-out);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--bone); background-size: 100% 1px; }
.nav .nav-cta {
  background: var(--orange); color: var(--charcoal);
  font-weight: 600; padding: 10px 22px; border-radius: 999px;
  transition: background var(--d-fast) ease, color var(--d-fast) ease;
}
.nav .nav-cta:hover { background: var(--bone); color: var(--charcoal); }
.nav-toggle { display: none; }

/* ==========================================================================
   HERO — cinematic photoreal wok that zooms back into the kitchen on scroll
   --hp (0..1) is set by JS from hero scroll progress.
   ========================================================================== */
.hero {
  position: relative;
  /* taller than the viewport: the pin stays stuck for the extra height,
     giving scroll distance for the zoom to play out while fully in view */
  height: 185svh;
  background: var(--charcoal);
  --hp: 0;
}
.hero-pin {
  position: sticky; top: 0;
  height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  padding: clamp(110px, 16vh, 170px) 0 clamp(40px, 6vh, 70px);
}

/* full-bleed media layer */
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media-inner {
  position: absolute; inset: 0;
  /* starts pushed in on the wok, eases back to reveal the kitchen as you scroll */
  transform: scale(calc(1.18 - 0.18 * var(--hp))) translateY(calc(var(--hp) * -2.5%));
  transform-origin: 62% 58%;
  will-change: transform;
  /* smooths the discrete jumps of mouse-wheel scrolling into continuous motion */
  transition: transform 160ms linear;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 55%;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 55%;
  opacity: 0; transition: opacity 800ms var(--ease-out);
}
.hero-video.is-ready { opacity: 1; }
/* legibility scrim — heaviest on the left where the copy sits, plus a floor */
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(95deg, rgba(12,11,10,.94) 0%, rgba(12,11,10,.82) 26%, rgba(12,11,10,.42) 52%, rgba(12,11,10,.05) 74%, transparent 100%),
    linear-gradient(0deg, var(--charcoal) 1%, rgba(22,20,18,.5) 16%, transparent 42%),
    linear-gradient(180deg, rgba(12,11,10,.6) 0%, transparent 16%);
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 64% 52%, rgba(245,130,32,.16), transparent 68%);
  opacity: calc(1 - var(--hp) * .5);
}

.hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  /* copy parallaxes up and fades as the camera pulls back */
  opacity: calc(1 - var(--hp) * 1.15);
  transform: translateY(calc(var(--hp) * -26px));
  transition: opacity 160ms linear, transform 160ms linear;
}
.hero-copy { max-width: min(92%, 620px); }
.hero-copy .eyebrow { margin-bottom: clamp(18px, 3vh, 30px); }
.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.0;
}
.hero-title .line { display: block; overflow: hidden; padding-block: .04em; }
.hero-title .line > span { display: block; }
.hero-title em {
  font-style: italic; font-weight: 500;
  color: var(--orange);
}
.hero-sub {
  margin-top: clamp(18px, 3vh, 28px);
  font-size: var(--step-1);
  font-weight: 400;
  color: var(--cream-muted);
  max-width: 30ch;
  line-height: 1.45;
}
.hero-cta { margin-top: clamp(26px, 4vh, 40px); display: flex; gap: 14px; flex-wrap: wrap; }

/* entrance choreography (html.js gates it so no-JS still shows content) */
html.js .hero-title .line > span {
  transform: translateY(115%);
  transition: transform var(--d-slow) var(--ease-mask);
}
html.js .hero-eyebrow,
html.js .hero-sub,
html.js .hero-cta {
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--d-slow) var(--ease-out), transform var(--d-slow) var(--ease-out);
}
html.js.is-loaded .hero-title .line > span { transform: none; }
html.js.is-loaded .hero-eyebrow,
html.js.is-loaded .hero-sub,
html.js.is-loaded .hero-cta { opacity: 1; transform: none; }
html.js .hero-title .line:nth-child(1) > span { transition-delay: 150ms; }
html.js .hero-title .line:nth-child(2) > span { transition-delay: 240ms; }
html.js .hero-eyebrow { transition-delay: 80ms; }
html.js .hero-sub { transition-delay: 420ms; }
html.js .hero-cta { transition-delay: 520ms; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  z-index: 6;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(246, 240, 230, .42);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: calc(1 - var(--hp) * 4); /* fades out the moment you start scrolling */
}
.scroll-hint .line { width: 1px; height: 38px; background: linear-gradient(rgba(245, 130, 32, .9), transparent); animation: drop 1.9s ease-in-out infinite; }
@keyframes drop {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==========================================================================
   MARQUEE BAND
   ========================================================================== */
.marquee {
  background: var(--orange); color: var(--charcoal);
  overflow: hidden; white-space: nowrap;
  padding: 14px 0;
  border-block: 1px solid rgba(12, 11, 10, .25);
}
.marquee-track { display: inline-flex; animation: marquee 30s linear infinite; }
.marquee-track > span {
  font-family: var(--mono); font-weight: 700; font-size: .82rem;
  letter-spacing: .22em; text-transform: uppercase;
  padding-right: .5em;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   STORY — bone editorial statement + values row
   ========================================================================== */
.story { padding: var(--sec-pad) 0; }
.story .sec-num {
  position: absolute; top: clamp(28px, 5vw, 64px); right: var(--gutter);
  font-family: var(--thai);
  font-size: clamp(4rem, 9vw, 8rem); line-height: 1;
  color: rgba(245, 130, 32, .14);
  user-select: none; pointer-events: none;
}
.story-line {
  font-family: var(--display);
  font-size: var(--step-2);
  font-weight: 480;
  line-height: 1.22;
  letter-spacing: -0.015em;
  max-width: 24em;
  margin-top: clamp(22px, 4vh, 36px);
}
.story-line em { color: var(--ember); }
.values {
  margin-top: clamp(48px, 8vh, 84px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline-on-light);
}
.values li {
  padding: clamp(20px, 3vw, 34px) clamp(14px, 2vw, 28px) 0 0;
}
.values li + li { border-left: 1px solid var(--hairline-on-light); padding-left: clamp(14px, 2vw, 28px); }
.values .v-num { font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .18em; color: var(--ember); display: block; margin-bottom: 10px; }
.values h3 { font-size: var(--step-1); font-weight: 560; }
.values p { margin-top: 6px; font-size: .92rem; color: var(--ink-muted); max-width: 22ch; }

/* ==========================================================================
   BUILD A BOX — sticky split with Thai numerals
   ========================================================================== */
.build { background: var(--bone-2); color: var(--ink); padding: var(--sec-pad) 0; }
.build-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.build-intro { position: sticky; top: clamp(90px, 14vh, 140px); }
.build-intro h2 { font-size: var(--step-3); margin-top: 18px; max-width: 9em; }
.build-intro p { margin-top: 18px; color: var(--ink-muted); max-width: 34ch; }
.build-intro .btn { margin-top: 28px; }
.build-steps { display: grid; gap: clamp(18px, 3vh, 30px); }
.bstep {
  background: var(--bone);
  border: 1px solid var(--hairline-on-light);
  border-radius: var(--radius);
  padding: clamp(26px, 3.4vw, 44px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 2.6vw, 36px);
  align-items: start;
}
.bstep .thai-num {
  font-family: var(--thai);
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  line-height: 1;
  color: var(--orange);
}
.bstep .b-label { font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); display: block; margin-bottom: 6px; }
.bstep h3 { font-size: var(--step-1); font-weight: 560; }
.bstep ul { margin-top: 14px; display: grid; gap: 9px; }
.bstep li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  font-size: .95rem; font-weight: 500;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--hairline-on-light);
}
.bstep li:last-child { border-bottom: 0; padding-bottom: 0; }
.bstep li span { font-family: var(--mono); font-size: .78rem; color: var(--ink-muted); white-space: nowrap; }

/* ==========================================================================
   SIGNATURE DISHES — editorial feature + typographic rows
   ========================================================================== */
.signature { padding: var(--sec-pad) 0; background: var(--charcoal); }
.signature .section-head { max-width: 620px; }
.signature .section-head h2 { font-size: var(--step-3); margin-top: 18px; }
.signature .section-head p { margin-top: 16px; color: var(--cream-muted); }

.sig-grid {
  margin-top: clamp(40px, 7vh, 72px);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.sig-feature { position: relative; }
.sig-feature .frame {
  overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  background: var(--charcoal-2);
}
.sig-feature .frame img {
  width: 100%; height: 100%; object-fit: cover;
}
html.js .sig-feature .frame img { transform: scale(1.12); transition: transform 1.4s var(--ease-out); }
html.js .sig-feature.is-in .frame img { transform: scale(1); }
.sig-feature .meta { margin-top: 22px; display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.sig-feature .meta h3 { font-size: var(--step-2); font-weight: 560; }
.sig-feature .meta .price { font-family: var(--mono); font-size: var(--step-1); color: var(--orange); }
.sig-feature .desc { margin-top: 10px; color: var(--cream-muted); font-size: .98rem; max-width: 44ch; }
.sig-feature .pop {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  font-family: var(--mono); font-weight: 700; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  background: var(--orange); color: var(--charcoal);
  padding: 8px 14px; border-radius: 999px;
}

.sig-list { display: grid; align-content: start; }
.sig-row {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 24px;
  padding: clamp(20px, 3vh, 30px) 0;
  border-bottom: 1px solid var(--hairline-on-dark);
  transition: padding-left var(--d-fast) var(--ease-out);
}
.sig-row:first-child { border-top: 1px solid var(--hairline-on-dark); }
.sig-row:hover { padding-left: 10px; }
.sig-row h3 {
  font-size: var(--step-1); font-weight: 560;
  display: flex; align-items: center; gap: 12px;
}
.sig-row .price { font-family: var(--mono); font-size: .95rem; color: var(--orange); align-self: center; }
.sig-row p { grid-column: 1 / -1; color: var(--cream-muted); font-size: .92rem; max-width: 52ch; }
.heat { display: inline-flex; gap: 3px; }
.heat svg { width: 14px; height: 14px; color: var(--ember); }
.sig-foot { margin-top: clamp(32px, 5vh, 48px); }

/* ==========================================================================
   LOCATION — bone, docket-style details
   ========================================================================== */
.location { padding: var(--sec-pad) 0; }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.loc-info h2 { font-size: var(--step-3); margin: 18px 0 26px; max-width: 10em; }
.loc-docket {
  font-family: var(--mono); font-size: .88rem; line-height: 2.1;
  border-top: 1px solid var(--hairline-on-light);
  border-bottom: 1px solid var(--hairline-on-light);
  padding: 18px 0;
  max-width: 30em;
}
.loc-docket div { display: flex; justify-content: space-between; gap: 24px; }
.loc-docket dt { color: var(--ink-muted); text-transform: uppercase; font-size: .72rem; letter-spacing: .16em; align-self: center; }
.loc-docket dd { text-align: right; }
.loc-info .btn { margin-top: 30px; }
.loc-map {
  border-radius: var(--radius); overflow: hidden; min-height: 380px;
  border: 1px solid var(--hairline-on-light);
}
.loc-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(1) contrast(1.06); }

/* ==========================================================================
   FOOTER — final brand moment with giant clipped wordmark
   ========================================================================== */
.site-footer { background: var(--black); color: var(--cream-muted); padding-top: clamp(56px, 8vh, 90px); overflow: hidden; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; padding-bottom: clamp(40px, 6vh, 64px); }
.foot-brand img { height: 60px; margin-bottom: 20px; }
.foot-brand p { max-width: 34ch; font-size: .92rem; }
.foot-col h4 { font-family: var(--mono); color: var(--bone); font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 18px; }
.foot-col a, .foot-col p { display: block; font-size: .94rem; margin-bottom: 10px; transition: color var(--d-fast) ease; }
.foot-col a:hover { color: var(--orange); }
.foot-soon { font-size: .8rem; color: rgba(246, 240, 230, .38); font-style: italic; }
.foot-bottom {
  border-top: 1px solid rgba(246, 240, 230, .1);
  padding: 22px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em;
}
.foot-word {
  display: block; text-align: center; white-space: nowrap;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(3.4rem, 12.5vw, 11.5rem);
  line-height: .8; letter-spacing: -0.02em;
  color: rgba(246, 240, 230, .07);
  margin-bottom: -0.18em;
  user-select: none; pointer-events: none;
}

/* ==========================================================================
   REVEAL SYSTEM
   ========================================================================== */
html.js [data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity var(--d-med) var(--ease-out), transform var(--d-med) var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .sig-grid { grid-template-columns: 1fr; }
  .build-grid { grid-template-columns: 1fr; }
  .build-intro { position: static; }
  .loc-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .values li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .values li { border-top: 1px solid var(--hairline-on-light); margin-top: -1px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  /* keep the header clear of notches / status bars on real phones */
  .site-header { padding-top: max(16px, env(safe-area-inset-top)); }
  /* No backdrop-filter on mobile: a filtered ancestor would trap the
     fixed full-screen menu inside the header's box once scrolled. Use a
     solid background instead so the overlay always covers the viewport. */
  .site-header.scrolled {
    background: var(--charcoal);
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  /* full-screen overlay nav with staggered links */
  .nav {
    position: fixed; inset: 0; z-index: 120;
    background: var(--charcoal);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 4px; padding: 0 var(--gutter);
    /* a SOLID panel that slides in — never translucent, so page content
       can't bleed through and overlap the menu text mid-animation */
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--d-med) var(--ease-out), visibility 0s linear var(--d-med);
  }
  .nav.open { transform: none; visibility: visible; transition: transform var(--d-med) var(--ease-out); }
  .nav a {
    font-family: var(--display); font-size: var(--step-2); font-weight: 540;
    color: var(--bone); padding: 10px 0; background: none;
    opacity: 0; transform: translateY(26px);
    transition: opacity var(--d-med) var(--ease-out), transform var(--d-med) var(--ease-out);
  }
  .nav.open a { opacity: 1; transform: none; }
  .nav.open a:nth-child(1) { transition-delay: 60ms; }
  .nav.open a:nth-child(2) { transition-delay: 120ms; }
  .nav.open a:nth-child(3) { transition-delay: 180ms; }
  .nav.open a:nth-child(4) { transition-delay: 240ms; }
  .nav.open a:nth-child(5) { transition-delay: 300ms; }
  .nav.open a:nth-child(6) { transition-delay: 360ms; }
  .nav .nav-cta { background: none; color: var(--orange); padding: 10px 0; border-radius: 0; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; z-index: 130;
    border: 0; cursor: pointer; padding: 12px; border-radius: 999px;
    /* a soft dark pill so the icon stays legible over the bright video hero */
    background: rgba(12, 11, 10, .45);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .3);
    transition: background var(--d-fast) ease, box-shadow var(--d-fast) ease;
  }
  .nav-toggle span { width: 24px; height: 2px; border-radius: 2px; background: var(--bone); transition: transform var(--d-fast) var(--ease-out), opacity var(--d-fast) ease; }
  /* once it's the X over the full-screen menu, the pill isn't needed */
  .nav-toggle.open { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .values { grid-template-columns: 1fr; }
  .values li { border-left: 0; padding-left: 0; }
  .bstep { grid-template-columns: 1fr; gap: 12px; }
  .foot-top { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js [data-reveal],
  html.js .hero-title .line > span,
  html.js .hero-eyebrow, html.js .hero-sub, html.js .hero-cta { opacity: 1; transform: none; }
  html.js .sig-feature .frame img { transform: none; }
  .marquee-track { animation: none !important; }
  /* no pinned scroll-scrub: collapse the hero to a normal full-screen panel */
  .hero { height: auto; min-height: 100svh; }
  .hero-pin { position: static; height: auto; min-height: 100svh; }
  .hero-media-inner { transform: none; }
  .hero-inner { opacity: 1; transform: none; }
  .scroll-hint { opacity: 1; }
}

/* ==========================================================================
   LEGAL PAGES (privacy / cookies)
   ========================================================================== */
.legal { background: var(--bone); color: var(--ink); padding: clamp(130px, 18vh, 180px) 0 var(--sec-pad); }
.legal .wrap { max-width: 820px; }
.legal .eyebrow { color: var(--ember); }
.legal h1 { font-size: var(--step-3); margin: 14px 0 10px; }
.legal .updated { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.legal .lead { font-size: var(--step-1); line-height: 1.5; margin: 26px 0 8px; max-width: 60ch; }
.legal h2 { font-size: var(--step-1); font-weight: 560; margin: 40px 0 12px; }
.legal h3 { font-size: 1.1rem; font-weight: 600; font-family: var(--body); margin: 24px 0 6px; }
.legal p, .legal li { color: rgba(28, 25, 22, .82); line-height: 1.7; margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 1.3em; margin-bottom: 12px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--ember); text-decoration: underline; text-underline-offset: 2px; }
.legal .note {
  border-left: 3px solid var(--orange); background: rgba(245,130,32,.08);
  padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 18px 0; font-size: .92rem;
}
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: .9rem; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--hairline-on-light); vertical-align: top; }
.legal th { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.legal .table-wrap { overflow-x: auto; }

/* ==========================================================================
   CONSENT — banner + cookie-gated map
   ========================================================================== */
.cookie-banner {
  position: fixed; left: 50%; bottom: clamp(14px, 3vw, 28px); transform: translateX(-50%) translateY(140%);
  z-index: 1500;
  width: min(92vw, 640px);
  background: var(--charcoal-2); color: var(--bone);
  border: 1px solid rgba(246,240,230,.1); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  padding: clamp(20px, 3vw, 28px);
  opacity: 0; visibility: hidden;
  transition: transform var(--d-slow) var(--ease-out), opacity var(--d-med) var(--ease-out), visibility 0s linear var(--d-med);
}
.cookie-banner.open { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; transition: transform var(--d-slow) var(--ease-out), opacity var(--d-med) var(--ease-out); }
.cookie-banner h2 { font-size: 1.2rem; font-weight: 560; margin-bottom: 8px; }
.cookie-banner p { font-size: .9rem; color: var(--cream-muted); line-height: 1.6; margin-bottom: 16px; }
.cookie-banner p a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: .7em 1.4em; font-size: .9rem; }
@media (max-width: 460px) { .cookie-actions { flex-direction: column; } .cookie-actions .btn { width: 100%; justify-content: center; } }

/* footer consent link */
.foot-bottom .cookie-settings { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; padding: 0; }
.foot-legal { display: inline-flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.foot-legal a:hover, .foot-bottom .cookie-settings:hover { color: var(--orange); }

/* cookie-gated map */
.loc-map { position: relative; }
.loc-map .gmap { opacity: 0; transition: opacity var(--d-med) var(--ease-out); }
.loc-map.is-loaded .gmap { opacity: 1; }
.map-gate {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-align: center; padding: 24px;
  background: var(--charcoal-2); color: var(--bone);
}
.loc-map.is-loaded .map-gate { display: none; }
.map-gate p { font-size: .92rem; color: var(--cream-muted); max-width: 30ch; }
.map-gate svg { width: 30px; height: 30px; color: var(--orange); }
.map-gate .map-gate-link { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-muted); text-decoration: underline; text-underline-offset: 3px; }
