/* Blackout Ink Studio — the dark room.
   One brown-black ground from top to bottom; the pictures and the gold action are the lit things. */

:root {
  color-scheme: dark;
  --bg: #0b0a08;
  --surface: #171410;
  --surface-2: #211d17;
  --ink: #e9e7e3;
  --muted: #bab3a6;
  --accent: #c9a45c;
  --accent-hi: #dcb974;
  --accent-ink: #120f0a;
  --paper: #e9e7e3;
  --paper-ink: #15120d;
  --paper-muted: #4a4236;

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-text: 'Lato', system-ui, sans-serif;

  /* the steps: small, body, lead, title, head, display */
  --step-small: 1rem;                               /* 16 */
  --step-body: 1.125rem;                            /* 18 */
  --step-lead: 1.5rem;                              /* 24 */
  --step-title: clamp(1.75rem, 1.2rem + 1.2vw, 2.5rem); /* 28–40 */
  --step-head: clamp(2.25rem, 1.2rem + 3.6vw, 4rem); /* 36–64 */
  --step-display: clamp(4.5rem, 2rem + 8vw, 9rem);  /* 72–144 */

  --margin: clamp(1.25rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(7.5rem, 12vw, 12rem);
  --radius: 0px;
  --rail-h: 64px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd, address { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
address { font-style: normal; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: calc(var(--rail-h) + 1rem); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }
.nums { font-variant-numeric: tabular-nums lining-nums; }
.skip { position: absolute; left: var(--margin); top: -100px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 0.6rem 1rem; text-decoration: none; }
.skip:focus { top: 1rem; }

/* ---------- controls ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.6rem;
  background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); text-decoration: none;
  font-weight: 700; font-size: var(--step-small); letter-spacing: 0.01em; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button[disabled] { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
.button--small { min-height: 2.5rem; padding: 0 1.1rem; }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.25em; text-decoration-thickness: 1.5px; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
.link-plain { text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1.5px; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .button:not([disabled]):hover { background: var(--accent-hi); }
  .link:hover { text-decoration-color: currentColor; }
  .link-plain:hover { color: var(--accent-hi); }
}

/* ---------- hero: two pictures, one rail on the midline ---------- */
.hero-stage { position: absolute; inset: 0 0 auto 0; height: 200svh; z-index: 0; overflow: hidden; }
picture { display: contents; }
.hero-frame { position: absolute; left: 0; width: 100%; height: 100svh; overflow: hidden; background: var(--bg); }
.hero-frame--a { top: 0; }
.hero-frame--b { top: 100svh; }
.hero-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.62) contrast(1.08); }
.hero-frame--a img { object-position: 50% 42%; }
.hero-frame--b img { object-position: 50% 40%; filter: grayscale(1) brightness(0.5) contrast(1.1); }
.fade { opacity: 0; transition: opacity 1600ms ease; }
.fade.is-on { opacity: 1; }
.hero-spacer { height: calc(50svh - var(--rail-h) / 2); }

.rail { position: sticky; top: 0; z-index: 20; height: var(--rail-h); color: var(--paper); transition: background-color 400ms ease; }
.rail.is-docked { background: var(--bg); }
.rail__in { height: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; padding-inline: var(--margin); }
.rail__title { grid-column: 1 / span 4; font-size: var(--step-title); line-height: 1; white-space: nowrap; }
.rail__title a { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.rail__title img { width: 52px; height: auto; mix-blend-mode: lighten; }
.rail__say { grid-column: 6 / span 3; font-size: var(--step-body); line-height: 1.3; white-space: nowrap; justify-self: start; }
.rail__nav { grid-column: 9 / span 4; display: flex; justify-content: flex-end; align-items: center; gap: 1.5rem; font-size: var(--step-small); }
.rail__menu { display: none; }
.phone-menu { display: none; }
.hero-tail { display: none; }
main { position: relative; z-index: 1; }
.hero-spacer, .rail { position: relative; z-index: 2; }
.rail { position: sticky; }

/* the pictures continue under the rail for one and a half screens before the room begins */
main { margin-top: calc(150svh - var(--rail-h) / 2); background: var(--bg); }

/* ---------- services marquee ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.marquee { padding-top: clamp(4rem, 8vw, 7rem); overflow: hidden; }
.marquee__row { overflow: hidden; white-space: nowrap; padding-block: 0.04em 0.16em; }
.marquee__row + .marquee__row { margin-top: clamp(0.25rem, 1vw, 0.75rem); }
.marquee__track { display: inline-flex; width: max-content; will-change: transform; }
.marquee__unit { display: inline-flex; align-items: center; flex: none; }
.marquee__word { font-family: var(--font-display); font-weight: 500; font-size: clamp(3rem, 1.5rem + 7vw, 9rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); padding-inline: 0.18em; }
.marquee__row--gold .marquee__word { color: var(--accent); font-style: italic; }
.marquee__star { flex: none; width: clamp(14px, 1.6vw, 26px); aspect-ratio: 1; margin-inline: 0.3em; background: var(--accent); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.marquee__row--gold .marquee__star { background: var(--ink); }
.marquee__row:first-of-type .marquee__track { transform: translate3d(-4%, 0, 0); }

/* ---------- intro: the staircase ---------- */
.intro { position: relative; padding: var(--section) var(--margin) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-content: center; }
.intro__text { grid-column: 1 / span 6; grid-row: 1; align-self: start; }
.intro__head { font-weight: 600; font-size: clamp(2.5rem, 1rem + 4.6vw, 5rem); line-height: 1; letter-spacing: -0.02em; }
.stair { display: block; }
.stair--soft { color: var(--accent); }
.intro__statement { margin-top: clamp(1.5rem, 3vw, 2.5rem); font-family: var(--font-display); font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); line-height: 1.2; max-width: 26ch; }
.intro__pics { grid-column: 7 / span 6; grid-row: 1 / span 2; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-self: start; }
.intro__pics img, .intro__pics video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.intro__pics img { filter: grayscale(0.35); }
.intro__ink { filter: invert(1) contrast(1.15) brightness(0.9); }
.intro__note { grid-column: 1 / span 6; grid-row: 2; align-self: start; margin-top: 2rem; color: var(--muted); font-size: var(--step-small); line-height: 1.6; }

/* ---------- size: the live scale figure ---------- */
.size { padding: var(--section) var(--margin) 0; }
.size__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.size__head h2 { grid-column: 1 / span 7; font-size: var(--step-head); line-height: 1; letter-spacing: -0.02em; }
.size__head p { grid-column: 7 / span 6; max-width: 40ch; }
.size__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; margin-top: clamp(3rem, 6vw, 5rem); }
.figure { grid-column: 1 / span 5; display: grid; justify-items: center; background: var(--surface); padding: clamp(1.5rem, 3vw, 3rem) 1rem; }
.figure__svg { width: min(100%, 300px); height: auto; max-height: 64svh; overflow: visible; }
.figure__body > * { fill: #3a342b; stroke: none; }
.figure__body line.limb { stroke: #3a342b; stroke-linecap: round; fill: none; }
.figure__ink .ink { opacity: 0; fill: var(--accent); stroke: var(--accent); stroke-linecap: round; transition: opacity 500ms var(--ease-out); }
.figure__ink path.ink, .figure__ink circle.ink { stroke: none; }
.figure__ink circle.ink { transition: opacity 500ms var(--ease-out), r 500ms var(--ease-out); }
.figure__ink .ink.is-on { opacity: 1; }
.figure__ink .halo { fill: var(--accent); opacity: 0; transition: opacity 500ms var(--ease-out); }
.figure__ink .halo.is-on { opacity: 0.22; }
@media (prefers-reduced-motion: no-preference) { .figure__ink .halo.is-on { animation: halo 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; } }
@keyframes halo { 50% { opacity: 0.08; transform: scale(1.35); } }
.figure__ink .ink.is-back { opacity: 0.55; }
.figure__cap { margin-top: 1.25rem; font-size: var(--step-small); color: var(--muted); text-align: center; max-width: 34ch; min-height: 3.2em; }

.readout { grid-column: 7 / span 6; }
.readout__price { font-family: var(--font-display); font-weight: 500; font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.03em; }
.readout__name { margin-top: 1.25rem; font-size: var(--step-title); line-height: 1.1; }
.readout__line { margin-top: 0.4rem; color: var(--muted); }
.readout__facts { margin-top: 2rem; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1rem 2.5rem; }
.readout__facts dt { color: var(--muted); font-size: var(--step-small); }
.readout__facts dd { margin-top: 0.15rem; }
.readout__go { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.is-swapping .readout__price, .is-swapping .readout__name { opacity: 0.25; transform: translateY(6px); }
.readout__price, .readout__name { transition: opacity 260ms ease, transform 360ms var(--ease-out); }

.ruler { position: relative; margin-top: clamp(3rem, 6vw, 5rem); padding-bottom: 0.5rem; }
.ruler__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.ruler__ticks { position: absolute; left: 0; right: 0; top: 0; height: 56px; display: flex; justify-content: space-between; align-items: flex-end; padding-inline: 14px; pointer-events: none; }
.tick { width: 4px; height: 22px; background: var(--surface-2); transition: background-color 300ms ease, height 300ms var(--ease-out); }
.tick--signature { height: 32px; }
.tick--statement { height: 44px; }
.tick.is-past { background: var(--muted); }
.tick.is-now { background: var(--accent); height: 56px; }
.ruler__input { -webkit-appearance: none; appearance: none; position: relative; z-index: 1; display: block; width: 100%; height: 56px; margin: 0; background: transparent; cursor: grab; }
.ruler__input:active { cursor: grabbing; }
.ruler__input::-webkit-slider-runnable-track { height: 56px; background: transparent; }
.ruler__input::-moz-range-track { height: 56px; background: transparent; }
.ruler__input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 56px; background: transparent; border: 0; }
.ruler__input::-moz-range-thumb { width: 28px; height: 56px; background: transparent; border: 0; }
.ruler__input:focus-visible { outline-offset: 6px; }
.ruler__ends { display: flex; justify-content: space-between; margin-top: 0.75rem; color: var(--muted); font-size: var(--step-small); }

/* ---------- collection: prices like a menu ---------- */
.collection { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: var(--section) var(--margin) 0; }
.collection__side { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.collection__side h2 { grid-column: 1 / span 6; font-size: var(--step-head); line-height: 1; letter-spacing: -0.02em; }
.collection__note { grid-column: 7 / span 6; max-width: 40ch; }
.collection__pic { display: none; }
.menu { grid-column: 1 / -1; margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); }
.group + .group { margin-top: 48px; }
.group__name { font-size: var(--step-title); line-height: 1.1; }
.group__line { color: var(--muted); font-size: var(--step-small); margin-top: 0.25rem; }
.group__list { margin-top: 1.25rem; display: grid; gap: 6px; }
.paying { margin-top: 64px; background: var(--surface); padding: 28px 28px 30px; }
.paying h3 { font-size: var(--step-lead); line-height: 1.15; }
.paying dl { margin-top: 1rem; display: grid; gap: 0.75rem; }
.paying dl div { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: baseline; }
.paying dt { color: var(--ink); }
.paying dd { color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.paying p { margin-top: 1rem; color: var(--muted); font-size: var(--step-small); }
.item { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; width: 100%; text-align: left; padding: 10px 0; transition: color var(--t-hover) ease; }
.item__name, .item__price { transition: color var(--t-hover) ease; }
.item__name { font-family: var(--font-display); font-size: var(--step-lead); font-weight: 600; line-height: 1.2; }
.item__price { font-family: var(--font-display); font-size: var(--step-lead); font-weight: 600; line-height: 1.2; text-align: right; }
.item__desc { grid-column: 1 / -1; color: var(--muted); font-size: var(--step-small); max-width: 36ch; margin-top: 2px; }
.item:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) {
  .item:hover .item__name { color: var(--accent-hi); }
  .item:hover .item__price { color: var(--accent-hi); }
}
.item.is-match .item__name, .item.is-match .item__price { color: var(--accent); }

/* ---------- steps: drag row of moments ---------- */
.steps { padding-top: var(--section); }
.steps__top { display: flex; justify-content: space-between; align-items: end; padding-inline: var(--margin); }
.steps__top h2 { font-size: var(--step-head); line-height: 1; letter-spacing: -0.02em; }
.steps__btns { display: flex; gap: 8px; }
.square { width: 48px; height: 48px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.square svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.square:active { transform: scale(0.94); }
.square[disabled] { opacity: 0.35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .square:not([disabled]):hover { background: var(--accent); color: var(--accent-ink); } }
.steps__bar { height: 6px; margin: 1.5rem var(--margin) 0; background: var(--surface-2); }
.steps__bar span { display: block; height: 100%; width: 20%; background: var(--ink); transform-origin: left; transition: width 200ms linear; }
.steps__row { display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 var(--margin); padding: 2.5rem 0 1rem; scrollbar-width: none; cursor: grab; }
.steps__row::-webkit-scrollbar { display: none; }
.steps__row.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.steps__row li { flex: 0 0 calc((100% - 3 * 32px) / 4); scroll-snap-align: start; display: flex; flex-direction: column; }
.steps__row h3 { font-family: var(--font-text); font-weight: 700; font-size: var(--step-body); line-height: 1.3; }
.steps__row p { margin: 0.5rem 0 1.75rem; font-size: var(--step-small); line-height: 1.55; color: var(--muted); }
.steps__row img { margin-top: auto; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) brightness(0.85) contrast(1.05); user-select: none; -webkit-user-drag: none; }
.steps__row li:nth-child(5) img { filter: none; }

/* ---------- faq: large questions, answers beside ---------- */
.faq { padding: var(--section) var(--margin) 0; }
.faq__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: baseline; }
.faq__row + .faq__row { margin-top: 80px; }
.faq__q { grid-column: 1 / span 6; font-size: var(--step-title); line-height: 1.1; font-weight: 500; }
.faq__q--head { color: var(--muted); }
.faq__a { grid-column: 7 / span 6; max-width: 40ch; line-height: 1.55; }

/* ---------- visit: card on a photograph ---------- */
.visit { position: relative; margin-top: var(--section); min-height: 100svh; overflow: hidden; }
.visit__pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; filter: grayscale(1) brightness(0.62) contrast(1.08); }
.card { position: absolute; top: 60px; right: var(--margin); width: 400px; background: var(--paper); color: var(--paper-ink); border-radius: 8px; padding: 32px 32px 0; overflow: hidden; display: flex; flex-direction: column; }
.card h2 { font-size: var(--step-title); line-height: 1.05; }
.card address { margin-top: 1rem; font-size: var(--step-body); }
.card__rows { margin-top: 1.5rem; display: grid; gap: 0.6rem; font-size: var(--step-small); }
.card__rows div { display: flex; justify-content: space-between; gap: 1rem; }
.card__rows dt { color: var(--paper-muted); }
.card__rows dd { text-align: right; }
.card__rows a { text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.card__map { margin-top: 1.5rem; align-self: flex-start; font-size: var(--step-small); }
.card__go { margin: 2rem -32px 0; min-height: 52px; border-radius: 0; }

/* ---------- close & footer ---------- */
.close { display: grid; place-items: center; padding: clamp(5rem, 14vw, 12rem) var(--margin) clamp(3rem, 8vw, 6rem); }
.close__logo { width: min(440px, 78vw); mix-blend-mode: lighten; }
.foot { padding: 0 var(--margin) 30px; color: var(--muted); font-size: var(--step-small); }
.foot__credits { max-width: 72ch; margin-bottom: 2.5rem; font-size: var(--step-small); line-height: 1.6; }
.foot__credits a { color: var(--muted); }
.foot__line { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 1rem; }
.foot__links { display: flex; gap: 24px; color: var(--ink); }
.foot__end { text-align: right; }
.foot__end a { color: var(--ink); }

/* ---------- the details sheet ---------- */
.sheet { width: min(560px, calc(100vw - 2rem)); max-height: calc(100svh - 2rem); padding: clamp(1.5rem, 4vw, 2.5rem); border: 0; border-radius: 8px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); } /* taste-skill-ignore: dialog overlay */
.sheet::backdrop { background: rgba(5, 4, 3, 0.78); }
.sheet[open] { animation: sheet-in 420ms var(--ease-out); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px); } }
.sheet__close { float: right; margin: -0.5rem -0.5rem 0 1rem; }
.sheet__close button { padding: 0.5rem; color: var(--muted); font-size: var(--step-small); text-decoration: underline; text-underline-offset: 0.2em; }
.sheet__tier { color: var(--muted); font-size: var(--step-small); }
.sheet__name { margin-top: 0.25rem; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.25rem); line-height: 1.05; }
.sheet__price { margin-top: 0.75rem; font-family: var(--font-display); font-weight: 500; font-size: 3rem; line-height: 1; }
.sheet__tag { margin-top: 0.5rem; color: var(--muted); }
.sheet__facts { margin-top: 1.5rem; display: grid; gap: 0.9rem; }
.sheet__facts dt { color: var(--muted); font-size: var(--step-small); }
.sheet__pay { margin-top: 1.5rem; padding: 1rem 1.1rem; background: var(--surface-2); }
.sheet__agree { margin-top: 1.25rem; display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; font-size: var(--step-small); cursor: pointer; }
.sheet__agree[hidden] { display: none; }
.sheet__agree input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.sheet__err { margin-top: 1rem; color: #f2b8a2; }
.sheet__buy { margin-top: 1.25rem; width: 100%; }
.sheet__alt { margin-top: 1rem; color: var(--muted); font-size: var(--step-small); text-align: center; }
body.has-sheet { overflow: hidden; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .steps__row li { flex-basis: calc((100% - 32px) / 2); }
  .intro__text, .intro__note { grid-column: 1 / -1; grid-row: auto; }
  .intro__pics { grid-column: 1 / -1; grid-row: auto; margin-top: 2.5rem; }
  .rail__title { grid-column: 1 / span 5; }
  .rail__say { display: none; }
  .rail__nav { grid-column: 6 / span 7; }
  .rail__nav .link:not(:first-child) { display: none; }
  .menu { grid-column: 1 / -1; margin-top: 3rem; }
  .menu { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .menu__col:nth-child(3) { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gutter); align-items: start; }
  .menu__col:nth-child(3) .paying { margin-top: 0; }
  .figure { grid-column: 1 / span 6; }
  .readout { grid-column: 7 / span 6; }
  .readout__facts { grid-template-columns: 1fr; }
  .steps__btns { display: none; }
}

/* ---------- phone ---------- */
@media (max-width: 720px) {
  :root { --rail-h: 60px; }
  .rail__in { display: flex; justify-content: space-between; gap: 1rem; }
  .rail__title { font-size: var(--step-lead); white-space: normal; }
  .rail__title img { width: 40px; }
  .rail__nav { display: none; }
  .rail__menu { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.25rem; font-size: 1rem; text-decoration: underline; text-underline-offset: 0.25em; }
  .phone-menu { display: grid; position: absolute; top: var(--rail-h); left: 0; right: 0; background: var(--bg); padding: 0.5rem var(--margin) 1.5rem; box-shadow: 0 20px 40px rgba(0,0,0,0.5); } /* taste-skill-ignore: menu overlay */
  .phone-menu[hidden] { display: none; }
  .phone-menu a { padding: 0.8rem 0; font-family: var(--font-display); font-size: var(--step-lead); text-decoration: none; }
  .hero-tail { display: block; position: absolute; z-index: 3; left: 20px; right: 20px; top: calc(100svh - 11rem); }
  .hero-tail__say { font-size: var(--step-body); line-height: 1.4; max-width: 30ch; color: var(--paper); }
  .hero-tail .button { margin-top: 1rem; width: 100%; }
  .hero-frame--a img { object-position: 46% 40%; }

  .intro { padding-top: 6rem; min-height: 0; }
  .intro__text { grid-column: 1 / -1; grid-row: auto; }
  .intro__head { font-size: 10vw; }
  .stair { padding-left: 0; }
  .intro__statement { font-size: 1.5rem; }
  .intro__pics { grid-column: 1 / -1; grid-row: auto; grid-template-columns: 1fr 1fr; margin-top: 2.5rem; }
  .intro__note { grid-column: 1 / -1; grid-row: auto; margin-top: 2rem; padding-left: 0; }

  .size__head h2, .size__head p { grid-column: 1 / -1; }
  .size__head p { margin-top: 1rem; }
  .size__body { margin-top: 2rem; grid-template-columns: 42% 1fr; column-gap: 1rem; align-items: start; }
  .figure { grid-column: 1; padding: 1rem 0.5rem; }
  .figure__svg { max-height: 46svh; }
  .readout { grid-column: 2; }
  .readout__price { font-size: var(--step-head); }
  .readout__name { font-size: var(--step-lead); margin-top: 0.75rem; }
  .readout__line { font-size: var(--step-small); }
  .readout__facts { margin-top: 1.25rem; gap: 0.6rem; font-size: var(--step-small); }
  .readout__go { margin-top: 1.5rem; }
  .readout__go .button { width: 100%; padding: 0 1rem; }
  .readout__go a.link-plain, .card__map, .card__rows a { display: inline-flex; align-items: center; min-height: 44px; }
  .card__rows div { align-items: center; }
  .ruler__ends span:nth-child(2) { display: none; }
  .tick { width: 3px; }
  .ruler__ticks { padding-inline: 8px; }

  .collection__side h2, .collection__note { grid-column: 1 / -1; }
  .collection__note { margin-top: 1rem; }
  .menu { grid-template-columns: 1fr; margin-top: 2.5rem; row-gap: 40px; }
  .menu__col:nth-child(3) { display: block; }
  .menu__col:nth-child(3) .paying { margin-top: 40px; }
  .group + .group { margin-top: 40px; }


  .steps__btns { display: none; }
  .steps__row { gap: 16px; }
  .steps__row li { flex-basis: 72vw; }
  .steps__row img { margin-top: auto; }

  .faq__row { display: block; }
  .faq__row + .faq__row { margin-top: 56px; }
  .faq__q { font-size: var(--step-lead); }
  .faq__a { margin-top: 12px; }
  .faq__a, .collection__note, .size__head p, .item__desc, .intro__statement, .hero-tail__say, .group__line, .readout__line { max-width: none; }

  .visit { min-height: 0; overflow: hidden; padding-bottom: 0; }
  .visit__pic { position: relative; height: 70svh; }
  .card { position: relative; top: auto; right: auto; width: auto; margin: -80px 16px 0; padding: 24px 24px 0; }
  .card__go { margin-inline: -24px; min-height: 56px; }

  .close { padding-top: 20svh; }
  .foot__line { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .foot__end { text-align: left; }
}

/* ---------- small phones ---------- */
@media (max-width: 380px) {
  .size__body { grid-template-columns: 1fr; row-gap: 1.5rem; }
  .figure, .readout { grid-column: 1; }
  .figure__svg { max-height: 40svh; }
  .readout__facts { grid-template-columns: 1fr 1fr; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .intro__head .stair { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease-out), transform 1000ms var(--ease-expo); transition-delay: calc(var(--n) * 90ms + 100ms); }
  .js .intro__text.is-in .stair { opacity: 1; transform: none; }
  .js .group.is-in .item { animation: item-in 700ms var(--ease-out) both; }
  .js .group .item { animation-play-state: paused; }
  .js .group.is-in li:nth-child(2) .item { animation-delay: 60ms; } .js .group.is-in li:nth-child(3) .item { animation-delay: 120ms; }
  .js .group.is-in li:nth-child(4) .item { animation-delay: 180ms; } .js .group.is-in li:nth-child(5) .item { animation-delay: 240ms; }
  .js .group.is-in li:nth-child(6) .item { animation-delay: 300ms; } .js .group.is-in li:nth-child(7) .item { animation-delay: 360ms; }
  .js .group.is-in li:nth-child(8) .item { animation-delay: 420ms; }
  .js .group.is-in .item { animation-play-state: running; }
  .js .steps__row li { opacity: 0; transform: translateX(40px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--k, 0) * 80ms); }
  .js .steps__row.is-in li { opacity: 1; transform: none; }
  .js .rail__in > * { animation: rail-in 900ms var(--ease-expo) both; }
  .js .rail__say { animation-delay: 120ms; } .js .rail__nav { animation-delay: 220ms; }
  [data-drift] { will-change: transform; }
  .close__logo.is-in { transition-duration: 1600ms; }
}
@keyframes item-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes rail-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  .fade { transition: none; }
  .figure__ink .ink, .readout__price, .readout__name, .tick { transition: none; }
}
