/* Coremosh site styles: a rehearsal room at night, drawn clean.
   Dark room, warm stage light (amber, with a low ember red), the metal logo as
   the one rough thing. Everything else is crisp: big condensed headlines, plain
   text, mono labels like a setlist, rounded panels with hairline borders.
   Type: Big Shoulders Display (headlines), Schibsted Grotesk (text),
   Martian Mono (labels, nav, meta). All self-hosted.
   Motion: one load sequence on the home page, Pit, the product loops, short
   hover moves. Nothing with reduced motion. */

@font-face { font-family: "Big Shoulders Display"; src: url("/fonts/big-shoulders-display.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("/fonts/martian-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #0b0a09;
  --surface: #13110f;
  --surface-2: #1a1714;
  --screen: #181413;          /* the colour the product loops are filmed on */
  --border: rgba(239, 233, 222, 0.09);
  --border-strong: rgba(239, 233, 222, 0.18);
  --text: #efe9de;
  --muted: #a39d93;
  --amber: #f2a33a;
  --amber-soft: rgba(242, 163, 58, 0.14);
  --ember: #b8321f;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1360px;
  --section: clamp(96px, 12vw, 168px);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* A fine, still grain over the room. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; color: var(--text); background: var(--bg) var(--grain);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; max-width: 62ch; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--amber); color: var(--bg); padding: 10px 14px; font-weight: 700; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Type */

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 0.9; letter-spacing: -0.01em; text-wrap: balance; }
.display, h1 { font-size: clamp(3.5rem, 10vw, 9rem); font-weight: 900; line-height: 0.86; max-width: 14ch; }
h2 { font-size: clamp(2.75rem, 6vw, 5.25rem); font-weight: 900; }
h3 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); }
.accent { color: var(--amber); }
.lead { font-size: clamp(1.1875rem, 1.6vw, 1.375rem); line-height: 1.5; color: var(--muted); max-width: 44ch; margin-top: 28px; }
.kicker { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; color: var(--amber); margin: 0 0 20px; }
/* A small pill, like the light on an amp that says it is on. */
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; padding: 8px 16px 8px 12px;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600; color: var(--text);
  background: rgba(239, 233, 222, 0.04); border: 1px solid var(--border-strong); border-radius: 999px;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }

/* Header */

.top { position: sticky; top: 0; z-index: 20; transition: background-color 250ms ease-out, border-color 250ms ease-out; border-bottom: 1px solid transparent; }
.top.is-stuck { background: rgba(11, 10, 9, 0.78); border-bottom-color: var(--border); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.top.is-stuck .top-row { min-height: 72px; }
.top-row { transition: min-height 250ms ease-out; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.mark { display: block; flex: none; }
.mark img { height: 50px; width: auto; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(4px, 1.4vw, 14px); }
/* Each link carries a hairline of stage light, like the lit edge of the cards:
   brightest in the middle, fading out at both ends. It draws out from the
   centre on hover and stays lit under the section in view. */
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; color: var(--muted); font-family: var(--mono); font-size: 0.75rem; font-weight: 500; transition: color 200ms ease-out; }
.nav a::before, .nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; pointer-events: none;
  transform: scaleX(0); opacity: 0; transition: transform 350ms var(--ease), opacity 250ms ease-out;
}
.nav a::after { height: 1px; background: linear-gradient(90deg, rgba(242, 163, 58, 0), var(--amber) 50%, rgba(242, 163, 58, 0)); }
.nav a::before { height: 10px; bottom: 2px; background: radial-gradient(50% 50% at 50% 50%, rgba(242, 163, 58, 0.6), rgba(242, 163, 58, 0)); filter: blur(4px); }
.nav a:hover, .nav a:focus-visible { color: var(--text); }
.nav a:hover::before, .nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); opacity: 1; }
.nav a[aria-current] { color: var(--text); }
.nav a[aria-current]::after { transform: scaleX(1); opacity: 1; }
.nav a[aria-current]::before { transform: scaleX(1); opacity: 0.7; }
@media (max-width: 560px) {
  .top-row { min-height: 76px; gap: 10px; }
  .mark img { height: 30px; }
  .nav { gap: 0; }
  .nav a { padding: 0 8px; font-size: 0.6875rem; }
}
@media (max-width: 370px) { .mark img { height: 24px; } .nav a { padding: 0 6px; } }

/* Buttons and links */

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 40px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  background: var(--amber); color: #1a1208; border: 1px solid var(--amber); border-radius: 12px;
  font-family: var(--body); font-size: 1rem; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color 150ms ease-out, transform 150ms ease-out;
}
.btn::after { content: "\2192"; transition: transform 150ms ease-out; }
.btn:hover { background: #f6b85d; }
.btn:hover::after { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: rgba(239, 233, 222, 0.03); color: var(--text); border-color: var(--border-strong); }
.btn-ghost::after { content: none; }
.btn-ghost:hover { background: rgba(239, 233, 222, 0.08); border-color: rgba(239, 233, 222, 0.32); }
.arrow-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; text-decoration: none; }
.arrow-link::after { content: "\2192"; color: var(--amber); transition: transform 150ms ease-out; }
.arrow-link:hover::after { transform: translateX(4px); }

/* Sections */

.section { padding: var(--section) 0 0; position: relative; }
.section-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-top p { color: var(--muted); max-width: 44ch; margin: 0; }

/* Hero: the stage light is on. */

@property --hx { syntax: "<percentage>"; inherits: true; initial-value: 78%; }
@property --hy { syntax: "<percentage>"; inherits: true; initial-value: 42%; }
.hero { position: relative; padding: clamp(32px, 6vw, 80px) 0 0; isolation: isolate; --hx: 78%; --hy: 42%; transition: --hx 900ms var(--ease), --hy 900ms var(--ease); }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: -120px 0 -80px;
  background:
    radial-gradient(38% 46% at calc(78% + (var(--hx) - 78%) * 0.35) calc(42% + (var(--hy) - 42%) * 0.35), rgba(242, 163, 58, 0.16), rgba(242, 163, 58, 0) 70%),
    radial-gradient(34% 44% at 4% 78%, rgba(184, 50, 31, 0.13), rgba(184, 50, 31, 0) 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  pointer-events: none;
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: min(calc(100svh - 92px - 80px), 800px); gap: 24px; }
}
.hero .display { max-width: none; font-size: clamp(3.75rem, 13vw, 9.5rem); }
.hero .display .line { display: block; }
@media (min-width: 1000px) {
  .hero-copy { container-type: inline-size; }
  .hero .display { font-size: min(8rem, 6.4vw); }
  .hero .display .line { white-space: nowrap; }
}
/* Sized to its own column: "You make the noise." always ends before Pit begins. */
@supports (font-size: 1cqi) { @media (min-width: 1000px) { .hero .display { font-size: min(8.5rem, 12.6cqi); } } }
.pit-frame { margin: 0; width: 100%; max-width: 600px; justify-self: end; }
.pit-stage {
  aspect-ratio: 400 / 320; width: 100%;
  --hairline-plate: #100e0c; --hairline-hi: #f2a33a; --hairline-edge: #b3ab9f; --hairline-mid: #4a453f; --hairline-lo: #2a2622;
  --hairline-stroke: 1;
}

/* Work */

.projects { display: grid; gap: clamp(72px, 9vw, 128px); }
.project { display: grid; gap: 28px; }
.print {
  position: relative; margin: 0; padding: 10px; border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, rgba(239, 233, 222, 0.06), rgba(239, 233, 222, 0.02)); border: 1px solid var(--border);
}
.case-media { position: relative; margin: 0; background: var(--screen); overflow: hidden; border-radius: var(--radius); }
.case-media.for-wide { aspect-ratio: 16 / 9; }
.case-media.for-phone { display: none; aspect-ratio: 420 / 710; }
@media (max-width: 599px) {
  .case-media.for-wide { display: none; }
  .case-media.for-phone { display: block; }
  .project .print { max-width: 420px; }
  .case-media.case-only { display: block; }
}
.case-media video { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.project .print:hover video { transform: scale(1.015); }
.loop-toggle {
  position: absolute; right: 14px; bottom: 14px; min-height: 40px; padding: 0 16px;
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 600; color: var(--text);
  background: rgba(11, 10, 9, 0.72); border: 1px solid var(--border-strong); border-radius: 999px; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.loop-toggle:hover { border-color: var(--amber); }
.project-info { display: grid; gap: 28px 56px; }
@media (min-width: 900px) { .project-info { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.project-lead { display: grid; gap: 14px; align-content: start; }
.project-info h3 { font-size: clamp(3rem, 5.4vw, 5rem); font-weight: 900; line-height: 0.86; }
.project-info p { color: var(--muted); margin: 0; }
.built { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 600px) { .built { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.built li { padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.built strong { display: block; color: var(--text); font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1; margin-bottom: 8px; }
.meta { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.meta span + span::before { content: "/"; margin-right: 12px; color: var(--amber); }

/* What we do: three panels */

.services { display: grid; gap: 16px; }
@media (min-width: 900px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.service {
  position: relative; display: grid; gap: 14px; align-content: start; padding: clamp(28px, 3vw, 40px);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: border-color 200ms ease-out, transform 200ms var(--ease);
}
.service:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.service .icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--amber-soft); color: var(--amber); margin-bottom: 18px; }
.service .icon svg { width: 24px; height: 24px; }
.service h3 { font-size: clamp(2.25rem, 3.2vw, 2.75rem); font-weight: 900; }
.service p { margin: 0; color: var(--muted); }
.service .meta { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--border); }

/* How we work: a real sequence, so it is numbered */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; display: grid; gap: 10px; padding: 28px 0 32px 64px; border-top: 1px solid var(--border); }
.steps li::before {
  content: "0" counter(step); position: absolute; left: 0; top: 26px; width: 44px; height: 44px; display: grid; place-items: center;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600; color: var(--amber); border: 1px solid rgba(242, 163, 58, 0.4); border-radius: 50%;
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .steps li { padding: 84px 0 0; border-top: 0; }
  .steps li::before { top: 0; }
  .steps li::after { content: ""; position: absolute; top: 22px; left: 56px; right: -20px; height: 1px; background: linear-gradient(90deg, rgba(242, 163, 58, 0.45), var(--border)); }
  .steps li:last-child::after { content: none; }
}
.steps h3 { font-size: clamp(2rem, 2.6vw, 2.5rem); font-weight: 900; }
.steps p { color: var(--muted); margin: 0; }

/* Closing call: a lit panel */

.call { padding: var(--section) 0 clamp(64px, 7vw, 104px); }
.call-panel {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: clamp(64px, 9vw, 128px) clamp(24px, 5vw, 80px); border-radius: calc(var(--radius) + 10px);
  background: var(--surface); border: 1px solid var(--border);
}
.call-panel::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: radial-gradient(60% 80% at 50% 0%, rgba(242, 163, 58, 0.2), rgba(242, 163, 58, 0) 70%), radial-gradient(40% 60% at 100% 100%, rgba(184, 50, 31, 0.16), rgba(184, 50, 31, 0) 70%);
}
.call h2 { font-size: clamp(3.25rem, 8vw, 7rem); max-width: 12ch; margin: 0 auto; }
.call .lead { margin: 24px auto 0; }
.call .actions { justify-content: center; }
.call .kicker { margin: 0 auto 18px; max-width: none; text-align: center; }

/* Page heads */

.page-head { position: relative; padding: clamp(48px, 8vw, 112px) 0 0; isolation: isolate; }
.page-head::before {
  content: ""; position: absolute; z-index: -1; inset: -120px 0 -40px;
  background: radial-gradient(40% 60% at 85% 20%, rgba(242, 163, 58, 0.11), rgba(242, 163, 58, 0) 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  pointer-events: none;
}
.page-head + .section { padding-top: clamp(56px, 7vw, 104px); }

/* Case studies */

.case-head .back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 20px; color: var(--muted); font-family: var(--mono); font-size: 0.75rem; text-decoration: none; }
.case-head .back::before { content: "\2190"; color: var(--amber); }
.case-head .back:hover { color: var(--text); }
.facts { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 48px 0 0; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts div { padding: 20px 22px; background: var(--surface); }
.facts dt { font-family: var(--mono); color: var(--muted); font-size: 0.6875rem; margin-bottom: 6px; }
.facts dd { margin: 0; font-weight: 600; }
.section.case-print { padding-top: clamp(48px, 6vw, 80px); }
.prose-grid { display: grid; gap: 24px 56px; }
@media (min-width: 900px) { .prose-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.prose-grid h2 { font-size: clamp(2.5rem, 4.4vw, 3.75rem); }
.prose-grid p { color: var(--muted); }
.prose-grid .lead { margin-top: 0; color: var(--text); font-size: clamp(1.25rem, 2vw, 1.5rem); }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.features li { position: relative; padding: 24px 26px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.features h3 { font-size: 1.75rem; margin-bottom: 8px; }
.features p { margin: 0; }
.next-case { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 20px; }
.next-case .arrow-link:first-child::after { content: none; }
.next-case .arrow-link:first-child::before { content: "\2190"; color: var(--amber); }
/* The old paper band is now a quiet raised band. */
.paper { margin-top: var(--section); padding: var(--section) 0; background: linear-gradient(180deg, rgba(239, 233, 222, 0), rgba(239, 233, 222, 0.03) 30%, rgba(239, 233, 222, 0.03) 70%, rgba(239, 233, 222, 0)); }
.paper + .section { padding-top: 0; }

/* Forms */

.form-sheet { position: relative; max-width: 820px; padding: clamp(28px, 5vw, 56px); background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); }
.form { display: grid; gap: 24px; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; }
.field .hint { display: block; color: var(--muted); font-size: 0.9375rem; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border-strong); border-radius: 12px; padding: 14px 16px; min-height: 52px;
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.form .btn { justify-self: start; }
.form-note { color: var(--muted); font-size: 0.9375rem; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.text-block { max-width: 66ch; }
.text-block h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); margin: 1.4em 0 0.4em; }
.text-block h2:first-child { margin-top: 0; }
.text-block p { color: var(--muted); }

/* Footer: one quiet line */

.foot { border-top: 1px solid var(--border); padding: 22px 0; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; }
.foot-copy { margin: 0; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); text-decoration: none; transition: color 150ms ease-out; }
.foot-links a:hover { color: var(--text); }

/* The one load sequence, home page only. */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes light-up { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .page-home .hero::before { animation: light-up 1400ms 100ms ease-out both; }
  .page-home .hero .badge { animation: rise 600ms 80ms var(--ease) both; }
  .page-home .hero .display .line { animation: rise 800ms var(--ease) both; }
  .page-home .hero .display .line:nth-child(1) { animation-delay: 160ms; }
  .page-home .hero .display .line:nth-child(2) { animation-delay: 280ms; }
  .page-home .hero .lead { animation: rise 700ms 460ms var(--ease) both; }
  .page-home .hero .actions { animation: rise 700ms 560ms var(--ease) both; }
  .page-home .hero .pit-stage { animation: fade 1000ms 500ms ease-out both; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; }
}
main > section:last-child { padding-bottom: var(--section); }

/* The light that follows the cursor (js/motion.js adds .spot and the span). */
.spot { isolation: isolate; --mx: 50%; --my: 50%; }
.spot-light { position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 300ms ease-out;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(242, 163, 58, 0.17), rgba(242, 163, 58, 0) 45%); }
.spot-light::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: radial-gradient(280px circle at var(--mx) var(--my), rgba(242, 163, 58, 0.95), rgba(242, 163, 58, 0) 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.spot:hover > .spot-light { opacity: 1; }
.facts > .spot-light { z-index: 1; }
.facts > .spot-light { background: none; }

/* How we work plays once, 1 to 4 (js/motion.js arms it and starts it). */
@keyframes step-light {
  0% { background: transparent; color: var(--amber); box-shadow: 0 0 0 0 var(--amber-soft); }
  18%, 62% { background: var(--amber); color: var(--bg); border-color: var(--amber); box-shadow: 0 0 0 8px var(--amber-soft); }
  100% { background: transparent; color: var(--amber); box-shadow: 0 0 0 0 rgba(242, 163, 58, 0); }
}
@keyframes step-wire { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes step-dim { from { opacity: 0.25; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .steps.is-armed li::before { opacity: 0.35; }
  .steps.is-armed li h3, .steps.is-armed li p { opacity: 0; transform: translateY(14px); }
  .steps.is-armed li::after { transform: scaleX(0); transform-origin: left center; }
  .steps.is-on li::before { opacity: 1; animation: step-light 1300ms calc(var(--i) * 520ms) var(--ease) both; }
  .steps.is-on li h3 { animation: rise 600ms calc(var(--i) * 520ms + 120ms) var(--ease) both; }
  .steps.is-on li p { animation: rise 600ms calc(var(--i) * 520ms + 220ms) var(--ease) both; }
  .steps.is-on li::after { animation: step-wire 520ms calc(var(--i) * 520ms + 260ms) cubic-bezier(.5,0,.5,1) both; }
}

/* One page: sections, about, contact */
section[id] { scroll-margin-top: 88px; }
.service .arrow-link { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--border); justify-self: stretch; color: var(--text); }
.about { display: grid; gap: 24px 56px; margin-bottom: clamp(64px, 8vw, 104px); }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.about h2 { max-width: 10ch; }
.about-text .lead { margin-top: 0; color: var(--text); }
.about-text p { color: var(--muted); }
.steps-title { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; color: var(--amber); margin: 0 0 28px; }
.contact { padding-bottom: clamp(64px, 7vw, 104px); }
.contact-panel { text-align: left; display: grid; gap: 40px 64px; padding: clamp(32px, 5vw, 72px); }
@media (min-width: 960px) { .contact-panel { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
.contact-panel::before { background: radial-gradient(50% 70% at 15% 0%, rgba(242, 163, 58, 0.2), rgba(242, 163, 58, 0) 70%), radial-gradient(40% 60% at 100% 100%, rgba(184, 50, 31, 0.14), rgba(184, 50, 31, 0) 70%); }
.contact-intro h2 { font-size: clamp(3rem, 6.5vw, 6rem); max-width: 10ch; }
.contact-intro .lead { margin-top: 24px; }
.contact-panel .field input, .contact-panel .field textarea { background: rgba(11, 10, 9, 0.6); }
/* Topic: real radio buttons drawn as pills */
.topics { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.topics legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.topic { position: relative; display: inline-flex !important; align-items: center; min-height: 44px; margin: 0 !important; padding: 0 18px; border: 1px solid var(--border-strong); border-radius: 999px; font-family: var(--mono); font-size: 0.75rem; font-weight: 600 !important; color: var(--muted); cursor: pointer; transition: color 150ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out; }
.topic:hover { color: var(--text); border-color: rgba(239, 233, 222, 0.32); }
.topic input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.topic:has(input:checked) { color: var(--bg); background: var(--amber); border-color: var(--amber); }
.topic:has(input:focus-visible) { outline: 2px solid var(--amber); outline-offset: 3px; }
.service { display: flex; flex-direction: column; }
.service .arrow-link { margin-top: auto; }
.service > p:last-of-type { margin-bottom: 16px; }
