/* Stamp: custom direction "Toolpath" (no Hallmark theme file; designed from the client's own subject: CNC routing of wood + steel). Genre: atmospheric -> warm birch. Shape: narrative workflow (raw -> cut -> finished room). Dials 8/8/4.
   Self-critique: dark-first opening risks the "near-black + one accent" default; countered by two material accents (walnut, steel), a birch-ply light half and the spark colour used only for the cutter point and focus. */

/* ---------- tokens ---------- */
:root {
  --graphite: #1c1a1a;
  --graphite-2: #252222;
  --graphite-3: #322e2d;
  --steel: #8c969e;
  --steel-light: #c9ced2;
  --birch: #efe8dd;
  --birch-2: #dcd3c4;
  --walnut: #7c5733;
  --walnut-light: #b47a4b;
  --spark: #ff7a1a;
  --line-dark: rgba(239, 232, 221, 0.14);
  --line-light: rgba(20, 22, 24, 0.14);

  --bg: var(--graphite);
  --fg: var(--birch);
  --fg-muted: rgba(239, 232, 221, 0.68);
  --line: var(--line-dark);

  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --font-machine: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;

  --step--1: clamp(0.84rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.4vw, 2.5rem);
  --step-3: clamp(2.2rem, 1.6rem + 3vw, 4.4rem);
  --step-4: clamp(2.8rem, 1.6rem + 6vw, 8.2rem);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --radius-s: 6px;
  --radius-m: 14px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 12px 32px -12px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.6s var(--ease-in-out), color 0.6s var(--ease-in-out);
}
body[data-surface="birch"] {
  --bg: var(--birch);
  --fg: var(--graphite);
  --fg-muted: rgba(20, 22, 24, 0.7);
  --line: var(--line-light);
}
::selection { background: var(--spark); color: var(--graphite); }
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--spark); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 760; line-height: 0.98; letter-spacing: -0.01em; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1, h2 { font-variation-settings: "wdth" 118; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-variation-settings: "wdth" 108; line-height: 1.15; }
p { margin: 0; max-width: 60ch; text-wrap: pretty; }
.machine { font-family: var(--font-machine); font-size: 0.78rem; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.muted { color: var(--fg-muted); }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--spark); color: var(--graphite); padding: 10px 14px; border-radius: var(--radius-s); font-weight: 650; transition: transform 0.2s var(--ease-out); }
.skip:focus-visible { transform: translateY(72px); }
section { position: relative; scroll-margin-top: 80px; }

/* ---------- intro / logo reveal ---------- */
.intro { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; pointer-events: none; }
.intro__half { position: absolute; left: 0; right: 0; height: 50.2%; background: var(--graphite); }
.intro__half--top { top: 0; }
.intro__half--bottom { bottom: 0; }
.intro__mark { position: relative; width: min(56vw, 360px); }
.intro__mark .trace { fill: none; stroke: var(--birch); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro__mark .fill { fill: var(--birch); opacity: 0; }
.intro__mark .cutter { fill: var(--spark); filter: drop-shadow(0 0 6px var(--spark)); }
.intro__label { position: absolute; left: 50%; bottom: 12vh; transform: translateX(-50%); color: var(--fg-muted); }
html:not(.js) .intro, .no-intro .intro { display: none; }

/* ---------- header ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: env(safe-area-inset-top); transition: transform 0.4s var(--ease-out), background-color 0.4s var(--ease-out); }
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-solid { background: color-mix(in srgb, var(--bg) 95%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand__mark { height: 30px; width: auto; color: var(--fg); flex: none; }
.brand__name { font-weight: 700; font-variation-settings: "wdth" 112; font-size: 0.95rem; line-height: 1.1; }
.brand__name span { display: block; font-weight: 450; color: var(--fg-muted); font-size: 0.78rem; font-variation-settings: "wdth" 100; }
.nav__links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; text-decoration: none; color: var(--fg-muted); border-radius: 999px; transition: color 0.2s var(--ease-out), background-color 0.2s var(--ease-out); }
.nav__links a:hover { color: var(--fg); background: var(--line); }
.nav__menu { display: none; }

/* ---------- buttons (tactile: base + face) ---------- */
.btn { --face: var(--birch); --face-hi: #fff; --base: #9c9384; --ink: var(--graphite); --depth: 5px;
  position: relative; display: inline-flex; isolation: isolate; text-decoration: none; border: 0; padding: 0 0 var(--depth); background: none; cursor: pointer; border-radius: 12px; min-height: 48px; }
.btn::before { content: ""; position: absolute; inset: var(--depth) 0 0; background: var(--base); border-radius: 12px; z-index: -1; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6); }
.btn__face { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; background: var(--face); color: var(--ink); font-weight: 650; border-radius: 12px; box-shadow: inset 0 1px 0 var(--face-hi); transition: transform 150ms var(--ease-out); }
.btn:active .btn__face { transform: translateY(var(--depth)); }
@media (hover: hover) and (pointer: fine) { .btn:hover .btn__face { transform: translateY(2px); } .btn:active .btn__face { transform: translateY(var(--depth)); } }
.btn--spark { --face: var(--spark); --face-hi: #ffb070; --base: #a8460a; }
.btn--ghost { --face: transparent; --base: transparent; --face-hi: transparent; --ink: var(--fg); }
.btn--ghost .btn__face { box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover .btn__face { box-shadow: inset 0 0 0 1px var(--fg); }
.btn--ghost::before { box-shadow: none; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: grid; align-items: end; padding-bottom: clamp(32px, 7vh, 80px); overflow: clip; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 22, 24, 0.55) 0%, rgba(20, 22, 24, 0.1) 35%, rgba(20, 22, 24, 0.86) 100%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; }
.hero h1 { font-size: var(--step-4); max-width: 11ch; }
.hero__lede { margin-top: 22px; font-size: var(--step-1); line-height: 1.35; max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hud { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-m); background: rgba(20, 22, 24, 0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); min-width: 200px; }
.hud__row { display: flex; justify-content: space-between; gap: 18px; }
.hud__row b { font-weight: 500; color: var(--birch); }
.hud__row span { color: var(--steel); }
.hud__dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--spark); box-shadow: 0 0 10px var(--spark); margin-right: 8px; vertical-align: 1px; }
.video-toggle { position: absolute; right: var(--gutter); top: 96px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(20, 22, 24, 0.45); cursor: pointer; }
.video-toggle svg { width: 16px; height: 16px; }

/* ---------- section scaffolding ---------- */
.block { padding-block: clamp(72px, 11vh, 140px); }
.block__head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 7vh, 88px); }
.block__head p { font-size: var(--step-1); line-height: 1.4; color: var(--fg-muted); }
.line-mask { display: block; overflow: clip; padding-bottom: 0.06em; }

/* ---------- materials ---------- */
.materials__list { display: grid; gap: clamp(20px, 3vw, 36px); }
.material { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-height: min(78vh, 720px); border-radius: var(--radius-m); overflow: clip; background: var(--graphite-2); border: 1px solid var(--line); }
.material__media { position: relative; overflow: clip; clip-path: inset(0 0 0 0); }
.material__media video, .material__media img { width: 100%; height: 100%; object-fit: cover; }
.material__body { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: clamp(24px, 4vw, 56px); }
.material__body h3 { font-size: var(--step-3); font-variation-settings: "wdth" 120; line-height: 0.95; }
.material__body ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.material__body li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.material__body li span:last-child { color: var(--fg-muted); text-align: right; }
.material--steel { background: #22272c; }
.swatch { width: 54px; height: 54px; border-radius: 10px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), var(--shadow); }
.swatch--walnut { background: repeating-linear-gradient(97deg, #6b3f22 0 6px, #5a331b 6px 9px, #7b4a2a 9px 15px); }
.swatch--steel { background: repeating-linear-gradient(0deg, #9aa3aa 0 1px, #8c969e 1px 3px, #a8b0b6 3px 4px); }

/* ---------- live cut (3D) ---------- */
.livecut { height: 260vh; }
.livecut__pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(16px, 4vw, 64px); }
.livecut__copy { display: grid; gap: 22px; align-content: center; }
.livecut__copy p { color: var(--fg-muted); }
.livecut__stage { position: relative; height: min(78svh, 760px); border-radius: var(--radius-m); background: radial-gradient(120% 90% at 50% 40%, var(--graphite-3), var(--graphite) 70%); border: 1px solid var(--line); overflow: clip; }
.livecut__stage canvas { width: 100%; height: 100%; }
.livecut__fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--fg-muted); padding: 24px; text-align: center; }
.livecut__readout { position: absolute; left: 16px; bottom: 16px; right: 16px; font-size: 0.82rem; color: var(--birch); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; color: var(--steel-light); pointer-events: none; }
.patterns { display: flex; flex-wrap: wrap; gap: 8px; }
.pattern-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out), transform 150ms var(--ease-out); }
.pattern-btn:hover { border-color: var(--fg-muted); }
.pattern-btn:active { transform: scale(0.97); }
.pattern-btn[aria-pressed="true"] { border-color: var(--spark); background: rgba(255, 122, 26, 0.1); }
.pattern-btn i { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.pattern-btn i.fl { background: repeating-linear-gradient(90deg, #6b3f22 0 4px, #3a2112 4px 6px); }
.pattern-btn i.hx { background: radial-gradient(circle at 50% 50%, #141618 0 3px, transparent 3.5px) 0 0 / 8px 8px, #9aa3aa; }
.pattern-btn i.wv { background: repeating-radial-gradient(circle at 0 120%, #6b3f22 0 4px, #3a2112 4px 6px); }
.progress-rail { height: 2px; background: var(--line); border-radius: 2px; overflow: clip; }
.progress-rail span { display: block; height: 100%; background: var(--spark); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- process (horizontal) ---------- */
.process { overflow: clip; }
.process__track { position: relative; display: flex; gap: clamp(16px, 2.4vw, 32px); padding-inline: var(--gutter); width: max-content; }
.process__path { position: absolute; left: 0; top: 46px; width: 100%; height: 40px; pointer-events: none; overflow: visible; }
.process__path path { fill: none; stroke: var(--spark); stroke-width: 2; stroke-linecap: round; }
.process__path .guide { stroke: var(--line); stroke-dasharray: 4 6; }
.process__path circle { fill: var(--spark); filter: drop-shadow(0 0 6px var(--spark)); }
.step { position: relative; width: min(78vw, 400px); flex: none; padding: 96px 28px 28px; border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--graphite-2); min-height: 380px; display: flex; flex-direction: column; gap: 14px; }
.step__no { position: absolute; top: 18px; left: 26px; font-family: var(--font-display); font-weight: 800; font-size: 3.2rem; line-height: 1; font-variation-settings: "wdth" 125; color: transparent; -webkit-text-stroke: 1px var(--steel); transition: color 0.4s var(--ease-out), -webkit-text-stroke-color 0.4s var(--ease-out); }
.step { transition: border-color 0.4s var(--ease-out), transform 0.5s var(--ease-out), background-color 0.4s var(--ease-out); }
.step.is-active { border-color: var(--spark); background: var(--graphite-3); transform: translateY(-10px); }
.step.is-active .step__no { color: var(--spark); -webkit-text-stroke-color: var(--spark); }
.step h3 { font-size: var(--step-2); font-variation-settings: "wdth" 115; }
.step p { color: var(--fg-muted); }
.step__code { margin-top: auto; color: var(--steel); }

.process__meta { display: flex; align-items: center; gap: 20px; margin-top: 36px; }
.process__meta .progress-rail { flex: 1; }
.process__meta p { margin: 0; color: var(--fg-muted); font-family: var(--font-display); font-size: var(--step-1); font-variation-settings: "wdth" 115; }
.process__meta b { color: var(--spark); font-weight: 500; }
.block--tight-end { padding-bottom: clamp(32px, 5vh, 56px); }

/* ---------- work ---------- */
.work__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.shot { position: relative; margin: 0; overflow: clip; border-radius: var(--radius-m); background: var(--graphite-2); }
.shot img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.shot figcaption { position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(20, 22, 24, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--birch); font-size: var(--step--1); }
.shot--a { grid-column: 1 / span 7; aspect-ratio: 4 / 3; }
.shot--b { grid-column: 8 / span 5; aspect-ratio: 4 / 5; margin-top: 18%; }
.shot--c { grid-column: 2 / span 5; aspect-ratio: 1; }
.shot--d { grid-column: 7 / span 6; aspect-ratio: 16 / 10; margin-top: -8%; }
.work__more { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- finish (birch half) ---------- */
.finish__frame { position: relative; width: 100%; height: 100svh; overflow: clip; }
.finish__frame video, .finish__frame img { width: 100%; height: 100%; object-fit: cover; }
.finish__scaler { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; overflow: clip; }
.finish__window { position: relative; width: 100%; height: 100%; clip-path: inset(0% 14% 12% 14% round 14px); will-change: clip-path; }
.finish { height: 170vh; }
.finish__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 120px var(--gutter) 36px; color: var(--birch); font-size: var(--step-1); line-height: 1.3; max-width: none; background: linear-gradient(180deg, transparent, rgba(28, 26, 26, 0.78)); }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 64px); border-top: 1px solid var(--line); }
.service h3 { font-size: var(--step-2); }
.service p { font-size: var(--step-1); line-height: 1.4; color: var(--fg); opacity: 0.78; }
.service { padding: 28px 24px 32px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.service p { color: var(--fg-muted); }

/* ---------- facts ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: clip; }
.facts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fact { background: var(--bg); padding: 28px 24px; display: grid; gap: 8px; transition: background-color 0.6s var(--ease-in-out); }
.fact b { font-family: var(--font-display); font-size: var(--step-3); font-variation-settings: "wdth" 120; line-height: 1; font-variant-numeric: tabular-nums; }
.fact span { color: var(--fg-muted); }

/* ---------- quote: job ticket ---------- */
.quote__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.quote__aside { display: grid; gap: 28px; }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li > span { color: var(--fg-muted); }
.contact-list a { overflow-wrap: anywhere; }
.ticket { --notch: 14px; --stub: 96px; position: relative; background: var(--graphite); color: var(--birch); border-radius: 18px; padding: 28px clamp(20px, 3vw, 36px) calc(var(--stub) + 24px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--stub) - var(--notch)), calc(100% - var(--notch)) calc(100% - var(--stub)), 100% calc(100% - var(--stub) + var(--notch)), 100% 100%, 0 100%, 0 calc(100% - var(--stub) + var(--notch)), var(--notch) calc(100% - var(--stub)), 0 calc(100% - var(--stub) - var(--notch))); }
.ticket::after { content: ""; position: absolute; left: calc(var(--notch) + 8px); right: calc(var(--notch) + 8px); bottom: var(--stub); border-top: 2px dashed rgba(239, 232, 221, 0.22); }
.ticket__head { display: flex; justify-content: space-between; gap: 12px; color: var(--steel); margin-bottom: 22px; }
.ticket__stub { position: absolute; left: 0; right: 0; bottom: 0; height: var(--stub); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(20px, 3vw, 36px); }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label, .field legend { font-size: var(--step--1); color: var(--steel-light); padding: 0; }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 16px; color: var(--birch); background: var(--graphite-2); border: 1px solid rgba(239, 232, 221, 0.18); border-radius: 10px; padding: 13px 14px; transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out); }
.field textarea { min-height: 112px; resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: rgba(239, 232, 221, 0.4); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: none; border-color: var(--spark); box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.25); }
.field [aria-invalid="true"] { border-color: #ff6b5b; }
.field__error { color: #ff9b8f; font-size: var(--step--1); min-height: 1.2em; }
.row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0 0 18px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(239, 232, 221, 0.2); color: var(--birch); transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out); }
.chips input:checked + span { border-color: var(--spark); background: rgba(255, 122, 26, 0.14); }
.chips input:focus-visible + span { outline: 2px solid var(--spark); outline-offset: 2px; }
.form-status { min-height: 1.4em; color: var(--steel-light); font-size: var(--step--1); }

/* ---------- facts row ---------- */
.facts-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.factory { margin: 0; display: grid; gap: 12px; }
.factory img { width: 100%; height: auto; border-radius: var(--radius-m); box-shadow: var(--shadow); }
.factory figcaption { font-size: var(--step--1); }

/* ---------- spec list (facts) ---------- */
.specs { margin: 40px 0 0; border-top: 1px solid var(--line); }
.spec { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--fg-muted); }
.spec dd { margin: 0; font-size: var(--step-1); line-height: 1.3; }
.spec b { font-family: var(--font-display); font-weight: 780; font-size: var(--step-3); line-height: 1; font-variation-settings: "wdth" 120; font-variant-numeric: tabular-nums; }

/* ---------- quick quote button (small screens) ---------- */
.quick-cta { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45; transform: translate(-50%, 140%); transition: transform 0.45s var(--ease-out); display: none; }
.quick-cta.is-on { transform: translate(-50%, 0); }

/* ---------- footer ---------- */
.footer { padding: clamp(72px, 12vh, 140px) 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer-mark { position: relative; width: 100%; margin-bottom: 56px; --mx: -999px; --my: -999px; }
.footer-mark svg { width: 100%; height: auto; }
.footer-mark__solid path { fill: var(--fg); }
.footer-mark__path { position: absolute; inset: 0; background: var(--bg);
  -webkit-mask-image: radial-gradient(circle 120px at var(--mx) var(--my), #000 98%, transparent 100%); mask-image: radial-gradient(circle 120px at var(--mx) var(--my), #000 98%, transparent 100%); }
.footer-mark__path path { fill: none; stroke: var(--spark); stroke-width: 1.2; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 28px; }
.footer__grid h3 { font-size: var(--step-0); font-weight: 650; margin-bottom: 10px; font-variation-settings: "wdth" 100; }
.footer__grid p, .footer__grid li { color: var(--fg-muted); }
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer__grid a { display: inline-flex; min-height: 32px; align-items: center; }
.footer__base { margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--fg-muted); font-size: var(--step--1); }

/* ---------- cursor dot (fine pointers only) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 80; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--spark); pointer-events: none; mix-blend-mode: normal; opacity: 0; box-shadow: 0 0 12px var(--spark); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav__links { display: none; }
  .nav__menu { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
  .nav__cta { display: none; }
  .quick-cta { display: inline-flex; }
  .nav.is-open .nav__links { display: grid; position: fixed; inset: 72px 0 auto 0; padding: 16px var(--gutter) 28px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__links a { font-size: var(--step-1); color: var(--fg); }
  .block__head, .quote__grid { grid-template-columns: minmax(0, 1fr); }
  .material { grid-template-columns: minmax(0, 1fr); }
  .material__media { aspect-ratio: 16 / 10; }
  .livecut { height: auto; }
  .livecut__pin { position: relative; height: auto; grid-template-columns: minmax(0, 1fr); padding-block: 88px; }
  .livecut__stage { height: 62svh; }
  .process__meta { display: none; }
}
@media (max-width: 760px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hud { display: none; }
  .work__grid { grid-template-columns: minmax(0, 1fr); }
  .shot--a, .shot--b, .shot--c, .shot--d { grid-column: auto; margin-top: 0; aspect-ratio: 4 / 3; }
  .row-2 { grid-template-columns: minmax(0, 1fr); }
  .finish { height: auto; }
  .finish__scaler { position: relative; height: 78svh; }
  .finish__window { clip-path: none; }
  .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .contact-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .footer-mark { margin-bottom: 36px; }
  .facts-row { grid-template-columns: minmax(0, 1fr); }
  .services { grid-template-columns: minmax(0, 1fr); }
  .spec { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .footer__grid a { min-height: 44px; }
  .ticket { --stub: 120px; }
  .ticket__stub { flex-direction: column; align-items: stretch; justify-content: center; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .intro { display: none; }
  .finish { height: auto; }
  .finish__scaler { position: relative; }
  .finish__window { clip-path: none; }
  .shot img { transform: none; }
  .cursor { display: none; }
}

/* process steps stack when the horizontal pin is off (phones, reduced motion) */
@media (max-width: 760px) {
  .process__track { flex-direction: column; width: auto; }
  .step { width: 100%; min-height: 0; }
  .process__path { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .process__track { flex-wrap: wrap; width: auto; }
  .step { width: min(100%, 400px); }
  .process__path { display: none; }
}
