/* Tessel landing — Night Session design language.
   Dark and cinematic. One luminous accent, the ambient color, set by the visitor and shared by every section. */

:root {
  --bg: oklch(0.14 0.004 260);
  --bg-2: oklch(0.185 0.005 260);
  --bg-3: oklch(0.23 0.006 260);
  --ink: oklch(0.955 0.004 90);
  --ink-2: oklch(0.76 0.006 260);
  --ink-3: oklch(0.64 0.006 260);
  --line: oklch(1 0 0 / 0.1);
  --line-2: oklch(1 0 0 / 0.2);
  --glow: #ffa23a;
  --glow-ink: #140c04;

  --font: 'Mona Sans', ui-sans-serif, system-ui, sans-serif;
  --t-display: clamp(2.75rem, 0.9rem + 6.2vw, 6rem);
  --t-h2: clamp(2rem, 1rem + 3.4vw, 4rem);
  --t-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --t-step: clamp(1.75rem, 1rem + 2.2vw, 3rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;
  --t-micro: 0.8125rem;

  --gutter: clamp(16px, 3.6vw, 56px);
  --maxw: 1440px;
  --section: clamp(96px, 14vh, 200px);
  --r: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --z-canvas: 1;
  --z-overlay: 2;
  --z-bar: 18;
  --z-nav: 20;
  --z-toast: 30;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--t-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
::selection { background: var(--glow); color: var(--glow-ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 640; font-stretch: 125%; text-wrap: balance; }
h2 { font-size: var(--t-h2); line-height: 1; letter-spacing: -0.025em; }
h3 { font-size: var(--t-h3); line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }

.dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 12px var(--glow), 0 0 2px var(--glow); transition: background-color 0.6s var(--ease), box-shadow 0.6s var(--ease); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--glow); color: var(--glow-ink);
  font-weight: 600; font-stretch: 112%; font-size: 0.9375rem; letter-spacing: 0.005em; text-decoration: none; cursor: pointer;
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease), box-shadow 0.5s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { box-shadow: 0 8px 40px -8px color-mix(in srgb, var(--glow) 70%, transparent); }
.btn:active { transform: scale(0.98); }
.btn:disabled { cursor: default; opacity: 0.85; }
.btn--small { height: 38px; padding: 0 16px; font-size: var(--t-small); }
.btn--block { width: 100%; }
.btn--ghost { background: oklch(1 0 0 / 0.06); color: var(--ink); border: 1px solid var(--line-2); }
.btn--ghost:hover { background: oklch(1 0 0 / 0.1); box-shadow: none; }
.link { font-weight: 560; font-stretch: 112%; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.link::after { content: ''; width: 18px; height: 1px; background: currentColor; transition: width 0.4s var(--ease); }
.link:hover::after { width: 30px; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: var(--z-nav); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 68px; padding: 0 var(--gutter); transition: background-color 0.5s var(--ease), backdrop-filter 0.5s; }
.nav.is-scrolled { background: color-mix(in oklch, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-stretch: 125%; letter-spacing: 0.14em; font-size: 0.9375rem; }
.mark { width: 30px; height: auto; fill: currentColor; }
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 36px); font-size: var(--t-small); font-weight: 500; font-stretch: 110%; }
.nav__links a { position: relative; text-decoration: none; color: var(--ink-2); transition: color 0.25s; }
.nav__links a:hover, .nav__links a.is-here { color: var(--ink); }
.nav__links a::after { content: ''; position: absolute; left: 50%; bottom: -9px; width: 4px; height: 4px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 8px var(--glow); transform: translateX(-50%) scale(0); transition: transform 0.4s var(--ease); }
.nav__links a.is-here::after { transform: translateX(-50%) scale(1); }
.nav .btn { justify-self: end; }

/* ---------- story: hero + exploded view ---------- */
.story { position: relative; height: 470vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; }
.stage__canvas { position: absolute; inset: 0; z-index: var(--z-canvas); -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }
.stage__canvas canvas { cursor: grab; }
.stage__veil { position: absolute; inset: auto 0 0; height: 46%; z-index: var(--z-overlay); pointer-events: none; background: linear-gradient(to top, var(--bg) 8%, color-mix(in oklch, var(--bg) 70%, transparent) 45%, transparent); }

.hero__content { position: absolute; inset: auto 0 0; z-index: var(--z-overlay); padding: 0 var(--gutter) clamp(28px, 6vh, 64px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 18px; pointer-events: none; will-change: opacity, transform; }
.hero__content a { pointer-events: auto; }
.hero__run { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 10px; font-size: var(--t-micro); font-weight: 560; font-stretch: 112%; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hero__title { grid-column: 1 / span 8; font-size: var(--t-display); line-height: 0.95; letter-spacing: -0.03em; font-weight: 680; align-self: end; }
.hero__foot { grid-column: 9 / span 4; align-self: end; display: grid; gap: 22px; }
.hero__foot p { color: var(--ink-2); max-width: 38ch; }
.hero__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.js [data-reveal] { opacity: 0; transform: translateY(18px); filter: blur(8px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), filter 1.2s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.js .hero__title[data-reveal] { transition-delay: 0.12s; }
.js .hero__foot[data-reveal] { transition-delay: 0.3s; }

.steps { position: absolute; z-index: var(--z-overlay); left: var(--gutter); bottom: clamp(36px, 9vh, 104px); width: min(460px, calc(100% - var(--gutter) * 2)); pointer-events: none; }
.step { display: grid; gap: 14px; justify-items: start; }
.step + .step { margin-top: 40px; }
.step h2 { font-size: var(--t-step); }
.step > p:not(.step__n) { color: var(--ink-2); max-width: 36ch; }
.step__n { display: inline-flex; align-items: center; gap: 10px; font-size: var(--t-micro); font-weight: 600; font-stretch: 112%; color: var(--ink-2); }
.step__n span { color: var(--glow); font-variant-numeric: tabular-nums; transition: color 0.6s var(--ease); }
.step__cta { pointer-events: auto; margin-top: 6px; color: var(--ink); }
.js .step { position: absolute; left: 0; bottom: 0; width: 100%; opacity: 0; transform: translateY(16px); filter: blur(6px); visibility: hidden; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease), visibility 0s linear 0.7s; }
.js .step + .step { margin-top: 0; }
.js .step.is-active { opacity: 1; transform: none; filter: none; visibility: visible; transition-delay: 0s; }

.stage__progress { position: absolute; z-index: var(--z-overlay); right: var(--gutter); bottom: clamp(36px, 9vh, 104px); display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; opacity: 0; transition: opacity 0.5s var(--ease); }
.stage__progress li { width: 2px; height: 28px; border-radius: 2px; background: var(--line-2); transition: background-color 0.4s var(--ease), height 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.stage__progress li.is-on { background: var(--glow); height: 44px; box-shadow: 0 0 10px var(--glow); }
.stage.is-story .stage__progress { opacity: 1; }

.callouts { position: absolute; inset: 0; z-index: var(--z-overlay); width: 100%; height: 100%; pointer-events: none; overflow: visible; transition: opacity 0.45s var(--ease); }
.callouts path { fill: none; stroke: oklch(1 0 0 / 0.5); stroke-width: 1; }
.callouts circle { fill: var(--bg); stroke: var(--glow); stroke-width: 1.5; filter: drop-shadow(0 0 4px var(--glow)); }
.callout { position: absolute; z-index: var(--z-overlay); left: 0; top: 0; display: grid; gap: 2px; width: max-content; max-width: 240px; font-size: var(--t-micro); line-height: 1.35; pointer-events: none; opacity: 0; transition: opacity 0.45s var(--ease); }
.callout b { font-weight: 600; font-stretch: 112%; }
.callout span { color: var(--ink-2); }
.callout.is-on { opacity: 1; }

/* ---------- build (configurator) ---------- */
.build { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: var(--section) var(--gutter); max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; align-items: start; }
.build__stage { grid-column: 1 / span 8; position: sticky; top: 92px; height: calc(100vh - 116px); min-height: 480px; border-radius: var(--r); background: var(--bg-2); overflow: hidden; }
.build__stage::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.build__canvas { position: absolute; inset: 0; }
.build__canvas canvas { cursor: grab; }
.build__name { position: absolute; left: 24px; top: 20px; font-stretch: 125%; font-weight: 640; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); letter-spacing: -0.015em; pointer-events: none; }
.build__hint { position: absolute; right: 22px; bottom: 18px; font-size: var(--t-micro); font-weight: 560; font-stretch: 110%; color: var(--ink-3); pointer-events: none; }
.build__panel { grid-column: 9 / span 4; display: grid; gap: 30px; }
.build__intro { display: grid; gap: 14px; }
.build__intro h2 { font-size: clamp(2rem, 1.1rem + 2.2vw, 3.25rem); }
.build__intro p { color: var(--ink-2); font-size: var(--t-small); max-width: 40ch; }
.opt { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.opt legend, .opt__legend { display: flex; gap: 8px; padding: 0; margin-bottom: 12px; font-size: var(--t-small); font-weight: 600; font-stretch: 112%; }
.opt__legend { margin-bottom: 0; }
.opt legend span { font-weight: 500; color: var(--ink-3); }
.opt__row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input, .swatch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; background: oklch(1 0 0 / 0.04); box-shadow: inset 0 0 0 1px var(--line); font-weight: 560; font-stretch: 110%; font-size: var(--t-small); transition: background-color 0.25s, color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease); }
.chip em { font-style: normal; font-weight: 500; color: var(--ink-3); font-size: var(--t-micro); }
.chip:hover span { box-shadow: inset 0 0 0 1px var(--line-2); }
.chip input:checked + span { background: var(--ink); color: var(--bg); box-shadow: none; }
.chip input:checked + span em { color: oklch(0.4 0.006 260); }
.chip input:focus-visible + span { outline: 2px solid var(--glow); outline-offset: 3px; }
.chip input:active + span { transform: scale(0.96); }
.swatch { position: relative; width: 40px; height: 40px; }
.swatch span { position: absolute; inset: 0; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.18); transition: transform 0.3s var(--ease); }
.swatch span::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--ink); opacity: 0; transform: scale(0.9); transition: opacity 0.2s, transform 0.3s var(--ease); }
.swatch input:checked + span::after { opacity: 1; transform: none; }
.swatch input:focus-visible + span { outline: 2px solid var(--glow); outline-offset: 8px; }
.swatch:hover span { transform: scale(1.06); }
.swatch--caps span { background: linear-gradient(135deg, var(--c) 58%, var(--glow) 58%); transition: transform 0.3s var(--ease), background 0.6s var(--ease); }
.swatch--glow span { box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.18), 0 0 18px -2px var(--c); }
.opt--text input { height: 50px; border-radius: 12px; border: 1px solid var(--line-2); padding: 0 16px; background: oklch(1 0 0 / 0.04); font-stretch: 125%; font-weight: 640; font-size: 1.0625rem; letter-spacing: 0.1em; text-transform: uppercase; outline: none; transition: border-color 0.2s; }
.opt--text input:focus { border-color: var(--glow); }
.opt--text small { color: var(--ink-3); font-size: var(--t-micro); }
.total { display: grid; gap: 14px; padding: 22px; border-radius: var(--r); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.total dl { margin: 0; display: grid; gap: 8px; font-size: var(--t-small); }
.total dl div { display: flex; justify-content: space-between; gap: 12px; }
.total dt { color: var(--ink-2); }
.total dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 560; }
.total dd.save { color: var(--glow); }
.total__sum { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; font-weight: 600; font-stretch: 112%; }
.total__sum b { font-stretch: 125%; font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* ---------- build bar ---------- */
.buildbar { position: fixed; z-index: var(--z-bar); right: var(--gutter); bottom: 20px; display: flex; align-items: center; gap: 14px; height: 58px; padding: 0 9px 0 20px; border-radius: 999px; background: color-mix(in oklch, var(--bg-2) 86%, transparent); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: inset 0 0 0 1px var(--line-2), 0 6px 8px oklch(0 0 0 / 0.3); transform: translateY(150%); transition: transform 0.6s var(--ease); max-width: calc(100vw - 24px); }
.buildbar.is-on { transform: none; }
.buildbar.is-bump .dot { animation: bump 0.7s var(--ease); }
@keyframes bump { 40% { transform: scale(2.2); } }
.buildbar__name { font-weight: 560; font-stretch: 110%; font-size: var(--t-small); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.buildbar__total { font-stretch: 125%; font-weight: 700; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }

/* ---------- shift ---------- */
.shift { position: relative; height: 360vh; }
.shift__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.shift__canvas { position: absolute; inset: 0; z-index: var(--z-canvas); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 88%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 88%, transparent); }
.shift__readout { position: absolute; z-index: var(--z-overlay); top: calc(68px + clamp(16px, 5vh, 56px)); left: var(--gutter); right: var(--gutter); display: grid; gap: 14px; pointer-events: none; }
.shift__rpm { display: flex; align-items: baseline; gap: 14px; font-stretch: 125%; font-weight: 700; font-size: clamp(3.25rem, 1.6rem + 6vw, 6.5rem); line-height: 0.9; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--rpm-c, var(--ink)); transition: color 0.3s var(--ease); }
.shift__rpm small { font-size: var(--t-small); letter-spacing: 0.1em; font-weight: 600; color: var(--ink-2); text-transform: uppercase; }
.shift__bar { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; max-width: 520px; }
.shift__bar i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: var(--rpm-c, var(--ink)); transition: background-color 0.3s var(--ease); }
.shift__copy { position: absolute; z-index: var(--z-overlay); left: var(--gutter); bottom: clamp(32px, 8vh, 96px); width: min(440px, calc(100% - var(--gutter) * 2)); pointer-events: none; }
.phase { display: grid; gap: 12px; }
.phase + .phase { margin-top: 32px; }
.phase h2 { font-size: var(--t-step); }
.phase p { color: var(--ink-2); max-width: 36ch; }
.js .phase { position: absolute; left: 0; bottom: 0; width: 100%; opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .phase + .phase { margin-top: 0; }
.js .phase.is-on { opacity: 1; transform: none; }

/* ---------- still ---------- */
.still { position: relative; height: 110vh; overflow: hidden; display: grid; align-items: end; }
.still__img { position: absolute; inset: 0; margin: 0; }
.still__img img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 30%; will-change: transform; }
.still::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--bg) 0%, transparent 22%, transparent 55%, var(--bg) 100%); pointer-events: none; }
.still__line { position: relative; z-index: 1; padding: 0 var(--gutter) clamp(40px, 7vh, 88px); font-stretch: 125%; font-weight: 600; font-size: clamp(1.75rem, 1rem + 2.6vw, 3.5rem); line-height: 1.05; letter-spacing: -0.02em; max-width: 20ch; text-wrap: balance; }

/* ---------- room ---------- */
.room { position: relative; padding: var(--section) var(--gutter) clamp(64px, 10vh, 120px); overflow: hidden; }
.room::before { content: ''; position: absolute; left: 50%; bottom: 8%; width: 90vw; height: 50vh; transform: translateX(-50%); background: radial-gradient(ellipse at center, color-mix(in srgb, var(--glow) 16%, transparent), transparent 65%); pointer-events: none; transition: background 0.8s var(--ease); }
.room__head { position: relative; max-width: 760px; margin: 0 auto; text-align: center; display: grid; gap: 20px; justify-items: center; }
.room__head p { color: var(--ink-2); max-width: 48ch; }
.room__canvas { position: relative; height: clamp(340px, 62vh, 660px); margin: clamp(8px, 2vh, 24px) calc(var(--gutter) * -1) 0; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 72%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 72%, transparent); }
.swatches { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.swatches button { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 12px; border-radius: 999px; background: oklch(1 0 0 / 0.04); border: 1px solid var(--line); cursor: pointer; font-size: var(--t-small); transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease); }
.swatches button i { width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: 0 0 16px color-mix(in srgb, var(--c) 70%, transparent); }
.swatches button b { font-weight: 560; font-stretch: 110%; }
.swatches button:hover { border-color: var(--line-2); }
.swatches button[aria-checked='true'] { border-color: var(--glow); background: color-mix(in srgb, var(--glow) 10%, transparent); }

/* ---------- how it clicks ---------- */
.how { padding: var(--section) var(--gutter); }
.how__head { max-width: var(--maxw); margin: 0 auto clamp(40px, 7vh, 72px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 18px; align-items: end; }
.how__head h2 { grid-column: 1 / span 7; }
.how__head p { grid-column: 9 / span 4; color: var(--ink-2); }
.how__steps { max-width: var(--maxw); margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.how__steps li { counter-increment: step; display: grid; gap: 12px; align-content: start; }
.how__steps figure { position: relative; margin: 0 0 10px; aspect-ratio: 5 / 4; border-radius: var(--r); background: var(--bg-2); overflow: hidden; }
.how__steps figure::before { content: counter(step, decimal-leading-zero); position: absolute; left: 20px; top: 16px; z-index: 1; font-stretch: 125%; font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; color: var(--glow); font-variant-numeric: tabular-nums; transition: color 0.6s var(--ease); }
.how__steps figure::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.how__steps img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity 0.9s var(--ease), transform 1.2s var(--ease); }
.how__steps img.is-in { opacity: 1; transform: none; }
.how__steps p { color: var(--ink-2); max-width: 38ch; }

/* ---------- touch ---------- */
.touch { padding: 0 var(--gutter) var(--section); max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; }
.touch__img { grid-column: 1 / span 5; margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; }
.touch__img img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.08) brightness(0.9); }
.touch__copy { grid-column: 7 / span 6; display: grid; gap: clamp(28px, 5vh, 48px); }
.touch__list { list-style: none; margin: 0; padding: 0; }
.touch__list li { display: grid; grid-template-columns: minmax(0, 13em) 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.touch__list li:last-child { border-bottom: 1px solid var(--line); }
.touch__list b { font-weight: 600; font-stretch: 112%; }
.touch__list span { color: var(--ink-2); }

/* ---------- specs ---------- */
.specs { padding: var(--section) var(--gutter); max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; border-top: 1px solid var(--line); }
.specs h2 { margin-bottom: clamp(32px, 6vh, 56px); }
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.spec-table th, .spec-table td { text-align: left; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table thead th { font-stretch: 125%; font-weight: 640; font-size: var(--t-h3); padding-bottom: 20px; border-bottom-color: var(--line-2); }
.spec-table tbody th { color: var(--ink-3); font-weight: 500; width: 16%; }
.spec-table td { color: var(--ink); width: 28%; }

/* ---------- modules bento ---------- */
.modules { padding: var(--section) var(--gutter); border-top: 1px solid var(--line); }
.modules__head { max-width: var(--maxw); margin: 0 auto clamp(40px, 7vh, 72px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 18px; align-items: end; }
.modules__head h2 { grid-column: 1 / span 7; }
.modules__head p { grid-column: 9 / span 4; color: var(--ink-2); }
.bento { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(440px, auto); gap: 16px; }
.tile { position: relative; border-radius: var(--r); overflow: hidden; background: var(--bg-2); display: grid; grid-template-rows: auto minmax(0, 1fr); }
.tile::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; z-index: 2; }
.tile--wide { grid-column: span 2; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); grid-template-rows: 1fr; align-items: stretch; }
.tile__text { position: relative; z-index: 1; display: grid; gap: 10px; align-content: start; justify-items: start; padding: 28px; }
.tile__text p { font-size: var(--t-small); color: var(--ink-2); max-width: 34ch; }
.tile__price { font-stretch: 125%; font-weight: 700; font-size: 1.5rem !important; letter-spacing: -0.02em; color: var(--ink) !important; margin-top: 4px; }
.tile img:not(.tile__photo) { width: 100%; height: 100%; min-height: 0; object-fit: cover; opacity: 0; transition: opacity 1s var(--ease); }
.tile img.is-in { opacity: 1; }
.tile__add { display: inline-flex; align-items: center; gap: 8px; height: 36px; margin-top: 6px; padding: 0 14px; border-radius: 999px; border: 0; background: oklch(1 0 0 / 0.06); box-shadow: inset 0 0 0 1px var(--line-2); font-size: var(--t-micro); font-weight: 600; font-stretch: 110%; cursor: pointer; transition: background-color 0.25s, box-shadow 0.25s; }
.tile__add:hover { background: oklch(1 0 0 / 0.1); }
.tile__add[aria-pressed='true'] { box-shadow: inset 0 0 0 1px var(--glow); background: color-mix(in srgb, var(--glow) 10%, transparent); }
.tile__add[aria-pressed='true']::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 8px var(--glow); }
.tag { display: inline-flex; vertical-align: middle; align-items: center; height: 24px; padding: 0 10px; margin-left: 6px; border-radius: 999px; background: color-mix(in srgb, var(--glow) 14%, transparent); color: var(--glow); font-stretch: 100%; font-size: var(--t-micro); font-weight: 600; letter-spacing: 0; transition: color 0.6s, background-color 0.6s; }
.tile--photo { grid-template-columns: 1fr; align-items: end; }
.tile__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; filter: saturate(0.75) brightness(0.85); }
.tile--photo::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, oklch(0.12 0.004 260 / 0.92), transparent 62%); }
.tile--photo .tile__text { z-index: 2; align-self: end; }
.tile--photo .tile__text p { color: var(--ink-2); }

/* ---------- reserve ---------- */
.reserve { position: relative; overflow: hidden; padding: clamp(120px, 20vh, 240px) var(--gutter); }
.reserve__bg { position: absolute; left: 50%; top: 58%; width: min(1100px, 120vw); height: 60%; transform: translate(-50%, -50%); background: radial-gradient(ellipse at center, color-mix(in srgb, var(--glow) 22%, transparent), transparent 62%); filter: blur(10px); transition: background 0.8s var(--ease); }
.reserve__inner { position: relative; max-width: 880px; margin: 0 auto; display: grid; justify-items: center; text-align: center; gap: 22px; }
.reserve__inner h2 { font-size: var(--t-display); letter-spacing: -0.03em; line-height: 0.95; }
.reserve__lede { color: var(--ink-2); max-width: 46ch; }
.run { display: grid; grid-template-columns: repeat(50, 1fr); gap: 5px; width: min(100%, 680px); margin-top: 18px; }
.run i { aspect-ratio: 1; border-radius: 50%; background: oklch(1 0 0 / 0.09); scale: 0.8; transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.run i.on { background: var(--glow); box-shadow: 0 0 6px color-mix(in srgb, var(--glow) 80%, transparent); }
.run i.you { background: var(--ink); box-shadow: 0 0 10px var(--ink); animation: blink 1.2s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.run__label { font-size: var(--t-small); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.run__label b { color: var(--ink); font-weight: 600; }
.reserve__form { display: flex; gap: 8px; width: min(100%, 540px); margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.reserve__build { flex-basis: 100%; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 8px 0 18px; margin-bottom: 4px; border-radius: 999px; background: oklch(1 0 0 / 0.04); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--t-small); text-align: left; }
.reserve__build [data-reserve-build] { flex: 1; min-width: 0; font-weight: 560; font-stretch: 110%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reserve__build b { font-stretch: 125%; font-weight: 700; font-variant-numeric: tabular-nums; }
.reserve__build a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: oklch(1 0 0 / 0.06); font-size: var(--t-micro); font-weight: 600; text-decoration: none; color: var(--ink-2); transition: color 0.2s, background-color 0.2s; }
.reserve__build a:hover { color: var(--ink); background: oklch(1 0 0 / 0.1); }
.reserve__form input { flex: 1 1 240px; height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); background: oklch(1 0 0 / 0.05); outline: none; transition: border-color 0.2s; }
.reserve__form input::placeholder { color: var(--ink-3); }
.reserve__form input:focus { border-color: var(--glow); }
.reserve__form input[aria-invalid='true'] { border-color: #ff6b6b; }
.reserve__msg { flex-basis: 100%; min-height: 1.5em; font-size: var(--t-small); color: var(--ink-2); }

/* ---------- faq ---------- */
.faq { padding: var(--section) var(--gutter); max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 32px; }
.faq h2 { grid-column: 1 / span 5; }
.faq__list { grid-column: 7 / span 6; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-weight: 560; font-stretch: 110%; font-size: 1.125rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 10px; height: 10px; margin-top: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 0.4s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { color: var(--ink-2); padding: 0 0 24px; max-width: 58ch; }

/* ---------- footer ---------- */
.foot { position: relative; padding: clamp(40px, 8vh, 96px) var(--gutter) 28px; overflow: hidden; }
.foot__big { position: relative; font-stretch: 125%; font-weight: 800; font-size: clamp(4rem, 19vw, 20rem); line-height: 0.8; letter-spacing: -0.02em; color: var(--bg-2); text-align: center; margin-bottom: clamp(24px, 5vh, 56px); }
.foot__big::after { content: ''; position: absolute; left: 12%; right: 12%; bottom: -0.18em; height: 0.3em; background: radial-gradient(ellipse at center, color-mix(in srgb, var(--glow) 55%, transparent), transparent 70%); filter: blur(8px); transition: background 0.8s var(--ease); }
.foot__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--t-micro); color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 18px; }
.foot__row nav { display: flex; gap: 20px; }
.foot__row a { text-decoration: none; }
.foot__row a:hover { color: var(--ink); }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: var(--z-toast); left: 50%; top: 84px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: color-mix(in oklch, var(--bg-3) 92%, transparent); box-shadow: inset 0 0 0 1px var(--line-2), 0 6px 8px oklch(0 0 0 / 0.3); font-size: var(--t-small); font-weight: 560; font-stretch: 110%; transform: translate(-50%, -12px); opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .hero__title { grid-column: 1 / -1; }
  .hero__foot { grid-column: 1 / span 8; }
  .build__stage { grid-column: 1 / -1; position: relative; top: 0; height: 60vh; min-height: 420px; }
  .build__panel { grid-column: 1 / -1; margin-top: 36px; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .build__intro, .total, .opt--text { grid-column: 1 / -1; }
  .how__head h2, .how__head p, .modules__head h2, .modules__head p { grid-column: 1 / -1; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--wide { grid-column: 1 / -1; }
  .touch__img { grid-column: 1 / span 6; }
  .touch__copy { grid-column: 7 / span 6; }
  .faq h2, .faq__list { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  :root { --t-body: 1rem; }
  .story { height: 430vh; }
  .hero__foot { grid-column: 1 / -1; }
  .stage__veil { height: 62%; }
  .steps { bottom: 30px; }
  .stage__progress { display: none; }
  .callout, .callouts { display: none; }
  .build__stage { height: 50vh; min-height: 340px; }
  .build__panel { grid-template-columns: 1fr; }
  .build__name { font-size: 1.125rem; left: 18px; top: 16px; }
  .shift__copy { bottom: 28px; }
  .still { height: 80vh; }
  .how__steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .tile--wide { grid-template-columns: 1fr; }
  .tile img:not(.tile__photo) { aspect-ratio: 4 / 3; height: auto; }
  .tile--photo { min-height: 480px; }
  .touch__img, .touch__copy { grid-column: 1 / -1; }
  .touch__img { aspect-ratio: 4 / 3; margin-bottom: 36px; }
  .touch__list li { grid-template-columns: 1fr; gap: 6px; }
  .spec-table thead { display: none; }
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td { display: block; width: auto !important; }
  .spec-table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .spec-table th, .spec-table td { border: 0; padding: 2px 0; }
  .spec-table td::before { content: attr(data-l) ' '; color: var(--ink-3); }
  .run { grid-template-columns: repeat(25, 1fr); }
  .buildbar { left: 0; right: 0; bottom: 0; transform: translateY(110%); border-radius: 18px 18px 0 0; height: auto; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)) 20px; max-width: none; }
  .buildbar.is-on { transform: none; }
  .buildbar__name { display: none; }
  .buildbar__total { margin-right: auto; }
  .foot { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0ms !important; animation: none !important; }
}
