/* Marshall Clocks · painted arch-dial concept */
:root {
  --ivory: #f2ecdf;
  --paper: #e8dfcc;
  --paper-2: #ddd2bb;
  --green: #1f342e;
  --green-2: #2b463d;
  --ink: #1d1c18;
  --muted: #5a5246;          /* 7.0:1 on ivory */
  --oxblood: #7a3428;        /* text accent on light, 8.1:1 */
  --brass: #b48a53;          /* graphics only on light */
  --brass-glow: #e0c088;     /* text accent on dark, 8.4:1 on green */
  --on-dark: #f2ecdf;
  --on-dark-muted: #c9cfc4;  /* 8.9:1 on green */
  --night: #1b2a44;
  --focus-light: #1f342e;
  --focus-dark: #f3d98f;
  --header: 72px;
  --gutter: clamp(16px, 5vw, 88px);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; margin: 0; overflow-wrap: break-word; hyphens: manual; }
p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.select-all { user-select: all; font-family: var(--mono); font-size: .92em; overflow-wrap: anywhere; }

/* Focus rings per surface */
:focus-visible { outline: 3px solid var(--focus-light); outline-offset: 3px; }
.on-dark-surface :focus-visible, .restoration :focus-visible, .how :focus-visible, .closing :focus-visible { outline-color: var(--focus-dark); }
[id] { scroll-margin-top: calc(var(--header) + 16px); }
textarea, input, .btn { scroll-margin-bottom: 32px; }

.skip { position: fixed; left: 12px; top: -80px; z-index: 300; background: var(--green); color: var(--on-dark); padding: 12px 18px; text-decoration: none; font: 500 15px var(--sans); }
.skip:focus { top: 12px; }

/* ---------- Header (direct child of body, sticky) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header);
  display: flex; align-items: center; gap: 20px;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--ivory) 94%, transparent);
  background-color: var(--ivory);
  border-bottom: 1px solid #1f342e2e;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background-color: #f2ecdff0; backdrop-filter: blur(8px); }
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; margin-right: auto; min-width: 0; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-word { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-word > span { font: 500 19px/1.05 var(--serif); letter-spacing: .01em; white-space: nowrap; }
.brand-word small { font: 400 10.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.site-nav { display: flex; flex-wrap: wrap; gap: 2px clamp(10px, 1.6vw, 26px); }
.site-nav a { font: 500 14px/1 var(--sans); text-decoration: none; padding: 14px 2px; min-height: 44px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--brass); }
.header-call { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; background: var(--green); color: var(--on-dark); text-decoration: none; font: 500 14px var(--mono); letter-spacing: .02em; border-radius: 999px; white-space: nowrap; }
.header-call::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brass-glow); }
.header-call:hover { background: #142520; }
.header-call:focus-visible { outline-color: var(--focus-light); }
.call-short { display: none; }
.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 0 14px; background: transparent; border: 1px solid #1f342e55; border-radius: 999px; font: 500 14px var(--sans); cursor: pointer; }
.menu-icon { width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
.menu-toggle[aria-expanded="true"] .menu-icon { border-color: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before, .menu-toggle[aria-expanded="true"] .menu-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: rotate(-45deg); }

@media (max-width: 1180px) {
  .site-nav a { font-size: 13px; }
}
@media (max-width: 1060px) {
  :root { --header: 64px; }
  .site-header { gap: 10px; }
  .call-long { display: none; }
  .call-short { display: inline; }
  .header-call { padding: 0 16px; }
  .brand-word > span { font-size: 17px; }
  /* Without JS the links stay visible and wrap below the header row */
  /* Without JS the wrapped header is taller than --header, so it stays in flow instead of covering anchors */
  .site-header:not(.enhanced) { position: relative; height: auto; min-height: var(--header); flex-wrap: wrap; padding-block: 8px; }
  .site-header:not(.enhanced) .site-nav { order: 3; width: 100%; }
  .site-header.enhanced .menu-toggle { display: inline-flex; }
  .site-header.enhanced .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 20px; background: var(--ivory);
    border-bottom: 1px solid #1f342e44; box-shadow: 0 18px 30px #1f342e1f;
    max-height: calc(100svh - var(--header)); overflow-y: auto;
  }
  .site-header.enhanced .site-nav.open { display: flex; }
  .site-header.enhanced .site-nav a { font-size: 17px; padding: 14px 0; border-bottom: 1px solid #1f342e1f; }
}
/* WebKit and Firefox set the mono subtitle wider than Chrome; drop it before it can crowd the Menu button */
@media (max-width: 440px) {
  .brand-word small { display: none; }
  .brand-word > span { font-size: 16px; white-space: normal; }
}
@media (max-width: 380px) {
  .site-header { gap: 8px; }
  .brand { gap: 8px; min-width: 0; }
  .brand-word small { display: none; }
  .brand-word > span { white-space: normal; font-size: 15px; line-height: 1.05; }
  .brand-mark { width: 28px; height: 28px; }
  .menu-toggle { padding: 0 12px; gap: 8px; }
  .header-call { padding: 0 14px; }
  .header-call::before { display: none; }
}
.menu-toggle, .header-call { flex: none; }

/* ---------- Shared type ---------- */
.kicker { font: 500 12px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--oxblood); display: flex; gap: 12px; align-items: center; }
.kicker .num { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border: 1px solid currentColor; border-radius: 999px; letter-spacing: 0; }
.on-dark .kicker, .restoration .kicker, .how .kicker, .closing .kicker { color: var(--brass-glow); }
.section-head { padding: clamp(80px, 10vw, 150px) var(--gutter) clamp(40px, 5vw, 72px); max-width: 1500px; }
.section-head h2 { font: 400 clamp(2.15rem, 1.2rem + 3.6vw, 4.9rem)/1.02 var(--serif); letter-spacing: -.02em; margin: 22px 0 0; max-width: 17ch; text-wrap: balance; }
.section-head h2 em { font-style: italic; color: var(--oxblood); }
.on-dark h2 em, .restoration h2 em, .how h2 em, .closing h2 em { color: var(--brass-glow); }
.section-lede { margin-top: 22px; max-width: 54ch; font: 400 clamp(1.05rem, 1rem + .35vw, 1.3rem)/1.55 var(--sans); color: var(--muted); }
.on-dark .section-lede { color: var(--on-dark-muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 500 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: background-color .2s, color .2s, transform .2s var(--ease); text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--green); color: var(--on-dark); }
.btn-solid:hover { background: #142520; }
.btn-line { background: transparent; border-color: var(--green); color: var(--green); }
.btn-line:hover { background: #1f342e12; }
.btn-brass { background: var(--brass-glow); color: var(--ink); }
.btn-brass:hover { background: #ebd09f; }
.btn-line-light { background: transparent; border-color: var(--brass-glow); color: var(--on-dark); }
.btn-line-light:hover { background: #ffffff12; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Dial instances: each rotates its own disc and hands */
.dial { display: block; width: 100%; height: auto; overflow: visible; }
.dial .disc { transform-box: view-box; transform-origin: 200px 200px; transform: rotate(var(--disc, 0deg)); }
.dial .hand { transform-box: view-box; transform-origin: 200px 378px; }
.dial .hand-h { transform: rotate(var(--hh, 305deg)); }
.dial .hand-m { transform: rotate(var(--mm, 60deg)); }
.motion .dial .disc { transition: transform 1.6s var(--ease); }
.motion .dial .hand { transition: transform 1.4s var(--ease); }
.motion .dial-bench .disc, .motion .dial-bench .hand { transition: none; }

/* ---------- 01 Hero ---------- */
.hero { position: relative; overflow: clip; background: radial-gradient(120% 90% at 85% 40%, #e9dfc9 0%, var(--ivory) 60%); }
.concept-note { padding: 10px var(--gutter); font: 400 12.5px/1.5 var(--mono); color: var(--muted); border-bottom: 1px solid #1f342e1c; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(24px, 4vw, 72px); align-items: center; padding: clamp(28px, 4.5vw, 70px) var(--gutter) clamp(48px, 6vw, 90px); min-height: calc(100svh - var(--header) - 40px); }
.hero-title { font: 400 clamp(2.7rem, 1.2rem + 5.2vw, 6.1rem)/.98 var(--serif); letter-spacing: -.03em; margin: 22px 0 0; }
.hero-title .line { display: block; }
.hero-title em { font-style: italic; color: var(--oxblood); }
.lede { margin-top: 24px; max-width: 46ch; font: 400 clamp(1.08rem, 1rem + .45vw, 1.35rem)/1.55 var(--sans); color: #3b372f; }
.facts { margin: 28px 0 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #1f342e33; border-bottom: 1px solid #1f342e33; max-width: 760px; }
.facts > div { padding: 14px 16px 14px 0; }
.facts > div + div { padding-left: 16px; border-left: 1px solid #1f342e22; }
.facts dt { font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 6px 0 0; font: 500 15px/1.4 var(--sans); }
.fact-status dd { color: var(--oxblood); }
.hero-dial { position: relative; margin: 0; justify-self: center; width: min(100%, 520px); padding: 8% 9% 5%; }
.hood { position: absolute; inset: 0; border-radius: 50% 50% 18px 18px / 34% 34% 18px 18px; background: linear-gradient(90deg, #4a2b1f, #7a4a32 30%, #8d5a3c 50%, #6b3f2b 75%, #3f251b); box-shadow: 0 40px 70px -30px #2b1a12aa, inset 0 0 0 6px #5a3524, inset 0 0 0 8px #c9a467; }
.hood::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(90deg, transparent 0 22px, #ffffff08 22px 24px, transparent 24px 41px); }
.dial-hero { position: relative; filter: drop-shadow(0 18px 24px #2b1a1255); }
.dial-caption { position: relative; margin-top: 4%; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font: 400 12px/1.4 var(--mono); color: var(--on-dark); letter-spacing: .06em; padding: 0 4px; }
.dial-caption { color: #f2e7cd; }
.live-time:empty { display: none; }

/* Hero entry (first screen, plays on load) */
.motion .hero-title .line { animation: line-in 1.1s var(--ease) both; }
.motion .hero-title .line:nth-child(2) { animation-delay: .14s; }
.motion .hero .lede, .motion .hero .facts, .motion .hero .cta-row { animation: rise-in .9s var(--ease) both; animation-delay: .35s; }
.motion .hero .facts { animation-delay: .45s; }
.motion .hero .cta-row { animation-delay: .55s; }
.motion .hero-dial { animation: dial-in 1.3s var(--ease) both .1s; }
@keyframes line-in { from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(40px); } to { opacity: 1; clip-path: inset(0 0 -20% 0); transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes dial-in { from { opacity: 0; transform: translateY(60px) scale(.94); } to { opacity: 1; transform: none; } }

/* ---------- 02 Bench (services) ---------- */
.bench { background: var(--paper); overflow: clip; }
.bench-track { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 90px); padding: 0 var(--gutter) clamp(60px, 8vw, 120px); }
.bench-stage { position: sticky; top: var(--header); height: calc(100svh - var(--header)); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; }
.dial-bench { width: min(100%, 380px, 62svh); }
.bench-counter { font: 500 13px var(--mono); letter-spacing: .14em; color: var(--muted); }
.bench-index { color: var(--oxblood); font-size: 22px; }
.bench-list { list-style: none; margin: 0; padding: 0; }
.bench-item { min-height: 72svh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; border-top: 1px solid #1f342e33; }
.bench-item:last-child { min-height: 80svh; }
.item-num { font: italic 400 clamp(2.4rem, 2rem + 2vw, 3.6rem)/1 var(--serif); color: var(--oxblood); }
.bench-item h3 { font: 400 clamp(1.9rem, 1.3rem + 2.4vw, 3.6rem)/1.05 var(--serif); margin: 16px 0; letter-spacing: -.015em; }
.bench-item p { max-width: 44ch; font-size: 1.08rem; color: var(--muted); }
.motion .scenes-ready .bench-item h3, .motion .scenes-ready .bench-item .item-num { transition: color .4s, transform .6s var(--ease), opacity .4s; }
.motion .scenes-ready .bench-item:not(.is-active) h3 { color: #6e6658; transform: translateX(-10px); }
.motion .scenes-ready .bench-item:not(.is-active) .item-num { color: #6e6658; }
.motion .scenes-ready .bench-item.is-active h3 { color: var(--ink); transform: none; }

/* ---------- 03 Restoration (sticky movement) ---------- */
.restoration { background: var(--green); color: var(--on-dark); overflow: clip; }
.restoration .section-lede { color: var(--on-dark-muted); }
.movement-track { height: 440svh; position: relative; }
.movement-stage { position: sticky; top: var(--header); height: calc(100svh - var(--header)); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: clamp(16px, 3vw, 56px); padding: 0 var(--gutter); overflow: clip; }
.movement-visual { height: 100%; display: grid; place-items: center; min-height: 0; }
.movement { width: 100%; height: auto; max-height: calc(100svh - var(--header) - 48px); }
.movement .swing { transform-box: view-box; transform-origin: 300px 62px; transform: rotate(var(--sw, 0deg)); }
.movement .rock { transform-box: view-box; transform-origin: 300px 92px; transform: rotate(calc(var(--sw, 0deg) * 1.6)); }
.movement .spin { transform-box: fill-box; transform-origin: center; }
.mv-escape .spin { transform: rotate(var(--esc, 0deg)); }
.mv-great .spin { transform: rotate(var(--grt, 0deg)); }
.mv-centre .spin { transform: rotate(var(--ctr, 0deg)); }
.mv-escape { transform: translate(calc(var(--ex, 0) * 96px), calc(var(--ex, 0) * -44px)); }
.mv-anchor { transform: translate(calc(var(--ex, 0) * -60px), calc(var(--ex, 0) * -36px)); }
.mv-great { transform: translate(calc(var(--ex, 0) * -70px), calc(var(--ex, 0) * 36px)); }
.mv-centre { transform: translate(calc(var(--ex, 0) * 70px), calc(var(--ex, 0) * 40px)); }
.mv-plate-back { opacity: calc(1 - var(--ex, 0) * .55); }
.mv-labels { opacity: var(--ex, 0); }
.mv-dial { transform: translateY(calc((1 - var(--dial, 0)) * 620px)); }
.polish-edge { transform: translateX(var(--edge, 0px)); }
.beat-ticks rect { transform-box: fill-box; transform-origin: center bottom; }
.movement-copy { align-self: center; }
.stage-counter { font: 500 13px var(--mono); letter-spacing: .14em; color: var(--on-dark-muted); margin-bottom: 18px; }
.stage-index { font-size: 22px; color: var(--brass-glow); }
.stage-list { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.stage { counter-increment: st; padding: 16px 0 16px 46px; border-top: 1px solid #e0c08833; position: relative; }
.stage::before { content: counter(st, decimal-leading-zero); position: absolute; left: 0; top: 20px; font: 500 12px var(--mono); color: var(--brass-glow); }
.stage h3 { font: 400 clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem)/1.1 var(--serif); }
.stage p { margin-top: 8px; color: var(--on-dark-muted); max-width: 40ch; }
.art-note { margin-top: 20px; font: 400 12px var(--mono); color: var(--on-dark-muted); letter-spacing: .04em; }
.motion .scenes-ready .stage h3 { transition: color .4s; }
.motion .scenes-ready .stage:not(.is-active) h3 { color: #aeb9b0; }
.motion .scenes-ready .stage.is-active h3 { color: var(--on-dark); }
.motion .scenes-ready .stage.is-active::after { content: ""; position: absolute; left: 0; top: 44px; width: 26px; height: 2px; background: var(--brass-glow); }
.motion .scenes-ready .stage-list .stage { display: grid; grid-template-rows: auto 0fr; transition: grid-template-rows .5s var(--ease); }
.motion .scenes-ready .stage-list .stage.is-active { grid-template-rows: auto 1fr; }
.motion .scenes-ready .stage-list .stage p { overflow: hidden; min-height: 0; }

/* ---------- Interlude ---------- */
.interlude { background: var(--green); overflow: clip; border-top: 1px solid #e0c08833; padding: clamp(18px, 3vw, 34px) 0; }
.interlude-band { display: flex; gap: clamp(28px, 5vw, 70px); white-space: nowrap; font: italic 400 clamp(2.6rem, 2rem + 4vw, 6.4rem)/1 var(--serif); color: var(--brass-glow); transform: translateX(calc(var(--ip, 0) * -40%)); width: max-content; padding-left: var(--gutter); }
.interlude-band span::before { content: attr(data-n); content: attr(data-n) / ""; }
.interlude-band span:nth-child(4n+1) { color: var(--on-dark); }

/* ---------- 04 Workshop (proof) ---------- */
.workshop { background: var(--ivory); overflow: clip; }
.ledger-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 90px); padding: 0 var(--gutter) clamp(80px, 9vw, 140px); align-items: start; }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; padding: 22px 0; position: relative; }
.ledger-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #1f342e44; transform-origin: left; }
.ledger-row:first-child::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: #1f342e44; }
.ledger-key { font: 500 12px/1.9 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ledger-val { font: 400 clamp(1.1rem, 1rem + .5vw, 1.45rem)/1.4 var(--serif); }
.ledger-row-alert .ledger-val { color: var(--oxblood); }
.proof-links { display: grid; gap: 12px; }
.proof-card { display: grid; gap: 4px; padding: 22px 24px; background: var(--paper); border-radius: 18px; text-decoration: none; border: 1px solid transparent; transition: border-color .25s, transform .3s var(--ease); }
.proof-card:hover { border-color: var(--brass); transform: translateY(-2px); }
.proof-label { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--oxblood); }
.proof-title { font: 400 1.5rem/1.2 var(--serif); overflow-wrap: anywhere; }
.proof-src { font: 400 13px var(--mono); color: var(--muted); overflow-wrap: anywhere; }

/* ---------- 05 How ---------- */
.how { background: var(--green); color: var(--on-dark); overflow: clip; padding-bottom: clamp(70px, 8vw, 120px); }
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 90px); padding: 0 var(--gutter); align-items: start; }
.how-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.how-steps::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 1px; background: #e0c08866; transform-origin: top; transform: scaleY(var(--line, 1)); }
.how-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; padding: 0 0 34px; position: relative; }
.step-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--green); border: 1.5px solid var(--brass-glow); color: var(--brass-glow); font: italic 500 17px var(--serif); position: relative; }
.how-steps h3 { font: 400 clamp(1.3rem, 1.1rem + .8vw, 1.75rem)/1.2 var(--serif); padding-top: 6px; }
.how-steps p { margin-top: 6px; color: var(--on-dark-muted); max-width: 44ch; }
.beat-lab { background: #172a25; border: 1px solid #e0c08833; border-radius: 24px; padding: clamp(20px, 3vw, 34px); }
.beat-title { font: 400 1.6rem/1.2 var(--serif); }
.beat-intro { margin-top: 8px; color: var(--on-dark-muted); }
.beat-scene { margin: 18px 0 8px; }
.beat-scene svg { width: 100%; max-width: 360px; display: block; margin: 0 auto; }
.beat-case { transform-box: view-box; transform-origin: 160px 214px; transform: rotate(var(--tilt, -4deg)); transition: transform .5s var(--ease); }
.beat-plumb { transform-box: view-box; transform-origin: 160px 70px; transform: rotate(calc(var(--tilt, -4deg) * -1)); transition: transform .5s var(--ease); }
.beat-pend { transform-box: view-box; transform-origin: 160px 70px; }
.motion .beat-pend { animation: beat-swing 1s ease-in-out infinite alternate; }
.motion .beat-lab.paused .beat-pend { animation-play-state: paused; }
@keyframes beat-swing { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
.beat-strip { position: relative; height: 34px; margin: 12px 4px 0; border-bottom: 1px solid #e0c08866; }
.beat-strip i { position: absolute; bottom: 0; width: 3px; height: 26px; background: var(--brass-glow); transform: translateX(-50%); transition: left .5s var(--ease); }
.beat-strip .b-tick { left: 4%; }
.beat-strip .b-tock { left: var(--tock, 34%); background: var(--on-dark); }
.beat-strip .b-next { left: 96%; }
.beat-label { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font: 500 13px var(--mono); letter-spacing: .06em; }
#beat-out { color: var(--brass-glow); }
.beat-range { width: 100%; margin: 14px 0 6px; accent-color: var(--brass-glow); height: 32px; cursor: pointer; }
.beat-status { min-height: 3.2em; color: var(--on-dark); font-size: 15px; }
.mid-cta { padding: clamp(40px, 5vw, 64px) var(--gutter) 0; }

/* ---------- 06 Waiting list ---------- */
.waiting { background: var(--ivory); overflow: clip; }
.waiting-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 90px); padding: 0 var(--gutter) clamp(80px, 9vw, 140px); align-items: start; }
.wait-form fieldset { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
.wait-form legend, .details-label { font: 500 12px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; padding: 0; display: block; }
.opt { color: var(--muted); letter-spacing: .06em; text-transform: none; margin-left: 6px; }
.type-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.type-option { position: relative; display: flex; align-items: center; min-height: 64px; padding: 14px 18px; border: 1.5px solid #1f342e44; border-radius: 16px; cursor: pointer; font: 400 1.2rem/1.2 var(--serif); transition: border-color .2s, background-color .2s; }
.type-option input, .sign-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; scroll-margin-top: calc(var(--header) + 24px); }
.type-option:has(input:checked) { border-color: var(--green); background: var(--paper); box-shadow: inset 0 0 0 1px var(--green); }
.type-option:has(input:checked) .type-name { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.type-option:has(input:checked)::after { content: "✓" / ""; margin-left: auto; padding-left: 10px; font: 500 16px var(--sans); color: var(--green); }
.type-option:has(input:focus-visible), .sign-option:has(input:focus-visible) { outline: 3px solid var(--focus-light); outline-offset: 3px; }
.sign-options { display: flex; flex-wrap: wrap; gap: 8px; }
.sign-option { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1.5px solid #1f342e44; border-radius: 999px; cursor: pointer; font-size: 15px; transition: background-color .2s, border-color .2s; }
.sign-option:has(input:checked) { background: var(--green); border-color: var(--green); color: var(--on-dark); }
.sign-option:has(input:checked)::before { content: "✓" / ""; margin-right: 6px; }
.details-label { margin-top: 4px; }
.wait-form textarea { width: 100%; min-height: 110px; padding: 14px 16px; border: 1.5px solid #1f342e66; border-radius: 16px; background: #fffdf8; font-size: 16px; line-height: 1.5; resize: vertical; }
.wait-form textarea::placeholder { color: #6e6658; }
.tag-col { position: sticky; top: calc(var(--header) + 24px); }
.tag-dial { width: min(100%, 300px); margin: 0 auto -6px; position: relative; z-index: 1; }
.dial-tag { overflow: hidden; }
.tag { position: relative; background: #f8f1df; border: 1px solid #b48a5380; border-radius: 10px 10px 10px 10px; padding: 34px 28px 24px; box-shadow: 0 24px 50px -28px #2b1a1288; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.tag::before { content: ""; position: absolute; inset: 8px; border: 1px dashed #b48a5399; border-radius: 6px; pointer-events: none; }
.tag-hole { position: absolute; top: 12px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--ivory); border: 2px solid var(--brass); }
.tag-head { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--oxblood); text-align: center; }
.tag-text { margin: 14px 0; font: 400 clamp(1.1rem, 1rem + .5vw, 1.4rem)/1.45 var(--serif); overflow-wrap: anywhere; }
.tag-small { font: 400 12px var(--mono); color: var(--muted); }
.motion .tag.pulse { animation: tag-pulse .6s var(--ease); }
@keyframes tag-pulse { 0% { transform: rotate(0); } 30% { transform: rotate(-1.2deg); } 65% { transform: rotate(.8deg); } 100% { transform: rotate(0); } }
.tag-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag-help { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ---------- 07 Visit (calm) ---------- */
.visit { background: var(--paper); }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 90px); padding: 0 var(--gutter) clamp(80px, 9vw, 130px); }
.visit-list { margin: 0; }
.visit-list > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-top: 1px solid #1f342e33; }
.visit-list dt { font: 500 12px/1.9 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.visit-list dd { margin: 0; font: 400 1.25rem/1.45 var(--serif); overflow-wrap: anywhere; }
.visit-list a { display: inline-block; padding: 6px 0; text-underline-offset: 4px; }
.visit-note { align-self: start; padding: 24px; border-left: 3px solid var(--brass); background: var(--ivory); color: var(--muted); }

/* ---------- 08 Closing ---------- */
.closing { background: var(--green); color: var(--on-dark); overflow: clip; }
.closing-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 90px); align-items: center; padding: clamp(80px, 10vw, 150px) var(--gutter); }
.closing h2 { font: 400 clamp(2.3rem, 1.2rem + 4vw, 5.4rem)/1 var(--serif); letter-spacing: -.02em; margin: 22px 0 24px; max-width: 13ch; }
.closing-note { font: 400 clamp(1.1rem, 1rem + .5vw, 1.4rem)/1.5 var(--serif); max-width: 40ch; }
.closing-signs { list-style: none; margin: 16px 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.closing-signs:empty { display: none; }
.closing-signs li { padding: 6px 14px; border: 1px solid #e0c08877; border-radius: 999px; font-size: 14px; }
.closing .cta-row { margin-top: 28px; }
.closing-small { margin-top: 22px; font: 400 13px var(--mono); color: var(--on-dark-muted); }
.closing-dial-wrap { position: relative; width: min(100%, 400px); justify-self: center; }
.dial-close { position: relative; z-index: 1; filter: drop-shadow(0 30px 40px #0007); }
.voice-ring { position: absolute; left: 50%; top: 18%; width: 72%; aspect-ratio: 1; border: 1.5px solid var(--brass-glow); border-radius: 50%; transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none; }
.motion .closing.in .voice-ring { animation: voice 2.4s var(--ease) 1.2s both; }
.motion .closing.in .voice-ring:nth-child(2) { animation-delay: 1.55s; }
.motion .closing.in .voice-ring:nth-child(3) { animation-delay: 1.9s; }
@keyframes voice { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.55); } 25% { opacity: .9; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); } }

/* ---------- Owner + footer ---------- */
.owner { background: var(--paper-2); padding: clamp(56px, 7vw, 96px) var(--gutter); }
.owner .kicker { color: var(--oxblood); }
.owner h2 { font: 400 clamp(1.7rem, 1.2rem + 2vw, 3rem)/1.15 var(--serif); margin: 16px 0; max-width: 26ch; }
.owner > p { max-width: 64ch; }
.owner-url { margin-top: 10px; color: var(--muted); }
.owner-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 14px; }
.owner-small { font: 400 13px var(--mono); color: var(--muted); }
.site-footer { background: var(--ink); color: #e9e2d2; padding: clamp(48px, 6vw, 80px) var(--gutter) 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.site-footer :focus-visible { outline-color: var(--focus-dark); }
.foot-col { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.foot-col a, .foot-col span { display: inline-flex; align-items: center; min-height: 44px; font: 400 15px var(--sans); text-underline-offset: 4px; overflow-wrap: anywhere; }
.foot-col span { min-height: 0; padding: 10px 0; color: #c8bfae; }
.foot-col p { color: #c8bfae; max-width: 34ch; }
.foot-brand { font: 500 1.5rem var(--serif); color: #f2ecdf !important; margin-bottom: 8px; }
.foot-legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid #ffffff22; font: 400 12.5px/1.6 var(--mono); color: #c8bfae; }

/* ---------- Scroll reveals (only when JS adds .rv) ---------- */
.motion .rv { transition: opacity .9s var(--ease), transform .9s var(--ease), clip-path 1s var(--ease); }
.motion .rv[data-rv="rise"]:not(.in) { opacity: .08; transform: translateY(40px); }
.motion .rv[data-rv="wipe"]:not(.in) { clip-path: inset(0 100% 0 0); }
.motion .rv[data-rv="mask"]:not(.in) { clip-path: inset(0 0 100% 0); transform: translateY(32px); }
.motion .rv[data-rv="scale"]:not(.in) { opacity: .1; transform: scale(.9) translateY(30px); }
.motion .ledger-row.rv::after { transition: transform 1.1s var(--ease) .15s; }
.motion .ledger-row.rv:not(.in)::after { transform: scaleX(0); }
.motion .how-steps.rv .step-num { transition: transform .6s var(--ease), opacity .6s; }
.motion .how-steps.rv:not(.in) .step-num { transform: scale(.3); opacity: 0; }
.motion .how-steps.rv li:nth-child(2) .step-num { transition-delay: .15s; }
.motion .how-steps.rv li:nth-child(3) .step-num { transition-delay: .3s; }
.motion .how-steps.rv li:nth-child(4) .step-num { transition-delay: .45s; }
.motion .how-steps.rv::before { transition: transform 1.4s var(--ease); }
.motion .how-steps.rv:not(.in)::before { transform: scaleY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid #1f342e22; }
  .facts > div { padding: 10px 0; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: baseline; }
  .facts dd { margin: 0; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 24px; }
  .hero-dial { width: min(86%, 380px); margin-top: 12px; }
  .bench-track { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .bench-stage { height: auto; padding: 14px 0 10px; z-index: 2; background: var(--paper); flex-direction: row; justify-content: center; gap: 20px; border-bottom: 1px solid #1f342e22; }
  .dial-bench { width: auto; height: min(30svh, 230px); }
  .bench-item { min-height: 58svh; }
  .bench-item:last-child { min-height: 64svh; }
  .movement-track { height: 400svh; }
  .movement-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 46%) minmax(0, 1fr); align-items: start; gap: 4px; padding-top: 8px; }
  .movement { max-height: 100%; }
  .movement-visual { height: 100%; }
  .stage { padding: 10px 0 10px 40px; }
  .stage::before { top: 14px; }
  .motion .scenes-ready .stage.is-active::after { top: 36px; }
  .stage-counter { margin-bottom: 6px; }
  .art-note { margin-top: 8px; }
  .ledger-grid, .how-grid, .waiting-grid, .visit-grid, .closing-grid { grid-template-columns: minmax(0, 1fr); }
  .tag-col { position: static; }
  .closing-dial-wrap { width: min(70%, 300px); order: -1; }
  .site-footer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer .foot-col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .ledger-row, .visit-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .type-options { grid-template-columns: minmax(0, 1fr); }
  .cta-row .btn { flex: 1 1 100%; }
  .stage h3 { font-size: 1.35rem; }
  .stage p { font-size: 15px; }
  .site-footer { grid-template-columns: minmax(0, 1fr); }
}
/* Short phones: give the stage copy room so the illustration note is never clipped */
@media (max-width: 860px) and (max-height: 800px) {
  .movement-stage { grid-template-rows: minmax(0, 36%) minmax(0, 1fr); }
  .stage { padding-block: 7px; }
  .stage h3 { font-size: 1.2rem; }
  .stage p { font-size: 14px; line-height: 1.45; }
  .stage-counter { margin-bottom: 2px; }
  .art-note { margin-top: 4px; font-size: 11px; }
}
/* Without JS the movement is one static illustration: no long pinned track */
html:not(.js) .movement-track { height: auto; }
html:not(.js) .movement-stage { position: relative; top: auto; height: auto; grid-template-rows: none; padding-block: 24px 56px; }
/* Short or landscape screens: the pinned scenes become ordinary flow */
@media (max-height: 560px) {
  .bench-stage { position: relative; top: auto; height: auto; padding: 20px 0; }
  .bench-item, .bench-item:last-child { min-height: 0; padding: 32px 0; }
  .movement-track { height: auto; }
  .movement-stage { position: relative; top: auto; height: auto; grid-template-rows: none; padding-block: 24px 48px; }
  .movement { max-height: 80svh; }
  .motion .scenes-ready .stage-list .stage { grid-template-rows: auto 1fr; }
  .tag-col { position: static; }
}

/* ---------- Reduced motion: discrete readable states ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .voice-ring { display: none; }
}

/* Browsers without :has(): show the native controls so focus and selection stay visible */
@supports not selector(:has(*)) {
  .type-option input, .sign-option input { position: static; opacity: 1; width: 20px; height: 20px; margin-right: 10px; flex: none; }
}
/* ---------- Forced colours ---------- */
@media (forced-colors: active) {
  .type-option:has(input:checked), .sign-option:has(input:checked) { border: 3px solid CanvasText; text-decoration: underline; }
  .btn, .header-call, .proof-card { border: 2px solid ButtonText; }
  .header-call::before { background: CanvasText; }
  .tag, .beat-lab { border: 1px solid CanvasText; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .skip, .owner-links, .tag-actions, .beat-range, .interlude, .menu-toggle { display: none !important; }
  body, .restoration, .how, .closing, .site-footer { background: #fff !important; color: #000 !important; }
  .movement-track { height: auto; }
  .bench-stage, .movement-stage, .tag-col { position: static; height: auto; }
  .bench-item { min-height: 0; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .rv { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .stage-list .stage { grid-template-rows: auto auto !important; }
  .stage p { overflow: visible !important; }
}
