/* ZEYDR V22 design system (dark first; light grounds via .ground-paper).
   Spec: docs/website-toolkit/builds/zeydr-website-v22-creative-direction.md
   Only the line is ever angled. Red on black is Signal; red on white is Deep. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #000000;
  --paper: #ffffff;
  --signal: #f3213e;
  --deep: #c8102e;
  --deep-press: #a50d25;
  --ash: #b4aeac;
  --graphite: #4a4544;
  --rule-dark: #2a2726;
  --rule-light: #d6d2d1;
  --noise: #5b5655;

  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --angle: 40deg;
  --max: 1240px;
  --gutter: 20px;
  --header-h: 64px;

  --t-display: clamp(2.5rem, 13vw, 8.5rem);
  --t-h2: clamp(2.25rem, 6vw, 5.25rem);
  --t-h3: 1.5rem;
  --t-lede: clamp(1.1875rem, 1.6vw, 1.3125rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;
  --space-band: clamp(5rem, 11vw, 10rem);

  /* per-ground roles, swapped by .ground-paper and .ground-field */
  --fg: var(--paper);
  --quiet: var(--ash);
  --rule: var(--rule-dark);
  --red: var(--signal);
  --focus: var(--signal);
  color-scheme: dark;
}
@media (min-width: 901px) {
  :root { --t-body: 1.125rem; --gutter: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.ground-paper { --fg: var(--ink); --quiet: var(--graphite); --rule: var(--rule-light); --red: var(--deep); --focus: var(--deep); background: var(--paper); color: var(--ink); }
.ground-field { --fg: var(--paper); --quiet: var(--paper); --rule: rgba(255, 255, 255, 0.4); --red: var(--paper); --focus: var(--paper); background: var(--deep); color: var(--paper); }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.band { padding-block: var(--space-band); }
.quiet { color: var(--quiet); }
.small { font-size: var(--t-small); line-height: 1.5; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.skip-link { position: absolute; left: 12px; top: -100px; z-index: 100; background: var(--paper); color: var(--ink); padding: 12px 16px; font-weight: 700; }
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* type */
.display { font-size: var(--t-display); font-weight: 850; line-height: 0.9; letter-spacing: -0.045em; }
.h2 { font-size: var(--t-h2); font-weight: 800; line-height: 0.95; letter-spacing: -0.035em; }
.h3 { font-size: var(--t-h3); font-weight: 750; line-height: 1.2; letter-spacing: -0.015em; }
.lede { font-size: var(--t-lede); line-height: 1.5; max-width: 40ch; }
.measure { max-width: 62ch; }

/* buttons: say what they do, no arrows */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  font: 700 1.0625rem/1.1 var(--font); letter-spacing: -0.005em;
  text-decoration: none; border: 2px solid currentColor; border-radius: 2px;
  color: var(--fg); background: transparent; cursor: pointer;
  transition: background-color 160ms, border-color 160ms, color 160ms;
}
.btn:hover { background: var(--fg); color: var(--ink); border-color: var(--fg); }
.ground-paper .btn:hover { color: var(--paper); }
.btn--primary { background: var(--deep); border-color: var(--deep); color: var(--paper); }
.btn--primary:hover { background: var(--deep-press); border-color: var(--deep-press); color: var(--paper); }
.ground-field .btn--primary { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.ground-field .btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ground-field .btn:hover { color: var(--deep); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* header: its bottom edge is the Z's top stroke, filling as you read */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--ink); color: var(--paper); border-bottom: 1px solid var(--rule-dark); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 850; font-size: 1.25rem; letter-spacing: 0.01em; }
.brand img { width: 46px; height: 30px; object-fit: contain; }
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--signal); transform-origin: 0 50%; transform: scaleX(var(--read, 0)); pointer-events: none; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__links { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; }
.nav__links a { text-decoration: none; font-weight: 550; font-size: 0.9375rem; color: var(--ash); padding-block: 8px; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--paper); }
.nav__links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--signal); }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; background: none; border: 0; color: var(--paper); font: 700 1rem var(--font); cursor: pointer; }
  .nav { position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 49; background: var(--ink); flex-direction: column; align-items: stretch; justify-content: space-between; gap: 32px; padding: 28px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px)); overflow-y: auto; }
  .js .nav:not(.is-open) { display: none; }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { display: block; color: var(--paper); font-size: clamp(2rem, 9vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; padding: 14px 0; border-bottom: 1px solid var(--rule-dark); }
  .nav__links a[aria-current="page"] { box-shadow: none; color: var(--signal); }
  .nav .btn { min-height: 56px; font-size: 1.0625rem; }
  html:not(.js) .nav { position: static; flex-direction: column; padding: 0 0 20px; }
  html:not(.js) .site-header .wrap { flex-wrap: wrap; height: auto; padding-block: 12px; }
  html:not(.js) .nav__links { flex-direction: row; flex-wrap: wrap; gap: 0 18px; }
  html:not(.js) .nav__links a { font-size: 1rem; padding: 8px 0; border-bottom: 0; line-height: 1.4; }
}
body.menu-open { overflow: hidden; }
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .nav.is-open .nav__links li { animation: menu-in 480ms var(--ease-arrive) both; }
  .nav.is-open .nav__links li:nth-child(2) { animation-delay: 60ms; } .nav.is-open .nav__links li:nth-child(3) { animation-delay: 120ms; } .nav.is-open .nav__links li:nth-child(4) { animation-delay: 180ms; } .nav.is-open .nav__links li:nth-child(5) { animation-delay: 240ms; }
  @keyframes menu-in { from { clip-path: inset(0 0 100% 0); transform: translateY(0.5em); } to { clip-path: inset(-10% 0 -10% 0); transform: none; } }
}

/* ===== Motion system (tokens mirror tools/zeydr-site/scene/src/motion/tokens.js) ===== */
:root {
  --dur-micro: 160ms; --dur-response: 320ms; --dur-reveal: 700ms;
  --ease-arrive: cubic-bezier(0.16, 1, 0.3, 1);      /* expo out */
  --ease-transform: cubic-bezier(0.45, 0, 0.55, 1);  /* power2 in-out */
  --ease-respond: cubic-bezier(0.25, 1, 0.5, 1);     /* power1 out */
}
/* Respond: buttons press, links draw their underline */
.btn { transition: background-color var(--dur-response) var(--ease-respond), border-color var(--dur-response) var(--ease-respond), color var(--dur-response) var(--ease-respond), transform var(--dur-micro) var(--ease-respond); }
.btn:active { transform: scale(0.98); }
.linkbtn { background: none; border: 0; padding: 0; min-height: 44px; display: inline-flex; align-items: center; color: inherit; font: 600 0.9375rem var(--font); cursor: pointer;
  background-image: linear-gradient(var(--signal), var(--signal)); background-repeat: no-repeat; background-size: 100% 2px; background-position: 0 calc(50% + 0.85em); transition: color var(--dur-response); }
.linkbtn:hover { color: var(--signal); }
/* Set: a heading rises out of a mask, once. Nothing is withheld unless html.motion is set. */
[data-set] { transition: clip-path var(--dur-reveal) var(--ease-arrive), transform var(--dur-reveal) var(--ease-arrive); }
.motion [data-set]:not(.is-in) { clip-path: inset(0 0 100% 0); transform: translateY(0.4em); }
.motion [data-set].is-in { clip-path: inset(-12% -2% -24% -2%); }
/* Build-in: a list's rules draw across, then stay */
.issues[data-build] li, .ledger[data-build] li { border-bottom-color: transparent; }
.issues[data-build] li::before, .ledger[data-build] li::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rule); transform-origin: 0 50%; transition: transform var(--dur-reveal) var(--ease-arrive); }
.issues[data-build] li { position: relative; }
.motion .issues[data-build]:not(.is-in) li::before, .motion .ledger[data-build]:not(.is-in) li::before { transform: scaleX(0); }
.issues[data-build] li:nth-child(2)::before, .ledger[data-build] li:nth-child(2)::before { transition-delay: 60ms; }
.issues[data-build] li:nth-child(3)::before, .ledger[data-build] li:nth-child(3)::before { transition-delay: 120ms; }
.issues[data-build] li:nth-child(4)::before, .ledger[data-build] li:nth-child(4)::before { transition-delay: 180ms; }
.issues[data-build] li:nth-child(5)::before { transition-delay: 240ms; } .issues[data-build] li:nth-child(6)::before { transition-delay: 300ms; }
/* Light: a highlight follows the pointer across glass and photographs */
[data-light] { position: relative; }
[data-light]::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity var(--dur-response);
  background: radial-gradient(220px circle at var(--lx, 50%) var(--ly, 50%), rgba(255, 255, 255, 0.16), transparent 70%); }
[data-light].is-lit::after { opacity: 1; }
/* Carry: pages that opt in share a header and cross-fade (Chrome, Edge, Safari 18.2+; others change page instantly) */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; animation-timing-function: var(--ease-transform); }

/* ===== Homepage hero: Exploded View, dark ===== */
.hx { position: relative; overflow: hidden; }
.hx__bg { position: absolute; inset: 0; pointer-events: none; }
.hx__board { position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 80px 80px; background-position: 64px 0; -webkit-mask-image: radial-gradient(ellipse 80% 90% at 60% 45%, #000 30%, transparent 85%); mask-image: radial-gradient(ellipse 80% 90% at 60% 45%, #000 30%, transparent 85%); }
.hx__spot { position: absolute; inset: 0; background: radial-gradient(520px circle at var(--sx, 56%) var(--sy, 40%), rgba(255, 255, 255, 0.085), transparent 70%); }

.hx__frame { touch-action: pan-y; position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: center; min-height: 700px; padding-block: 48px 40px; }
.hx__copy { grid-column: 1 / span 5; position: relative; z-index: 3; display: grid; gap: 22px; justify-items: start; }
.hx__title { font-size: clamp(2.5rem, 4vw, 3.75rem); font-weight: 820; line-height: 0.98; letter-spacing: -0.04em; max-width: 12ch; text-wrap: balance; }
.hx__lede { font-size: 1.125rem; line-height: 1.55; color: var(--ash); max-width: 36ch; }
.hx__founder { font-size: var(--t-small); line-height: 1.5; color: var(--ash); max-width: 40ch; }
.hx__fig { position: absolute; left: calc(50% - 40px); bottom: 20px; font-size: 0.8125rem; color: var(--ash); z-index: 2; }
.hx__fig b { color: var(--signal); font-weight: 750; margin-right: 8px; }

/* the stack: six real layers in 3D. Resting state = fully visible. */
.hx__rig { position: absolute; z-index: 1; left: 57.5%; top: 50%; width: 470px; height: 294px; margin: -147px 0 0 -235px;
  translate: 0 var(--py, 0px); opacity: var(--ro, 1); touch-action: pan-y; }
.hx__under { position: absolute; left: -10%; top: 62%; width: 130%; height: 70%; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(200, 16, 46, 0.34), rgba(120, 8, 26, 0.12) 50%, transparent 72%); filter: blur(24px); opacity: var(--pulse, 1); pointer-events: none; }
.hx__stack { --gap-base: 50px; --gap: calc(var(--gap-base) * var(--sep, 1)); position: absolute; inset: 0; }
.hx__layer { position: absolute; inset: 0; opacity: var(--a, 1);
  /* Each layer carries its complete transform (perspective, tilt, rotation, height), so no browser has to keep a 3D
     rendering context alive: nested preserve-3d is the property Safari is most prone to flatten. Same geometry. */
  --z: calc(var(--i) * var(--gap) + var(--d, 0px) + var(--lift, 0px));
  transform: perspective(3200px) rotateX(calc(60deg + var(--tx, 0deg))) rotateZ(calc(-38deg + var(--tz, 0deg))) translateZ(var(--z));
  will-change: transform;
  background: rgba(18, 18, 18, 0.6);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 0 38px rgba(255, 255, 255, 0.04), 0 26px 38px -22px rgba(0, 0, 0, 0.95);
  transition: --lift var(--dur-response) var(--ease-respond), opacity var(--dur-response); }
@property --lift { syntax: '<length>'; inherits: false; initial-value: 0px; }
.hx__layer::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0) 36%, rgba(255, 255, 255, 0) 64%, rgba(255, 255, 255, 0.05)); }
.hx__layer::after { content: ""; position: absolute; inset: -1px; pointer-events: none; opacity: var(--glow, 0); box-shadow: 0 0 0 1px var(--signal), 0 0 28px rgba(243, 33, 62, 0.6); }
.hx__layer img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hx__l0 { background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 90px -8px rgba(243, 33, 62, 0.42), 0 60px 80px -30px #000; }
.hx__l1 { background: transparent; overflow: hidden; } .hx__l1 img { clip-path: inset(29% 6% 28% 50%); }
.hx__l2 .t, .hx__l2 .t2 { position: absolute; font-size: 1.75rem; line-height: 1.02; letter-spacing: -0.02em; color: var(--paper); font-weight: 400; }
.hx__l2 .t { left: 7%; top: 20%; } .hx__l2 .t2 { right: 7%; bottom: 20%; text-align: right; }
.hx__l3 i { position: absolute; border: 1.25px solid rgba(255, 255, 255, 0.8); }
.hx__l4 { background-color: transparent; box-shadow: 0 0 0 1px var(--signal), 0 0 26px rgba(243, 33, 62, 0.3); background-image: repeating-linear-gradient(to right, rgba(243, 33, 62, 0.4) 0 1px, transparent 1px 45px); }
.hx__l5 { background: transparent; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3); outline: 1px dashed rgba(255, 255, 255, 0.4); }
.hx__l5 .btnx { position: absolute; left: 7%; bottom: 13%; width: 110px; height: 30px; background: var(--signal); outline: 2.5px solid var(--signal); outline-offset: 4px; }
.hx__l5 .cur { position: absolute; left: calc(7% + 86px); bottom: calc(13% - 16px); border-left: 11px solid var(--paper); border-top: 7px solid transparent; border-bottom: 7px solid transparent; transform: rotate(-30deg); }
/* active layer (from its note): lifts clear of the others and lights its edge */
.hx__stack.has-active .hx__layer:not(.is-active) { opacity: calc(var(--a, 1) * 0.5); }
.hx__layer.is-active { --lift: 22px; opacity: var(--a, 1); box-shadow: 0 0 0 1px var(--signal), inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 34px rgba(243, 33, 62, 0.55), 0 26px 38px -22px rgba(0, 0, 0, 0.95); }
.hx__l0.is-active, .hx__l1.is-active, .hx__l3.is-active, .hx__l5.is-active { background-color: rgba(30, 14, 16, 0.5); }

/* annotations: real buttons, so they work by mouse, touch and keyboard */
.hx__legend { grid-column: 10 / -1; position: relative; z-index: 3; display: grid; gap: 14px; justify-self: end; width: 214px; }
.hx__notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hx__note { width: 100%; text-align: left; display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; padding: 8px 6px 8px 0; background: none; border: 0; color: var(--paper); cursor: pointer; font: inherit; min-height: 44px; }
.hx__note .n { grid-row: 1 / span 2; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--signal); color: var(--paper); font-size: 0.6875rem; font-weight: 800; display: grid; place-items: center; transition: background-color var(--dur-response), color var(--dur-response); }
.hx__note .t { font-weight: 700; font-size: 0.875rem; line-height: 1.3; }
.hx__note .d { font-size: 0.8125rem; line-height: 1.4; color: var(--ash); }
.hx__note:hover .n, .hx__note[aria-pressed="true"] .n, .hx__note:focus-visible .n { background: var(--deep); color: var(--paper); }
.hx__detail { font-size: 0.875rem; line-height: 1.5; color: var(--ash); min-height: 1.5em; display: none; }
.hx__tools { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 6px; }

/* phones: stack first, then the legend, then the words; no gap above the fold larger than 24px */
@media (max-width: 900px) {
  .hx__frame { display: flex; flex-direction: column; min-height: 0; padding-block: 0 28px; gap: 0; align-items: stretch; }
  .hx__rig { position: relative; order: 1; left: auto; top: auto; width: 250px; height: 156px; margin: 90px auto 10px; }
  .hx__stack { --gap-base: 28px; }
  .hx__l2 .t, .hx__l2 .t2 { font-size: 0.9375rem; } .hx__l5 .btnx { width: 52px; height: 14px; outline-offset: 2px; } .hx__l5 .cur { display: none; }
  .hx__l4 { background-image: repeating-linear-gradient(to right, rgba(243, 33, 62, 0.4) 0 1px, transparent 1px 21px); }
  .hx__legend { display: contents; }
  .hx__notes { order: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 8px; }
  .hx__tools { order: 4; margin-top: 12px; }
  .hx__note { grid-template-columns: 20px minmax(0, 1fr); padding: 6px 0; align-items: center; }
  .hx__note .n { grid-row: auto; width: 20px; height: 20px; } .hx__note .t { font-size: 0.8125rem; } .hx__note .d { display: none; }
  .hx__detail { display: block; order: 2; margin: 4px 0 18px; min-height: 2.9em; }
  .hx__copy { order: 3; gap: 16px; }
  .hx__copy .actions { width: 100%; flex-direction: column; } .hx__copy .actions .btn { justify-content: center; }
  .hx__fig { display: none; }
  /* short phones (iPhone SE): the headline must still land inside the first screen */
  @media (max-height: 700px) {
    .hx__rig { width: 210px; height: 131px; margin: 76px auto 2px; }
    .hx__detail { min-height: 0; margin: 2px 0 8px; }
  }
  /* without JavaScript the stack is purely decorative: the words come first */
  html:not(.js) .hx__copy { order: 0; margin-bottom: 20px; }
  html:not(.js) .hx__rig { margin-top: 28px; }
  .hx__spot { background: radial-gradient(380px circle at 50% 22%, rgba(255, 255, 255, 0.08), transparent 70%); }
}
.hx__after { display: grid; gap: 28px; padding-block: 24px 56px; }
@media (min-width: 901px) { .hx__after { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: end; padding-block: 16px 72px; } .hx__after .work-card { grid-column: 1 / span 4; } .hx__after .services { grid-column: 5 / -1; } }

.work-card { display: grid; gap: 12px; text-decoration: none; }
.work-card__media { position: relative; overflow: hidden; border: 1px solid var(--rule-dark); aspect-ratio: 16 / 9; background: #0d0d0d; }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-arrive); }
.work-card:hover .work-card__media img { transform: scale(1.04); }
.work-card[data-light]::after { inset: 0 0 auto 0; aspect-ratio: 16 / 9; }
.work-card__label { font-size: var(--t-small); color: var(--ash); }
.work-card__title { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.work-card__title span { font-size: 0.9375rem; font-weight: 650; letter-spacing: 0; text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.work-card__text { font-size: 0.9375rem; line-height: 1.5; color: #d2cdcb; }

.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--rule-dark); }
.services a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule-dark); text-decoration: none; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; transition: color var(--dur-response); }
.services a span { font-weight: 400; font-size: 0.875rem; color: var(--ash); text-align: right; }
.services a:hover { color: var(--signal); }
@media (min-width: 901px) {
  .services { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .services li + li a { border-left: 1px solid var(--rule-dark); padding-left: 16px; }
  .services a { flex-direction: column; justify-content: flex-start; gap: 4px; padding: 18px 16px 18px 0; border-bottom: 0; height: 100%; }
  .services a span { text-align: left; }
}

/* ===== "See how this is built" (X-ray): grid, type specs and measurements from the visitor's own browser ===== */
.xray .hx__frame::before { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background-image: repeating-linear-gradient(to right, rgba(243, 33, 62, 0.26) 0 1px, transparent 1px calc((100% - 11 * 32px) / 12 + 32px)); background-position: left; }
.xray .hx__layer { outline: 1px dashed rgba(243, 33, 62, 0.8); }
.xray-tag { position: absolute; z-index: 5; pointer-events: none; font: 600 0.75rem/1.3 var(--font); color: var(--paper); background: rgba(0, 0, 0, 0.85); border: 1px dashed var(--signal); padding: 3px 7px; white-space: nowrap; }
.xray-outline { position: absolute; z-index: 4; pointer-events: none; outline: 1px dashed rgba(243, 33, 62, 0.85); }
.xray-panel { position: fixed; z-index: 45; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(340px, calc(100vw - 32px));
  background: #050505; border: 1px solid var(--signal); padding: 16px 18px; font-size: 0.875rem; line-height: 1.45; display: grid; gap: 10px; }
.xray-panel[hidden] { display: none; }
.xray-panel h2 { font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; }
.xray-panel dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 0; }
.xray-panel dt { color: var(--ash); } .xray-panel dd { margin: 0; text-align: right; }
.xray-panel p { color: var(--ash); font-size: 0.8125rem; }
.xray-panel button { justify-self: start; min-height: 44px; padding: 0 16px; background: none; color: var(--paper); border: 1px solid var(--paper); border-radius: 2px; font: 600 0.875rem var(--font); cursor: pointer; }
@media (max-width: 900px) { .js .xray-panel { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); } }

/* chapters */
.chapter-head { display: grid; gap: 24px; margin-bottom: clamp(40px, 6vw, 72px); }
.chapter-head .lede { color: var(--quiet); }
@media (min-width: 901px) {
  .chapter-head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: end; }
  .chapter-head .h2 { grid-column: 1 / span 7; }
  .chapter-head .lede { grid-column: 9 / -1; }
}

/* plain list of problems: not a sequence, so no numbers */
.issues { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--rule); }
.issues li { padding: 20px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 4px; }
.issues strong { font-size: clamp(1.375rem, 2.6vw, 2.125rem); font-weight: 750; letter-spacing: -0.02em; line-height: 1.15; }
.issues span { color: var(--quiet); font-size: 1rem; }
@media (min-width: 901px) { .issues { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }

/* a real sequence, on a red spine */
.steps { list-style: none; margin: 0; padding: 0 0 0 22px; counter-reset: step; display: grid; gap: 0; border-left: 2px solid var(--rule); position: relative; max-width: 760px; }
.steps::before { content: ""; position: absolute; left: -2px; top: 0; width: 2px; height: calc(var(--run, 1) * 100%); background: var(--red); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 8px; padding: 16px 0; }
.steps li::before { content: counter(step); font-weight: 800; color: var(--red); font-size: 1.25rem; line-height: 1.3; }
.steps strong { display: block; font-size: 1.25rem; letter-spacing: -0.01em; }
.steps p { color: #d9d5d4; }
.ground-paper .steps p { color: var(--graphite); }
.steps .service { display: block; margin-top: 4px; font-size: var(--t-small); color: var(--quiet); }
.footnote { margin-top: 28px; font-size: var(--t-small); color: var(--quiet); max-width: 62ch; }

/* rate sheet */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--fg); }
.ledger li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.ledger li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform 450ms cubic-bezier(0.2, 0.7, 0.1, 1); }
.ledger li:hover::after, .ledger li:focus-within::after { transform: scaleX(1); }
.ledger__name { font-size: clamp(1.5rem, 2.6vw, 2.125rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; text-decoration: none; }
.ledger__name::before { content: ""; position: absolute; inset: 0; }
.ledger__scope { grid-column: 1 / -1; grid-row: 2; color: var(--quiet); font-size: 1rem; }
.ledger__price { font-size: clamp(1.625rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: lining-nums; text-align: right; white-space: nowrap; }
.ledger__price small { font-size: 0.9375rem; font-weight: 550; letter-spacing: 0; }
@media (min-width: 700px) {
  .ledger li { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto; }
  .ledger__scope { grid-column: auto; grid-row: auto; }
}
.ledger-note { margin-top: 20px; font-size: 0.9375rem; color: var(--quiet); max-width: 62ch; }
.split { display: grid; gap: 40px; }
@media (min-width: 901px) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
  .split > :first-child { grid-column: 1 / span 4; }
  .split > :last-child { grid-column: 6 / -1; }
}
.split__intro { display: grid; gap: 18px; align-content: start; }

/* two-up text pairs (automation choices, products) */
.pairs { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.pairs > * { padding: 26px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 10px; align-content: start; }
@media (min-width: 901px) {
  .pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
}
.status { display: inline-block; font-size: var(--t-small); font-weight: 650; color: var(--red); }
.text-link { font-weight: 700; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.text-link:hover { color: var(--red); }
.links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* closing field: the bottom stroke */
.closing { position: relative; overflow: hidden; }
.closing .h2 { max-width: 14ch; }
.closing__grid { display: grid; gap: 32px; }
.closing__mail { font-size: 1rem; }
.closing__mail a { font-weight: 700; }
@media (min-width: 901px) {
  .closing__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: end; }
  .closing .h2 { grid-column: 1 / span 8; }
  .closing__aside { grid-column: 9 / -1; display: grid; gap: 22px; }
}

/* footer */
.site-footer { padding-block: 56px calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rule-dark); font-size: var(--t-small); color: var(--ash); }
.site-footer .wrap { display: grid; gap: 28px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: baseline; }
.footer__mark { font-weight: 850; font-size: 1.25rem; color: var(--paper); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.footer__links a { color: var(--paper); text-decoration: none; font-weight: 550; }
.footer__links a:hover { color: var(--signal); }
.footer__legal { display: grid; gap: 6px; max-width: 70ch; line-height: 1.55; }

/* phone enquiry bar */
.enquiry-bar { display: none; }
@media (max-width: 900px) {
  .js .enquiry-bar {
    display: flex; align-items: center; justify-content: center;
    position: fixed; z-index: 40; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    min-height: 52px; background: var(--deep); color: var(--paper); font-weight: 700; text-decoration: none; border-radius: 2px;
    translate: 0 calc(100% + 24px); visibility: hidden; transition: translate 300ms cubic-bezier(0.2, 0.7, 0.1, 1), visibility 0s linear 300ms;
  }
  .js .enquiry-bar.is-shown { translate: 0 0; visibility: visible; transition: translate 300ms cubic-bezier(0.2, 0.7, 0.1, 1), visibility 0s; }
  .js body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }
}

/* ===== Phase 2: Showroom, pricing, After Hours, workshop, scroll transitions ===== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* shared scroll primitives (all gated by html.motion; resting state is the finished state) */
[data-parallax] { --p: 0; }
[data-parallax] > [style*="--depth"] { translate: 0 calc(var(--p) * var(--depth) * 1px); }
/* Reveal: a frame "develops" from one edge */
[data-reveal] { transition: clip-path 1.1s var(--ease-arrive); }
.motion [data-reveal]:not(.is-in) { clip-path: inset(0 100% 0 0); }
.motion [data-reveal].is-in { clip-path: inset(-2px -40px -40px -2px); }
/* Wipe: a section rises out of the dark, its leading edge lit */
.motion [data-wipe] { position: relative; clip-path: inset(var(--w, 0px) 0 0 0); }
.motion [data-wipe]::before { content: ""; position: absolute; z-index: 3; left: 0; right: 0; top: var(--w, 0px); height: 2px; background: var(--signal); opacity: var(--wl, 0); pointer-events: none; }
.ground-field[data-wipe]::before { background: var(--paper); }
/* Run: a line fills as you read down a sequence */
.motion .steps[data-run] { --run: 0; }

/* ----- Showroom ----- */
.sr { padding-bottom: clamp(3.5rem, 7vw, 6rem); position: relative; overflow: hidden; }
.sr__stage { position: relative; }
.sr__glow { position: absolute; left: 50%; bottom: -6%; width: min(1200px, 130vw); height: 62%; margin-left: calc(min(1200px, 130vw) / -2); pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(200, 16, 46, 0.4), rgba(120, 8, 26, 0.12) 52%, transparent 72%); filter: blur(30px); }
.sr__track { margin: 0; padding: 28px max(var(--gutter), calc((100vw - 980px) / 2)) 56px; display: flex; gap: clamp(20px, 4vw, 64px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain; position: relative; touch-action: pan-x pan-y; scroll-padding-inline: max(var(--gutter), calc((100vw - 980px) / 2)); }
.sr__track::-webkit-scrollbar { display: none; }
.sr__track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.sr__track.is-dragging * { pointer-events: none; }
.sr__slide { --o: 0; --ao: 0; flex: 0 0 min(88vw, 940px); scroll-snap-align: center; position: relative; display: grid; gap: 22px; }
.sr__slide::after { content: ""; position: absolute; inset: -12px; background: #000; opacity: calc(var(--ao) * 0.62); pointer-events: none; transition: opacity 120ms linear; }
.sr__desk, .sr__phone { display: block; padding: 0; border: 0; background: #000; cursor: zoom-in; overflow: hidden; color: inherit; position: relative;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 44px 70px -34px #000, -30px 0 90px -24px rgba(243, 33, 62, 0.35); }
.sr__desk { aspect-ratio: 16 / 10; translate: calc(var(--o) * -34px) 0; scale: calc(1 - var(--ao) * 0.04); }
.sr__phone { position: absolute; right: -1.5%; bottom: 52px; width: 21%; aspect-ratio: 640 / 1090; border-radius: 14px; translate: calc(var(--o) * -96px) 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 36px 56px -24px #000, -24px 0 70px -20px rgba(243, 33, 62, 0.45); }
.sr__desk img, .sr__phone img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 800ms var(--ease-arrive); }
.sr__desk:hover img, .sr__phone:hover img, .sr__desk:focus-visible img, .sr__phone:focus-visible img { transform: scale(1.05); }
.sr__desk:focus-visible, .sr__phone:focus-visible, .sr__track:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }
.sr__desk::after, .sr__phone::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity var(--dur-response); background: radial-gradient(260px circle at var(--lx, 50%) var(--ly, 50%), rgba(255, 255, 255, 0.2), transparent 70%); }
.sr__desk.is-lit::after, .sr__phone.is-lit::after { opacity: 1; }
.sr__slide--wide .sr__desk { width: 100%; }
.sr__cap { font-size: 0.9375rem; line-height: 1.5; color: var(--ash); max-width: 52ch; }
.sr__cap b { color: var(--paper); font-weight: 750; margin-right: 8px; }
.sr__ctrl { display: grid; gap: 18px; justify-items: start; margin-top: -8px; }
.sr__nav { display: flex; align-items: center; gap: 14px; }
.sr__btn { width: 52px; height: 52px; display: grid; place-items: center; background: transparent; color: var(--paper); border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 2px; cursor: pointer; transition: background-color var(--dur-response), color var(--dur-response), transform var(--dur-micro); }
.sr__btn:hover { background: var(--paper); color: var(--ink); } .sr__btn:active { transform: scale(0.96); } .sr__btn:disabled { opacity: 0.35; pointer-events: none; }
.sr__count { font-variant-numeric: tabular-nums; font-size: 0.9375rem; color: var(--ash); min-width: 5ch; text-align: center; }
.sr__note { font-size: var(--t-small); color: var(--ash); }
@media (max-width: 900px) { .sr__slide { flex-basis: 84vw; } .sr__phone { width: 26%; bottom: 46px; right: -2%; translate: calc(var(--o) * -50px) 0; } }

/* enlarged image */
.lb { border: 0; padding: 0; background: transparent; color: var(--paper); max-width: none; max-height: none; width: 100vw; height: 100dvh; margin: 0; }
.lb[open] { display: grid; place-items: center; align-content: center; gap: 14px; }
.lb::backdrop { background: rgba(0, 0, 0, 0.94); }
.lb img { max-width: 92vw; max-height: 80dvh; width: auto; height: auto; object-fit: contain; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 0 0 90px -10px rgba(243, 33, 62, 0.4); }
.lb__cap { font-size: 0.9375rem; color: var(--ash); }
.lb__close { position: absolute; top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); min-height: 48px; padding: 0 20px; background: var(--ink); color: var(--paper); border: 1px solid var(--paper); border-radius: 2px; font: 700 1rem var(--font); cursor: pointer; }
@media (prefers-reduced-motion: no-preference) { .lb[open] img { animation: lb-in 420ms var(--ease-arrive); } @keyframes lb-in { from { scale: 0.94; clip-path: inset(0 0 100% 0); } to { scale: 1; clip-path: inset(0); } } }

/* ----- Pricing (paper ground, black panel for depth) ----- */
.pz { display: grid; gap: 36px; }
@media (min-width: 901px) { .pz { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: start; } .pz__pick { grid-column: 1 / span 5; } .pz__view { grid-column: 6 / -1; } }
.pz__pick, .pz__care { border: 0; margin: 0; padding: 0; min-width: 0; }
.pz__legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: 0.875rem; color: var(--graphite); }
.pz__opt { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: baseline; padding: 20px 0 20px 18px; border-bottom: 1px solid var(--rule-light); cursor: pointer; }
.pz__opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pz__bar { position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; background: var(--deep); transform: scaleY(0); transform-origin: 50% 100%; transition: transform 420ms var(--ease-arrive); }
.pz__opt:has(input:checked) .pz__bar { transform: scaleY(1); }
.pz__opt:has(input:focus-visible) { outline: 3px solid var(--deep); outline-offset: -3px; }
.pz__n { font-size: clamp(1.5rem, 2.6vw, 2.125rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; transition: color var(--dur-response); }
.pz__opt:has(input:checked) .pz__n { color: var(--deep); }
.pz__s { grid-column: 1 / -1; grid-row: 2; color: var(--graphite); font-size: 1rem; }
.pz__p { font-size: clamp(1.5rem, 2.8vw, 2.25rem); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: lining-nums; white-space: nowrap; }
.pz__p small { font-size: 0.9375rem; font-weight: 550; letter-spacing: 0; }
.pz__view { display: none; }
.js .pz__view { display: grid; gap: 18px; background: var(--ink); color: var(--paper); padding: clamp(22px, 3vw, 36px); position: relative; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 40px 60px -34px rgba(0, 0, 0, 0.8); }
.pz__view::before { content: ""; position: absolute; inset: auto -10% -45% -10%; height: 70%; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(200, 16, 46, 0.4), transparent 70%); filter: blur(24px); pointer-events: none; }
.pz__view > * { position: relative; }
.pz__tiles { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.pz__tiles i { aspect-ratio: 4 / 5; border: 1px solid rgba(255, 255, 255, 0.28); background: transparent; transition: border-color 380ms var(--ease-arrive), background-color 380ms var(--ease-arrive), opacity 380ms, scale 380ms var(--ease-arrive); transition-delay: calc(var(--k) * 22ms); opacity: 0.4; scale: 0.9; }
.pz__tiles i.on { border-color: var(--signal); background: rgba(243, 33, 62, 0.16); opacity: 1; scale: 1; }
.pz__big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pz__from { font-size: 1rem; color: var(--ash); } .pz__from:empty { display: none; }
.pz__amount { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 850; letter-spacing: -0.045em; line-height: 0.95; font-variant-numeric: lining-nums; }
.pz__scope { font-size: 1.125rem; }
.pz__care { display: flex; flex-wrap: wrap; gap: 8px; }
.pz__care .pz__legend { width: 100%; color: var(--ash); }
.pz__chip { position: relative; }
.pz__chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pz__chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.4); font-weight: 650; font-size: 0.9375rem; border-radius: 2px; transition: background-color var(--dur-response), color var(--dur-response), border-color var(--dur-response); }
.pz__chip:hover span { border-color: var(--paper); }
.pz__chip input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.pz__chip input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 3px; }
.pz__care-text { color: var(--ash); font-size: 0.9375rem; min-height: 2.9em; }
.pz__total { font-size: 1.25rem; font-weight: 750; letter-spacing: -0.015em; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.pz .actions { margin-top: 4px; }
.pz .btn { color: var(--paper); } .pz .btn:hover { color: var(--ink); } .pz .btn--primary { color: var(--paper); }

/* ----- After Hours ----- */
.ah { position: relative; padding-block: clamp(4.5rem, 9vw, 8rem); background: var(--ink); }
.ah__grid { display: grid; gap: 28px; }
.ah__copy { display: grid; gap: 22px; align-content: start; min-width: 0; }
.ah__label { font-size: var(--t-small); color: var(--ash); max-width: 52ch; }
.ah__moments { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 1px solid var(--rule-dark); display: grid; gap: 0; position: relative; }
.ah__m { position: relative; width: 100%; display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); column-gap: 14px; row-gap: 2px; text-align: left; padding: 16px 0; background: none; border: 0; border-bottom: 1px solid var(--rule-dark); color: var(--paper); cursor: pointer; font: inherit; min-height: 44px; }
.ah__m::before { content: ""; position: absolute; left: -28px; top: 24px; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 2px #4a4544; transition: box-shadow var(--dur-response), background-color var(--dur-response); }
.ah__m time { grid-row: 1 / span 3; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ash); font-size: 0.9375rem; padding-top: 3px; transition: color var(--dur-response); }
.ah__m .t { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: #d9d5d4; transition: color var(--dur-response); }
.ah__m .d { font-size: 1rem; line-height: 1.5; color: var(--ash); transition: color var(--dur-response); }
.ah__m .svc { font-size: 0.8125rem; color: var(--ash); }
.ah__moments li.is-on .ah__m .t { color: var(--paper); } .ah__moments li.is-on .ah__m .d { color: #e8e4e3; }
.ah__moments li.is-on .ah__m::before { background: var(--signal); box-shadow: inset 0 0 0 2px var(--signal), 0 0 18px rgba(243, 33, 62, 0.8); }
.ah__moments li.is-on .ah__m time { color: var(--paper); }
.ah__m:hover .t { color: var(--paper); } .ah__m:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.ah .pairs { margin-top: 8px; } .ah__jobs-h { margin-top: 12px; }
.ah__stage { position: relative; overflow: hidden; background: radial-gradient(ellipse 95% 20% at 50% 37%, rgba(150, 10, 34, 0.42), transparent 75%), #000; -webkit-mask-image: radial-gradient(ellipse 100% 96% at 50% 50%, #000 58%, transparent 100%); mask-image: radial-gradient(ellipse 100% 96% at 50% 50%, #000 58%, transparent 100%); }
.ah__canvas, .ah__still { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ah__still { object-fit: cover; transition: opacity 900ms; }
.ah-live .ah__still { opacity: 0; }
.ah__canvas { opacity: 0; transition: opacity 900ms; } .ah-live .ah__canvas { opacity: 1; }
.ah__clock { position: absolute; z-index: 2; right: 18px; top: 16px; text-align: right; font-size: 0.8125rem; color: var(--ash); text-shadow: 0 0 12px #000; }
.ah__clock b { display: block; font-size: 2.5rem; font-weight: 300; letter-spacing: -0.02em; color: var(--paper); font-variant-numeric: tabular-nums; line-height: 1.1; }
@media (min-width: 901px) {
  .ah__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: start; }
  .ah__copy { grid-column: 1 / span 6; }
  .ah__stage { grid-column: 7 / -1; grid-row: 1; height: calc(100svh - var(--header-h) - 48px); min-height: 460px; }
  .js .ah__stage { position: sticky; top: calc(var(--header-h) + 24px); }  /* pinned only when scripts run; without JavaScript the picture just sits in place */
}
@media (max-width: 900px) {
  /* Pinned under the header while the heading and the six moments are on screen; v22-home.js releases it with the end of the list. Without JavaScript it is not pinned at all. */
  .js .ah__stage { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
  .ah__stage { order: -1; z-index: 6; height: 34svh; min-height: 200px; margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px)));
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); }
  .ah__clock b { font-size: 1.75rem; }
  .ah__m .t { font-size: 1.1875rem; }
}

/* ----- Workshop: blueprint showcases ----- */
.bp { position: relative; display: grid; gap: 24px; }
.bp__grid { position: absolute; inset: -20px -10px; pointer-events: none; opacity: 0.8; translate: 0 calc(var(--p, 0) * var(--depth) * 1px);
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px); background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 40%, transparent 100%); mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 40%, transparent 100%); }
.bp > * { position: relative; }
.bp__tabs { display: flex; gap: 8px; }
.bp__tab { min-height: 48px; padding: 0 22px; background: transparent; color: var(--ash); border: 1px solid var(--rule-dark); border-radius: 2px; font: 700 1rem var(--font); cursor: pointer; transition: background-color var(--dur-response), color var(--dur-response), border-color var(--dur-response); }
.bp__tab[aria-selected="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.bp__tab:hover { color: var(--paper); border-color: var(--paper); } .bp__tab[aria-selected="true"]:hover { color: var(--ink); }
.bp__tab:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.bp__panel { display: grid; gap: 28px; }
.bp__panel[hidden] { display: none; }
@media (min-width: 901px) { .bp__panel { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; } }
.bp__wire { border: 1px dashed rgba(255, 255, 255, 0.45); background: rgba(14, 14, 14, 0.6); padding: 0 0 20px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 40px 60px -36px #000; position: relative; }
.bp__chrome { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px dashed rgba(255, 255, 255, 0.3); font-size: 0.8125rem; color: var(--ash); }
.bp__chrome i { width: 9px; height: 9px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 50%; } .bp__chrome span { margin-left: 10px; }
.bp__mods { display: grid; gap: 12px; padding: 16px 16px 4px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bp__mods--crm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bp__mod { text-align: left; display: grid; align-content: start; gap: 8px; min-height: 150px; padding: 12px; background: transparent; color: var(--paper); border: 1px dashed rgba(255, 255, 255, 0.4); border-radius: 2px; cursor: pointer; font: inherit;
  transition: border-color var(--dur-response), background-color var(--dur-response), transform var(--dur-response) var(--ease-respond); }
.bp__mod:hover { border-color: var(--paper); transform: translateY(-3px); }
.bp__mod.is-on { border: 1px solid var(--signal); background: rgba(243, 33, 62, 0.1); box-shadow: 0 0 30px -8px rgba(243, 33, 62, 0.55); }
.bp__mod:focus-visible, .bp__opt:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.bp__tag { font-weight: 750; font-size: 0.9375rem; line-height: 1.25; }
.bp__mod i { display: block; height: 7px; background: rgba(255, 255, 255, 0.28); border-radius: 1px; } .bp__mod i.short { width: 55%; }
.bp__mod i.file { height: 22px; background: transparent; border: 1px dashed rgba(255, 255, 255, 0.4); }
.bp__mod i.msg { height: 18px; width: 72%; border-radius: 9px 9px 9px 2px; background: rgba(255, 255, 255, 0.2); } .bp__mod i.msg.r { margin-left: auto; border-radius: 9px 9px 2px 9px; width: 58%; background: rgba(243, 33, 62, 0.4); }
.bp__switch-h { padding: 18px 16px 8px; font-size: 0.8125rem; color: var(--ash); }
.bp__opts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; }
.bp__opt { min-height: 44px; padding: 0 14px; background: transparent; color: var(--paper); border: 1px dashed rgba(255, 255, 255, 0.45); border-radius: 2px; font: 600 0.875rem var(--font); cursor: pointer; transition: border-color var(--dur-response), background-color var(--dur-response), transform var(--dur-micro); }
.bp__opt:hover { border-color: var(--paper); } .bp__opt:active { transform: scale(0.97); }
.bp__opt[aria-pressed="true"] { border: 1px solid var(--signal); background: rgba(243, 33, 62, 0.14); }
.bp__info { display: grid; gap: 14px; align-content: start; }
.bp__lead { font-size: 1.375rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1.2; }
.bp__text { color: #d9d5d4; min-height: 4.5em; max-width: 54ch; } .bp__text b { color: var(--paper); }
@media (max-width: 600px) { .bp__mods { grid-template-columns: minmax(0, 1fr); } .bp__mod { min-height: 0; } .bp__mods--crm { grid-template-columns: minmax(0, 1fr); } }
/* draft-in: the wireframe is drawn module by module, once */
.motion .bp__panel:not([hidden]) .bp__wire { animation: bp-draw 900ms var(--ease-arrive) both; }
@keyframes bp-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(-2px -40px -40px -2px); } }

/* ----- Founder and closing ----- */
.steps[data-run] li { opacity: 1; }
.closing { position: relative; overflow: hidden; }
.closing__light { position: absolute; left: 0; right: 0; bottom: -30%; height: 110%; pointer-events: none; --p: 0;
  background: radial-gradient(ellipse 60% 55% at 75% 100%, rgba(255, 255, 255, 0.22), transparent 70%), radial-gradient(ellipse 40% 40% at 20% 100%, rgba(0, 0, 0, 0.25), transparent 70%); translate: 0 calc((1 - var(--p)) * 12%); }
.closing__grid { position: relative; z-index: 2; }

@media (prefers-reduced-motion: reduce) { .sr__desk, .sr__phone { translate: none; scale: none; } .sr__slide::after { opacity: calc(var(--ao) * 0.5); } .pz__tiles i { transition-delay: 0s; } }

.nowrap { white-space: nowrap; }
