/* MESP — mespapp.com
   Palette: charbon / suie (neutrals), haute-visibilité (accent), braise (light only). */

@font-face { font-family: "Big Shoulders"; src: url("../assets/fonts/big-shoulders-display-latin-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Big Shoulders"; src: url("../assets/fonts/big-shoulders-display-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../assets/fonts/ibm-plex-sans-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../assets/fonts/ibm-plex-sans-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../assets/fonts/ibm-plex-mono-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --char: #12100e;
  --soot: #2b2723;
  --soot-2: #1c1916;
  --ash: #efe8df;
  --mute: #a39a8f;
  --hv: #d4f03a;
  --ember: #ff7a2b;
  --line: rgba(239, 232, 223, .16);
  --display: "Big Shoulders", "Arial Narrow", "Helvetica Neue", Impact, sans-serif;
  --text: "Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --wrap: 1360px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--char); color: var(--ash);
  font: 400 1.0625rem/1.6 var(--text); overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--hv); }
:focus-visible { outline: 2px solid var(--hv); outline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.num, .label, .mono { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 100; background: var(--hv); color: var(--char); padding: 12px 16px; font-weight: 600; }
.skip:focus { top: 8px; }

.label {
  font: 500 .75rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute);
}
.label b { color: var(--hv); font-weight: 500; }
.display {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  line-height: .9; letter-spacing: .005em;
}
.todo {
  display: inline-block; font: 500 .75rem/1.3 var(--mono); letter-spacing: .04em; text-transform: none;
  color: var(--hv); border: 1px dashed var(--hv); padding: 3px 7px; vertical-align: middle;
}
.todo::before { content: "TODO · "; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px; border: 1px solid var(--ash); background: none;
  font: 600 1rem/1.2 var(--text); text-decoration: none; cursor: pointer; color: var(--ash);
}
.btn:hover { border-color: var(--hv); color: var(--hv); }
.btn--hv { background: var(--hv); border-color: var(--hv); color: var(--char); }
.btn--hv:hover { background: var(--ash); border-color: var(--ash); color: var(--char); }

/* ── Header ──────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 50; background: var(--char);
  border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; min-height: 44px; text-decoration: none; padding-block: 8px; }
.brand strong { font: 800 1.75rem/1 var(--display); letter-spacing: .04em; }
.brand span { font: 500 .6875rem/1 var(--mono); letter-spacing: .08em; color: var(--mute); text-transform: uppercase; }
.nav { display: flex; align-items: center; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 10px;
  font: 500 .8125rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
}
.nav a.nav-wide { display: none; }
.nav a.nav-cta { color: var(--hv); }
@media (max-width: 419px) { .brand span { display: none; } }
@media (min-width: 720px) { .nav a { padding-inline: 16px; } .nav a.nav-wide { display: inline-flex; } }

/* ── Hero ────────────────────────────────────────────── */
.hero { padding-block: clamp(28px, 5vw, 64px) clamp(48px, 7vw, 96px); }
.hero-top { display: grid; gap: 20px; margin-bottom: clamp(24px, 4vw, 44px); }
.hero h1 { font-size: clamp(3.1rem, 11.5vw, 9.25rem); }
.hero h1 span { display: block; }
.hero h1 .lit { color: var(--ash); text-shadow: 0 0 .5em rgba(255, 122, 43, .35); }
.hero-lede { max-width: 34em; color: var(--ash); }
.hero-lede strong { font-weight: 600; }
@media (min-width: 1024px) {
  .hero-top { grid-template-columns: minmax(0, 1fr) 22rem; align-items: end; column-gap: 48px; }
  .hero-top .label { grid-column: 1 / -1; }
  .hero h1 { font-size: min(6.4vw, 6.5rem); }
  .hero h1 span { white-space: nowrap; }
}

/* ── Demo ────────────────────────────────────────────── */
.demo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
.demo > * { min-width: 0; }
.demo-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-block: 10px; }
.stage-wrap { margin-inline: calc(var(--gutter) * -1); }
.stage {
  position: relative; overflow: hidden; background: #0d0b0a; aspect-ratio: 4 / 5; max-height: 78svh; width: 100%;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
@media (min-width: 700px) { .stage { aspect-ratio: 16 / 10; } .stage-wrap { margin-inline: 0; } }
.world { position: absolute; left: 0; top: 0; width: 1600px; height: 1000px; transform-origin: 0 0; will-change: transform; }
.world > .bg { position: absolute; inset: 0; width: 1600px; height: 1000px; max-width: none; pointer-events: none; }
.items, .overlay { position: absolute; inset: 0; }
.overlay { pointer-events: none; }
.item {
  position: absolute; left: 0; top: 0; padding: 0; border: 0; background: none; cursor: grab;
  transform-origin: 50% 50%; touch-action: pan-y; will-change: transform;
}
.item.is-selected { touch-action: none; }
.item:active { cursor: grabbing; }
.item img { display: block; width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; }
.item:focus-visible { outline: none; }
.item--fire::before {
  content: ""; position: absolute; inset: 35% -25% -18%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 122, 43, .34), rgba(255, 122, 43, 0));
  mix-blend-mode: screen; animation: flicker 2.6s ease-in-out infinite;
}
@keyframes flicker { 0%, 100% { opacity: .75; } 32% { opacity: 1; } 55% { opacity: .6; } 78% { opacity: .92; } }
.mask {
  position: absolute; inset: 0; background: url("../assets/img/scene.webp") 0 0 / 1600px 1000px no-repeat;
  pointer-events: none; transition: opacity .35s ease;
}
.mask[hidden] { display: block; opacity: 0; }

/* selection frame (in overlay, world units; handles counter-scaled with --inv) */
.frame { position: absolute; left: 0; top: 0; border: calc(1.5px * var(--inv, 1)) solid var(--hv); pointer-events: none; }
.frame[hidden] { display: none; }
.handle {
  position: absolute; width: calc(44px * var(--inv, 1)); height: calc(44px * var(--inv, 1));
  margin: calc(-22px * var(--inv, 1)); padding: 0; border: 0; background: none;
  pointer-events: auto; touch-action: none; cursor: pointer; display: grid; place-items: center;
}
.handle::after {
  content: ""; width: calc(22px * var(--inv, 1)); height: calc(22px * var(--inv, 1));
  background: var(--char); border: calc(2px * var(--inv, 1)) solid var(--hv);
}
.handle:focus-visible { outline: none; }
.handle:focus-visible::after, .handle:hover::after { background: var(--hv); }
.handle--scale { right: 0; bottom: 0; cursor: nwse-resize; }
.handle--rot { left: 50%; top: calc(-34px * var(--inv, 1)); cursor: grab; }
.handle--rot::after { border-radius: 50%; }
.handle--del { right: 0; top: 0; }
.handle--del::after {
  background: var(--hv) linear-gradient(45deg, transparent 44%, var(--char) 44% 56%, transparent 56%), var(--hv);
  background-image: linear-gradient(45deg, transparent 44%, var(--char) 44% 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, var(--char) 44% 56%, transparent 56%);
}
.frame-stem { position: absolute; left: 50%; top: calc(-34px * var(--inv, 1)); height: calc(34px * var(--inv, 1)); border-left: calc(1.5px * var(--inv, 1)) solid var(--hv); }

.mask-edit { position: absolute; inset: 0; width: 1600px; height: 1000px; overflow: visible; max-width: none; }
.mask-edit polygon { fill: rgba(212, 240, 58, .08); stroke: var(--hv); stroke-dasharray: 10 8; vector-effect: non-scaling-stroke; stroke-width: 1.5; }
.mask-pt { border-radius: 50%; }
.mask-pt::after { border-radius: 50%; }
.mask-edit[hidden], .mask-pts[hidden] { display: none; }
.mask-pts { position: absolute; inset: 0; }

.stage-tag {
  position: absolute; left: 0; bottom: 0; z-index: 3; margin: 0; padding: 6px 10px; pointer-events: none;
  background: rgba(18, 16, 14, .82); color: var(--ash);
}
.stage-hint {
  position: absolute; right: 12px; top: 12px; z-index: 3; margin: 0; padding: 8px 12px; pointer-events: none;
  background: var(--hv); color: var(--char); font: 600 .875rem/1.2 var(--text); transition: opacity .4s ease;
}
.stage-hint.is-off { opacity: 0; }
.tray-ghost { position: fixed; left: 0; top: 0; z-index: 90; width: 120px; pointer-events: none; opacity: .85; }

/* tray */
.tray { border-bottom: 1px solid var(--line); }
.tabs { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 0 auto; min-height: 48px; padding: 8px 14px; border: 0; border-right: 1px solid var(--line); background: none; cursor: pointer;
  font: 500 .8125rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); white-space: nowrap;
}
.tab[aria-selected="true"] { color: var(--char); background: var(--hv); }
.tab .num { opacity: .7; margin-left: 6px; }
.tray-list { display: flex; gap: 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--soot) transparent; }
.tray-list[hidden] { display: none; }
.tray-item {
  flex: 0 0 auto; width: 104px; padding: 10px 8px 8px; border: 0; border-right: 1px solid var(--line); background: none; cursor: pointer;
  display: grid; gap: 6px; justify-items: center; text-align: center;
}
.tray-item img { width: 72px; height: 72px; object-fit: contain; pointer-events: none; }
.tray-item span { font: 500 .6875rem/1.25 var(--mono); color: var(--mute); }
.tray-item:hover, .tray-item:focus-visible { background: var(--soot-2); }
.tray-item:hover span { color: var(--ash); }

/* control panel */
.panel { display: grid; gap: 0; }
.panel-group { padding-block: 16px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.panel-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
  min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); background: none; cursor: pointer;
  font: 500 .8125rem/1.1 var(--mono); letter-spacing: .03em; display: inline-flex; align-items: center; gap: 8px;
}
.chip:hover { border-color: var(--ash); }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { border-color: var(--hv); color: var(--hv); }
.chip[disabled] { opacity: .4; cursor: default; }
.chip i { width: 14px; height: 14px; border-radius: 50%; background: var(--c, #9a938a); border: 1px solid rgba(239, 232, 223, .5); }
.chip--icon { min-width: 44px; justify-content: center; padding-inline: 10px; font-size: 1.05rem; }
.switch { position: relative; width: 38px; height: 20px; border: 1px solid currentColor; flex: none; }
.switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; background: currentColor; transition: transform .2s ease; }
[aria-pressed="true"] > .switch::after { transform: translateX(18px); }
.panel p { font-size: .9375rem; color: var(--mute); max-width: 44em; }
.panel p strong { color: var(--ash); font-weight: 600; }
.readout { min-height: 1.3em; color: var(--ash); }
@media (min-width: 1100px) {
  .demo { grid-template-columns: minmax(0, 1fr) 320px; column-gap: 32px; }
  .demo-bar, .tray { grid-column: 1; }
  .stage-wrap { grid-column: 1; }
  .panel { grid-column: 2; grid-row: 1 / span 3; align-content: start; border-top: 0; }
  .panel-group:first-child { padding-top: 10px; }
}

/* ── Sections ────────────────────────────────────────── */
.section { padding-block: clamp(56px, 9vw, 128px); border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 72px); }
.section-head h2 { font-size: clamp(2.6rem, 8vw, 6.5rem); }
.section-head p { max-width: 38em; color: var(--mute); }

.step { display: grid; gap: 24px; padding-block: clamp(36px, 6vw, 88px); border-top: 1px solid var(--line); }
.step:first-of-type { border-top: 0; padding-top: 0; }
.step-no { font: 800 clamp(3.5rem, 8vw, 6rem)/.8 var(--display); color: transparent; -webkit-text-stroke: 1px var(--mute); }
.step-body { display: grid; gap: 14px; align-content: start; }
.step-body h3 { font: 800 clamp(2rem, 4.6vw, 3.5rem)/.95 var(--display); text-transform: uppercase; }
.step-body p { max-width: 34em; }
.step-body p + p, .step-body .muted { color: var(--mute); }
.step-vis { min-width: 0; }
@media (min-width: 900px) {
  .step { grid-template-columns: 110px minmax(0, 5fr) minmax(0, 7fr); column-gap: 40px; }
  .step--flip .step-vis { order: -1; grid-column: 1 / span 2; }
  .step--flip { grid-template-columns: minmax(0, 6fr) 90px minmax(0, 5fr); }
  .step--flip .step-vis { grid-column: 1; }
  .step--wide { grid-template-columns: 110px minmax(0, 1fr); }
  .step--wide .step-vis { grid-column: 1 / -1; }
}

.shot { position: relative; overflow: hidden; background: #0d0b0a; aspect-ratio: 4 / 3; }
.shot .world-crop { position: absolute; left: 0; top: 0; width: 1600px; height: 1000px; transform-origin: 0 0; }
.shot .world-crop > img.bg { position: absolute; inset: 0; width: 1600px; height: 1000px; max-width: none; }
.shot .fx { position: absolute; }
.shot figcaption, .cap { position: absolute; left: 0; bottom: 0; padding: 6px 10px; background: rgba(18, 16, 14, .82); z-index: 2; }
.brackets::before, .brackets::after {
  content: ""; position: absolute; inset: 14px; z-index: 2; pointer-events: none;
  background:
    linear-gradient(var(--ash), var(--ash)) 0 0 / 28px 1.5px, linear-gradient(var(--ash), var(--ash)) 0 0 / 1.5px 28px,
    linear-gradient(var(--ash), var(--ash)) 100% 0 / 28px 1.5px, linear-gradient(var(--ash), var(--ash)) 100% 0 / 1.5px 28px,
    linear-gradient(var(--ash), var(--ash)) 0 100% / 28px 1.5px, linear-gradient(var(--ash), var(--ash)) 0 100% / 1.5px 28px,
    linear-gradient(var(--ash), var(--ash)) 100% 100% / 28px 1.5px, linear-gradient(var(--ash), var(--ash)) 100% 100% / 1.5px 28px;
  background-repeat: no-repeat;
}
.brackets::after { inset: 50% auto auto 50%; width: 22px; height: 22px; margin: -11px; background: linear-gradient(var(--hv), var(--hv)) 50% 50% / 100% 1.5px no-repeat, linear-gradient(var(--hv), var(--hv)) 50% 50% / 1.5px 100% no-repeat; }
.shot-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 12px; }
.shot-ctl label { display: flex; align-items: center; gap: 12px; flex: 1 1 240px; min-height: 44px; }
input[type="range"] { flex: 1; min-width: 0; height: 44px; margin: 0; accent-color: var(--hv); background: none; }
.water { position: absolute; inset: 0; clip-path: polygon(22% 58%, 80% 54%, 100% 96%, 4% 100%); background: linear-gradient(180deg, #8a9a6c, #46583f); opacity: .6; }
.water-edge { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.water-edge polygon { fill: none; stroke: var(--hv); stroke-width: 1.5; stroke-dasharray: 8 7; vector-effect: non-scaling-stroke; }
.water-edge circle { fill: var(--char); stroke: var(--hv); stroke-width: 2; vector-effect: non-scaling-stroke; }

/* catalog */
.catalog { display: grid; gap: 28px; }
.cat-head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.cat-head h4 { margin: 0; font: 800 1.75rem/1 var(--display); text-transform: uppercase; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); } }
.cell {
  position: relative; display: grid; gap: 6px; padding: 12px 10px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: none; text-align: left; cursor: pointer; min-height: 44px;
}
.cell img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.cell span { font: 500 .75rem/1.3 var(--mono); color: var(--mute); }
.cell[aria-pressed="true"] span { color: var(--hv); }
.cell[aria-pressed="true"]::after { content: "LECTURE"; position: absolute; right: 8px; top: 8px; font: 500 .625rem/1 var(--mono); letter-spacing: .08em; color: var(--hv); }
div.cell { cursor: default; }

/* spec sheet */
.sheet { border-top: 1px solid var(--line); }
.sheet div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 4px 16px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.sheet dt { font: 500 .8125rem/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ash); }
.sheet dd { color: var(--mute); font-size: .9375rem; }
@media (max-width: 479px) { .sheet div { grid-template-columns: 1fr; } }
.tints { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 20px; border: 1px solid var(--line); }
.tints figure { position: relative; padding: 10px 10px 34px; border-right: 1px solid var(--line); }
.tints figure:last-child { border-right: 0; }
.tints img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.tints figcaption { position: absolute; left: 10px; bottom: 10px; }

/* export */
.formats { display: grid; gap: 0; border: 1px solid var(--line); }
.format { padding: clamp(20px, 3vw, 36px); display: grid; gap: 10px; align-content: start; }
.format + .format { border-top: 1px solid var(--line); }
.format strong { font: 800 clamp(3rem, 7vw, 5.5rem)/.85 var(--display); text-transform: uppercase; }
.format p { color: var(--mute); max-width: 30em; }
.format .label { color: var(--ash); }
@media (min-width: 700px) { .formats { grid-template-columns: 1fr 1fr; } .format + .format { border-top: 0; border-left: 1px solid var(--line); } }

/* offline */
.offline { display: grid; gap: clamp(28px, 5vw, 64px); }
.offline h3 { font: 800 clamp(3.4rem, 13vw, 11rem)/.82 var(--display); text-transform: uppercase; }
.offline h3 em { font-style: normal; color: var(--hv); }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { padding-block: 16px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.facts li strong { font-weight: 600; }
.facts li span { color: var(--mute); font-size: .9375rem; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(3, 1fr); column-gap: 40px; } }

/* pricing */
.plans { display: grid; border: 1px solid var(--line); }
.plan { padding: clamp(22px, 3.4vw, 44px); display: grid; gap: 18px; align-content: start; }
.plan + .plan { border-top: 1px solid var(--line); }
.plan h3 { font: 500 .8125rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.price { font: 800 clamp(4rem, 10vw, 7rem)/.85 var(--display); text-transform: uppercase; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.price small { font: 500 .8125rem/1.4 var(--mono); letter-spacing: .04em; color: var(--mute); text-transform: none; }
.plan ul { display: grid; gap: 0; border-top: 1px solid var(--line); }
.plan li { padding-block: 11px; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.plan .btn { justify-self: start; }
@media (min-width: 860px) { .plans { grid-template-columns: 1fr 1fr; } .plan + .plan { border-top: 0; border-left: 1px solid var(--line); } }
.fine { margin-top: 16px; font-size: .875rem; color: var(--mute); max-width: 52em; }

/* faq */
.faq { border-top: 1px solid var(--line); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding-block: 14px; cursor: pointer; list-style: none;
  font: 600 1.0625rem/1.35 var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 1.25rem/1 var(--mono); color: var(--hv); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding-bottom: 20px; color: var(--mute); max-width: 44em; display: grid; gap: 10px; }
.faq details strong { color: var(--ash); font-weight: 600; }
@media (min-width: 1000px) { .faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 48px; } .faq-layout .section-head { margin-bottom: 0; align-content: start; } }

/* contact + footer */
.contact { display: grid; gap: 28px; }
.contact h2 { font-size: clamp(2.6rem, 8vw, 6.5rem); }
.contact p { max-width: 36em; }
.store { display: grid; gap: 8px; justify-items: start; }
.store a { display: inline-block; margin-left: -12px; }
.store img { width: 200px; height: auto; }
.store small, .legal-note { font-size: .75rem; color: var(--mute); }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 48px; align-items: end; } }

.site-foot { border-top: 1px solid var(--line); padding-block: 32px calc(32px + env(safe-area-inset-bottom)); font-size: .875rem; color: var(--mute); }
.site-foot .wrap { display: grid; gap: 18px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-foot p { max-width: 62em; }

/* ── Text pages ──────────────────────────────────────── */
.page { padding-block: clamp(36px, 6vw, 88px); }
.page h1 { font-size: clamp(2.8rem, 9vw, 6rem); margin-block: 14px 28px; }
.prose { max-width: 46em; display: grid; gap: 16px; }
.prose h2 { font: 800 clamp(1.7rem, 4vw, 2.4rem)/1 var(--display); text-transform: uppercase; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.prose ul { list-style: square; padding-left: 1.2em; display: grid; gap: 8px; }
.prose ul ::marker { color: var(--hv); }
.prose p, .prose li { color: #d6cec4; }
.prose strong { color: var(--ash); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.prose th { font: 500 .75rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.table-scroll { overflow-x: auto; }
.notfound { min-height: 70svh; display: grid; align-content: center; gap: 20px; }
.notfound h1 { font-size: clamp(5rem, 26vw, 16rem); color: transparent; -webkit-text-stroke: 1.5px var(--ash); margin: 0; }

/* ── Motion ──────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .item--fire::before { animation: none; }
  .mask, .stage-hint, .switch::after { transition: none; }
}
