@font-face { font-family: "Italiana"; src: url("fonts/Italiana-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/CormorantGaramond-MediumItalic.woff2") format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/Jost-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/Jost-Medium.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }

/* Tokens. The page follows the perfume's day: pearl at dawn, the light of each hour in the chapters, tide blue night at the end.
   One palette for every visitor (the day replaces a light/dark switch); every surface below reads from these tokens. */
:root {
  --pearl: #F3EEE6; --paper: #F7F3EC; --sel: #EEEAE3; --tide: #1E2A38; --night: #141C27; --gold: #C8B28A; --iris: #B7B0C8;
  --ink: #1E2A38; --ink-2: #4a5563; --gold-t: #735a2e; --mark: #8a6d3b;
  --line: rgba(30,42,56,.14); --line-ui: rgba(30,42,56,.56); --rule: rgba(200,178,138,.7);
  --salt: #EEEAE3; --salt-2: #bcc3cc; --line-d: rgba(238,234,227,.16); --line-d-ui: rgba(238,234,227,.5);
  --focus: #1E2A38; --focus-d: #EEEAE3;
  --pill-bg: rgba(247,243,236,.94); --pill-ink: #1E2A38; --pill-on-bg: #1E2A38; --pill-on-ink: #EEEAE3;
  --scrim: rgba(20,27,36,.76); --scrim-ink: #ffffff; --keyline: rgba(255,255,255,.55);
  --select: rgba(183,176,200,.55);
  --gutter: clamp(16px, 3.4vw, 56px);
  --hdr: 76px;
  --measure: 1320px;
  --ease: cubic-bezier(.22, .61, .24, 1);
  --exploration-footer-bg: #141C27; --exploration-footer-ink: #EEEAE3; --exploration-footer-border: rgba(238,234,227,.16);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { overflow-x: hidden; background: var(--pearl); color: var(--ink); font: 400 clamp(15px, .25vw + 13.5px, 17px)/1.6 "Jost", system-ui, sans-serif; padding-bottom: var(--consent-h, 0px); }
body.locked { overflow: hidden; }
::selection { background: var(--select); color: inherit; }
button { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
img { max-width: 100%; }
kbd { font: 12px "Jost", sans-serif; border: 1px solid currentColor; border-radius: 4px; padding: 0 5px; margin: 0 1px; opacity: .9; }
code { font: 13px/1.4 ui-monospace, "SF Mono", Menlo, monospace; background: var(--line); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.ic { width: 18px; height: 18px; flex: none; }
.house { font-family: "Italiana", serif; letter-spacing: .32em; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--tide); color: var(--salt); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Top bar: the Scenario marker, the exploration's name, the five actions ---------- */
.top { position: relative; z-index: 8; display: flex; align-items: center; gap: 6px 14px; min-height: 56px; padding: 6px var(--gutter); background: var(--pearl); color: var(--ink); border-bottom: 1px solid var(--rule); }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: inherit; text-decoration: none; white-space: nowrap; }
.logo { display: block; height: 18px; width: auto; }
.logo.on-dark { display: none; }
.slash { opacity: .7; }
.word { font-size: 14px; letter-spacing: .02em; }
.x-name { display: flex; align-items: center; gap: 14px; margin: 0; font: 22px/1 "Italiana", serif; letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; }
.x-sep { width: 1px; height: 26px; background: var(--rule); }
.actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.act { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid transparent; border-radius: 999px; background: none; font-size: 14px; line-height: 1; color: inherit; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.act[aria-pressed="true"] { border-color: currentColor; }
.act.create { background: var(--ink); color: var(--pearl); padding: 0 20px; font-weight: 500; margin-left: 6px; }

/* ---------- Hero: the dawn world, full-bleed ---------- */
.hero { position: relative; background: var(--pearl); }
.hero-pic { position: relative; overflow: hidden; background: #2b2a26; }
.hero-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
.hero-copy { position: relative; z-index: 2; }
.hero-house { display: flex; align-items: center; gap: 12px; margin: 0; font: 15px/1 "Jost", sans-serif; letter-spacing: .3em; text-transform: uppercase; }
.hero-house .house { font-size: 1.25em; letter-spacing: .34em; }
.hero-house .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .7; }
.hero h1 { margin: 10px 0 14px; font: italic 500 clamp(52px, 13vw, 64px)/.92 "Cormorant", serif; letter-spacing: -.015em; }
.hero h1 span { display: inline-block; }
.hero-line { margin: 0 0 22px; font: italic clamp(20px, 1.2vw + 12px, 28px)/1.3 "Cormorant", serif; text-wrap: balance; }
.hero-made { display: inline; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 24px; border-radius: 999px; border: 1px solid currentColor; background: none; font-size: 16px; font-weight: 500; line-height: 1; color: inherit; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease); }
.btn small { font-weight: 400; opacity: .72; font-size: 14px; }
.btn.primary { background: var(--ink); color: var(--pearl); border-color: var(--ink); padding: 0 24px 0 8px; }
.btn-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--pearl); color: var(--ink); }
.btn-ic svg { width: 20px; height: 20px; margin-left: 2px; }
.dial { display: none; }

/* ---------- What this is ---------- */
.about { padding: clamp(56px, 8vw, 120px) var(--gutter); background: var(--pearl); }
.about-in { max-width: var(--measure); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px clamp(32px, 5vw, 80px); }
.about h2 { margin: 0; font: italic 500 clamp(38px, 3.4vw, 56px)/1 "Cormorant", serif; }
.about-h { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.about-mark { width: clamp(64px, 7vw, 104px); height: auto; opacity: .9; }
.rows { margin: 0; border-top: 1px solid var(--line); }
.rows > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rows dt { padding-top: 4px; font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-t); }
.rows dd { margin: 0; font-size: clamp(17px, .35vw + 15px, 20px); line-height: 1.55; max-width: 62ch; }
.map { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.map a { display: inline-flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 10px 14px 10px 0; font-size: 15px; letter-spacing: .04em; text-decoration: none; }
.map a span { font: italic 20px/1 "Cormorant", serif; color: var(--gold-t); }
.map li + li a::before { content: ""; width: 18px; height: 1px; background: var(--rule); align-self: center; margin-right: 6px; }

/* ---------- The chapters: one viewer whose light follows the item ---------- */
.stage { --tone: #F4EEE5; --s-ink: var(--ink); --s-ink-2: var(--ink-2); --s-line: var(--line); --s-line-ui: var(--line-ui); --s-mark: var(--mark); --s-mark-t: var(--gold-t); --focus: var(--ink);
  --vh: clamp(380px, min(calc((100vw - 2 * var(--gutter)) * .5625), calc(100svh - var(--hdr) - 200px)), 900px);
  --vw: min(calc(100% - 2 * var(--gutter)), calc(var(--vh) * 1.95));
  position: relative; display: block; padding: clamp(56px, 7vw, 104px) 0 clamp(48px, 6vw, 96px); background: var(--tone); color: var(--s-ink);
  transition: background-color 1.1s var(--ease), color .6s var(--ease); }
.stage.dark { --s-ink: #EEEAE3; --s-ink-2: #bcc3cc; --s-line: rgba(238,234,227,.16); --s-line-ui: rgba(238,234,227,.5); --s-mark: #C8B28A; --s-mark-t: #C8B28A; --focus: #EEEAE3; }
.ch-head { width: var(--vw); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "no no" "h2 txt" "tabs tabs"; align-items: end; gap: 0 clamp(28px, 4vw, 64px); padding-bottom: 22px; }
.ch-titles { display: contents; }
.ch-head .ch-no { grid-area: no; }
.ch-titles h2 { grid-area: h2; }
.ch-head .ch-text { grid-area: txt; padding-bottom: 12px; }
.ch-no { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--s-mark-t); }
.ch-titles h2 { margin: 10px 0 12px; font: italic 500 clamp(40px, 4.2vw, 72px)/1 "Cormorant", serif; text-wrap: balance; }
.ch-text { margin: 0; max-width: 56ch; color: var(--s-ink-2); }
.tabs { grid-area: tabs; display: flex; gap: 2px; margin-top: 26px; border-bottom: 1px solid var(--s-line); scroll-margin-top: 16px; }
.tab { display: inline-flex; align-items: baseline; gap: 8px; min-height: 48px; min-width: 44px; padding: 12px 14px 10px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--s-ink-2); cursor: pointer; white-space: nowrap; transition: color .2s var(--ease), border-color .2s var(--ease); }
.tab .n { font: italic 19px/1 "Cormorant", serif; letter-spacing: 0; }
.tab[aria-selected="true"] { color: var(--s-ink); font-weight: 500; border-bottom-color: var(--s-mark); }

.viewer { position: relative; width: var(--vw); height: var(--vh); margin: 0 auto; background: var(--mat, #1E2A38); overflow: hidden; scroll-margin-top: 8px; }
.media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; touch-action: pan-y pinch-zoom; transition: opacity .22s ease; }
.media.out { opacity: 0; transition-duration: .12s; }
.media > .layer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.media > .layer.incoming { display: none; }
.media img { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.media img.cover { object-fit: cover; object-position: var(--fx, 50%) 45%; }
.viewer.feather .media > .layer > img, .viewer.feather .media > img { -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.media video { width: 100%; height: 100%; object-fit: contain; display: block; background: transparent; cursor: pointer; }
.mv { position: absolute; inset: 0; }
.mv .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.mv model-viewer { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; --poster-color: transparent; opacity: 0; }
.mv.ready model-viewer { opacity: 1; }
model-viewer::part(default-progress-bar) { display: none; }
.mv.ready .poster, .mv.ready .loading { display: none; }
.loading { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); margin: 0; background: var(--scrim); color: var(--scrim-ink); font-size: 13px; padding: 5px 12px; border-radius: 999px; white-space: nowrap; box-shadow: 0 0 0 1px var(--keyline); }
.kbd model-viewer:focus { outline: 2px solid var(--focus); outline-offset: -4px; }

.cmp { position: absolute; inset: 0; touch-action: pan-y pinch-zoom; cursor: ew-resize; }
.cmp img { position: absolute; inset: 0; }
.cmp.cover img { object-fit: cover; object-position: var(--fx, 50%) 45%; }
.cmp .after { clip-path: inset(0 0 0 var(--x, 50%)); }
.cmp .bar { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(20,27,36,.35), 0 0 6px rgba(0,0,0,.35); pointer-events: none; }
.cmp .handle { position: absolute; top: 50%; left: var(--x, 50%); width: 48px; height: 48px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--pill-bg); color: var(--pill-ink); display: grid; place-items: center; box-shadow: 0 0 0 1px var(--keyline), 0 2px 10px rgba(0,0,0,.3); touch-action: none; cursor: ew-resize; }
.cmp .handle svg { width: 22px; height: 22px; }
.cmp .handle:focus-visible { outline: 2px solid #fff; box-shadow: 0 0 0 5px rgba(20,27,36,.8); }
.cmp .lab { position: absolute; top: 14px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; background: var(--scrim); color: var(--scrim-ink); padding: 5px 9px; border-radius: 4px; max-width: 44%; box-shadow: 0 0 0 1px var(--keyline); }
.cmp .lab.l { left: 14px; } .cmp .lab.r { right: 14px; text-align: right; }
.compare-hint { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); font-size: 13px; background: var(--scrim); color: var(--scrim-ink); padding: 5px 12px; border-radius: 999px; pointer-events: none; box-shadow: 0 0 0 1px var(--keyline); z-index: 2; }

.viewer-controls { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 4px; background: var(--pill-bg); border-radius: 999px; padding: 5px; z-index: 2; box-shadow: 0 0 0 1px rgba(30,42,56,.12), 0 8px 24px -10px rgba(20,27,36,.45); }
.icon { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; color: var(--pill-ink); padding: 0; transition: background-color .18s var(--ease); }
.icon svg { width: 20px; height: 20px; }
.icon[aria-pressed="true"] { background: var(--pill-on-bg); color: var(--pill-on-ink); }
.icon.tour { gap: 8px; padding: 0 14px 0 12px; }
.icon.tour .t { font-size: 14px; }
.cmp-btn .t { display: none; font-size: 14px; }
.glyph { display: inline-flex; }
.glyph svg { width: 16px; height: 16px; }
.glyph .g-pause, .is-playing .glyph .g-play { display: none; }
.is-playing .glyph .g-pause { display: block; }

.fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.fallback img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.fallback p { position: relative; margin: 0; background: var(--scrim); color: var(--scrim-ink); padding: 8px 12px; border-radius: 8px; font-size: 14px; max-width: 80%; text-align: center; }
.fallback button { position: relative; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--pearl); background: var(--pearl); color: var(--ink); border-radius: 999px; padding: 6px 18px; font-size: 14px; cursor: pointer; }

.below { width: var(--vw); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px clamp(28px, 4vw, 64px); padding-top: 26px; }
.kicker { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--s-mark-t); }
.caption h3 { margin: 6px 0 8px; font: italic 500 clamp(34px, 1.6vw + 18px, 48px)/1.05 "Cormorant", serif; text-wrap: balance; }
.sub { margin: 0; color: var(--s-ink-2); max-width: 52ch; }
.chip { margin: 12px 0 0; font-size: 13px; line-height: 1.7; color: var(--s-ink-2); }
.process { display: inline-block; border: 0; background: none; color: var(--s-ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; cursor: pointer; font-size: 13px; font-weight: 500; line-height: 20px; padding: 12px 4px; margin: -12px 0; white-space: nowrap; }

.rail { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.day { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.day button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 0 0 4px; border: 0; background: none; text-align: left; cursor: pointer; color: var(--s-ink-2); min-height: 44px; }
.day img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: var(--fx, 50%) 50%; display: block; border-radius: 999px 999px 4px 4px / 42% 42% 4px 4px; margin-bottom: 8px; transition: transform .35s var(--ease), box-shadow .2s var(--ease); }
.day .h { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.day .nm { font: italic 18px/1.15 "Cormorant", serif; color: var(--s-ink); }
.day button[aria-current="true"] img { box-shadow: 0 0 0 2px var(--s-mark), 0 0 0 5px var(--tone); }
.day button[aria-current="true"] .h { color: var(--s-ink); font-weight: 500; }
.day button[aria-current="true"] .nm::after { content: ""; display: block; width: 22px; height: 2px; margin-top: 4px; background: var(--s-mark); }
.thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.thumb { position: relative; border: 0; border-radius: 4px; padding: 0; overflow: hidden; background: rgba(30,42,56,.08); cursor: pointer; aspect-ratio: 4 / 5; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: var(--fx, 50%) 50%; display: block; transition: transform .35s var(--ease); }
.thumb[aria-current="true"]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--s-mark), inset 0 0 0 3px rgba(247,243,236,.85); pointer-events: none; }
.thumb:focus-visible { outline-offset: 3px; }
.thumb .badge { position: absolute; left: 4px; bottom: 4px; font-size: 12px; line-height: 1; font-weight: 500; letter-spacing: .06em; padding: 3px 5px; border-radius: 4px; background: var(--ink); color: var(--pearl); }
.next-ch { width: var(--vw); margin: 34px auto 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "k k a" "t d a"; align-items: baseline; gap: 4px 24px; padding: 22px 0 6px; border: 0; border-top: 1px solid var(--s-line); background: none; color: var(--s-ink); text-align: left; cursor: pointer; }
.next-ch .nk { grid-area: k; font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--s-mark-t); }
.next-ch .nt { grid-area: t; font: italic 500 clamp(30px, 2.4vw, 42px)/1.05 "Cormorant", serif; }
.next-ch .nd { grid-area: d; color: var(--s-ink-2); }
.next-ch .na { grid-area: a; align-self: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--s-line-ui); display: grid; place-items: center; transition: transform .25s var(--ease), background-color .25s var(--ease); }
.next-ch .na svg { width: 22px; height: 22px; }
.next-sec { align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 10px 0; min-height: 44px; font-size: 14px; letter-spacing: .06em; color: var(--s-ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; cursor: pointer; }
.keys { width: var(--vw); margin: 18px auto 0; font-size: 13px; color: var(--s-ink-2); }
.keys summary { cursor: pointer; min-height: 32px; display: inline-flex; align-items: center; }
.keys p { margin: 4px 0 0; }

/* ---------- Chapter 5: the formula in full, at night ---------- */
.formula { --focus: var(--focus-d); background: var(--tide); color: var(--salt); padding: clamp(72px, 9vw, 140px) var(--gutter) clamp(64px, 8vw, 112px); }
.f-in { max-width: var(--measure); margin: 0 auto; }
.formula .ch-no { color: var(--gold); }
.f-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px clamp(32px, 5vw, 80px); align-items: end; }
.f-head h2 { margin: 10px 0 0; font: italic 500 clamp(44px, 4.6vw, 80px)/1 "Cormorant", serif; }
.f-head p:last-child { margin: 0; color: var(--salt-2); max-width: 54ch; }
.f-head .ch-no { grid-column: 1; }
.f-head h2 { grid-column: 1; }
.f-head > p:last-child { grid-column: 2; grid-row: 1 / span 2; }
.f-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); margin-top: clamp(40px, 5vw, 72px); align-items: start; }
.receipt { border-top: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.r-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line-d); }
.r-note { font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.r-w { font: italic 22px/1.2 "Cormorant", serif; }
.r-v { font-size: 16px; white-space: nowrap; }
.r-total { padding: 22px 0 0; }
.r-total b { display: block; font: italic 500 clamp(52px, 5vw, 76px)/1 "Cormorant", serif; font-variant-numeric: lining-nums; }
.r-total span { display: block; margin-top: 8px; color: var(--salt-2); font-size: 15px; max-width: 44ch; }
.watch { display: block; color: inherit; text-decoration: none; }
.watch-pic { position: relative; display: block; aspect-ratio: 16 / 9; outline: 1px solid var(--rule); outline-offset: 10px; overflow: hidden; background: #0e141c; }
.watch-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.watch-txt { display: flex; align-items: center; gap: 16px; margin-top: 26px; }
.watch-play { width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--salt); color: var(--tide); }
.watch-play svg { width: 24px; height: 24px; margin-left: 3px; }
.watch-txt b { display: block; font-size: 18px; font-weight: 500; }
.watch-txt small { color: var(--salt-2); font-size: 15px; }
.make { margin-top: clamp(56px, 7vw, 104px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px clamp(28px, 4vw, 64px); }
.make-title { margin: 0; font: italic 500 clamp(36px, 3vw, 52px)/1.05 "Cormorant", serif; }
.make-what { margin: 14px 0 0; color: var(--salt-2); max-width: 52ch; grid-column: 1; }
.make-what a { color: var(--salt); }
.folder { color: var(--salt); font-weight: 500; overflow-wrap: anywhere; }
.make .make-title { grid-column: 1; }
.make-actions { grid-column: 2; grid-row: 1 / span 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.mk { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 76px; padding: 14px 20px; border: 1px solid var(--line-d-ui); border-radius: 14px; color: inherit; text-decoration: none; line-height: 1.3; transition: background-color .2s var(--ease), transform .2s var(--ease); }
.mk span { font-size: 17px; font-weight: 500; }
.mk small { font-size: 14px; opacity: .8; }
.mk.primary { background: var(--salt); color: var(--tide); border-color: var(--salt); }
.mk.create { background: var(--gold); color: var(--tide); border-color: var(--gold); }

/* ---------- How it was made: the formula card, centred ---------- */
.drawer { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: clamp(0px, 3.5vh, 44px) clamp(0px, 3vw, 48px); background: rgba(12,17,24,.74); animation: fade .24s var(--ease); }
.drawer-inner { position: relative; width: min(1200px, 100%); max-height: 100%; overflow: auto; overscroll-behavior: contain; background: var(--paper); color: var(--ink); padding: 0 clamp(18px, 3.2vw, 48px) clamp(28px, 4vw, 56px); border-radius: 4px;
  box-shadow: inset 0 0 0 10px var(--paper), inset 0 0 0 11px var(--rule), 0 40px 90px -30px rgba(0,0,0,.65); scrollbar-color: var(--gold) transparent; animation: rise .32s var(--ease); }
.drawer-inner:focus { outline: none; }
.sheet-head { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2px 16px; padding: 26px 0 14px; background: var(--paper); border-bottom: 1px solid var(--line); }
.sheet-kicker { margin: 0; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-t); }
.sheet-kicker .house { letter-spacing: .32em; }
.drawer h2 { grid-column: 1; margin: 0; font: italic 500 clamp(34px, 2.4vw + 16px, 56px)/1 "Cormorant", serif; }
.close { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 48px; height: 48px; border: 1px solid var(--line-ui); border-radius: 50%; background: var(--paper); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.close svg { width: 22px; height: 22px; }
.dfilm { display: grid; grid-template-columns: minmax(0, 1fr) clamp(240px, 24vw, 300px); gap: 16px clamp(20px, 2.6vw, 36px); margin-top: 22px; }
.dfilm video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #0e141c; }
.chapters { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.chapters .g { margin: 12px 0 2px; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-t); }
.chapters .g:first-child { margin-top: 0; }
.chapters button { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; width: 100%; min-height: 36px; padding: 6px 0; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; font-size: 15px; cursor: pointer; color: var(--ink); }
.chapters button .tm { font-size: 13px; color: var(--ink-2); }
.chapters button[aria-current="true"] { font-weight: 500; }
.chapters button[aria-current="true"] .tm { color: var(--ink); }
.chapters button[aria-current="true"]::after { content: ""; position: absolute; }
.chapters button[aria-current="true"] .lb { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.film-note { grid-column: 1; margin: 0; font-size: 13px; color: var(--ink-2); }
.lede { margin: 36px 0 0; font: italic clamp(22px, 1vw + 16px, 28px)/1.35 "Cormorant", serif; max-width: 60ch; }
.numbers { display: flex; flex-wrap: wrap; margin: 20px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.numbers div { flex: 1 1 180px; padding: 14px 18px 14px 0; }
.numbers div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.numbers b { display: block; font: italic 500 34px/1.05 "Cormorant", serif; font-variant-numeric: lining-nums; }
.numbers small { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.sheet-h3 { margin: 44px 0 10px; font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-t); }
.steps { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: clamp(28px, 3.4vw, 48px); }
.steps > li { break-inside: avoid; border-top: 1px solid var(--line); padding: 18px 0 26px; scroll-margin-top: 110px; transition: background-color .8s var(--ease); }
.steps > li.flash { background: rgba(183,176,200,.28); }
.fc-group { display: block; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-t); }
.fc-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 4px 0 8px; }
.fc-title b { font: italic 500 28px/1.1 "Cormorant", serif; }
.fc-parts { font-size: 13px; padding: 2px 10px; border: 1px solid var(--rule); border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fc-lead { margin: 0 0 8px; color: var(--ink-2); }
.fc-rows { margin: 8px 0 0; }
.fc-rows > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 2px 14px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
.fc-rows dt { padding-top: 2px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-t); }
.fc-rows dd { margin: 0; }
.fc-rows .q { font: italic 18px/1.35 "Cormorant", serif; }
.stamp { display: inline-block; margin: 0 6px; padding: 1px 7px; border: 1px solid var(--gold-t); color: var(--gold-t); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; vertical-align: 2px; }
.runner { display: block; margin-top: 3px; color: var(--ink-2); }
.fc-img { display: block; width: 100%; height: auto; margin-top: 12px; }
.fc-results { display: flex; gap: 6px; margin-top: 12px; }
.fc-results img { width: 56px; height: 70px; object-fit: cover; border-radius: 999px 999px 3px 3px / 40% 40% 3px 3px; }
.steps .p { font-size: 13px; background: rgba(30,42,56,.05); border-radius: 6px; padding: 10px 12px; margin-top: 10px; white-space: pre-wrap; }
.steps .copy { font-size: 13px; border: 1px solid var(--line-ui); background: none; border-radius: 999px; padding: 4px 14px; min-height: 36px; cursor: pointer; margin-top: 8px; }
.steps .copied { font-size: 13px; color: var(--ink-2); margin-left: 8px; }
.receipt.in-sheet { margin-top: 36px; border-top-color: var(--rule); }
.receipt.in-sheet .r-row { border-bottom-color: var(--line); }
.receipt.in-sheet .r-note { color: var(--gold-t); }
.receipt.in-sheet .r-total span { color: var(--ink-2); }
.stack { max-width: 72ch; margin: 0; }
.models-wrap { overflow-x: auto; }
.models { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.models td, .models th { border-bottom: 1px solid var(--line); padding: 8px 6px 8px 0; text-align: left; vertical-align: top; }
.models th { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-t); }
.models td:nth-child(3), .models td:nth-child(4), .models th:nth-child(3), .models th:nth-child(4) { text-align: right; }
.note { font-size: 13px; color: var(--ink-2); margin-top: 16px; }
.make.in-drawer { display: block; margin-top: 44px; padding: 24px; border: 0; border-radius: 14px; background: var(--tide); color: var(--salt); --focus: var(--focus-d); }
.make.in-drawer .make-actions { grid-column: auto; grid-row: auto; margin-top: 14px; }
.make.in-drawer code { background: rgba(238,234,227,.12); color: var(--salt); }
.make-more { margin: 10px 0 0; }
.make-more a { display: inline-flex; align-items: center; min-height: 44px; color: var(--salt); }
.downloads { list-style: none; padding: 0; margin: 0; font-size: 15px; columns: 2; column-gap: 32px; }
.downloads li { border-bottom: 1px solid var(--line); break-inside: avoid; }
.downloads a { display: flex; align-items: center; min-height: 48px; }
.end-create { display: inline-flex; margin-top: 18px; min-height: 52px; min-width: 200px; }
.end .mk.create { color: var(--tide); }
.credits { font-size: 13px; line-height: 2; color: var(--ink-2); margin-top: 28px; max-width: 80ch; }

/* ---------- The guide ---------- */
.guide { position: fixed; z-index: 15; left: 50%; bottom: calc(16px + var(--consent-h, 0px)); transform: translateX(-50%); width: min(620px, calc(100% - 24px)); display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "top top" "bar bar" "cap ctl" "end end"; gap: 8px 16px; align-items: center; padding: 12px 12px 12px 20px; border-radius: 18px; background: var(--tide); color: var(--salt); --focus: var(--focus-d); box-shadow: 0 0 0 1px rgba(200,178,138,.35), 0 24px 60px -20px rgba(10,14,20,.7); animation: rise .28s var(--ease); }
.g-top { grid-area: top; display: flex; align-items: center; justify-content: space-between; }
.g-count { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-variant-numeric: tabular-nums; }
.g-x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--salt); display: grid; place-items: center; cursor: pointer; margin: -6px -2px -6px 0; }
.g-x svg { width: 20px; height: 20px; }
.g-bar { grid-area: bar; height: 2px; background: var(--line-d); border-radius: 2px; overflow: hidden; }
.g-bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .5s var(--ease); }
.g-cap { grid-area: cap; margin: 0; font-size: 15px; line-height: 1.45; min-height: 2.9em; }
.g-cap b { font: italic 500 20px/1.2 "Cormorant", serif; }
.g-ctl { grid-area: ctl; display: flex; gap: 4px; }
.g-end { grid-area: end; display: flex; flex-wrap: wrap; gap: 8px; }
.g-b { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--line-d-ui); border-radius: 999px; background: none; color: var(--salt); cursor: pointer; }
.g-b svg { width: 18px; height: 18px; }
.g-b.g-play { padding: 0 16px 0 12px; }
.g-b.g-wide { padding: 0 18px; }
.g-b.primary { background: var(--salt); color: var(--tide); border-color: var(--salt); font-weight: 500; }
.guide-on .viewer { box-shadow: 0 0 0 1px var(--rule); }
@media (max-width: 700px), (orientation: landscape) and (max-height: 500px) {
  .guide { bottom: calc(8px + var(--consent-h, 0px)); grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "count ctl x" "bar bar bar" "cap cap cap" "end end end"; gap: 6px 6px; padding: 8px 8px 12px 16px; border-radius: 16px; }
  .g-top { display: contents; }
  .g-count { grid-area: count; }
  .g-x { grid-area: x; margin: 0; width: 44px; height: 44px; }
  .g-ctl { grid-area: ctl; }
  .g-b.g-play { padding: 0 12px; }
  .g-b.g-play .t { display: none; }
  .g-cap { font-size: 14px; min-height: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; padding-right: 8px; }
  .g-cap b { font-size: 18px; }
}
@media (orientation: landscape) and (max-height: 500px) { .guide { left: auto; right: 8px; transform: none; width: clamp(280px, 40vw, 360px); animation: none; } }

/* ---------- Footer: the end placement plus the shared runtime row ---------- */
.foot { --focus: var(--focus-d); background: var(--night); color: var(--salt); border-top: 1px solid rgba(200,178,138,.35); }
.foot-in { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 22px var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 24px; font-size: 13px; }
.foot-blurb, .foot-numbers { color: var(--salt-2); max-width: 62ch; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.foot-link, .foot-dl { color: var(--salt); display: inline-flex; align-items: center; min-height: 36px; }
.foot-create { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 14px; border-radius: 999px; background: var(--gold); color: var(--tide); font-weight: 500; text-decoration: none; }
.foot .foot-tools { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) 18px; }
.foot .foot-tools:empty { display: none; }
.foot [data-exploration-controls], .foot [data-exploration-controls] .scenario-exploration-controls, .foot [data-exploration-tools] { font: 13px/1.5 "Jost", system-ui, sans-serif !important; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.guide { animation-name: guide-in; }
@keyframes guide-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Pointer feedback ---------- */
@media (hover: hover) {
  .act:hover { background: rgba(30,42,56,.07); }
  .act.create:hover { background: #2c3b4e; }
  .btn:hover { transform: translateY(-1px); }
  .btn.ghost:hover { background: rgba(255,255,255,.12); }
  .tab:not([aria-selected="true"]):hover { color: var(--s-ink); border-bottom-color: var(--s-line-ui); }
  .icon:not([aria-pressed="true"]):hover { background: rgba(30,42,56,.08); }
  .day button:hover img, .thumb:hover img { transform: scale(1.03); }
  .map a:hover { color: var(--gold-t); }
  .next-ch:hover .na { transform: translateX(4px); background: var(--s-ink); color: var(--tone); }
  .watch:hover .watch-pic img { transform: scale(1.02); }
  .mk:hover { transform: translateY(-1px); }
  .mk:not(.primary):not(.create):hover { background: rgba(238,234,227,.08); }
  .chapters button:hover .lb { text-decoration: underline; text-decoration-color: var(--line-ui); text-underline-offset: 5px; }
  .g-b:not(.primary):hover, .g-x:hover { background: rgba(238,234,227,.1); }
  .close:hover { background: var(--sel); }
}
.tab:active, .icon:active, .btn:active, .mk:active, .thumb:active, .day button:active, .act:active, .g-b:active { transform: scale(.97); }

/* ---------- Desktop: the header rides over the dawn, then settles on pearl ---------- */
@media (min-width: 860px) and (min-height: 501px) {
  html { scroll-padding-top: var(--hdr); }
  .top { position: sticky; top: 0; height: var(--hdr); padding-block: 0; transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
  .top.over { background: transparent; color: #fff; border-bottom-color: transparent; --focus: #fff; }
  .top.over .logo.on-light { display: none; }
  .top.over .logo.on-dark { display: block; }
  .top.over .x-sep { background: rgba(255,255,255,.55); }
  .top.over .act:hover { background: rgba(255,255,255,.14); }
  .top.over .act.create { background: var(--salt); color: var(--ink); }
  .hero { margin-top: calc(-1 * var(--hdr)); color: #fff; background: var(--tide); --focus: #fff; }
  .hero-pic { height: 100svh; min-height: 560px; max-height: 1240px; }
  .hero-img { object-position: 30% 50%; }
  .hero-pic::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(20,27,36,.74) 0, rgba(20,27,36,.4) 96px, rgba(20,27,36,0) 220px),
      linear-gradient(90deg, rgba(20,27,36,.72) 0%, rgba(20,27,36,.44) 24%, rgba(20,27,36,0) 46%),
      linear-gradient(0deg, rgba(20,27,36,.78) 0%, rgba(20,27,36,.2) 26%, rgba(20,27,36,0) 44%); }
  .hero-copy { position: absolute; left: var(--gutter); bottom: calc(96px + clamp(24px, 4svh, 56px)); max-width: calc(100% - 2 * var(--gutter)); text-shadow: 0 1px 18px rgba(20,27,36,.35); }
  .hero h1 { font-size: clamp(64px, min(8.4vw, 13.5svh), 156px); margin: 14px 0 18px; }
  .hero h1 span { display: block; }
  .hero-line { max-width: max(31vw, 360px); font-size: clamp(22px, 1.1vw + 12px, 30px); }
  .hero .btn.primary { background: var(--salt); color: var(--ink); border-color: var(--salt); text-shadow: none; }
  .hero .btn-ic { background: var(--ink); color: var(--salt); }
  .hero .btn.ghost { border-color: rgba(255,255,255,.72); text-shadow: none; }
  .dial { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 22px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.4); }
  .dial a { position: relative; display: block; min-height: 64px; padding: 14px 12px 0 0; color: rgba(255,255,255,.86); text-decoration: none; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
  .dial a b { display: block; margin-top: 2px; font: italic 500 22px/1.2 "Cormorant", serif; letter-spacing: 0; text-transform: none; color: #fff; }
  .dial a::before { content: ""; position: absolute; top: -2px; left: 0; width: 0; height: 3px; background: var(--gold); transition: width .35s var(--ease); }
  .dial a[aria-current="true"]::before, .dial a:hover::before, .dial a:focus-visible::before { width: 64px; }
  .hero :focus-visible { outline-color: #fff; box-shadow: 0 0 0 5px rgba(20,27,36,.55); }
  /* first visit: the shared consent card sits bottom left; the hero copy rises above it and the dial waits */
  html.consent-open .hero-copy { bottom: calc(var(--consent-h) + 20px); }
  html.consent-open .dial { display: none; }
  @media (max-height: 820px) { html.consent-open .hero-tag { display: none; } }
  @media (max-height: 700px) { html.consent-open .hero h1 { font-size: min(8.4vw, 10svh); } }
  .cmp-btn { gap: 8px; padding: 0 14px 0 12px; }
  .guide { left: var(--gutter); transform: none; width: min(560px, calc(100% - 2 * var(--gutter))); animation-name: rise; }
  .cmp-btn .t { display: inline; }
}
@media (min-width: 860px) and (max-width: 1099px) and (min-height: 501px) {
  .word { display: none; }
  .x-name { font-size: 19px; letter-spacing: .24em; gap: 10px; }
  .act { padding: 0 9px; font-size: 13px; }
  .act .ic { display: none; }
  .act.create { padding: 0 14px; }
}
@media (min-width: 1100px) and (max-width: 1279px) { .act .ic { display: none; } }

/* ---------- Phones held upright and small tablets: two header rows, the picture then the words ---------- */
@media (max-width: 700px), (max-width: 859px) and (orientation: portrait) {
  .top { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "back create" "name actions"; row-gap: 0; padding: 4px 16px 2px; }
  .back { grid-area: back; }
  .create { grid-area: create; justify-self: end; }
  .x-name { grid-area: name; font-size: 17px; letter-spacing: .24em; min-height: 44px; }
  .x-sep { display: none; }
  .actions { grid-area: actions; justify-self: end; margin: 0; }
  .act { padding: 0 10px; font-size: 14px; }
  .act.create { padding: 0 16px; margin: 0; }
  .how-top { display: none; }
  .hero-pic { height: clamp(260px, 54svh, 560px); }
  .hero-copy { padding: 24px 16px 8px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-actions .btn.primary { justify-content: flex-start; }
  .hero-actions .btn.primary small { margin-left: auto; }
  .about-in { grid-template-columns: 1fr; }
  .rows > div { grid-template-columns: 1fr; padding: 16px 0; }
  .map { grid-column: 1; }
  .stage { padding: 48px 0 40px; }
  .ch-head { width: auto; grid-template-columns: 1fr; grid-template-areas: "no" "h2" "txt" "tabs"; padding: 0 16px 12px; }
  .ch-titles h2 { margin-bottom: 10px; }
  .tabs { margin: 18px -16px 0; padding: 0 8px; scroll-margin-top: 0; }
  .tab { flex: 1 1 0; min-width: 0; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 9px; font-size: 12px; letter-spacing: .08em; }
  .tab .n { font-size: 17px; }
  .viewer { width: auto; height: auto; display: flex; flex-direction: column; background: var(--tone); overflow: visible; scroll-margin-top: 0; }
  .viewer .media { position: relative; inset: auto; width: 100%; aspect-ratio: 4 / 5; max-height: calc(100svh - 176px); min-height: 220px; background: var(--mat, #1E2A38); overflow: hidden; }
  .viewer[data-sec="notes"] .media { aspect-ratio: 4 / 3; }
  .viewer-controls { position: static; transform: none; align-self: center; margin: 6px 0 4px; background: transparent; box-shadow: none; }
  .viewer-controls .icon { color: var(--s-ink); }
  .viewer-controls .icon[aria-pressed="true"] { background: var(--s-ink); color: var(--tone); }
  .compare-hint { bottom: 70px; }
  .below { width: auto; grid-template-columns: 1fr; padding: 10px 16px 0; gap: 22px; }
  .day { display: flex; overflow-x: auto; gap: 10px; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px; scroll-snap-type: x proximity; }
  .day button { flex: 0 0 29%; scroll-snap-align: start; }
  .thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .next-ch { width: auto; margin: 28px 16px 0; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k a" "t a" "d a"; gap: 2px 16px; }
  .keys { width: auto; padding: 0 16px; }
  .f-head, .f-grid, .make { grid-template-columns: 1fr; }
  .f-head > p:last-child, .make-actions, .make-what { grid-column: 1; grid-row: auto; }
  .make-actions { grid-template-columns: 1fr; }
  .r-row { grid-template-columns: 1fr auto; }
  .r-note { grid-column: 1 / -1; }
  .drawer { padding: 0; }
  .drawer-inner { height: 100%; border-radius: 0; box-shadow: none; }
  .dfilm { grid-template-columns: 1fr; }
  .chapters { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 6px; scrollbar-width: none; margin: 0 -18px; padding: 0 18px 4px; }
  .chapters .g { display: none; }
  .chapters button { flex: none; width: auto; grid-template-columns: auto auto; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-ui); border-radius: 999px; }
  .chapters button[aria-current="true"] { background: var(--ink); color: var(--pearl); border-color: var(--ink); }
  .chapters button[aria-current="true"] .tm { color: var(--pearl); }
  .chapters button[aria-current="true"] .lb { text-decoration: none; }
  .steps { columns: 1; }
  .numbers div { flex-basis: 45%; }
  .numbers div:nth-child(3) { border-left: 0; padding-left: 0; }
  .downloads { columns: 1; }
  .fc-rows > div { grid-template-columns: 1fr; }
}
@media (max-width: 539px) { .act .ic { width: 16px; height: 16px; } }
@media (max-width: 380px) {
  .act .ic { display: none; }
  .act { padding: 0 8px; }
  .x-name { letter-spacing: .18em; font-size: 16px; }
  .word { font-size: 13px; }
  .logo { height: 16px; }
  .back { gap: 6px; }
  .act.create { padding: 0 12px; font-size: 13px; }
  .hero h1 { font-size: 48px; }
  .icon.tour { padding: 0 10px; }
  .viewer-controls { gap: 0; }
  .day button { flex-basis: 36%; }
}
@media (max-width: 359px) { #fsBtn { display: none; } }
@media (max-height: 640px) and (max-width: 700px) { .hero-pic { height: 40svh; } .hero-copy { padding-top: 18px; } .hero h1 { margin: 6px 0 8px; } .hero-line { margin-bottom: 14px; } }

/* ---------- Phones held sideways: the header in one row, the picture left of its chapter ---------- */
@media (orientation: landscape) and (max-height: 500px) {
  .top { position: relative; padding-block: 2px; }
  .word { display: none; }
  .x-name { font-size: 16px; letter-spacing: .22em; gap: 10px; }
  .act { padding: 0 8px; font-size: 13px; }
  .act .ic { display: none; }
  .act.create { padding: 0 14px; }
  .hero { color: #fff; background: var(--tide); --focus: #fff; }
  .hero-pic { height: calc(100svh - 56px); min-height: 280px; }
  .hero-img { object-position: 30% 50%; }
  .hero-pic::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(20,27,36,.72) 0%, rgba(20,27,36,.36) 30%, rgba(20,27,36,0) 48%); }
  .hero-copy { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); width: min(33%, 300px); }
  .hero h1 { font-size: 46px; margin: 6px 0 8px; }
  .hero h1 span { display: block; }
  .hero-line { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .btn { min-height: 46px; font-size: 14px; padding: 0 16px; }
  .btn.primary { background: var(--salt); color: var(--ink); border-color: var(--salt); padding: 0 16px 0 6px; }
  .btn-ic { width: 34px; height: 34px; background: var(--ink); color: var(--salt); }
  .btn.ghost { border-color: rgba(255,255,255,.72); justify-content: center; }
  .stage { padding: 28px 0 32px; display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 40vw, 360px); grid-template-areas: "viewer head" "viewer below" "viewer next" "keys keys"; grid-template-rows: auto auto 1fr auto; column-gap: 16px; align-items: start; }
  .ch-head { grid-area: head; width: auto; grid-template-columns: 1fr; grid-template-areas: "no" "h2" "tabs"; padding: 0 16px 0 0; }
  .ch-head .tabs { margin-top: 10px; }
  .ch-titles h2 { font-size: 28px; margin: 4px 0 0; }
  .ch-text { display: none; }
  .tabs { overflow-x: auto; scrollbar-width: none; scroll-margin-top: 8px; }
  .tab { padding: 8px 8px 6px; letter-spacing: .08em; font-size: 13px; min-height: 44px; }
  .viewer { grid-area: viewer; width: auto; height: calc(100svh - 16px); min-height: 250px; margin: 0 0 0 16px; background: var(--tone); overflow: visible; position: sticky; top: 8px; scroll-margin-top: 8px; }
  .viewer .media { bottom: 56px; background: var(--mat, #1E2A38); }
  .media img.cover, .cmp.cover img { object-fit: contain; }
  .viewer-controls { bottom: 4px; background: transparent; box-shadow: none; }
  .viewer-controls .icon { color: var(--s-ink); }
  .viewer-controls .icon[aria-pressed="true"] { background: var(--s-ink); color: var(--tone); }
  .compare-hint { bottom: 70px; }
  .below { grid-area: below; width: auto; grid-template-columns: 1fr; padding: 12px 16px 0 0; gap: 14px; }
  .caption h3 { font-size: 28px; }
  .day { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .keys { grid-area: keys; }
  .next-ch { grid-area: next; width: auto; margin: 18px 16px 0 0; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k a" "t a" "d a"; }
  .dfilm { grid-template-columns: minmax(0, 1fr) 200px; }
  .drawer { padding: 0; }
  .drawer-inner { height: 100%; border-radius: 0; }
  .sheet-head { padding: 10px 0 8px; }
  .steps { columns: 2; }
}

/* ---------- Touch: 44 px targets, no keyboard legend ---------- */
@media (pointer: coarse) {
  .icon { min-width: 44px; height: 44px; }
  .steps .copy { min-height: 44px; }
  .chapters button { min-height: 44px; }
  .foot-link, .foot-dl, .foot-create { min-height: 44px; display: inline-flex; align-items: center; }
  .credits a { display: inline-block; padding: 11px 0; margin: -11px 0; }
  .models td a { display: inline-block; padding: 12px 0; }
  .make-what a, .note a { display: inline-block; padding: 10px 0; margin: -10px 0; }
}
@media (hover: none), (pointer: coarse) { .keys { display: none; } }
@media (max-width: 700px) { .foot [data-exploration-controls], .foot [data-exploration-tools], .foot [data-exploration-controls] .scenario-exploration-controls, .foot [data-exploration-controls] #scenario-exploration-analytics > * { justify-content: flex-start !important; text-align: left; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } .tab:active, .icon:active, .btn:active, .mk:active, .thumb:active, .day button:active, .act:active, .g-b:active { transform: none; } }

/* ---------- Light pass after the design critic (2026-09-27) ---------- */
/* One grid: every block shares the same left and right edge (60 px at 1440) */
:root { --edge: max(var(--gutter), calc((100% - var(--measure)) / 2)); }
.stage { --vh: clamp(380px, min(calc(min(100vw - 2 * var(--gutter), var(--measure)) * .5625), calc(100svh - var(--hdr) - 200px)), 900px); --vw: min(calc(100% - 2 * var(--gutter)), var(--measure)); }
.top { padding-inline: var(--edge); }
.watch { padding: 11px; }
.watch-txt { padding-left: 0; }
/* chapter 5 opens on a gold rule, whatever the light above it */
.formula { border-top: 1px solid var(--rule); }
/* the modal: the film at sheet width, its chapters as a strip under it; the steps in one column, in film order */
.dfilm { grid-template-columns: 1fr; }
.chapters { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 6px; }
.chapters .g { margin: 0 4px 0 10px; }
.chapters .g:first-child { margin-left: 0; }
.chapters button { width: auto; grid-template-columns: auto auto; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-ui); border-radius: 999px; }
.chapters button[aria-current="true"] { background: var(--ink); color: var(--pearl); border-color: var(--ink); }
.chapters button[aria-current="true"] .tm { color: var(--pearl); }
.chapters button[aria-current="true"] .lb { text-decoration: none; }
.steps { columns: 1; }
.steps > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 38%); column-gap: 36px; align-content: start; }
.steps > li > * { grid-column: 1; }
.steps > li > .fc-img { grid-column: 2; grid-row: 1 / span 8; margin-top: 4px; }
.end-what { margin: 0 0 12px; color: var(--ink-2); max-width: 72ch; }
@media (min-width: 860px) and (min-height: 501px) {
  .hero-copy { left: var(--edge); }
  .dial { left: var(--edge); right: var(--edge); }
}
/* phones: a sticky compact top bar; the end actions as full-width rows */
@media (max-width: 700px), (max-width: 859px) and (orientation: portrait) {
  html { scroll-padding-top: 92px; }
  .top { position: sticky; top: 0; padding: 2px 16px 0; }
  .top .back, .top .create, .top .x-name, .top .act { min-height: 44px; }
  .viewer .media { max-height: calc(100svh - 176px - 92px); }
  .tabs { scroll-margin-top: 0; }
  .formula .make-actions { display: flex; flex-direction: column; gap: 10px; }
  .formula .mk { flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; }
  .formula .mk small { text-align: right; }
  .steps > li { grid-template-columns: 1fr; }
  .steps > li > .fc-img { grid-column: 1; grid-row: auto; }
  .chapters { flex-wrap: nowrap; }
  .chapters .g { display: none; }
  .g-count { white-space: nowrap; }
  /* first visit: the consent card covers the lower half, so the title and Watch come first, under the bar */
  html.consent-open .hero { display: flex; flex-direction: column; }
  html.consent-open .hero-copy { order: -1; padding-top: 16px; }
  html.consent-open .hero-line, html.consent-open .hero-house, html.consent-open #walkBtn { display: none; }
  html.consent-open .hero h1 { margin-top: 0; }
}
/* phones held sideways: keep "Explorations"; tabs stacked with room between them */
@media (orientation: landscape) and (max-height: 500px) {
  .word { display: inline; font-size: 13px; }
  .x-name { font-size: 15px; letter-spacing: .18em; }
  .top { padding-inline: 16px; gap: 4px 8px; }
  .act { padding: 0 7px; }
  .tabs { gap: 4px; }
  .tab { flex: 1 1 0; min-width: 0; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px 7px; font-size: 11px; letter-spacing: .06em; }
  .tab .n { font-size: 15px; }
}
/* the modal as wide as the screen allows, the film large at the top (the Inside a Heartbeat proportion) */
@media (min-width: 860px) and (min-height: 501px) {
  .drawer { padding: 24px; }
  .drawer-inner { width: min(1400px, 100%); padding-inline: clamp(24px, 3.4vw, 52px); }
  .dfilm { margin-top: 18px; }
  .dfilm video { max-height: calc(100svh - 48px - 110px - 64px); width: auto; max-width: 100%; margin: 0 auto; }
  .sheet-head { padding: 18px 0 12px; }
}
/* the grid widens with the screen (one edge at the gutter up to 1872 px), so the hero title keeps clear of the flacon */
:root { --measure: min(1760px, calc(100vw - 2 * var(--gutter))); }
@media (pointer: coarse) { .chapters button { min-height: 44px; } }
@media (min-width: 1700px) and (min-height: 501px) {
  .hero-pic::after { background: linear-gradient(180deg, rgba(20,27,36,.74) 0, rgba(20,27,36,.4) 96px, rgba(20,27,36,0) 220px), linear-gradient(90deg, rgba(20,27,36,.8) 0%, rgba(20,27,36,.52) 24%, rgba(20,27,36,0) 44%), linear-gradient(0deg, rgba(20,27,36,.78) 0%, rgba(20,27,36,.2) 26%, rgba(20,27,36,0) 44%); }
}
