/* ==========================================================
   Oviwo Sneaker v3 — "Colourway playground"
   The page is a living poster: its whole colour world follows the shoe's
   colourway. Three themes, one per colourway; main.js tweens these custom
   properties when a swatch is picked (the values below are the no-tween
   fallback and the first paint). Every theme keeps body text ≥ 4.5:1.
   ========================================================== */

:root,
:root[data-theme="midnight"] {
  --ground: #14141A;     /* night track */
  --surface: #1E1E27;    /* cards, form */
  --ink: #F3F0EA;        /* text: 16:1 on ground */
  --muted: #A9A6B0;      /* secondary text: 7.6:1 */
  --accent: #FF5A4E;     /* coral — fills */
  --accent-ink: #FF6A5E; /* coral as text: 6.5:1 */
  --on-accent: #14141A;  /* text on coral: 6:1 */
  --line: rgba(243, 240, 234, .16);
  --line-strong: rgba(243, 240, 234, .46);
  --pill-bg: rgba(30, 30, 39, .74);
  --duo-dark: #14141A;   /* cinematic video duotone: shadows… */
  --duo-light: #FF5A4E;  /* …and highlights */
  --plate-shadow: rgba(0, 0, 0, .62);
}
:root[data-theme="electric"] {
  --ground: #2440FF;     /* electric blue */
  --surface: #1C33E6;
  --ink: #FFFFFF;        /* 6.5:1 */
  --muted: #DDE2FF;      /* 5:1 */
  --accent: #FFE8D6;     /* peach cream */
  --accent-ink: #FFE8D6; /* 5.5:1 */
  --on-accent: #1A2BC2;  /* 8:1 on cream */
  --line: rgba(255, 255, 255, .24);
  --line-strong: rgba(255, 255, 255, .6);
  --pill-bg: rgba(28, 51, 230, .78);
  --duo-dark: #0E1A8C;
  --duo-light: #FFE8D6;
  --plate-shadow: rgba(8, 16, 110, .55);
}
:root[data-theme="stone"] {
  --ground: #D9D4CB;     /* warm stone */
  --surface: #E7E3DC;
  --ink: #1B1B1B;        /* 11.7:1 */
  --muted: #4F4A44;      /* 5.9:1 */
  --accent: #FF5A4E;     /* coral fills, ink text on them (5.6:1) */
  --accent-ink: #A3231B; /* coral darkened for text: 5:1 */
  --on-accent: #1B1B1B;
  --line: rgba(27, 27, 27, .16);
  --line-strong: rgba(27, 27, 27, .5);
  --pill-bg: rgba(231, 227, 220, .82);
  --duo-dark: #3B3631;
  --duo-light: #EDE8DF;
  --plate-shadow: rgba(60, 50, 38, .35);
}

:root {
  --plate: #E8E8E6;      /* the studio grey of the 360° frames */
  --f-en: "Manrope", system-ui, sans-serif;
  --f-body: var(--f-en);
  --f-head: var(--f-en);
  --gx: clamp(16px, 4.4vw, 64px);
  --pill-h: 56px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --plate-w: min(50vw, 820px);
  --obj-cy: 54svh;       /* the shoe's resting centre in the stage */
  /* Stacked layouts: where the shoe parks during the text scenes (centre as a
     fraction of the viewport, and scale), and where the text zone starts —
     below the parked shoe. main.js reads the first two. */
  --park-cy: .24;
  --park-s: .8;
  --zone-top: calc(var(--park-cy) * 100svh + var(--plate-w) * var(--park-s) / 3.4 + 28px);
  color-scheme: dark;
}
:root[data-theme="stone"] { color-scheme: light; }
:root:lang(th) {
  --f-body: "Google Sans", "IBM Plex Sans Thai", system-ui, sans-serif;
  --f-head: "IBM Plex Sans Thai", "Manrope", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[lang="en"] { font-family: var(--f-en); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 200;
  padding: 12px 18px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
:root:lang(th) .eyebrow { letter-spacing: .04em; font-size: 15px; }

/* Display type: Manrope 800, tight; Thai headings use IBM Plex Sans Thai with
   no negative tracking and room for tone marks. */
.h2 {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(44px, 7vw, 112px);
  line-height: .94;
  letter-spacing: -.04em;
}
:root:lang(th) :is(h2, h3, .h2, .band__text, .menu__nav span):not(:lang(en)) {
  font-family: var(--f-head);
  letter-spacing: 0;
  line-height: 1.22;
}
:root:lang(th) .h2:not(:lang(en)) { font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px var(--accent); }
.btn--ghost { box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--ink); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--full { width: 100%; }

/* ==========================================================
   Loader
   ========================================================== */
.loader {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center;
  background: var(--ground);
}
.loader__inner { width: min(420px, 80vw); }
.loader__label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
:root:lang(th) .loader__label { letter-spacing: .02em; font-size: 15px; }
.loader__count {
  font-weight: 200;
  font-size: clamp(88px, 16vw, 168px);
  line-height: 1;
  letter-spacing: -.05em;
  margin: 8px 0 18px;
}
.loader__count small { font-size: .3em; letter-spacing: 0; margin-left: .1em; color: var(--accent-ink); font-weight: 800; }
.loader__line { height: 2px; background: var(--line); }
.loader__line i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* ==========================================================
   Navigation
   ========================================================== */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gx);
}
.brand {
  font-weight: 800; font-size: 20px; letter-spacing: -.02em; text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center;
  font-family: var(--f-en);
}
.brand sup { font-size: .5em; font-weight: 400; margin-left: 2px; }
.topbar__nav ul { display: flex; gap: clamp(14px, 2.2vw, 34px); }
.topbar__nav a, .pill a, .menu a { text-decoration: none; }
.topbar__nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: 14px; font-weight: 600; letter-spacing: .02em;
}
.topbar__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.topbar__nav a:hover::after, .topbar__nav a[aria-current="true"]::after { transform: scaleX(1); }
.topbar__right { display: flex; align-items: center; gap: 8px; }

.lang { display: inline-flex; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.lang button {
  min-width: 42px; min-height: 38px; padding: 0 8px; border: 0; border-radius: 999px;
  background: none; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  font-family: var(--f-en);
}
.lang button[lang="th"] { font-family: var(--f-en); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }

.cart {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line);
}
.cart__count {
  position: absolute; top: -2px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
  font: 800 11px/1 var(--f-en);
}
.cart__count[hidden] { display: none; }

/* The compact pill. Shown/hidden by one GSAP tween in main.js. */
.pill {
  position: fixed; z-index: 90; top: 14px; left: 50%;
  translate: -50% 0;
  display: flex; align-items: center; gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: var(--pill-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -22px rgba(0, 0, 0, .5);
  visibility: hidden;
}
.pill__mark {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
  font: 800 18px/1 var(--f-en);
}
.pill__where {
  min-width: 92px; padding: 0 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
:root:lang(th) .pill__where { letter-spacing: .02em; font-size: 14px; }
.pill__menu {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 16px 0 14px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--ground);
  font-size: 14px; font-weight: 700;
}
.burger { display: grid; gap: 4px; width: 16px; }
.burger i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease); }
.pill__menu[aria-expanded="true"] .burger i:first-child { transform: translateY(3px) rotate(45deg); }
.pill__menu[aria-expanded="true"] .burger i:last-child { transform: translateY(-3px) rotate(-45deg); }
.pill .cart { box-shadow: none; }
.pill__progress {
  position: absolute; left: 26px; right: 26px; bottom: 2px; height: 2px;
  border-radius: 2px; overflow: hidden; pointer-events: none;
}
.pill__progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* Full-screen menu, opened from the pill (which stays above it). */
.menu {
  position: fixed; inset: 0; z-index: 85;
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 96px var(--gx) 120px;
  background: var(--ground);
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 2px 0;
  font-weight: 800; font-size: clamp(40px, 8.4vw, 112px); line-height: 1.02; letter-spacing: -.04em;
  text-transform: uppercase;
}
.menu__nav small { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--accent-ink); }
.menu__nav a:hover span, .menu__nav a[aria-current="true"] span { color: var(--accent-ink); }
:root:lang(th) .menu__nav a { font-size: clamp(36px, 7.4vw, 96px); font-weight: 600; line-height: 1.25; }
.menu__foot { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--muted); font-size: 15px; }
.menu__foot a { min-height: 44px; display: inline-flex; align-items: center; }

/* ==========================================================
   Stage — the shoe stays, the scenes change
   ========================================================== */
.stage { position: relative; }
.stage__back,
.stage__front {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  margin-bottom: -100vh; margin-bottom: -100svh;
  overflow: hidden;
  pointer-events: none;
}
.stage__back { z-index: 0; }
.stage__front { z-index: 2; }
.scene { position: relative; z-index: 1; }

/* Cinematic video, duotoned in the colourway: grey footage, highlights
   multiplied to --duo-light, shadows screened up to --duo-dark. */
.cine { position: absolute; inset: 0; opacity: 0; isolation: isolate; }
.cine__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15); }
.cine i { position: absolute; inset: 0; }
.cine__light { z-index: 1; background: var(--duo-light); mix-blend-mode: multiply; }
.cine__dark { z-index: 2; background: var(--duo-dark); mix-blend-mode: screen; }
.cine__scrim {
  z-index: 3;
  background:
    linear-gradient(90deg, var(--ground) 6%, transparent 58%),
    linear-gradient(0deg, var(--ground) 0%, transparent 22%),
    linear-gradient(180deg, var(--ground) 0%, transparent 16%);
}

/* Poster type behind the shoe */
.poster { position: absolute; inset: 0; }
.poster__title {
  position: absolute; left: var(--gx); right: var(--gx); top: 11svh;
  font-family: var(--f-en);
  font-weight: 800;
  font-size: clamp(64px, 18.6vw, 330px);
  line-height: .8;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.poster__line { display: block; white-space: nowrap; }
.poster__line--b { text-align: right; margin-right: -.04em; }
.poster__kicker {
  position: absolute; right: var(--gx); top: calc(11svh + 1.5vw);
  max-width: 22ch;
  font-weight: 200; font-size: clamp(18px, 1.9vw, 30px); line-height: 1.2; letter-spacing: -.01em;
  text-align: right;
}
:root:lang(th) .poster__kicker { font-family: var(--f-head); font-weight: 300; line-height: 1.35; letter-spacing: 0; }

/* The object: the shoe on a pale, slowly breathing pebble */
.object {
  position: absolute;
  width: var(--plate-w);
  aspect-ratio: 1.7;
  left: calc(50% - var(--plate-w) / 2);
  top: calc(var(--obj-cy) - var(--plate-w) / 3.4);
  will-change: transform;
}
.plate {
  position: absolute; inset: 0;
  overflow: hidden;
  background: var(--plate);
  border-radius: 46% 54% 44% 56% / 54% 46% 54% 46%;
  box-shadow: 0 60px 90px -50px var(--plate-shadow);
  animation: pebble 16s ease-in-out infinite alternate;
}
@keyframes pebble {
  0%   { border-radius: 46% 54% 44% 56% / 54% 46% 54% 46%; }
  50%  { border-radius: 54% 46% 52% 48% / 46% 56% 44% 54%; }
  100% { border-radius: 42% 58% 48% 52% / 52% 44% 56% 48%; }
}
.plate__tone { position: absolute; inset: 0; background: var(--plate); opacity: 0; }
.plate__tone.is-on { opacity: 1; }
.plate__tone[data-tone="electric"] { filter: url(#gm-electric); }
.plate__tone[data-tone="stone"] { filter: url(#gm-stone); }
/* Feathers the edge of the drawn frame (drawn at 92% in main.js) into the
   plate colour, so no rectangle shows inside the pebble. */
.plate canvas {
  display: block; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 4%, #000 10%, #000 90%, transparent 96%), linear-gradient(180deg, transparent 4%, #000 12%, #000 88%, transparent 96%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 4%, #000 10%, #000 90%, transparent 96%), linear-gradient(180deg, transparent 4%, #000 12%, #000 88%, transparent 96%);
  mask-composite: intersect;
}

/* Scene 1 — hero */
.scene--hero {
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gx) clamp(24px, 5svh, 48px);
}
.hero__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
/* Side mode: the copy column stops short of the shoe (plate shown at 0.76). */
.hero__copy { max-width: min(440px, calc(50vw - var(--plate-w) * .38 - var(--gx) - 20px)); }
.hero__sub { font-size: clamp(15px, 1.15vw, 18px); color: var(--muted); margin-bottom: 20px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* Colourway rail */
.rail { text-align: right; }
.rail__label { font-size: 13px; color: var(--muted); margin: 0 0 10px auto; width: fit-content; }
:root:lang(th) .rail__label { font-size: 14px; }
.swatches { display: inline-flex; gap: 6px; padding: 5px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.swatch {
  position: relative;
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 46px; padding: 0 16px 0 7px;
  border: 0; border-radius: 999px; background: none;
  font-size: 14px; font-weight: 700;
  transition: background-color .4s var(--ease);
}
.swatch:hover { background: var(--line); }
.swatch__chip {
  position: relative;
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--shoe) 0 50%, var(--world) 50% 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 0 0 1px rgba(0, 0, 0, .25);
}
/* One ring per group; Flip moves it to the picked swatch. */
.swatch-ring {
  position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid var(--accent);
  pointer-events: none;
}

/* Scene 2 — stats */
.scene--stats { padding: 26svh var(--gx) 6svh; }
.stats__eyebrow { margin-bottom: 2svh; width: fit-content; }
.stat {
  min-height: 72svh;
  display: flex; flex-direction: column; justify-content: center;
  max-width: min(46vw, 660px);
}
.stat__num {
  font-family: var(--f-en);
  font-weight: 800;
  font-size: clamp(96px, 15vw, 260px);
  line-height: .82;
  letter-spacing: -.06em;
  white-space: nowrap;
  transform-origin: left center;
}
.stat__unit { font-weight: 200; letter-spacing: -.04em; color: var(--accent-ink); }
.stat__unit--word { font-size: .34em; letter-spacing: 0; margin-left: .12em; }
:root:lang(th) .stat__unit--word { font-family: var(--f-head); font-weight: 300; }
.stat__label { margin-top: 18px; font-size: clamp(20px, 2vw, 30px); font-weight: 700; line-height: 1.25; }
:root:lang(th) .stat__label { font-family: var(--f-head); font-weight: 600; }
.stat__note { margin-top: 6px; color: var(--muted); max-width: 34ch; }

/* Scene 3 — product statement */
.scene--product { padding: 34svh var(--gx) 26svh; }
.product__text { margin-left: auto; width: min(46vw, 680px); }
.product__title { font-weight: 200; font-size: clamp(36px, 4vw, 64px); line-height: 1; letter-spacing: -.04em; margin: 14px 0 28px; }
.product__title b { font-weight: 800; }
.product__statement {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: clamp(24px, 2.5vw, 40px);
  line-height: 1.24;
  letter-spacing: -.02em;
}
:root:lang(th) .product__statement { font-weight: 500; line-height: 1.45; letter-spacing: 0; }
.w { display: inline; }

/* Scene 4 — features around the turning shoe */
.scene--features { height: 300svh; }
.features__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.feature {
  position: absolute;
  width: min(21vw, 300px);
  display: grid; gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
}
.feature:nth-child(1) { left: var(--gx); top: 20svh; }
.feature:nth-child(2) { right: var(--gx); top: 20svh; }
.feature:nth-child(3) { left: var(--gx); top: 60svh; }
.feature:nth-child(4) { right: var(--gx); top: 60svh; }
.feature__no { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--accent-ink); }
.feature b { font-size: clamp(22px, 2vw, 30px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.feature > span:last-child { color: var(--muted); font-size: 16px; }
.dial {
  position: absolute; left: 50%; bottom: 7svh; translate: -50% 0;
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}
.js-deg { min-width: 4ch; text-align: right; }
.dial__bar { width: clamp(120px, 16vw, 240px); height: 2px; background: var(--line); }
.dial__bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.dial__hint { color: var(--muted); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
:root:lang(th) .dial__hint { letter-spacing: .02em; font-size: 14px; }

/* ==========================================================
   Launch — READY. SET. OVIWO
   ========================================================== */
.launch { position: relative; height: 230svh; }
.launch__sticky {
  --fw: max(100vw, calc(100svh * 1.7928)); /* photo frame width, shared with the caption */
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
}
.launch__frame {
  position: absolute;
  width: var(--fw);
  aspect-ratio: 1800 / 1004;
  left: calc((100vw - var(--fw)) * .52);
  top: calc((100svh - var(--fw) / 1.7928) * .5);
}
.launch__photo { position: absolute; inset: 0; width: 100%; height: 100%; clip-path: url(#clip-launch); z-index: 1; }
/* Same box as in the source photo, so the cut-out sits exactly on the runner. */
.launch__person { position: absolute; z-index: 3; left: 33.45%; top: 4.211%; width: 35.9%; height: 88.082%; max-width: none; }
.launch__words { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.launch__word {
  position: absolute;
  font-weight: 800; letter-spacing: -.05em; line-height: .84; text-transform: uppercase;
}
.launch__word.w1, .launch__word.w2 { top: clamp(90px, 14svh, 150px); font-size: clamp(44px, 8vw, 136px); }
.launch__word.w1 { left: var(--gx); }
.launch__word.w2 { right: var(--gx); font-weight: 200; }
.launch__word.w3 { left: 50%; top: 50%; translate: -50% -50%; font-size: 25vw; color: var(--accent); }
.launch__caption {
  position: absolute; z-index: 4; left: var(--gx); bottom: clamp(24px, 6svh, 56px);
  max-width: 24ch;
  font-size: clamp(18px, 1.7vw, 26px); font-weight: 600; line-height: 1.3;
  padding: 14px 22px; border-radius: 22px;
  background: var(--ground); color: var(--ink);
}
:root:lang(th) .launch__caption { font-family: var(--f-head); }

/* ==========================================================
   Buy
   ========================================================== */
.buy {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
  padding: clamp(96px, 16svh, 180px) var(--gx) clamp(72px, 12svh, 140px);
}
.gallery { min-width: 0; }
.carousel { overflow: hidden; border-radius: 32px; touch-action: pan-y; }
.carousel__track { display: flex; gap: 14px; cursor: grab; will-change: transform; }
.carousel__track:active { cursor: grabbing; }
.shot {
  flex: 0 0 84%;
  margin: 0;
  aspect-ratio: 16 / 10;
  border-radius: 28px;
  overflow: hidden;
  background: var(--plate);
  opacity: .5;
  transform: scale(.94);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.shot.is-active { opacity: 1; transform: none; }
.shot img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.gallery__bar { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.round {
  flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: none;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.round:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.views { display: flex; flex: 1; justify-content: center; gap: 4px; flex-wrap: wrap; }
.view {
  min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: none;
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.view[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.gallery__hint { margin-top: 10px; text-align: center; font-size: 13px; color: var(--muted); }

.buy__info { display: grid; gap: 18px; align-content: start; }
.buy__name { font-weight: 800; font-size: clamp(44px, 5.4vw, 86px); line-height: .9; letter-spacing: -.05em; }
.buy__name em { display: inline-block; font-style: normal; font-weight: 200; color: var(--accent-ink); }
.buy__rating { font-size: 15px; color: var(--muted); }
.stars { color: var(--accent-ink); letter-spacing: .1em; margin-right: 4px; }
.buy__price { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.buy__price s { font-size: 17px; font-weight: 500; color: var(--muted); margin-left: 8px; }
.buy__desc { color: var(--muted); max-width: 52ch; }
.buy__block { display: grid; gap: 10px; }
.buy__label { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 700; }
.buy__label a { color: var(--muted); font-weight: 600; min-height: 24px; }
.swatches--buy { justify-self: start; }
.sizes { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.size {
  min-height: 48px; border: 0; border-radius: 14px; background: none;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  font: 700 15px/1 var(--f-en);
  transition: background-color .3s, color .3s;
}
.size:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--ink); }
.size[aria-pressed="true"] { background: var(--ink); color: var(--ground); box-shadow: none; }
.size:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.sizes.is-error .size:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--accent); }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding-top: 18px; }
.specs li { display: grid; }
.specs b { font-size: clamp(22px, 2vw, 30px); font-weight: 800; letter-spacing: -.03em; }
.specs span { font-size: 14px; color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: clamp(24px, 5svh, 56px) 0; border-block: 1px solid var(--line); }
.marquee__track { display: flex; align-items: center; width: max-content; }
.marquee__track span {
  font-weight: 800; font-size: clamp(48px, 8.5vw, 140px); line-height: 1; letter-spacing: -.05em;
  white-space: nowrap; text-transform: uppercase; padding: 0 .3em;
}
.marquee__track .thin { font-weight: 200; text-transform: none; }
.marquee__track i { font-style: normal; color: var(--accent); font-size: clamp(24px, 3vw, 48px); }

/* ==========================================================
   Service
   ========================================================== */
.service { padding: clamp(96px, 16svh, 180px) var(--gx); }
.service__head {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px 48px;
  align-items: end; margin-bottom: clamp(48px, 8svh, 88px);
}
.service__head .eyebrow { grid-column: 1 / -1; }
.service__lead { color: var(--muted); font-size: clamp(17px, 1.4vw, 21px); max-width: 34ch; }
.service__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card {
  display: grid; align-content: start; gap: 12px;
  padding: clamp(24px, 2.4vw, 36px);
  border-radius: 28px;
  background: var(--surface);
  min-height: 300px;
}
.card__icon { width: 44px; height: 44px; color: var(--accent-ink); margin-bottom: 28px; }
.card h3 { font-size: 21px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.card p { color: var(--muted); font-size: 16px; }

/* ==========================================================
   Band — organic photo + word-by-word line
   ========================================================== */
.band {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(64px, 10svh, 120px) var(--gx);
  min-height: 100svh;
}
.band__media { margin: 0; order: 2; aspect-ratio: 5 / 6; max-height: 82svh; justify-self: end; width: 100%; }
.band__media img { width: 100%; height: 100%; object-fit: cover; clip-path: url(#clip-band); }
.band__text {
  font-weight: 200;
  font-size: clamp(48px, 7.2vw, 124px);
  line-height: .98;
  letter-spacing: -.05em;
}
.band__text b { font-weight: 800; display: block; }
:root:lang(th) .band__text { font-weight: 300; font-size: clamp(40px, 5.6vw, 96px); }
:root:lang(th) .band__text b { font-weight: 600; }

/* ==========================================================
   Contact
   ========================================================== */
.contact {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px);
  padding: clamp(96px, 14svh, 160px) var(--gx);
}
.contact__info { display: grid; gap: 22px; align-content: start; }
.contact__lead { color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); max-width: 38ch; }
.contact__list { display: grid; margin-top: 12px; border-top: 1px solid var(--line); }
.contact__list li {
  display: grid; grid-template-columns: 9.5em 1fr; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.contact__list li > span:first-child { color: var(--muted); font-size: 14px; font-weight: 600; padding-top: 2px; }
.contact__list a { min-height: 24px; text-underline-offset: 4px; }
.socials { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.socials__label { color: var(--muted); font-size: 14px; margin-right: 8px; }
.socials a {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  text-decoration: none; font: 800 13px/1 var(--f-en);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: background-color .3s, color .3s;
}
.socials a:hover { background: var(--ink); color: var(--ground); }

.form {
  display: grid; gap: 14px; align-content: start;
  padding: clamp(24px, 3vw, 44px);
  border-radius: 32px;
  background: var(--surface);
}
.form__title { font-size: clamp(22px, 2vw, 28px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 26px 16px 10px;
  border: 0; border-radius: 16px;
  background: var(--ground);
  color: var(--ink);
  font: inherit; font-size: 16px;
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 128px; }
.field select { appearance: none; padding-right: 44px; cursor: pointer; }
.field--select::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-20%) rotate(45deg); pointer-events: none;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent-ink); }
.field label {
  position: absolute; left: 16px; top: 18px;
  color: var(--muted); font-size: 16px; pointer-events: none;
  transform-origin: left top;
  transition: transform .3s var(--ease);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select + label { transform: translateY(-11px) scale(.74); }
.field.is-error input, .field.is-error textarea { box-shadow: inset 0 0 0 2px var(--accent); }
.form__note { min-height: 1.6em; font-size: 15px; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { padding: clamp(40px, 8svh, 80px) var(--gx) 28px; overflow: hidden; }
.footer__big {
  display: flex; justify-content: space-between;
  font-weight: 800; font-size: 27vw; line-height: .76; letter-spacing: -.04em;
  overflow: hidden; padding-bottom: .02em;
}
.footer__big span { display: block; }
.footer__big span:nth-child(even) { font-weight: 200; }
.footer__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.footer__row a { min-height: 44px; display: inline-flex; align-items: center; margin-block: -12px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 95; left: 50%; bottom: 28px;
  max-width: min(520px, calc(100vw - 32px));
  padding: 14px 22px; border-radius: 18px;
  background: var(--ink); color: var(--ground);
  font-weight: 700; font-size: 15px; text-align: center;
  visibility: hidden;
}

/* ==========================================================
   Responsive
   "Stack" mode (phones, tablet portrait): the shoe rides in the upper half,
   the scenes scroll through the lower half. Mirrors the matchMedia in main.js.
   ========================================================== */
@media (max-width: 1023px), (max-aspect-ratio: 1/1) {
  :root { --plate-w: min(74vw, 620px); --obj-cy: 58svh; }
  .cine__scrim {
    background:
      linear-gradient(0deg, var(--ground) 18%, transparent 70%),
      linear-gradient(180deg, var(--ground) 0%, transparent 14%);
  }
  .poster__title { top: 10svh; font-size: clamp(64px, 21vw, 330px); }
  .poster__kicker { top: auto; bottom: calc(100svh - var(--obj-cy) + var(--plate-w) / 3.4 + 18px); left: var(--gx); right: auto; text-align: left; max-width: 30ch; }

  .scene--stats { padding: 52svh var(--gx) 4svh; }
  .stats__eyebrow { margin-bottom: 0; }
  .stat { min-height: 62svh; max-width: none; justify-content: flex-start; padding-top: 4svh; }
  .stat__num { font-size: clamp(88px, 22vw, 200px); }

  .scene--product { padding: 56svh var(--gx) 20svh; }
  .product__text { width: auto; margin: 0; }

  .scene--features { height: 240svh; }
  .feature, .feature:nth-child(n) {
    left: var(--gx); right: var(--gx); top: auto;
    bottom: calc(14svh + var(--pill-h));
    width: auto; max-width: 560px;
  }
  /* just under the shoe, whose bottom edge stays on the park line */
  .dial { bottom: auto; top: calc(var(--park-cy) * 100svh + var(--plate-w) * var(--park-s) / 3.4 + 18px); }

  /* Launch: the photo is contained (not cover) so the runner stays a
     readable size; words sit above it, the caption below. */
  .launch__sticky { --fw: min(170vw, 105svh); }
  .launch__frame { top: calc(50svh - var(--fw) / 1.7928 / 2); }
  .launch__word.w3 { top: calc(11svh + 10vw); translate: -50% 0; font-size: 24vw; }
  .launch__caption { bottom: auto; top: calc(50svh + var(--fw) / 1.7928 / 2 + 14px); }

  .buy { grid-template-columns: 1fr; }
  .service__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band { grid-template-columns: 1fr; min-height: 0; gap: 28px; }
  .band__media { order: 0; justify-self: stretch; aspect-ratio: 4 / 3; }
  .contact { grid-template-columns: 1fr; }
}

/* Tablet portrait gets the top pill but phone-like stacking. */
@media (max-width: 1023px) and (min-width: 768px) {
  .scene--hero { padding-bottom: 40px; }
  .hero__foot { align-items: flex-end; }
  .hero__copy { max-width: 46vw; }
}

/* Phones: the compact bar docks at the bottom, within thumb reach. */
@media (max-width: 767px) {
  :root { --plate-w: 88vw; --obj-cy: 45svh; }
  body { font-size: 16px; }
  .topbar { padding-top: 14px; }
  .topbar__nav, .topbar__right { display: none; }
  .pill {
    top: auto; bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .pill__where { display: none; }
  .pill__menu { padding: 0 14px; }

  .poster__title { top: 10svh; font-size: 23.4vw; letter-spacing: -.06em; }
  .poster__kicker { font-size: 15px; max-width: none; right: var(--gx); bottom: calc(100svh - var(--obj-cy) + var(--plate-w) / 3.4 + 10px); }

  .scene--hero { padding-bottom: calc(var(--pill-h) + 30px + env(safe-area-inset-bottom)); }
  .hero__foot { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero__copy { max-width: none; }
  .hero__sub { font-size: 15px; margin-bottom: 14px; }
  .hero__ctas .btn { flex: 1; padding: 0 16px; }
  .rail { text-align: left; }
  .rail__label { margin: 0 0 6px; }
  .swatches { display: flex; }
  .swatch { flex: 1; padding: 0 10px 0 6px; font-size: 13px; }

  .stat { min-height: 56svh; }
  .stat__label { font-size: 21px; }
  .scene--features { height: 210svh; }
  .feature, .feature:nth-child(n) { bottom: calc(10svh + var(--pill-h)); }

  .launch { height: 200svh; }
  .launch__word.w1, .launch__word.w2 { top: 11svh; }
  .launch__caption { font-size: 17px; }

  .buy { padding-top: 88px; }
  .shot { flex-basis: 88%; border-radius: 22px; }
  .carousel { border-radius: 22px; }
  .gallery__bar { gap: 6px; }
  .view { padding: 0 10px; font-size: 13px; }
  .sizes { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .service__head { grid-template-columns: 1fr; }
  .service__grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card__icon { margin-bottom: 8px; }
  .contact__list li { grid-template-columns: 1fr; gap: 2px; }
  .footer { padding-bottom: calc(var(--pill-h) + 40px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(var(--pill-h) + 28px + env(safe-area-inset-bottom)); }
  .menu { padding-bottom: calc(var(--pill-h) + 48px); }
}

/* Short phones: the hero keeps the type, the shoe, the actions and the swatches. */
@media (max-width: 767px) and (max-height: 700px) {
  .hero__sub { display: none; }
}
@media (max-width: 479px) {
  .gallery__bar .round { display: none; }
}

/* ==========================================================
   Reduced motion: no stage, no pins, no scrubs. The shoe sits still in the
   hero; everything else is plain stacked content.
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  .stage__back, .stage__front { position: absolute; top: 0; left: 0; right: 0; margin: 0; }
  .cine { display: none; }
  .plate { animation: none; }
  .scene--stats, .scene--product { padding-top: clamp(80px, 12svh, 140px); padding-bottom: clamp(40px, 8svh, 100px); }
  .stat { min-height: 0; padding: 32px 0; }
  .scene--features { height: auto; padding: 0 var(--gx) clamp(80px, 12svh, 140px); }
  .features__sticky { position: static; height: auto; overflow: visible; }
  .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
  .feature, .feature:nth-child(n) { position: static; width: auto; max-width: none; }
  .dial { display: none; }
  .launch { height: auto; }
  .launch__sticky { position: relative; }
  .launch__photo { clip-path: none; }
  .btn, .shot, .swatch { transition: none; }
}

/* Without the scroll scenes the shoe keeps its hero spot, low and in front
   of the poster type (same place main.js puts it). */
@media (prefers-reduced-motion: reduce) and (min-width: 1024px) and (min-aspect-ratio: 1001/1000) {
  .object { transform: translateY(19svh) scale(.76); }
}

@media (min-width: 768px) {
  :root { --park-cy: .23; --park-s: .7; }
}

/* ==========================================================
   Stacked layouts with motion: the stats and the product statement pin in
   the text zone under the parked shoe and take turns there (main.js), so
   the shoe never covers anything readable.
   ========================================================== */
@media (prefers-reduced-motion: no-preference) and (max-width: 1023px),
       (prefers-reduced-motion: no-preference) and (max-aspect-ratio: 1/1) {
  .scene--stats { height: 270svh; padding: 0; }
  .scene--product { height: 190svh; padding: 0; }
  .scene__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
  .stats__eyebrow { position: absolute; left: var(--gx); right: var(--gx); top: var(--zone-top); margin: 0; color: var(--ink); }
  /* the text zone sits on ground colour, the video stays above it */
  .cine__scrim {
    background:
      linear-gradient(0deg, var(--ground) 40%, transparent 72%),
      linear-gradient(180deg, var(--ground) 0%, transparent 14%);
  }
  .stat {
    position: absolute; left: var(--gx); right: var(--gx); top: calc(var(--zone-top) + 34px);
    min-height: 0; padding: 0; display: block;
  }
  .product__text { position: absolute; left: var(--gx); right: var(--gx); top: var(--zone-top); width: auto; max-width: 680px; margin: 0; }
  .product__title { margin: 10px 0 18px; }
}
