/* DAN Lab · warm hardware studio. Tokens follow the brief (§3); see kit.html. */
:root {
  --ivory: #F5F3EE;
  --ink: #171A1B;
  --cobalt: #3157FF;
  --cobalt-hover: #2448F0;
  --cobalt-press: #1B3AD0;
  --slate: #606361;
  --rule: #DCDDD6;
  --stone: #ECEAE4;
  --warm: #F7F7F2;
  --panel: #FAF9F5;
  --mist: #B4B6B0;
  --rule-dark: #33383A;
  --field-dark: #6B7072;
  --error-on-dark: #FF9B8F;
  --ok-on-dark: #8FE3B0;

  --font: "Manrope", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --max: 1248px;
  --gutter: clamp(20px, 5vw, 96px);
  --gap: clamp(16px, 1.7vw, 24px);
  --section: clamp(56px, calc(40px + 5.5vw), 120px);
  --radius: 12px;
  --t: 200ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
/* ponytail: no smooth scrolling. Anchor jumps are instant, so QR/deep links (#events, #reserve) always land. */
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus, var(--cobalt)); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 16px; top: -80px; z-index: 50; background: var(--ink); color: var(--warm); padding: 12px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ── Layout ─────────────────────────────────────── */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px var(--gap); }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }

/* ── Type ───────────────────────────────────────── */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
@media (min-width: 960px) { .eyebrow { font-size: 12px; letter-spacing: .16em; } }
h1 { font-size: clamp(40px, calc(18px + 4.4vw), 84px); line-height: 1; letter-spacing: -.04em; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(28px, calc(18px + 2.6vw), 52px); line-height: 1.06; letter-spacing: -.03em; font-weight: 700; text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.01em; font-weight: 700; }
.lede { font-size: 18px; color: var(--slate); max-width: 36ch; }
.lede strong { color: var(--ink); font-weight: 600; }
.prose { max-width: 60ch; color: var(--slate); }
.advance-note { font-size: 15px; line-height: 1.5; font-weight: 500; color: var(--slate); max-width: 46ch; text-wrap: pretty; }
.advance-note strong, .amount { color: var(--ink); font-weight: 700; white-space: nowrap; }
.amount, .goal-num, .bar-amount { font-variant-numeric: tabular-nums lining-nums; }
@media (max-width: 767px) { body { font-size: 16px; } .lede { font-size: 17px; } }

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font: 700 16px/1.2 var(--font); text-decoration: none; text-align: center;
  cursor: pointer; white-space: nowrap;
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease), transform 120ms var(--ease);
}
.btn:active, .btn.is-active { transform: translateY(1px); }
.btn:disabled, .btn.is-disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.is-focus { outline: 3px solid var(--focus, var(--cobalt)); outline-offset: 3px; }

.btn-primary { background: var(--cobalt); color: var(--warm); }
.btn-primary:hover:not(:disabled), .btn-primary.is-hover { background: var(--cobalt-hover); }
.btn-primary:active:not(:disabled), .btn-primary.is-active { background: var(--cobalt-press); }

/* Secondary action: an underlined text button, so the reserve action is the only filled one */
.btn-ghost { padding-inline: 12px; background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.btn-ghost:hover:not(:disabled), .btn-ghost.is-hover { background: rgb(23 26 27 / .06); text-decoration-thickness: 2.5px; }
.btn-ghost:active:not(:disabled), .btn-ghost.is-active { background: rgb(23 26 27 / .12); }

.btn-light { background: var(--warm); color: var(--ink); }
.btn-light:hover:not(:disabled), .btn-light.is-hover { background: #E4E4DD; }
.btn-light:active:not(:disabled), .btn-light.is-active { background: #D3D3CB; }

.btn-sm { min-height: 48px; padding: 0 20px; font-size: 15px; }
.btn-block { width: 100%; }

/* ── Header ─────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--ivory); border-bottom: 1px solid var(--rule); }
.header-row { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-right: auto; font-weight: 800; font-size: 17px; letter-spacing: .16em; text-decoration: none; }
.wordmark::before { content: ""; width: 29px; height: 18px; background: url(dan-mark.png) center / contain no-repeat; } /* DAN Lab mark, from danlab.dev */
.nav-desk { display: flex; gap: 32px; }
.nav-desk a { padding: 12px 0; font-size: 15px; font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 1.5px no-repeat; transition: background-size var(--t) var(--ease); }
.nav-desk a:hover { background-size: 100% 1.5px; }
/* While the hero's reserve button is on screen, the header one steps back so cobalt appears once per screen */
.header-cta.is-quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.header-cta.is-quiet:hover { background: rgb(23 26 27 / .06); }
.menu-btn { display: none; }
.menu-btn .icon-close, .menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: inline; }

#menu { position: fixed; inset: var(--header-h) 0 auto 0; width: auto; max-width: none; margin: 0; border: 0; border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 24px; background: var(--ivory); color: var(--ink); box-shadow: 0 16px 32px rgb(23 26 27 / .08); }
#menu::backdrop { background: rgb(23 26 27 / .25); }
#menu a:not(.btn) { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--rule); font-size: 20px; font-weight: 600; text-decoration: none; }
#menu .btn { width: 100%; margin-top: 24px; }

@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .nav-desk, .header-cta { display: none; }
  .menu-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--rule); border-radius: var(--radius); background: transparent; color: inherit; cursor: pointer; }
}

/* ── Media ──────────────────────────────────────── */
.frame { overflow: hidden; border-radius: 16px; background: var(--stone); aspect-ratio: 5 / 4; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
/* Product renders have a transparent background: the glasses sit on the page, not in a box. */
.hero-media .frame, .reserve-media .frame { background: none; }
.reserve-media .frame img { object-fit: contain; } /* transparent still: show all of it, whatever the panel height */
/* plate caption: a short ink rule, then the label */
figcaption { display: flex; gap: 12px; margin-top: 12px; font-size: 13px; font-weight: 500; letter-spacing: .01em; color: var(--slate); }
figcaption::before { content: ""; flex: none; width: 24px; height: 1px; margin-top: .8em; background: var(--ink); }

/* ── Hero ───────────────────────────────────────── */
.hero { display: flex; flex-direction: column; gap: 32px; padding: 32px var(--gutter) 0; }
.hero-copy { display: grid; gap: 20px; }
.hero h1 span { display: block; }
.hero h1 span:first-child { color: var(--slate); }
.cta-row { display: grid; gap: 12px; grid-template-areas: "pri" "note" "sec"; }
.cta-row .btn-primary { grid-area: pri; }
.cta-row .btn-ghost { grid-area: sec; margin-top: 4px; }
.cta-row .advance-note { grid-area: note; }
.hero-media .frame { aspect-ratio: 3 / 2; }

@media (max-width: 959px) { .hero-media .frame { aspect-ratio: 16 / 9; } } /* less empty space round the glasses */
.cta-row .btn-ghost { justify-self: start; }
@media (max-width: 599px) { .cta-row .btn-ghost { margin-left: -12px; } } /* stacked: line the link's text up with the button edge */
@media (min-width: 600px) and (max-width: 959px) {
  .cta-row { grid-template-columns: auto auto; justify-content: start; gap: 12px 16px; grid-template-areas: "pri sec" "note ."; }
  .cta-row .btn-ghost { margin-top: 0; }
}
@media (min-width: 600px) { .cta-row .advance-note { max-width: 34ch; text-wrap: balance; } }
@media (min-width: 960px) {
  .hero {
    --edge: max(calc(var(--gutter) - var(--gap)), calc((100% - var(--max)) / 2 - var(--gap)));
    display: grid;
    grid-template-columns: var(--edge) repeat(12, minmax(0, 1fr)) var(--edge);
    column-gap: var(--gap); row-gap: 40px;
    padding: clamp(24px, 3vw, 48px) 0 0;
  }
  .hero-copy { grid-column: 2 / 9; grid-row: 1; align-self: end; gap: 24px; }
  .hero-actions { grid-column: 2 / 9; grid-row: 2; align-self: start; }
  .hero-media { grid-column: 9 / -1; grid-row: 1 / 3; align-self: center; }
  .hero-media .frame { border-radius: 20px 0 0 20px; }
  .cta-row { grid-template-columns: auto auto; justify-content: start; gap: 16px; grid-template-areas: "pri sec" "note ."; }
  .cta-row .btn-ghost { margin-top: 0; }
}
/* ponytail: no entrance animation. A stalled fade leaves the hero invisible; motion lives in hover/press/bar only. */

/* ── Product story ──────────────────────────────── */
.story-head { align-items: end; }
.story-title { display: grid; gap: 16px; }
.step-in { display: contents; } /* a card only in the 3D story; in the static layout its children sit on the grid */
.detail { margin-top: clamp(40px, 5vw, 64px); }
.detail .frame { aspect-ratio: 16 / 9; }
.goals { margin-top: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--rule); }
.goal { padding-block: 32px; border-top: 1px solid var(--rule); align-items: baseline; row-gap: 8px; }
.goal-meta { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.goal-num { margin-right: 12px; color: var(--ink); }
.goal h3 { font-size: clamp(22px, calc(16px + .9vw), 28px); letter-spacing: -.02em; }
.goal p:not(.goal-meta) { color: var(--slate); max-width: 52ch; }
.goals + .goal { border-top: 0; border-bottom: 1px solid var(--rule); } /* the clip-on row after the list */
@media (min-width: 960px) {
  .story-title { grid-column: 1 / 8; }
  .story-head .prose { grid-column: 9 / -1; }
  .goal-meta { grid-column: 1 / 4; }
  .goal h3 { grid-column: 4 / 8; }
  .goal p:not(.goal-meta) { grid-column: 8 / -1; }
}

/* ── Events (the one dark section) ──────────────── */
.events { --focus: var(--warm); background: var(--ink); color: var(--warm); padding-block: clamp(56px, 6.1vw, 88px); }
.events .eyebrow, .events .muted { color: var(--mist); }
.events-main { display: grid; gap: 16px; align-content: start; }
.events-side { display: grid; gap: 32px; align-content: start; }
.events-art { width: 160px; }
.event-empty { display: grid; gap: 4px; margin-top: 16px; padding-top: 24px; border-top: 1px solid var(--rule-dark); }
.event-empty h3 { font-size: 18px; }
@media (min-width: 960px) {
  .events-main { grid-column: 1 / 7; }
  .events-side { grid-column: 8 / -1; }
  .events-art { width: 200px; }
}

/* Confirmed-event rows (see template comment in index.html) */
.event-list { margin-top: 16px; border-bottom: 1px solid var(--rule-dark); }
.event { display: grid; gap: 8px; padding-block: 24px; border-top: 1px solid var(--rule-dark); }
.event-when { font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.event-meta { font-size: 15px; color: var(--mist); }
.event .btn { justify-self: start; margin-top: 8px; }
@media (min-width: 960px) {
  .event { grid-template-columns: 2fr 5fr auto; align-items: start; column-gap: 32px; row-gap: 4px; }
  .event-when { grid-row: 1 / 3; padding-top: 4px; }
  .event h3, .event-meta { grid-column: 2; }
  .event .btn { grid-column: 3; grid-row: 1 / 3; align-self: center; margin-top: 0; }
}

/* Form */
.updates { display: grid; gap: 20px; }
.updates h3 { font-size: 22px; }
.fields { display: grid; gap: 16px; }
@media (min-width: 600px) { .fields { grid-template-columns: 3fr 2fr; } }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: 14px; font-weight: 600; }
.opt { font-weight: 500; color: var(--mist); }
.field input {
  height: 52px; padding: 0 16px; width: 100%;
  border: 1.5px solid var(--field-dark); border-radius: 10px;
  background: #1F2325; color: var(--warm); font: 500 16px var(--font);
  transition: border-color var(--t) var(--ease);
}
.field input:hover { border-color: #8A8F91; }
.field input:focus-visible { outline: 3px solid var(--warm); outline-offset: 2px; border-color: var(--warm); }
.field input[aria-invalid="true"] { border-color: var(--error-on-dark); }
.field-error { font-size: 14px; font-weight: 600; color: var(--error-on-dark); }
.form-purpose { font-size: 15px; color: var(--mist); max-width: 52ch; }
.updates .btn { justify-self: start; }
.trap { position: absolute; left: -9999px; }
.form-status:empty { display: none; }
.form-status { font-size: 15px; font-weight: 600; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--rule-dark); }
.form-status[data-kind="ok"] { color: var(--ok-on-dark); border-color: currentColor; }
.form-status[data-kind="error"] { color: var(--error-on-dark); border-color: currentColor; }
.form-status[data-kind="preview"] { color: var(--mist); border-style: dashed; }
.form-status[data-kind="busy"] { color: var(--mist); }

/* ── Reservation ────────────────────────────────── */
.reserve-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4vw, 48px); }
.reserve-grid { align-items: stretch; }
.reserve-media { display: flex; flex-direction: column; }
.reserve-media .frame { flex: 1; min-height: 320px; aspect-ratio: auto; }
@media (max-width: 959px) { .reserve-media { display: none; } } /* keep the panel close on small screens */
.panel { padding: clamp(24px, 3vw, 40px); border: 1px solid var(--rule); border-radius: 16px; background: var(--panel); }
.summary > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--rule); }
.summary > div:first-child { padding-top: 0; }
.summary > div:has(+ .row-advance) { border-bottom: 0; }
.summary > .row-advance { padding-block: 20px; border-block: 1.5px solid var(--ink); }
.summary dt { font-size: 15px; color: var(--slate); }
.summary dd { font-weight: 600; text-align: right; }
.summary dd.tba { font-weight: 500; color: var(--slate); }
.summary .row-advance dd { white-space: nowrap; }
.summary .row-advance .amount { font-size: clamp(26px, calc(20px + 1vw), 34px); font-weight: 800; letter-spacing: -.02em; }
.panel .btn { margin-top: 24px; }
.panel .advance-note { margin-top: 12px; }
.next-step { margin-top: 8px; font-size: 14px; color: var(--slate); }
@media (min-width: 960px) {
  .reserve-media { grid-column: 1 / 8; }
  .panel { grid-column: 8 / -1; }
}

/* ── FAQ ────────────────────────────────────────── */
.faq { padding-top: 0; } /* the reservation section above already supplies the gap */
.faq-list { border-bottom: 1px solid var(--rule); }
.faq-list details { border-top: 1px solid var(--rule); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 64px; padding-block: 18px; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 600; line-height: 1.4;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  transition: transform var(--t) var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: #3a3d3e; }
.answer { display: grid; gap: 12px; padding-bottom: 24px; max-width: 62ch; color: var(--slate); }
@media (min-width: 960px) {
  .faq-grid > h2 { grid-column: 1 / 5; }
  .faq-list { grid-column: 5 / -1; }
}

/* ── Closing + footer ───────────────────────────── */
.closing-grid { padding-block: var(--section); border-top: 1px solid var(--rule); align-items: end; }
.closing-grid h2 { font-size: clamp(32px, calc(18px + 2.9vw), 56px); }
.closing-actions { display: grid; gap: 12px; justify-items: start; }
@media (min-width: 960px) {
  .closing-grid h2 { grid-column: 1 / 8; }
  .closing-actions { grid-column: 8 / -1; justify-self: end; }
}
@media (max-width: 599px) { .closing-actions .btn { width: 100%; } }

.site-footer { border-top: 1px solid var(--rule); padding-block: 56px 32px; font-size: 15px; }
.foot-brand { display: grid; gap: 12px; align-content: start; }
.foot-note { color: var(--slate); }
.foot-h { margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.foot-col li { padding-block: 4px; color: var(--slate); } /* plain text until real links exist */
.foot-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--slate); }
@media (min-width: 960px) {
  .foot-brand { grid-column: 1 / 5; }
  .foot-col { grid-column: span 3; }
}

/* ── Sticky mobile reserve bar ──────────────────── */
.bar {
  position: fixed; inset: auto 0 0 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--ivory); border-top: 1px solid var(--rule);
  box-shadow: 0 -8px 24px rgb(23 26 27 / .05);
  transform: translateY(110%); opacity: 0; visibility: hidden;
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease), visibility 0s var(--t);
}
.bar.is-shown { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.bar-amount { font-size: 15px; color: var(--slate); }
@media (max-width: 767px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  html { scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  body:has(:is(input, textarea, select):focus) .bar { display: none; }
}
@media (min-width: 768px) { .bar { display: none; } }


/* ── Author aid: ?slots outlines every unconfirmed content slot ── */
.show-slots [data-slot] { outline: 2px dashed #E5484D; outline-offset: 4px; }
.show-slots [data-slot][hidden] { display: block; }
.show-slots [data-slot]::before { content: "slot: " attr(data-slot); display: block; font: 600 11px/1.4 ui-monospace, monospace; color: #E5484D; }

/* ── 3D story (html.js-3d, set in <head>) ──────────
   One fixed canvas behind the hero and the "closer look" section; scrolling moves the camera between poses
   (app.js). Native scrolling throughout. Without js-3d (no WebGL, reduced motion, Save-Data) the static
   layout above stays, with the stills. */
.stage, .stage-canvas { display: none; }
.js-3d .stage-canvas { display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100lvh; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease); }
.is-3d-live .stage-canvas { opacity: 1; }
.js-3d .stage-canvas.is-off { visibility: hidden; }
.js-3d .hero-media img { transition: opacity .6s var(--ease); }
.is-3d-live .hero-media img { opacity: 0; }
.js-3d .story { padding-block: 0 var(--section); overflow: clip; } /* clip, not hidden: keeps the stage sticky but stops its caption spilling past the story */
.js-3d .story .detail { display: none; }
.js-3d .stage { display: block; position: sticky; top: 0; height: 100lvh; margin-bottom: -100lvh; pointer-events: none; }
.js-3d .shot { position: absolute; inset: calc(var(--header-h) + 2svh) 0 auto; height: 46svh; }
.js-3d .stage-cap { position: absolute; left: var(--gutter); top: calc(var(--header-h) + 49svh); margin: 0; font-size: 13px; font-weight: 500; color: var(--slate); }
.js-3d .goals { margin-top: 0; border: 0; }
.js-3d .story-head, .js-3d .goal { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; min-height: 100svh; padding-block: 0 5svh; border: 0; }
.js-3d .step-in { position: relative; display: grid; gap: 12px; margin-inline: -16px; padding: 20px 16px; border-radius: 16px; background: var(--ivory); }
@media (max-width: 959px) { .js-3d .hero-actions { position: relative; background: var(--ivory); } } /* stacked hero: the model slides up behind the CTA, not through its text. Desktop has them side by side, so no backing (it would cut the model). */
.js-3d .step-in > *, .js-3d .goal .step-in > p { grid-column: 1; } /* drop the static layout's column placement */
@media (max-width: 767px) { .js-3d .story-head, .js-3d .goal { padding-bottom: calc(100px + env(safe-area-inset-bottom)); } } /* clear the sticky bar */
@media (max-width: 959px) { .js-3d .story-head, .js-3d .goal { min-height: 85svh; view-timeline: --step block; } } /* less empty scroll between steps */
.js-3d .story-head .step-in { gap: 20px; }
@media (min-width: 960px) {
  .js-3d .shot { inset: calc(var(--header-h) + 4vh) 0 9vh 38%; height: auto; }
  .js-3d .stage-cap { inset: auto var(--gutter) 4vh auto; }
  .js-3d .story-head, .js-3d .goal { justify-content: center; padding: 0; }
  .js-3d .story-head { justify-content: flex-start; padding-top: clamp(40px, 10vh, 120px); } /* intro starts right under the hero: no blank screen */
  .js-3d .step-in { max-width: min(36%, 460px); margin: 0; padding: 0; background: none; }
}
/* Steps rise in as they scroll into view, where scroll-driven animations are supported. */
@supports (animation-timeline: view()) {
  .js-3d .step-in { animation: step-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
  @keyframes step-rise { from { opacity: 0; transform: translateY(48px); } }
  /* Stacked layout: the card rises in under the glasses, rests there at its pose, then fades before it
     scrolls up into them, so it never slices the model with a hard edge. Timed on the whole step. */
  @media (max-width: 959px) {
    .js-3d .step-in { animation: step-in-out linear both; animation-timeline: --step; animation-range: cover 0% cover 100%; }
    @keyframes step-in-out { 0%, 18% { opacity: 0; transform: translateY(48px); } 32%, 50% { opacity: 1; transform: none; } 58%, 100% { opacity: 0; transform: none; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}
