/*
  Framing.Ink. Four schemes on one warm base, each in light and dark; the visitor picks with the
  style control and the choice is applied before first paint (the inline script in index.html).
  Every text and button pair passes WCAG AA in every scheme and mode.
*/

@font-face { font-family: 'Instrument Sans'; src: url('fonts/instrument-sans-latin-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('fonts/instrument-sans-latin-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('fonts/instrument-sans-latin-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

/* ---------- the base, light and dark ---------- */
:root {
    --bg: #FAF3E9; --bg-2: #F3E8D6; --card: #F3E8D6; --ink: #2C2622; --soft: #6B615A; --line: #E6DBCB;
    --on-btn: #FAF3E9; --shadow: rgba(44, 38, 34, 0.16);
    --sans: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    color-scheme: light;
}
html.dark {
    --bg: #1C1815; --bg-2: #26211D; --card: #302A25; --ink: #FAF3E9; --soft: #B9AEA3; --line: #463D36;
    --shadow: rgba(0, 0, 0, 0.45);
    color-scheme: dark;
}

/* ---------- the schemes: one accent each ---------- */
html[data-scheme="sage"] { --sig: #7C8A6E; --accent: #56634A; --btn: #56634A; --btn-hover: #475240; --band: #475240; --band-2: #3B4535; --logo: #67735C; }
html.dark[data-scheme="sage"] { --accent: #AAB99B; --logo: #9AAA8A; }
html[data-scheme="clay"] { --sig: #D98A4E; --accent: #9C4F1A; --btn: #A8571F; --btn-hover: #8F4818; --band: #8F4818; --band-2: #7A3D14; --logo: #A65C24; }
html.dark[data-scheme="clay"] { --accent: #E3A574; --logo: #D98A4E; }
html[data-scheme="slate"] { --sig: #6A7F96; --accent: #475B70; --btn: #475B70; --btn-hover: #3A4B5D; --band: #3A4B5D; --band-2: #2F3D4C; --logo: #5E7186; }
html.dark[data-scheme="slate"] { --accent: #A3B6CA; --logo: #8DA3BB; }
html[data-scheme="oxblood"] { --sig: #9A4040; --accent: #853434; --btn: #853434; --btn-hover: #6F2B2B; --band: #6F2B2B; --band-2: #5C2323; --logo: #9A4040; }
html.dark[data-scheme="oxblood"] { --accent: #DE9A93; --logo: #C9706A; }
html { --tint: color-mix(in srgb, var(--sig) 18%, var(--bg)); }

/* ---------- page ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--sans); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
html.serif h1, html.serif h2 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.015em; }
p { margin: 0; }
/* every page reaches the screen's edges (viewport-fit=cover): on a phone held sideways the content keeps clear of the
   notch and the rounded corners by the safe-area insets, which are 0 everywhere else */
.wrap { width: min(1180px, 100% - 48px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)); margin: 0 auto; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--btn); color: var(--on-btn); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px;
    border-radius: 12px; border: 2px solid var(--btn); background: var(--btn); color: var(--on-btn);
    font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--btn); }
html.dark .btn-ghost { border-color: var(--accent); }
.btn-ghost:hover { background: var(--tint); border-color: var(--btn); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 15px; border-radius: 10px; }
.btn-light { background: var(--bg); color: var(--btn); border-color: var(--bg); }
.btn-light:hover { background: var(--bg-2); border-color: var(--bg-2); }

/* ---------- the logo: three little frames, then Framing.Ink (motion in site.js) ---------- */
.logo { white-space: nowrap; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); }
.logo-slashes { position: relative; display: inline-block; width: 0.979em; height: 0.72em; vertical-align: baseline; letter-spacing: 0; color: var(--logo); }
.logo-slashes i { position: absolute; bottom: -0.045em; width: 0.14em; height: 0.7991em; border-radius: 0.012em; background: currentColor; transform-origin: 100% 100%; transform: rotate(18deg); }
.logo-slashes i:nth-child(1) { left: 0.0301em; }
.logo-slashes i:nth-child(2) { left: 0.2931em; }
.logo-slashes i:nth-child(3) { left: 0.5561em; }
.logo-word, .logo-tail, .logo-tail-in { display: inline-block; }
.logo-tail { clip-path: inset(-0.6em -1.5em -0.6em 0); }
.logo-dot { color: var(--logo); }

/* ---------- header ----------
   The same links on every page, in the phone menu's order, then the demo's two doors: the shop side quieter, the live
   demo filled, as a pair. From 1080px wide they all fit on one line; below, the menu button takes their place. */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { font-size: 22px; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav a:not(.btn) { text-decoration: none; color: var(--soft); }
.nav a:not(.btn):hover { color: var(--ink); }
.nav .btn + .btn { margin-left: -12px; }
@media (max-width: 1079px) { .nav { display: none; } }
@media (max-width: 720px) { .brand { font-size: 20px; } }

/* ---------- the phone menu (site.js) ----------
   Under 1080px wide the header's links and demo buttons give way to a menu button. Its three bars lean as the
   logo's frames do (the stack skewed at the slashes' 18 degrees) and, while the menu is open, straighten and cross
   into an X. The menu is a sheet over the whole screen, under the header: the pages, then "Book a demo" pinned at its
   foot, clear of the home bar. On a short screen the pages scroll and the button stays. */
.menu-btn { display: none; }
.menu[hidden] { display: none; }
html.menu-open { overflow: hidden; }
@media (max-width: 1079px) {
    .menu-btn { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-right: -12px; padding: 0; border: 0; border-radius: 12px; background: none; color: var(--logo); cursor: pointer; -webkit-tap-highlight-color: transparent; }
}
/* a pointer that hovers gets a tint; a tap needs none, the bars move at once */
@media (max-width: 1079px) and (hover: hover) { .menu-btn:hover { background: var(--tint); } }
.menu-bars { position: relative; display: block; width: 20px; height: 14px; transform: skewX(-18deg); transition: transform 0.24s ease; }
.menu-bars i { position: absolute; left: 0; top: 6px; width: 100%; height: 2px; border-radius: 0.5px; background: currentColor; transition: transform 0.24s ease, opacity 0.16s ease; }
.menu-bars i:nth-child(1) { transform: translateY(-6px) rotate(0deg); }
.menu-bars i:nth-child(3) { transform: translateY(6px) rotate(0deg); }
.menu-btn[aria-expanded="true"] .menu-bars { transform: skewX(0deg); }
.menu-btn[aria-expanded="true"] .menu-bars i:nth-child(1) { transform: translateY(0) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bars i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-bars i:nth-child(3) { transform: translateY(0) rotate(-45deg); }
/* the sheet starts at the top of the screen, so the header (z-index 30, see-through) sits on its color */
.menu { position: fixed; inset: 0; z-index: 29; display: flex; flex-direction: column; padding-top: calc(69px + env(safe-area-inset-top, 0px)); background: var(--bg); animation: menu-in 0.2s ease; }
@keyframes menu-in { from { opacity: 0; } }
@keyframes menu-list-in { from { transform: translateY(-6px); } }
.menu-nav { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.menu-list { padding: 8px 0 24px; list-style: none; animation: menu-list-in 0.24s ease; }
.menu-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); font: 600 24px/1.2 var(--sans); letter-spacing: -0.02em; text-decoration: none; }
html.serif .menu-list a { font-family: var(--serif); font-weight: 560; letter-spacing: -0.015em; }
.menu-list a:active { color: var(--accent); }
.menu-list a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--sig); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.menu-list svg { flex: none; width: 20px; height: 20px; color: var(--soft); }
.menu-cta { flex: none; padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.menu-cta .btn { width: 100%; min-height: 52px; font-size: 17px; }
@media (max-height: 560px) {
    .menu-list { padding: 4px 0 12px; }
    .menu-list a { min-height: 48px; padding: 6px 0; font-size: 21px; }
    .menu-cta { padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
    .menu-cta .btn { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
    .menu, .menu-list { animation: none; }
    .menu-bars, .menu-bars i { transition: none; }
}

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; }
.hero-in { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 104px 0 88px; } .hero-in { grid-template-columns: 1fr 1.05fr; gap: 64px; } }
.hero h1 { font-size: clamp(42px, 6vw, 68px); margin-bottom: 22px; }
.lede { font-size: 19px; color: var(--soft); max-width: 540px; margin-bottom: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
/* the hero's film link, and the shop side's (out to the demo store, with an arrow): lighter than the two buttons, still
   full-size tap targets; under the buttons, side by side where they fit and one under the other where they don't */
.link-play, .link-out { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.link-play svg, .link-out svg { flex: none; width: 16px; height: 16px; fill: currentColor; }
.link-play:hover, .link-out:hover { text-decoration-thickness: 2px; }
.hero-links { display: flex; flex-wrap: wrap; column-gap: 28px; margin-top: 10px; }
.hero-links > a { margin-top: 0; }
.hero-media { position: relative; padding: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; cursor: pointer; box-shadow: 0 30px 60px -28px var(--shadow); }
/* the hero (hero3d.js): the poster at once, the canvas faded in over it when its first frame is drawn, and a
   caption naming the molding and the mat on show; the box stays the poster's cream in either mode */
.hero-media[data-hero3d] { display: block; width: 100%; aspect-ratio: 5 / 4; background: #FBF4EA; }
.hero-poster, .hero-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media canvas { opacity: 0; transition: opacity 0.6s ease; }
.hero-media.live canvas { opacity: 1; }
.hero-caption { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(251, 244, 234, 0.9); box-shadow: 0 0 0 1px rgba(44, 38, 34, 0.08); color: #2C2622; font: 600 13px/1.2 var(--sans); white-space: nowrap; opacity: 0; transition: opacity 0.25s ease; pointer-events: none; }
.hero-caption:empty { display: none; }
.hero-media.live .hero-caption.on { opacity: 1; }
@media (max-width: 420px) { .hero-caption { left: 10px; top: 10px; padding: 5px 10px; font-size: 12px; } }
.badge { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(28, 24, 21, 0.82); color: #FAF3E9; font: 600 14px/1 var(--sans); transition: background-color 0.2s; }
.badge svg { width: 14px; height: 14px; fill: currentColor; }
.hero-media:hover .badge { background: var(--btn); }

/* ---------- the stage: a sticky 3D view the scroll plays through ---------- */
.stage { position: relative; height: 560vh; border-top: 1px solid var(--line); }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#frame3d { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
#frame3d:active { cursor: grabbing; }
.steps { position: absolute; left: max(24px, (100vw - 1180px) / 2); top: 50%; transform: translateY(-50%); width: min(400px, 36vw); margin: 0; padding: 0; list-style: none; pointer-events: none; }
.step { position: absolute; top: 0; left: 0; right: 0; transform: translateY(-50%); opacity: 0; transition: opacity 0.2s ease; }
.step.on { opacity: 1; pointer-events: auto; transition: opacity 0.4s ease 0.18s; }
.step h3 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 14px; }
html.serif .step h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.015em; }
.step p { color: var(--soft); font-size: 17px; }
.step .btn { margin-top: 22px; }
/* see it on your wall: a button beside "Try the live demo" (on a phone too), and a link in step 2 */
.step-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.step .step-actions .btn { margin-top: 0; }
.step .step-actions .btn-ghost { padding: 12px 18px; }
[data-wall][hidden], .wall-inline { display: none; }
.wall-link { margin-top: 12px; padding: 0; border: 0; background: none; color: var(--accent); font: 600 16px/1.4 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wall-link:hover { color: var(--ink); }
.studio { margin-top: 18px; }
.studio-label { margin: 12px 0 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 500 13px/1 var(--sans); cursor: pointer; }
.chip i { width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); flex: none; }
html.dark .chip i { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24); }   /* a black molding's swatch, seen on a dark chip */
.chip:hover { border-color: var(--soft); }
.chip[aria-pressed="true"] { border-color: var(--btn); box-shadow: 0 0 0 1px var(--btn); font-weight: 600; }
/* an ornate molding's finishes: a row of their own (stage.js adds it) once one is picked; a floater hides the mats */
.chips[hidden] { display: none; }
.chips-finish { margin-top: 6px; }
.studio-finish { display: none; }
.view { position: absolute; inset: 0; }
.tags { position: absolute; inset: 0; pointer-events: none; }
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.leaders line { stroke: var(--soft); stroke-width: 1; opacity: 0; }
.tag { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); font: 500 14px/1.2 var(--sans); white-space: nowrap; opacity: 0; transition: opacity 0.3s; box-shadow: 0 6px 16px -10px var(--shadow); }
.tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--sig); flex: none; }
.tag em { font-style: normal; color: var(--soft); }
.tag.dim { padding: 2px 8px; border: 0; box-shadow: none; background: color-mix(in srgb, var(--bg) 85%, transparent); color: var(--accent); font: 600 14px/1.2 ui-monospace, 'SF Mono', Menlo, monospace; }
.tag.dim::before { display: none; }
/* step 3: a material's cost on its label (stage.js), the way the app prices it */
.tag b { margin-left: 2px; padding-left: 8px; border-left: 1px solid var(--line); color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
/* step 3's ledger: what the frame on show costs, the markup on it, the labor and the retail price */
.cost { margin-top: 18px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); }
.cost dl { display: grid; gap: 4px; margin: 0; }
.cost dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; }
.cost dt { color: var(--soft); }
.cost dd { margin: 0; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cost .cost-sum { margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--line); }
.cost .cost-sum dt { color: var(--ink); font-weight: 600; }
.cost .cost-sum dd { color: var(--accent); font-size: 18px; font-weight: 650; }
.step .cost-note { margin-top: 10px; font-size: 13px; line-height: 1.45; }
.drag { position: absolute; left: 50%; transform: translateX(-50%); bottom: 28px; display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 10px 18px; border-radius: 999px; background: var(--btn); color: var(--on-btn); font: 600 15px/1 var(--sans); box-shadow: 0 10px 24px -12px var(--shadow); opacity: 0; transition: opacity 0.5s; pointer-events: none; }
.drag svg { width: 20px; height: 20px; }
.drag.on { opacity: 1; animation: nudge 2.4s ease-in-out 0.6s 2; }
@keyframes nudge { 0%, 100% { transform: translateX(-50%); } 25% { transform: translateX(calc(-50% - 6px)); } 75% { transform: translateX(calc(-50% + 6px)); } }
@media (prefers-reduced-motion: reduce) { .drag.on { animation: none; } }
.stage-tabs { position: absolute; top: 88px; left: max(24px, (100vw - 1180px) / 2); display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 88%, transparent); border: 1px solid var(--line); }
.stage-tabs button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 14px 0 6px; border: 0; border-radius: 999px; background: none; color: var(--soft); font: 500 14px/1 var(--sans); cursor: pointer; }
.stage-tabs b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); font-weight: 600; font-size: 13px; color: var(--ink); }
.stage-tabs button[aria-current="step"] { background: var(--tint); color: var(--ink); font-weight: 600; }
.stage-tabs button[aria-current="step"] b { background: var(--btn); border-color: var(--btn); color: var(--on-btn); }
html.nogl .stage-tabs, html.still-stage .stage-tabs { display: none; }
.still { display: none; }
/* on a desktop a tall step (the studio, with its rows of chips) starts below the step tabs instead of running into them,
   and on a shorter screen the studio drops its paragraph */
@media (min-width: 901px) and (min-height: 501px) {
    .step { transform: translateY(max(-50%, calc(140px - 50svh))); }
}
@media (min-width: 901px) and (min-height: 501px) and (max-height: 860px) {
    .step-studio > p, .step-cost > .cost-intro { display: none; }
}
/* ---------- the stage on a phone, or on any short screen: the canvas gets a band of its own ----------
   Nothing sits on the frame. Held upright: the step tabs, then the canvas, then the step with its controls, clear of
   Safari's toolbar (the sticky box is 100svh) and the home bar; the four steps share one cell, so the canvas keeps its
   size from step to step. Held sideways, or under 500px tall: the tabs and the step on the left, the canvas on the
   right. The drag hint is a small pill on the canvas's bottom edge, kept off the drawing, gone at a first touch. */
@media (max-width: 900px), (max-height: 500px) {
    html:not(.nogl):not(.still-stage) .sticky { display: grid; padding-top: 68px; }
    html:not(.nogl):not(.still-stage) .view { position: relative; inset: auto; grid-area: view; min-width: 0; min-height: 0; }
    html:not(.nogl):not(.still-stage) .stage-tabs { grid-area: tabs; position: static; transform: none; justify-self: center; margin: 8px 16px 0; }
    html:not(.nogl):not(.still-stage) .steps { grid-area: steps; position: relative; left: auto; top: auto; transform: none; width: auto; min-height: 0; margin: 0 16px; padding: 10px 0 calc(14px + env(safe-area-inset-bottom, 0px)); display: grid; }
    html:not(.nogl):not(.still-stage) .step { grid-area: 1 / 1; position: relative; top: auto; transform: none; }
    html:not(.nogl):not(.still-stage) .step .eyebrow, html:not(.nogl):not(.still-stage) .step-studio > p, html:not(.nogl):not(.still-stage) .step-cost > .cost-intro { display: none; }
    /* step 3's ledger in two columns, a label over each figure, so the band keeps the frame's size */
    .cost { margin-top: 8px; padding: 8px 12px; border-radius: 12px; }
    .cost dl { grid-template-columns: 1fr 1fr; gap: 4px 16px; }
    .cost dl div { flex-direction: column; align-items: flex-start; gap: 0; font-size: 15px; line-height: 1.25; }
    .cost dt { font-size: 11px; letter-spacing: 0.02em; }
    .cost .cost-sum { margin: 0; padding: 0; border: 0; }
    .cost .cost-sum dd { font-size: 16px; }
    .step .cost-note { margin-top: 6px; font-size: 11px; line-height: 1.35; }
    .step h3 { font-size: 22px; margin-bottom: 6px; }
    .step p { font-size: 15px; }
    .step .eyebrow { margin-bottom: 8px; font-size: 12px; }
    .step .btn { margin-top: 12px; min-height: 40px; }
    .step-actions { margin-top: 12px; gap: 8px; }
    .step .step-actions .btn, .step .step-actions .btn-ghost { padding: 8px 14px; font-size: 14px; gap: 7px; }
    .wall-link { margin-top: 8px; font-size: 15px; }
    .studio { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 10px; align-items: center; margin-top: 10px; }
    .studio-label { margin: 0; font-size: 11px; line-height: 1.25; }
    .studio-finish:not([hidden]) { display: block; }
    .studio .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 0 0; padding: 2px 16px 2px 2px; scrollbar-width: none; }
    .studio .chips::-webkit-scrollbar { display: none; }
    .studio .chip { flex: none; }
    .chips-finish { margin-top: 0; }
    .chip { min-height: 30px; padding: 4px 10px; font-size: 12px; }
    .wide-only { display: none; }
    .tag { gap: 6px; padding: 4px 9px; font-size: 12px; }
    .tag em { display: none; }
    .tag.dim { font-size: 12px; }
    .drag { bottom: 10px; gap: 6px; padding: 6px 12px; font-size: 13px; white-space: nowrap; }
    .drag svg { width: 16px; height: 16px; }
    .stage[data-step="1"] .drag { opacity: 0; }
    .stage-tabs { gap: 2px; }
    .stage-tabs button { padding: 0 10px 0 4px; font-size: 13px; gap: 5px; }
    .stage-tabs button:not([aria-current="step"]) { font-size: 0; gap: 0; padding: 0 3px; }
    .stage-tabs b { width: 22px; height: 22px; }
}
@media (max-width: 900px) and (min-height: 501px) {
    html:not(.nogl):not(.still-stage) .sticky { grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "tabs" "view" "steps"; }
}
@media (max-width: 900px) and (min-height: 501px) and (max-height: 600px) {   /* a short phone (an iPhone SE in Safari): more canvas */
    html:not(.nogl):not(.still-stage) .step-studio h3, html:not(.nogl):not(.still-stage) .drag { display: none; }
}
@media (max-width: 389px), (max-height: 500px) {   /* both buttons on one line: no icon, less padding */
    .step-actions .btn-ghost svg { display: none; }
    .step .step-actions .btn, .step .step-actions .btn-ghost { padding: 8px 12px; }
}
@media (max-height: 500px) {
    html:not(.nogl):not(.still-stage) .sticky { grid-template-columns: min(46vw, 400px) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "tabs view" "steps view"; }
    html:not(.nogl):not(.still-stage) .steps { overflow-y: auto; align-content: start; padding: 6px 0 10px; scrollbar-width: none; }
    .step h3 { font-size: 19px; margin-bottom: 4px; }
    .step p { font-size: 14px; }
    .studio { gap: 4px 10px; margin-top: 6px; }
    .chip { min-height: 28px; }
    .step-actions { margin-top: 8px; }
    .step .step-actions .btn, .step .step-actions .btn-ghost { min-height: 36px; font-size: 13px; }
}
/* without WebGL, or asked for less motion: the steps stack under a still of the built frame */
html.nogl .stage, html.still-stage .stage { height: auto; }
html.nogl .view, html.still-stage .view { position: relative; inset: auto; }
html.nogl .sticky, html.still-stage .sticky { position: static; height: auto; overflow: visible; padding: 56px 0; }
html.nogl #frame3d, html.nogl .tags, html.nogl .drag { display: none; }
html.nogl .still { display: block; width: min(1180px, 100% - 48px); height: auto; margin: 0 auto 40px; border-radius: 18px; }
html.nogl .steps, html.still-stage .steps { position: static; transform: none; width: min(1180px, 100% - 48px); margin: 0 auto; display: grid; gap: 28px; pointer-events: auto; }
@media (min-width: 900px) { html.nogl .steps, html.still-stage .steps { grid-template-columns: repeat(4, 1fr); } }
html.nogl .step, html.still-stage .step { position: static; transform: none; opacity: 1; background: none; border: 0; padding: 0; }
html.still-stage #frame3d { position: relative; height: 70vh; min-height: 420px; }

/* ---------- how it works ---------- */
.how { padding: 96px 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.how h2 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 44px; max-width: 720px; }
.how-steps { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .how-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .how-steps { grid-template-columns: repeat(3, 1fr); } }
.how-steps li { padding: 26px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.how-steps .n { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px; border-radius: 50%; background: var(--btn); color: var(--on-btn); font-weight: 600; font-size: 15px; }
.how-steps h3 { font-size: 20px; margin-bottom: 8px; }
.how-steps p { color: var(--soft); font-size: 16px; }

/* ---------- the film ---------- */
.film { padding: 96px 0; }
.film-in { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .film-in { grid-template-columns: 0.8fr 1.2fr; gap: 64px; } }
.film h2 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 14px; }
.film p { color: var(--soft); }
.film-poster { position: relative; padding: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; cursor: pointer; background: #000; }
.film-poster img { width: 100%; height: auto; }
.play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--btn); color: var(--on-btn); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.5); transition: transform 0.2s; }
.play svg { width: 28px; height: 28px; fill: currentColor; margin-left: 4px; }
.film-poster:hover .play { transform: scale(1.06); }
/* on a phone the poster itself is the button, with no disc over it: one tap plays the film, and nothing covers it */
@media (hover: none) and (pointer: coarse) { .film-poster .play { display: none; } }

/* ---------- closing band ---------- */
.cta { padding: 88px 0; background: linear-gradient(90deg, var(--band), var(--band-2)); color: #FAF3E9; text-align: center; }
.cta h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 14px; }
.cta p { color: #F3E8D6; margin-bottom: 30px; font-size: 18px; }

/* ---------- footer ---------- */
.foot { padding: 40px 0 calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.foot .logo { font-size: 18px; }
.foot p { color: var(--soft); font-size: 15px; }

/* ---------- the film dialog ---------- */
#film-dialog { width: min(92vw, 1280px); max-width: none; padding: 0; border: 0; background: transparent; overflow: visible; }
/* no backdrop blur: on iPhone Safari a blurred backdrop over a playing video in the top layer can leave the video black */
#film-dialog::backdrop { background: rgba(20, 17, 15, 0.9); }
.film-box { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: visible; background: #000; }
.film-box video { width: 100%; height: 100%; border-radius: 14px; }
/* the vertical cut, on a phone held upright: as wide as the screen allows below the close button */
#film-dialog.vertical { width: min(92vw, calc((100vh - 110px) * 9 / 16)); width: min(92vw, calc((100dvh - 110px) * 9 / 16)); }
#film-dialog.vertical .film-box { aspect-ratio: 9 / 16; }
/* the dialog is for computers only (phones go to /film), so above the film there is always room: a 44px target clear
   of the player's own controls, inside the viewport */
.film-close { position: absolute; right: 0; top: -54px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer; display: grid; place-items: center; }
.film-close:hover { background: rgba(255, 255, 255, 0.24); }
.film-close svg { width: 22px; height: 22px; }
@media (max-width: 420px) {
    .stage-tabs button:not([aria-current="step"]) { font-size: 0; gap: 0; padding: 0 3px; }
}

/* ---------- see it on your wall: the section after the stage ----------
   ar.js fills it as it nears: a QR code on a computer, a button that opens the camera on a phone. Nothing here
   depends on ar.css, which comes only with the dialog. */
.wall-sec { padding: 96px 0; border-top: 1px solid var(--line); }
.wall-sec-in { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) {
    .wall-sec-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "head pic" "act pic"; column-gap: 64px; row-gap: 30px; }
    .wall-sec-head { grid-area: head; align-self: end; }
    .wall-sec-pic { grid-area: pic; }
    .wall-sec-act { grid-area: act; align-self: start; }
}
.wall-sec h2 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 14px; }
.wall-sec-lede { color: var(--soft); font-size: 18px; max-width: 520px; }
.wall-sec-pic { margin: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--bg-2); }
.wall-sec-pic img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.wall-sec-qr { display: flex; gap: 22px; align-items: center; }
.wall-sec-qr[hidden], .wall-sec-go[hidden] { display: none; }
.wall-sec-code { flex: none; width: 188px; height: 188px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.wall-sec-code svg { display: block; width: 100%; height: 100%; }
.wall-sec-qr p { max-width: 300px; color: var(--soft); font-size: 16px; }
.wall-sec-go { width: 100%; min-height: 56px; font-size: 17px; }
.wall-sec-go svg { width: 22px; height: 22px; }
.wall-sec-go[aria-busy="true"] { opacity: 0.75; }
.wall-sec-how { margin-top: 14px; color: var(--soft); font-size: 14px; }
html.nogl .wall-sec { display: none; }
@media (max-width: 899px) { .wall-sec { padding: 64px 0; } .wall-sec-lede { font-size: 17px; } }
@media (max-width: 520px) { .wall-sec-qr { flex-direction: column; align-items: flex-start; } }

/* ---------- the dock: this page's sections at the foot of the screen (dock.js) ----------
   A bar in the header's colors: a ring with how far down the page the reader is, the section they're in (its number
   of all, its name) on a button that opens the numbered list above it, and "Book a demo". It slides up 200px down the
   page, clear of the home bar, and gives way to the menu and to any dialog (the film, the demo form, the wall view);
   dock.js hides it while the 3D stage, the demo page's form or a film playing in place reaches into its band. */
.dock { position: fixed; z-index: 25; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: min(440px, 100% - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)); margin: 0 auto; opacity: 0; visibility: hidden; transform: translateY(calc(100% + 18px + env(safe-area-inset-bottom, 0px))); transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s; }
.dock.on { opacity: 1; visibility: visible; transform: none; transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s; }
html.menu-open .dock, html:has(dialog[open]) .dock { opacity: 0; visibility: hidden; transition: none; }
.dock-bar { display: flex; align-items: center; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 16px 36px -16px var(--shadow), 0 2px 8px -4px var(--shadow); }
.dock-toggle { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; min-height: 44px; padding: 0 10px 0 2px; border: 0; border-radius: 12px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dock-ring { position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px; }
.dock-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.dock-ring circle { fill: none; stroke-width: 3; }
.dock-track { stroke: var(--line); }
.dock-done { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 0.15s linear; }
.dock-ring b { position: relative; font: 600 11px/1 var(--sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.dock-now { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.dock-idx { color: var(--soft); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.dock-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; }
.dock-chev { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s ease; }
.dock.open .dock-chev { transform: rotate(180deg); }
.dock .dock-cta { flex: none; min-height: 44px; padding: 0 16px; font-size: 15px; }
/* the list opens above the bar, as wide; on a short screen it scrolls, clear of the header */
.dock-list { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); max-height: calc(100vh - 170px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); max-height: calc(100svh - 170px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; padding: 6px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); box-shadow: 0 20px 44px -18px var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: transform 0.2s ease, opacity 0.2s ease, visibility 0s linear 0.2s; }
.dock.open .dock-list { opacity: 1; visibility: visible; transform: none; transition: transform 0.2s ease, opacity 0.2s ease, visibility 0s; }
.dock-list ol { margin: 0; padding: 0; list-style: none; }
.dock-list li[hidden] { display: none; }
.dock-list a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 10px; border-radius: 12px; color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.25; text-decoration: none; }
.dock-list a:focus-visible { outline-offset: -2px; }
.dock-list i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--accent); font: normal 600 13px/1 var(--sans); font-variant-numeric: tabular-nums; }
.dock-list a[aria-current] { background: var(--tint); font-weight: 600; }
.dock-list a[aria-current] i { background: var(--btn); color: var(--on-btn); }
@media (hover: hover) {
    .dock-toggle:hover { background: var(--tint); }
    .dock-list a:hover { background: var(--bg-2); }
    .dock-list a[aria-current]:hover { background: var(--tint); }
}
/* a jump from the dock lands below the header; the 3D stage lands at its own top, where it pins */
[data-dock] { scroll-margin-top: calc(69px + env(safe-area-inset-top, 0px)); }
.stage[data-dock] { scroll-margin-top: 0; }
/* the page's end clears the dock */
html.has-dock .foot { padding-bottom: calc(124px + env(safe-area-inset-bottom, 0px)); }
@media (prefers-reduced-motion: reduce) {
    .dock, .dock.on, .dock-list, .dock.open .dock-list { transform: none; transition: none; }
    .dock-done, .dock-chev { transition: none; }
}
@media print { .dock { display: none; } }
