/* Morrow One — High tier example. System fonts only, all motion respects prefers-reduced-motion. */
:root {
  --bg: #0d0d0f;
  --bg-2: #141417;
  --text: #f1eee8;
  --muted: #b3aea6;          /* on --bg: 8.6:1 */
  --dim: #8d8982;            /* on --bg: 5.6:1 */
  --copper: #d08a52;
  --copper-hi: #e3a06a;
  --line: rgba(241, 238, 232, .12);
  --finish: #c4c8cd;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; overflow-x: hidden;
  background:
    radial-gradient(1200px 800px at 70% 40%, rgba(208, 138, 82, .13), transparent 60%),
    radial-gradient(900px 700px at 20% 90%, rgba(80, 90, 120, .14), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2 { font-family: var(--display); font-weight: 650; letter-spacing: -0.035em; line-height: 1; margin: 0 0 .35em; }
h1 { font-size: clamp(3.6rem, 10vw, 9.5rem); letter-spacing: -0.05em; }
h2 { font-size: clamp(2.3rem, 4.8vw, 4.4rem); }
p { margin: 0 0 1em; }
a { color: var(--copper-hi); }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--copper-hi); outline-offset: 4px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--copper); color: #160d06; padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }

/* Grain overlay (inline SVG, no request) */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}

/* Stage. By default (no JavaScript, no WebGL, or before the first 3D frame) it is the hero's backdrop: the
   poster, scrolling away with the hero, so every chapter below shows its own still (see "Chapter stills").
   Once the live model has drawn its first frame, the stage becomes a fixed, opaque layer between the
   chapter stills and the copy: the 3D covers the stills and the copy reads on top of it. */
.stage { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 1; }
.stage-ready .stage { position: fixed;
  background: radial-gradient(1200px 800px at 70% 40%, rgba(208, 138, 82, .13), transparent 60%), radial-gradient(900px 700px at 20% 90%, rgba(80, 90, 120, .14), transparent 60%), var(--bg); }
#stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; outline: none; opacity: 0; transition: opacity .8s ease; }
.stage-ready #stage { opacity: 1; }
.grabbing #stage { cursor: grabbing; }
.poster { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease .15s; }
.stage-ready .poster { opacity: 0; }
.no-webgl #stage { display: none; }
.stage-touch, .buybar, .sw-dot { display: none; }
.sw-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 70; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--copper), #f3c79d); transform-origin: 0 50%; transform: scaleX(0); }
.reduced .progress { display: none; }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 28px; padding: 18px clamp(20px, 3vw, 40px); background: linear-gradient(180deg, rgba(13,13,15,.85), rgba(13,13,15,0)); }
.logo { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 650; letter-spacing: .3em; text-transform: uppercase; font-size: .95rem; }
.logo svg { width: 28px; height: 28px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(13,13,15,.55); box-shadow: inset 0 0 0 1px rgba(241,238,232,.08); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
/* the links sit over a bright, moving steel render: a frosted pill keeps them readable */
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: color .2s; }
.nav a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: .85em 1.6em; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn-copper { background: var(--copper); color: #1a0f07; }
.btn-copper:hover { background: var(--copper-hi); }
.btn-ghost { color: var(--text); border-color: rgba(241,238,232,.3); background: rgba(13,13,15,.35); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { min-height: 40px; padding: .5em 1.15em; font-size: .9rem; }
.reduced .btn:hover { transform: none; }

/* Story */
main { position: relative; z-index: 2; pointer-events: none; overflow-x: clip; }
/* Home: main is not a stacking context, so the stage (z 1) can sit between the chapter stills and the copy (z 2) */
.story-main { z-index: auto; }
main a, main button, main .panel, .specs { pointer-events: auto; }
.scene { position: relative; min-height: 140vh; display: flex; align-items: center; padding: 120px clamp(20px, 5vw, 80px); }
.hero { min-height: 100vh; min-height: 100svh; }
.panel { position: relative; z-index: 2; max-width: 500px; text-shadow: 0 2px 28px rgba(13, 13, 15, .65); }
.panel-right { margin-left: auto; }
.eyebrow { font-family: var(--mono); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--copper-hi); margin-bottom: 1.4em; display: flex; gap: 14px; align-items: center; }
.eyebrow span { color: var(--dim); }
.eyebrow::after { content: ""; flex: 0 0 48px; height: 1px; background: currentColor; opacity: .5; }
.panel > p:not(.eyebrow):not(.counter):not(.price):not(.finish-name) { color: var(--muted); font-size: 1.08rem; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem) !important; color: var(--text) !important; max-width: 26em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 26px; }
.meta { font-size: .88rem !important; color: var(--dim) !important; }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 28px; transform: translateX(-50%); margin: 0; font-family: var(--mono); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--dim); padding-bottom: 46px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 36px; background: linear-gradient(var(--copper), transparent); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.reduced .scroll-cue::after { animation: none; }

.stats { display: flex; flex-wrap: wrap; gap: 28px 40px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-family: var(--display); font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.stats span { font-size: .85rem; color: var(--dim); }
.counter { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 6px 0 22px; font-family: var(--display); }
.counter span { font-size: clamp(4rem, 9vw, 7.5rem); font-weight: 600; letter-spacing: -0.05em; line-height: .9; color: var(--copper-hi); font-variant-numeric: tabular-nums; min-width: 2.2ch; }
.counter small { font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.drift { position: absolute; z-index: 2; left: 0; top: 58%; margin: 0; white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: clamp(4rem, 13vw, 12rem); letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px rgba(241, 238, 232, .2); pointer-events: none; }

/* Chapter stills (wide screens). Studio renders of each chapter's view, set opposite the copy. They are
   what a visitor sees without JavaScript or WebGL and while the 3D loads; the live stage covers them. */
@media (min-width: 861px), (orientation: landscape) {
  /* chapter copy holds in place (sticky) while the camera moves, then hands over to the next chapter */
  .scene:not(.hero) { align-items: flex-start; }
  .scene:not(.hero) .panel { position: sticky; top: max(104px, calc(50vh - 290px)); }
  .scene:not(.hero)::before { content: ""; position: absolute; top: 5%; height: 52%; width: 56%; pointer-events: none;
    background: no-repeat center / contain; }
  .scene:has(.panel-left)::before { right: 1%; }
  .scene:has(.panel-right)::before { left: 1%; }
  #design::before { background-image: url("assets/shot-side.webp"); }
  #pressure::before { background-image: url("assets/shot-gauge.webp"); right: 0; width: 58%; background-position: right center; background-size: cover;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 88%, transparent), linear-gradient(transparent, #000 12%, #000 80%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 22%, #000 88%, transparent), linear-gradient(transparent, #000 12%, #000 80%, transparent); mask-composite: intersect; }
  #boilers::before { background-image: url("assets/shot-xray.webp"); }
  #pour::before { background-image: url("assets/shot-pour.webp"); }
  #steam::before { background-image: url("assets/shot-steam.webp"); left: 0; width: 56%; background-position: left center; background-size: cover;
    -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent), linear-gradient(transparent, #000 12%, #000 80%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, #000 70%, transparent), linear-gradient(transparent, #000 12%, #000 80%, transparent); mask-composite: intersect; }
  #finishes::before { background-image: url("assets/shot-steel.webp"); }
  #reserve::before { background-image: url("assets/shot-front.webp"); width: 50%; }
}

/* a focused control is never invisible, whatever state a reveal or exit fade is in */
.story-main .panel:focus-within, .story-main .panel:focus-within > *, .explore li:focus-within { opacity: 1 !important; }

/* Chapter instruments: thin copper line drawings that plot what the chapter claims */
.instrument { margin: 4px 0 24px; max-width: 440px; }
.instrument svg { display: block; width: 100%; height: auto; overflow: visible; }
.instrument figcaption { margin-top: 10px; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.ins-grid { fill: none; stroke: rgba(241, 238, 232, .16); stroke-width: 1; stroke-dasharray: 3 5; }
.ins-line { fill: none; stroke: var(--copper-hi); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ins-thick { stroke-width: 6; }
.ins-soft { stroke: rgba(227, 160, 106, .45); stroke-width: 6; }
.ins-band { fill: rgba(227, 160, 106, .14); }
.ins-text { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; fill: var(--muted); text-transform: uppercase; }

/* Finishes */
.swatches { display: flex; gap: 14px; margin: 26px 0 14px; }
.swatches button { width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), rgba(255,255,255,0) 45%), var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 0 0 2px var(--bg); position: relative; transition: transform .25s var(--ease); }
.swatches button[aria-checked="true"] { box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 0 0 3px var(--bg), 0 0 0 5px var(--copper-hi); }
.swatches button:hover { transform: scale(1.06); }
.finish-name { font-family: var(--mono); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.finish-name span { color: var(--text); }
.rotate { display: flex; gap: 10px; margin-top: 20px; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(241,238,232,.28); background: rgba(13,13,15,.4); cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px); }
.icon-btn:hover { border-color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }

/* Hotspots */
.hotspots { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.hotspot { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; transition: opacity .4s var(--ease); }
.hotspot.on { opacity: 1; }
.hotspot.on button { pointer-events: auto; }
.hotspot button { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(13,13,15,.55); box-shadow: inset 0 0 0 1.5px var(--copper-hi); backdrop-filter: blur(4px); pointer-events: none; }
.hotspot button::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--copper-hi); }
.hotspot button::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--copper-hi); opacity: .6; animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(.7); opacity: .8; } to { transform: scale(1.5); opacity: 0; } }
.reduced .hotspot button::after { animation: none; }
.tip { position: absolute; left: var(--tip-dx, 24px); top: -14px; width: 230px; margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(20,20,23,.92); border: 1px solid var(--line); font-size: .85rem; line-height: 1.45; color: var(--muted); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none; }
.tip strong { color: var(--text); display: block; }
.hotspot button[aria-expanded="true"] + .tip, .hotspot.on button:hover + .tip, .hotspot.on button:focus-visible + .tip { opacity: 1; transform: none; }

/* Story dots */
.dots { position: fixed; right: clamp(14px, 2vw, 28px); top: 50%; transform: translateY(-50%); z-index: 40; }
.dots ol { display: flex; flex-direction: column; gap: 4px; }
.dots a { display: grid; place-items: center; width: 24px; height: 24px; }
.dots a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(241,238,232,.32); transition: all .3s var(--ease); }
.dots a.active::before { background: var(--copper-hi); height: 20px; border-radius: 3px; }

/* Specs (opaque, covers the stage): the machine as an annotated plate beside the spec sheet */
.specs { position: relative; z-index: 3; background: #f1eee8; color: #17171a; padding: clamp(80px, 10vw, 140px) 0; border-radius: 28px 28px 0 0; }
.specs .eyebrow { color: #8a4a1c; }
.specs .eyebrow span { color: #6c6862; }
.specs h2 { max-width: 11em; margin: 0; }
.specs-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.specs-intro { margin: 0; max-width: 30em; color: #4f4b45; font-size: 1.06rem; }
.anatomy { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; margin-top: 64px; }
.anatomy-plate { position: relative; margin: 0; border-radius: 24px; background: radial-gradient(70% 60% at 50% 55%, #fbf9f5, #e7e1d6 100%); }
.anatomy-plate img { width: 100%; }
.anatomy-pins li { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.anatomy-pins span { position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #17171a; color: #f1eee8; font-family: var(--mono); font-size: .78rem; font-weight: 600; box-shadow: 0 0 0 4px rgba(241, 238, 232, .85), 0 6px 18px rgba(0, 0, 0, .25); transition: background-color .25s var(--ease), box-shadow .25s var(--ease); }
.anatomy-pins li.hot span { background: #8a4a1c; box-shadow: 0 0 0 4px rgba(241, 238, 232, .85), 0 0 0 10px rgba(138, 74, 28, .22), 0 6px 18px rgba(0, 0, 0, .25); }
.specs-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid #17171a; }
.spec { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 16px; align-items: center; padding: 15px 0; border-bottom: 1px solid #d6d1c8; transition: background-color .25s var(--ease); }
.spec dt { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #5c5852; }
.spec dd { font-family: var(--display); font-size: 1.16rem; font-weight: 550; letter-spacing: -0.01em; line-height: 1.3; }
.pin-no { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #17171a; color: #f1eee8; font-size: .66rem; letter-spacing: 0; }
.pin-none { background: none; box-shadow: inset 0 0 0 1px #c9c3b8; }
.spec.hot dd { color: #8a4a1c; }
.feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 88px; }
.feature-strip li { display: flex; flex-direction: column; gap: 8px; padding-top: 22px; border-top: 1px solid #17171a; }
.feature-k { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #8a4a1c; }
.feature-strip strong { font-family: var(--display); font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.feature-strip span:last-child { color: #4f4b45; font-size: 1rem; }

.reserve { min-height: 110vh; }
.price { font-family: var(--display); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: -0.04em; color: var(--copper-hi); display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; line-height: 1; margin: 10px 0 22px; }
.price small { font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }


/* Header + dots over the light Specs section */
.site-header, .site-header .logo, .nav a { transition: background-color .4s, color .4s; }
.on-sheet .site-header { background: rgba(241, 238, 232, .92); backdrop-filter: blur(10px); }
.on-sheet .logo, .on-sheet .nav a { color: #2b2925; }
.on-sheet .nav ul { background: transparent; box-shadow: none; }
[data-section="specs"] .dots a::before { background: rgba(23, 23, 26, .3); }
[data-section="specs"] .dots a.active::before { background: #8a4a1c; }

/* Responsive */
@media (max-width: 1100px) {
  .anatomy { grid-template-columns: 1fr; gap: 36px; }
  .specs-head { grid-template-columns: 1fr; }
}

/* ---------- Phones: a designed vertical story, not the desktop squeezed ----------
   The machine sits in a fixed stage across the top of the screen (above the copy in the stacking order),
   chapters scroll through the reading zone below it and slide under its faded edge, so copy never covers
   the model. A sticky Reserve bar takes the thumb zone once the hero CTA has scrolled away. */
@media (max-width: 860px) and (orientation: portrait) {
  :root { --stage-h: 52svh; }
  body { background: var(--bg); }
  body::after { display: none; } /* no full-screen grain blend over a live canvas on phones */
  .site-header { gap: 12px; padding: calc(8px + env(safe-area-inset-top)) 16px 8px; background: linear-gradient(180deg, rgba(13,13,15,.78), rgba(13,13,15,0)); }
  .site-header .btn-sm { min-height: 44px; padding: .5em 1.3em; margin-left: auto; transition: opacity .25s, visibility .25s, transform .25s var(--ease); }
  .bar-on .site-header .btn { opacity: 0; visibility: hidden; transform: translateY(-6px); }
  .nav, .dots, .scroll-cue, .drift { display: none; }
  .progress { z-index: 70; }

  .stage, .stage-ready .stage { position: fixed; height: var(--stage-h); z-index: 3; background: radial-gradient(110% 80% at 50% 48%, #24211e 0%, #141416 58%, var(--bg) 100%); -webkit-mask-image: linear-gradient(#000 calc(100% - 30px), transparent); mask-image: linear-gradient(#000 calc(100% - 30px), transparent); }
  .poster { object-position: 50% 50%; }
  .no-webgl .poster { opacity: 1; }
  .hotspots { z-index: 4; }
  [data-section="specs"] .hotspot, [data-section="reserve"] .hotspot { opacity: 0; }

  main { z-index: auto; }
  /* chapters follow one another closely in the reading zone under the stage (no empty beats); the camera
     moves as each chapter's heading rises into view, and anchor jumps land with the copy just under the stage */
  .scene { display: block; min-height: 0; padding: 88px 20px 0; scroll-margin-top: calc(var(--stage-h) - 72px); }
  .instrument { margin: 0 0 18px; }
  .ins-text { font-size: 15px; }
  .scene .panel, .scene .panel-right { margin: 0; max-width: 560px; padding: 0; background: none; border: 0; text-shadow: none; }
  .hero { min-height: 100svh; display: flex; align-items: flex-end; padding: 0 20px calc(22px + env(safe-area-inset-bottom)); }
  .hero .panel { padding-top: 12px; }
  .reserve { min-height: 0; padding-bottom: calc(44px + env(safe-area-inset-bottom)); }
  .specs { z-index: 5; padding: 76px 0 84px; border-radius: 24px 24px 0 0; margin-top: 16svh; }
  .site-footer { z-index: 5; padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
  .wrap { width: calc(100% - 40px); }

  h1 { font-size: clamp(3.1rem, 15.5vw, 4.4rem); }
  h2 { font-size: clamp(2.05rem, 9.2vw, 2.7rem); }
  .lead { font-size: 1.06rem !important; }
  .panel > p:not(.eyebrow):not(.counter):not(.price):not(.finish-name) { font-size: 1rem; line-height: 1.55; }
  .eyebrow { font-size: .72rem; margin-bottom: 1.1em; }
  .actions { margin: 22px 0 16px; gap: 10px; }
  .actions .btn { flex: 1 1 100%; }
  .reserve .actions .btn { flex: 1 1 0; padding-inline: .9em; font-size: .95rem; }
  .meta { margin: 0; }
  .counter { margin: 0 0 12px; }
  .counter span { font-size: 3.7rem; }
  .stats { gap: 10px 28px; margin-top: 18px; padding-top: 16px; }
  .stats strong { font-size: 1.45rem; }

  /* Finishes: thumb-sized, labelled chips in a swipeable strip */
  .swatches { gap: 10px; margin: 18px -20px 4px; padding: 4px 20px 8px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 20px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .swatches::-webkit-scrollbar { display: none; }
  .swatches button { flex: none; display: inline-flex; align-items: center; gap: 10px; width: auto; height: auto; min-height: 58px; padding: 8px 18px 8px 8px; border-radius: 999px; background: rgba(241,238,232,.06); box-shadow: inset 0 0 0 1px rgba(241,238,232,.16); color: var(--text); font-size: .95rem; font-weight: 600; scroll-snap-align: start; -webkit-tap-highlight-color: transparent; }
  .swatches button[aria-checked="true"] { background: rgba(208,138,82,.14); box-shadow: inset 0 0 0 1.5px var(--copper-hi); }
  .swatches button:hover { transform: none; }
  .sw-dot { display: block; width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), rgba(255,255,255,0) 45%), var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
  .sw-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .finish-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .rotate { margin-top: 12px; }
  .icon-btn { width: 48px; height: 48px; }

  /* Tap-to-turn: rotation is off until the machine (or this chip) is tapped, so swipes always scroll */
  .touch[data-section="finishes"] .stage-touch { display: inline-flex; }
  .stage-touch { position: fixed; z-index: 4; left: 50%; top: calc(var(--stage-h) - 66px); transform: translateX(-50%); align-items: center; gap: 8px; min-height: 44px; padding: 0 18px 0 14px; border-radius: 999px; border: 1px solid rgba(241,238,232,.28); background: rgba(13,13,15,.66); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--text); font-size: .88rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
  .stage-touch svg { width: 18px; height: 18px; flex: none; }
  .stage-touch .st-on, .stage-live .stage-touch .st-off { display: none; }
  .stage-live .stage-touch .st-on { display: inline; }
  .stage-live .stage-touch { background: var(--copper); color: #1a0f07; border-color: transparent; }

  /* Hotspots: 44 px targets, popovers open below the point and stay on screen */
  .hotspot button { left: -22px; top: -22px; width: 44px; height: 44px; background: none; box-shadow: none; backdrop-filter: none; }
  .hotspot button::before { inset: 7px; background: radial-gradient(circle, var(--copper-hi) 0 4.5px, rgba(13,13,15,.6) 5.5px); box-shadow: inset 0 0 0 1.5px var(--copper-hi); }
  .hotspot button::after { inset: 2px; }
  .tip { top: 28px; width: 220px; }

  /* Sticky Reserve bar in the thumb zone */
  .buybar { display: flex; align-items: center; gap: 12px; position: fixed; z-index: 45; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 8px 8px 8px 12px; border-radius: 22px; background: rgba(22, 22, 25, .9); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border: 1px solid rgba(241,238,232,.14); box-shadow: 0 18px 40px rgba(0,0,0,.5); transform: translateY(calc(100% + 30px)); visibility: hidden; transition: transform .38s var(--ease), visibility 0s linear .38s; }
  .bar-on .buybar { transform: none; visibility: visible; transition: transform .38s var(--ease); }
  .buybar-info { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; margin: 0; }
  .buybar-swatch { flex: none; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), rgba(255,255,255,0) 45%), var(--finish); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); transition: background-color .4s; }
  .buybar-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
  .buybar-text strong { font-family: var(--display); font-size: 1rem; font-weight: 650; letter-spacing: -0.01em; }
  .buybar-text > span { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar .btn { flex: none; min-height: 48px; padding: 0 1.5em; }
  .buybar .btn:hover { transform: none; }
}
/* Short phones (SE-class): a tighter hero so the machine keeps a generous stage */
@media (max-width: 860px) and (max-height: 760px) and (orientation: portrait) {
  .hero h1 { font-size: clamp(2.7rem, 13.5vw, 3.4rem); }
  .hero .lead { font-size: 1rem !important; }
  .hero .actions { margin: 16px 0 0; gap: 8px; }
  .hero .actions .btn { min-height: 48px; }
  .hero .meta { display: none; }
  .scene .panel h2 { font-size: 1.95rem; }
  .counter span { font-size: 3.2rem; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
}
/* Touch screens in the wide composition (tablets, landscape phones): no tiny story dots; 44 px header pill */
@media (pointer: coarse) {
  .dots { display: none; }
  .site-header .btn-sm { min-height: 44px; }
}
/* Landscape phones: the side-by-side composition, scaled to a short screen */
@media (max-height: 520px) and (orientation: landscape) {
  .site-header { padding-block: 10px; }
  h1 { font-size: clamp(3rem, 9vw, 4.4rem); }
  h2 { font-size: clamp(1.9rem, 4.6vw, 2.6rem); }
  .scene { padding-block: 72px 40px; }
  .actions { margin: 18px 0 12px; }
  .counter span { font-size: 3.4rem; }
  .scroll-cue { display: none; }
}
/* Tall desktop / tablet windows keep the earlier card treatment for copy over the full-screen stage */
@media (max-height: 700px) {
  .scene:not(.hero) .panel { position: relative; top: auto; }
  .scene:not(.hero) { align-items: center; }
}
@media (min-width: 861px) and (max-aspect-ratio: 85/100) {
  .scene, .scene:not(.hero) { align-items: flex-end; padding-bottom: 12vh; }
  .scene:not(.hero) .panel { position: relative; top: auto; }
  .panel, .panel-right { margin: 0; max-width: 560px; padding: 22px 24px 24px; border-radius: 22px; background: rgba(13,13,15,.72); border: 1px solid var(--line); backdrop-filter: blur(14px) saturate(1.2); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Shared on every page: header menu, footer, text links, home overview band ---------- */
.nav a[aria-current="page"] { color: var(--text); background: rgba(241,238,232,.1); }
.on-sheet .nav a[aria-current="page"] { color: #17171a; background: rgba(23,23,26,.08); }
.text-link { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--copper-hi); }
.text-link span { transition: transform .25s var(--ease); }
.text-link:hover span { transform: translateX(4px); }
.panel .text-link { margin-top: 4px; }

/* Phone and tablet menu: a <details> disclosure, so it works without JavaScript */
.mnav { display: none; }
.mnav-toggle { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(241,238,232,.28); background: rgba(13,13,15,.55); color: var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mnav-toggle::-webkit-details-marker { display: none; }
.mnav-toggle svg { width: 22px; height: 22px; }
.mnav-x { display: none; }
.mnav[open] .mnav-bars { display: none; }
.mnav[open] .mnav-x { display: inline; }
.mnav[open] .mnav-toggle { background: var(--text); color: #141416; border-color: transparent; }
.mnav-panel { position: fixed; left: 10px; right: 10px; top: calc(66px + env(safe-area-inset-top)); z-index: 80; max-height: calc(100svh - 86px); overflow-y: auto; overscroll-behavior: contain; padding: 8px 8px 12px; border-radius: 22px; background: rgba(20,20,23,.97); border: 1px solid rgba(241,238,232,.14); box-shadow: 0 30px 80px rgba(0,0,0,.6); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.mnav[open] .mnav-panel { animation: menu-in .28s var(--ease); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.mnav-panel ul { display: grid; }
.mnav-panel li + li { border-top: 1px solid var(--line); }
.mnav-panel li a { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 14px; color: var(--text); text-decoration: none; font-family: var(--display); font-size: 1.14rem; font-weight: 600; letter-spacing: -0.01em; border-radius: 12px; }
.mnav-panel li a::after { content: "→"; color: var(--dim); font-weight: 400; }
.mnav-panel li a:hover { background: rgba(241,238,232,.06); }
.mnav-panel li a[aria-current="page"] { color: var(--copper-hi); }
.mnav-panel li a[aria-current="page"]::after { content: "●"; font-size: .6rem; color: var(--copper-hi); }
.mnav-cta { width: 100%; margin-top: 10px; }
.on-sheet .mnav-toggle { color: #2b2925; border-color: rgba(23,23,26,.3); background: transparent; }
@media (max-width: 1100px) {
  .site-header .nav { display: none; }
  .site-header .mnav { display: block; }
  .site-header .btn-sm { margin-left: auto; }
}

/* Footer */
.site-footer { position: relative; z-index: 5; background: #08080a; border-top: 1px solid var(--line); padding: 64px 0 calc(28px + env(safe-area-inset-bottom)); font-size: .92rem; color: var(--dim); }
.site-footer p { margin: 0; }
.footer-top { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 650; letter-spacing: .3em; text-transform: uppercase; font-size: .95rem; margin-bottom: 10px; }
.footer-logo svg { width: 28px; height: 28px; }
.footer-brand p { max-width: 24em; color: var(--muted); }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-h { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px !important; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.footer-nav a:hover { color: var(--text); }
.footer-nav a[aria-current="page"] { color: var(--copper-hi); }
.footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); }
.agentx-badge { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .82rem; }
.agentx-badge svg { width: 14px; height: 14px; }
.agentx-badge:hover { border-color: rgba(241,238,232,.4); }
@media (max-width: 760px) {
  .site-footer { padding-top: 48px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-base { margin-top: 32px; }
}

/* Home: the light "At a glance" band links into the rest of the site */
.press-line { margin: 104px 0 0; padding: 0; }
.press-line p:first-child { font-family: var(--display); font-size: clamp(1.9rem, 4.2vw, 3.6rem); font-weight: 550; letter-spacing: -0.035em; line-height: 1.08; max-width: 19em; margin-bottom: .6em; text-indent: -.42em; }
.press-src { font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #6c6862; display: flex; align-items: center; gap: 14px; }
.press-src::before { content: ""; width: 48px; height: 1px; background: #8a4a1c; }
.explore-title { font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #8a4a1c; margin: 104px 0 8px; }
/* an index of the inner pages: one ruled row each */
.explore { display: grid; border-top: 1px solid #17171a; }
.explore li { border-bottom: 1px solid #d6d1c8; }
.explore a { position: relative; display: grid; grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.25fr) 3rem; align-items: center; gap: 24px; min-height: 92px; padding: 18px 8px; color: #17171a; text-decoration: none; border-radius: 14px; transition: background-color .3s var(--ease), padding .4s var(--ease); }
.explore a:hover { background: #e7e1d6; padding-inline: 20px; }
.explore-k { font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; color: #5c5852; }
.explore strong { font-family: var(--display); font-size: clamp(1.5rem, 2.4vw, 2.2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.explore-d { color: #4f4b45; font-size: 1rem; line-height: 1.5; }
.explore-arrow { justify-self: end; font-size: 1.4rem; color: #8a4a1c; transition: transform .3s var(--ease); }
.explore a:hover .explore-arrow { transform: translateX(6px); }
.specs :focus-visible { outline-color: #8a4a1c; }
@media (max-width: 1100px) { .explore a { grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.2fr) 2rem; } }
@media (max-width: 760px) {
  .explore a { grid-template-columns: 2.6rem minmax(0, 1fr) 1.6rem; gap: 4px 12px; padding: 18px 4px 20px; min-height: 0; }
  .explore a:hover { padding-inline: 4px; }
  .explore-d { grid-column: 2 / 3; grid-row: 2; font-size: .95rem; }
  .explore-arrow { grid-column: 3; grid-row: 1; }
  .feature-strip { grid-template-columns: 1fr; gap: 28px; margin-top: 56px; }
  .press-line { margin-top: 64px; }
  .press-line p:first-child { font-size: 1.85rem; }
  .explore-title { margin-top: 64px; }
  .anatomy { margin-top: 36px; gap: 24px; }
  .spec { grid-template-columns: 1fr; gap: 6px; padding: 14px 0 16px; }
  .anatomy-pins span { left: -13px; top: -13px; width: 26px; height: 26px; font-size: .7rem; }
}

/* ---------- Micro-interactions (site.js adds the classes for mouse users with motion allowed) ---------- */
.btn.magnet, .icon-btn.magnet { transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), translate .35s var(--ease); }
.glow { isolation: isolate; }
.glow::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease);
  background: radial-gradient(240px circle at var(--gx, 50%) var(--gy, 50%), rgba(227,160,106,.13), transparent 65%); }
.glow:hover::after { opacity: 1; }
.feature-strip li.glow, .explore a.glow { position: relative; }

/* =====================================================================================================
   Home, round 2: a visual language of its own. Three devices, all taken from the machine itself:
   - instrument scales (gauge ticks) as rules, readouts and the footer;
   - numbered plates (Pl. 1, 2, 3) for photographs, matching the numbered pins on the spec plate;
   - a workshop build sheet (a ruled docket) on drafting paper.
   Chapters change scale, alignment and background as the story builds: a centred hero standing on its
   wordmark, a full-bleed walnut macro, a giant gauge reading, the light workshop, an ember x-ray with
   copy in the corners, a split headline around the pour, a full-bleed photograph, a centred turntable.
   ===================================================================================================== */
main a, main button, .workshop, .cafe { pointer-events: auto; }

/* Stage: an ember wash for the Heat chapter (under the canvas) and a soft lens vignette (over it). */
.stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1s ease;
  background: radial-gradient(70% 70% at 50% 55%, rgba(176, 74, 22, .34), rgba(60, 20, 6, .22) 55%, transparent 80%); }
.stage-ready[data-section="boilers"] .stage::before { opacity: 1; }

/* Instrument scale (hero readouts) */
.readouts { display: none; }
.ro-scale { display: block; width: 100%; height: 10px; overflow: visible; }
.ro-scale path { fill: none; stroke: rgba(241, 238, 232, .35); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* Numbered plates: photographs set like engraved plates, with a number and a ruled caption */
.plate { margin: 0; }
.plate img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; background: #2a211b; }
.plate figcaption { display: flex; gap: 14px; align-items: baseline; margin-top: 14px; padding-top: 12px; border-top: 1px solid currentColor; font-size: .92rem; line-height: 1.45; }
.plate-no { flex: none; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #8a4a1c; min-width: 3.4em; }

/* The workshop: light drafting paper with a millimetre grid, distinct from the warm Specs sheet */
.workshop { position: relative; z-index: 3; color: #17171a; padding: clamp(84px, 11vw, 150px) 0 clamp(84px, 10vw, 140px);
  background:
    linear-gradient(rgba(38, 64, 58, .09) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, rgba(38, 64, 58, .09) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(rgba(38, 64, 58, .045) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(38, 64, 58, .045) 1px, transparent 1px) 0 0 / 24px 24px,
    #e4e7e1; }
.workshop .eyebrow { color: #8a4a1c; }
.workshop .eyebrow span { color: #5a5f58; }
.workshop :focus-visible { outline-color: #8a4a1c; }
.workshop .text-link { color: #8a4a1c; }
.ws-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.ws-head .eyebrow { grid-column: 1 / -1; margin: 0; }
.ws-head h2 { margin: 0; font-size: clamp(2.6rem, 5vw, 4.9rem); max-width: 12em; letter-spacing: -0.045em; }
.ws-lead { margin: 0; color: #3f433d; font-size: 1.1rem; max-width: 30em; }
.ws-grid { display: grid; grid-template-columns: minmax(0, 4.6fr) minmax(0, 3.3fr) minmax(0, 4.6fr); gap: 40px; align-items: end; margin-top: clamp(56px, 7vw, 96px); }
.plate-tall img { aspect-ratio: 4 / 5; }
.plate-wide img { aspect-ratio: 4 / 3; }
.workshop .plate figcaption { color: #2d302b; border-color: #17171a; }
.docket { align-self: center; padding: 22px 22px 14px; background: #f5f5f0; border: 1px solid #17171a; box-shadow: 6px 6px 0 rgba(23, 23, 26, .9); }
.docket-h { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 2px solid #17171a; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.docket-h span:last-child { color: #5a5f58; }
.docket dl > div { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px dashed #b7bbb3; }
.docket dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #5a5f58; padding-top: .2em; }
.docket dd { font-family: var(--display); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; line-height: 1.3; }
.docket .text-link { margin-top: 8px; }

/* In use: one full-bleed photograph, the copy on the dark wood, an inset plate */
.cafe { position: relative; z-index: 3; overflow: hidden; background: #1b120c; color: var(--text); }
/* the photograph takes the right two thirds, so the cup sits beside the copy rather than under it */
.cafe-bleed { position: absolute; top: 0; bottom: 0; right: 0; left: 30%; width: 70%; height: 100%; object-fit: cover; object-position: 50% 50%; transform-origin: 60% 50%; }
.cafe::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #1b120c 0%, #1b120c 30%, rgba(27, 18, 12, .55) 40%, rgba(27, 18, 12, 0) 56%), linear-gradient(0deg, rgba(13, 9, 6, .55), transparent 35%); }
.cafe-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 48px; min-height: 100vh; min-height: 100svh; padding: 120px clamp(24px, 5vw, 80px) clamp(48px, 7vh, 80px); }
.cafe-copy { max-width: min(540px, 38vw); text-shadow: 0 2px 24px rgba(0, 0, 0, .5); }
.cafe-copy h2 { font-size: clamp(2.6rem, 5vw, 4.8rem); }
.cafe-copy p:not(.eyebrow) { color: #e2dbd1; font-size: 1.08rem; max-width: 30em; }
.plate-inset { justify-self: end; width: min(400px, 100%); }
.plate-inset img { aspect-ratio: 16 / 9.2; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.cafe .plate figcaption { color: #e2dbd1; border-color: rgba(241, 238, 232, .5); }
.cafe .plate-no { color: var(--copper-hi); }

/* Finishes: the current finish name, set huge in outline */
.finish-giant { display: none; }

/* Reserve: the batch, as a scale of 400 ticks */
.batch { margin: 8px 0 6px; max-width: 520px; }
.batch svg { display: block; width: 100%; height: 44px; }
.batch-ticks { stroke: none; }
#tick4 path { stroke: rgba(241, 238, 232, .38); stroke-width: 1; }
.batch-major { fill: none; stroke: rgba(241, 238, 232, .7); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.batch-first { fill: none; stroke: var(--copper-hi); stroke-width: 3; vector-effect: non-scaling-stroke; }
.batch figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.batch figcaption span:nth-child(2) { color: var(--muted); text-align: center; }

/* Footer, home: the workshop as an instrument reading */
.footer-instrument { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.fi-k { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--copper-hi); }
.fi-v { font-family: var(--display); font-size: clamp(2.4rem, 6.4vw, 6rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; margin-top: 10px !important; }
.fi-scale { display: block; width: 100%; height: 60px; }
#fi-minor path { stroke: rgba(241, 238, 232, .3); stroke-width: 1; }
#fi-major path { stroke: rgba(241, 238, 232, .65); stroke-width: 1.4; }
.fi-needle { stroke: var(--copper-hi); stroke-width: 3; vector-effect: non-scaling-stroke; }
.fi-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; color: var(--muted); }
.fi-legend li { display: flex; flex-direction: column; gap: 4px; }
.fi-legend span { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* ---------- Wide screens with room for the compositions (landscape desktop and laptop) ---------- */
@media (min-width: 861px) and (min-aspect-ratio: 85/100) and (min-height: 600px) {
  body::after { opacity: .085; }
  .stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 100% at 50% 45%, transparent 55%, rgba(5, 5, 6, .55) 100%); }

  /* Chapter stills: full-bleed renders of each chapter's exact live framing (render-high-stills.mjs) */
  .scene:not(.hero)::before { top: 0; left: 0; right: 0; width: 100%; height: 100vh; background-size: cover; background-position: center; -webkit-mask-image: none; mask-image: none; }
  #design::before, #pressure::before, #boilers::before, #pour::before, #steam::before, #finishes::before, #reserve::before {
    top: 0; left: 0; right: 0; width: 100%; height: 100vh; background-size: cover; background-position: center; -webkit-mask-image: none; mask-image: none; }
  #design::before { background-image: url("assets/home-design.webp"); }
  #pressure::before { background-image: url("assets/home-pressure.webp"); }
  #boilers::before { background-image: url("assets/home-boilers.webp"); }
  #pour::before { background-image: url("assets/home-pour.webp"); }
  #steam::before { background-image: url("assets/home-steam.webp"); }
  #finishes::before { background-image: url("assets/home-finishes.webp"); }
  #reserve::before { background-image: url("assets/home-reserve.webp"); }

  /* Hero: copy left, readouts right, the machine centred, standing on its wordmark */
  .hero { padding: 0; align-items: stretch; }
  .hero .panel { max-width: none; width: 100%; min-height: 100vh; padding: 128px clamp(24px, 5vw, 80px) 0; text-shadow: none; }
  .hero .panel > :not(h1):not(.readouts):not(.eyebrow) { max-width: 340px; }
  .hero .eyebrow { margin-bottom: 1.6em; }
  .hero .lead { font-size: 1.12rem !important; }
  .hero .actions { flex-direction: column; align-items: flex-start; gap: 10px; margin: 26px 0 20px; }
  .hero h1 { position: absolute; left: clamp(16px, 2.6vw, 44px); right: clamp(16px, 2.6vw, 44px); bottom: 2.5vh; margin: 0; display: flex; justify-content: space-between; align-items: baseline;
    font-size: min(17.6vw, 34vh); line-height: .74; letter-spacing: -0.065em; color: var(--text); pointer-events: none; }
  .readouts { display: block; position: absolute; top: 128px; right: clamp(24px, 5vw, 80px); width: 230px; }
  .readouts li { display: flex; flex-direction: column; gap: 4px; padding: 14px 0 16px; }
  .ro-k { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
  .readouts strong { font-family: var(--display); font-size: 2.6rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
  .readouts small { font-size: .95rem; margin-left: 6px; color: var(--copper-hi); letter-spacing: 0; font-weight: 600; }
  .scroll-cue { left: auto; right: clamp(24px, 5vw, 80px); transform: none; bottom: auto; top: calc(128px + 330px); }

  /* Design: the walnut macro fills the screen; the headline runs large across it */
  .scene.scene-design .panel { position: sticky; margin: 0; max-width: 860px; top: 18vh; text-shadow: 0 2px 30px rgba(10, 6, 3, .8), 0 1px 3px rgba(10, 6, 3, .6); }
  .scene-design h2 { font-size: clamp(3.4rem, 6.6vw, 7rem); letter-spacing: -0.05em; max-width: 9.5em; }
  .scene-design .panel > p:not(.eyebrow) { max-width: 30em; color: #e6ded3 !important; }
  .scene-design .stats { border-top-color: rgba(241, 238, 232, .35); }
  .scene-design .drift { display: none; }

  /* Pressure: the reading is the headline */
  .scene-pressure .panel { max-width: 560px; }
  .scene-pressure h2 { font-size: clamp(2rem, 3vw, 2.8rem); }
  .scene-pressure .counter { margin: 0 0 10px; }
  .scene-pressure .counter span { font-size: min(15vw, 30vh); line-height: .8; letter-spacing: -0.07em; }
  .scene-pressure .counter small { flex-basis: 100%; }
  .scene-pressure .instrument { max-width: 400px; }

  /* Heat: the ember x-ray in the middle, the copy in two opposite corners */
  .panel-split { max-width: none; width: 100%; margin: 0; }
  .scene.scene-boilers .panel { position: sticky; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; min-height: calc(100vh - 140px); top: 104px; }
  .scene-boilers .eyebrow { grid-column: 1; }
  .scene-boilers h2 { grid-column: 1; font-size: clamp(3rem, 5.8vw, 6rem); max-width: 7em; letter-spacing: -0.05em; }
  .scene-boilers .split-b { grid-column: 2; grid-row: 4; justify-self: end; max-width: 420px; }

  /* Extraction: the headline splits around the pour; the reading and the note sit either side of the cup */
  .scene.scene-pour .panel { position: sticky; display: grid; grid-template-rows: auto auto 1fr auto; min-height: calc(100vh - 170px); top: 104px; }
  .scene-pour h2 { display: flex; justify-content: space-between; gap: 2em; font-size: clamp(3rem, 5vw, 5.6rem); letter-spacing: -0.05em; margin: 0; }
  .scene-pour .split-b { grid-row: 4; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 38vw) minmax(0, 1fr); column-gap: 24px; align-items: end; }
  .scene-pour .split-b > .counter, .scene-pour .split-b > .instrument { grid-column: 1; }
  .scene-pour .split-b > p, .scene-pour .split-b > .text-link { grid-column: 3; }
  .scene-pour .split-b > p { grid-row: 1; align-self: end; }
  .scene-pour .split-b > .text-link { grid-row: 2; }
  .scene-pour .counter span { font-size: clamp(4rem, 7vw, 6.6rem); }
  .scene-pour .instrument { max-width: 300px; }

  /* Finishes: the turntable centred, the finish name huge in outline, the controls in one bar below */
  .scene-finishes { display: block; padding-top: 0; }
  .finish-giant { display: block; position: sticky; z-index: 2; top: 12vh; margin: 0; text-align: center; white-space: nowrap; pointer-events: none;
    font-family: var(--display); font-weight: 700; font-size: min(13vw, 24vh); letter-spacing: -0.06em; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px rgba(241, 238, 232, .26); }
  .scene.scene-finishes .panel.panel-bar { position: sticky; top: calc(100vh - 210px); margin-top: 34vh; max-width: none; display: grid; grid-template-columns: minmax(0, 1.1fr) auto auto minmax(0, .8fr); gap: 4px 40px; align-items: center; padding-top: 22px; border-top: 1px solid var(--line); }
  .panel-bar .eyebrow { grid-column: 1; margin-bottom: .6em; }
  .panel-bar h2 { grid-column: 1; font-size: clamp(2rem, 3vw, 2.8rem); margin: 0; }
  .panel-bar > p[data-sba-id="finishes-body"] { grid-column: 1; margin: 8px 0 0; font-size: .98rem !important; max-width: 26em; }
  .panel-bar .swatches { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
  .panel-bar .finish-name { grid-column: 2; grid-row: 4; margin: 10px 0 0; }
  .panel-bar .rotate { grid-column: 3; grid-row: 1 / span 3; margin: 0; }
  .panel-bar .text-link { grid-column: 4; grid-row: 1 / span 3; justify-self: end; }

  /* Short laptop screens (600-760 px tall): tighter tops so the corner and split layouts fit one screen */
  @media (max-height: 760px) {
    .hero .meta { display: none; }
    .scene.scene-design .panel { top: 14vh; }
    .scene.scene-boilers .panel, .scene.scene-pour .panel { top: 88px; min-height: calc(100vh - 112px); }
    .scene-boilers .split-b .instrument, .scene-pour .split-b .instrument { display: none; }
  }
  /* Reserve: the price is the headline */
  .reserve .price { font-size: clamp(4rem, 8vw, 7.4rem); letter-spacing: -0.06em; }
}

/* Workshop, in-use, footer: narrower screens */
@media (max-width: 1100px) {
  .ws-head { grid-template-columns: 1fr; }
  .ws-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ws-grid .docket { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 860px) and (orientation: portrait) {
  .workshop, .cafe { z-index: 5; }
  /* the chapter after an opaque section starts a stage-height lower, so by the time its copy reaches the
     reading zone the section above has cleared the stage (the machine and its hotspots are never covered) */
  .workshop + .scene, .cafe + .scene { padding-top: calc(var(--stage-h) + 24px); }
  .workshop { margin-top: 16svh; padding: 72px 0 76px; border-radius: 24px 24px 0 0; }
  .ws-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
  .ws-grid .docket { grid-row: auto; }
  .docket { box-shadow: 4px 4px 0 rgba(23, 23, 26, .9); }
  .cafe { margin-top: 0; }
  .cafe-bleed { position: relative; left: 0; width: 100%; height: 62svh; object-position: 50% 50%; }
  .cafe::after { background: linear-gradient(180deg, transparent 20svh, rgba(27, 18, 12, .85) 38svh, rgba(27, 18, 12, 1) 56svh); }
  .cafe-inner { grid-template-columns: 1fr; gap: 32px; min-height: 0; margin-top: -22svh; padding: 0 20px 64px; }
  .plate-inset { justify-self: stretch; width: 100%; }
  .cafe-copy { max-width: none; }
  .batch figcaption { flex-wrap: wrap; }
  .batch figcaption span:nth-child(2) { order: 3; flex-basis: 100%; text-align: left; }
  .fi-legend { grid-template-columns: 1fr; gap: 14px; }
  .fi-scale { height: 44px; }
  .footer-instrument { padding-bottom: 36px; margin-bottom: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .stage::before { transition: none; }
}
