/* ===== site-src/css/core/00-core.css ===== */
/* krmsolutions.co.uk, shared by both stylesheets (build_site.py BUNDLES): assets/site.css (every built page except the
   three in the stage layout, and krm-public's landing pages) and assets/home.css (/, /work, /about: base.html
   layout = "stage"). The font, the colours, the helpers, and the header and footer every built page shows
   (10-chrome.css). One idea, as on our social posts: a reviewer's highlighter over websites. Paper, ink and teal;
   yellow only as the marker (strokes, the full stop, progress, tags), never as text. One typeface, Bricolage
   Grotesque. */

@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-latin.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
  --paper: #f7f8f7;
  --sheet: #ffffff;
  --mist: #e8eeec;
  --ink: #10292a;
  --soft: #45595a;      /* 7:1 on paper */
  --teal: #0f3d3e;
  --teal-2: #17595a;
  --deep: #0b2d2e;      /* the footer, the finder */
  --on-teal: #e3ecea;
  --on-teal-soft: #c8d8d5;
  --marker: #f2c14e;
  --rule: #cdd8d5;
  --rule-teal: rgba(255, 255, 255, 0.2);
  --field: #8fa6a1;
  --unlit: #b7c5c2;     /* words not yet inked in (home.css .fill) */
  --font: "Bricolage Grotesque", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gap: clamp(1.25rem, 0.75rem + 2.5vw, 3rem);
  --section: clamp(4rem, 2.5rem + 6vw, 8rem);
  --shadow: 0 1px 1px rgba(16, 41, 42, 0.06), 0 12px 32px -12px rgba(16, 41, 42, 0.28);
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; padding: 0.75rem 1rem; background: var(--teal); color: #fff; z-index: 60; }
.skip:focus { top: 1rem; }

/* ===== site-src/css/core/10-chrome.css ===== */
/* ---------- The header, menu, footer, scroll line and floating button of every built page (base.html). Their own
   class names (tb-, ft-): site.css still styles the old header (.site-head, .logo, .menu, .foot-*) for krm-public's
   landing pages (pipeline/krm/templates/landing_base.html) until those move to this header too. No JavaScript (the
   CSP allows none): the menu is a <details>, the scroll effects need scroll timelines and are simply absent
   elsewhere. ---------- */

/* A marker line across the top that grows as you read */
.scroll-line { position: fixed; inset: 0 0 auto; height: 3px; background: var(--marker); transform-origin: 0 50%; scale: 0 1; z-index: 50; pointer-events: none; }

/* Header. Phone: the logo and "Menu" above the page. From 60rem: a white tab hanging from the top, fixed. */
.tb { position: relative; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 1.25rem 0.75rem; font-family: var(--font); }
.tb-logo { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 2.75rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; white-space: nowrap; }
.tb-logo:hover { color: var(--ink); }
.tb-logo svg { flex: none; }
.tb-nav { display: none; }
.tb-cta { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.55rem 1.15rem; border-radius: 999px; background: var(--teal); color: #fff; font: 600 1rem/1.2 var(--font); text-decoration: none; white-space: nowrap; transition: background-color 0.2s ease; }
.tb-cta:hover { background: var(--teal-2); color: #fff; }
.tb-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 0.7rem; min-height: 2.75rem; padding: 0 0.25rem 0 0.75rem; cursor: pointer; font-weight: 600; color: var(--ink); }
.tb-menu summary::-webkit-details-marker { display: none; }
.tb-menu-icon { position: relative; width: 1.6rem; height: 0.7rem; }
.tb-menu-icon::before, .tb-menu-icon::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: translate 0.3s var(--ease), rotate 0.3s var(--ease); }
.tb-menu-icon::before { top: 0; }
.tb-menu-icon::after { bottom: 0; }
.tb-menu[open] .tb-menu-icon::before { translate: 0 0.3rem; rotate: 45deg; }
.tb-menu[open] .tb-menu-icon::after { translate: 0 -0.3rem; rotate: -45deg; }
.tb-menu[open] summary { position: relative; z-index: 2; color: #fff; }
.tb-menu-panel { position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; gap: 0.1rem; padding: 5.5rem 1.5rem calc(2rem + env(safe-area-inset-bottom)); background: var(--teal); overflow-y: auto; }
.tb-menu-panel > a:not(.tb-menu-cta) { color: #fff; font-size: clamp(1.9rem, 1.4rem + 2.6vw, 2.8rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1.25; text-decoration: none; padding: 0.1rem 0; }
.tb-menu-panel > a:not(.tb-menu-cta):hover { color: var(--marker); }
.tb-menu-cta { align-self: flex-start; display: inline-flex; align-items: center; min-height: 3.25rem; margin-top: 1.5rem; padding: 0.8rem 1.5rem; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; text-decoration: none; }
.tb-menu-cta:hover { background: var(--marker); color: var(--ink); }
.tb-menu-foot { margin: auto 0 0; padding-top: 2rem; color: var(--on-teal-soft); font-size: 1rem; }
.tb-menu-foot a { color: #fff; }
body:has(.tb-menu[open]) { overflow: hidden; }
body:has(.tb-menu[open]) .tb-logo { position: relative; z-index: 2; color: #fff; }
.tb-menu-panel :focus-visible, .ft :focus-visible { outline-color: var(--marker); }

/* Footer: every page links every indexable section from here; the giant wordmark under it */
.ft { background: var(--deep); color: var(--on-teal); padding-top: clamp(3.5rem, 2rem + 4vw, 6rem); overflow: hidden; font-family: var(--font); }
.ft a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.4); }
.ft a:hover { color: var(--marker); }
.ft-wrap { width: min(100% - 2.5rem, 80rem); margin-inline: auto; }
.ft-top { display: grid; gap: 2.5rem; }
.ft-say { margin: 0 0 1rem; color: #fff; font-size: 1.6rem; line-height: 1.15; font-weight: 500; letter-spacing: -0.03em; }
.ft-brand p:not(.ft-say) { color: var(--on-teal-soft); max-width: 24rem; }
.ft-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 2rem; }
.ft-col h2 { margin: 0 0 0.6rem; font-size: 1rem; font-weight: 600; line-height: 1.3; color: var(--on-teal-soft); letter-spacing: 0; }
.ft-col ul { list-style: none; margin: 0; padding: 0; display: grid; }
.ft-col li a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.ft-dim { color: var(--on-teal-soft); }
/* Bricolage's optical size pinned at 48: its 96 display cut is narrow and squashes the letters at this size */
.ft-mark { display: flex; align-items: baseline; width: min(100% - 2.5rem, 80rem); margin: clamp(2.5rem, 1rem + 5vw, 5rem) auto 0; font-weight: 650; font-variation-settings: "opsz" 48; font-size: clamp(3rem, 0.5rem + 9.5vw, 10.5rem); line-height: 0.85; letter-spacing: -0.035em; white-space: nowrap; color: #fff; }
.ft-mark i { flex: none; width: 0.17em; height: 0.17em; margin-left: 0.04em; border-radius: 50%; background: var(--marker); }
.ft-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 2rem; padding: 1.25rem 0 calc(1.5rem + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.95rem; color: var(--on-teal-soft); }
.ft-legal p { margin: 0; }
.ft-legal p:last-child { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }

/* Floating call to action (stage pages), once the first screen has scrolled away */
.float-cta { position: fixed; z-index: 30; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; min-height: 3.25rem; padding: 0.8rem 1.4rem; border-radius: 999px; background: var(--teal); color: #fff; font: 600 1rem/1.2 var(--font); text-decoration: none; box-shadow: 0 16px 34px -14px rgba(8, 34, 35, 0.75); transition: background-color 0.2s ease, color 0.2s ease, scale 0.2s ease; }
.float-cta:hover { background: var(--marker); color: var(--ink); scale: 1.04; }

/* The floating button would sit over the last legal links at the very bottom */
.has-stage .ft-legal { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }

@media (min-width: 60rem) {
  .tb { position: fixed; top: 0; left: 50%; translate: -50% 0; gap: 1rem; padding: 0.4rem 0.45rem 0.45rem 1.1rem; background: var(--paper); border-radius: 0 0 1.25rem 1.25rem; box-shadow: 0 10px 30px -18px rgba(8, 34, 35, 0.45); }
  .tb::before, .tb::after { content: ""; position: absolute; top: 0; width: 1.25rem; height: 1.25rem; }
  .tb::before { right: 100%; background: radial-gradient(circle at 0 100%, transparent 1.25rem, var(--paper) 1.3rem); }
  .tb::after { left: 100%; background: radial-gradient(circle at 100% 100%, transparent 1.25rem, var(--paper) 1.3rem); }
  .tb-logo { font-size: 1.05rem; }
  .tb-nav { display: flex; align-items: center; }
  .tb-nav a:not(.tb-cta) { position: relative; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.7rem; color: var(--ink); text-decoration: none; font-size: 1rem; white-space: nowrap; }
  .tb-nav a:not(.tb-cta)::after { content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.55rem; height: 2px; background: var(--marker); transform-origin: 0 50%; scale: 0 1; transition: scale 0.3s var(--ease); }
  .tb-nav a:not(.tb-cta):hover::after, .tb-nav a[aria-current]:not(.tb-cta)::after { scale: 1 1; }
  .tb-nav .tb-cta { margin-left: 0.4rem; }
  .tb-menu { display: none; }
  /* The tab floats over the page: built pages without a stage start below it (base.html body.has-tab; not
     krm-public's pages, which share this stylesheet but keep the old in-flow header) */
  .has-tab main { padding-top: 3.5rem; }
  .ft-top { grid-template-columns: minmax(16rem, 1.3fr) 3fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .tb { view-transition-name: tb; }
  /* Desktop only: a translate on the phone header would make it the menu panel's containing block */
  @media (min-width: 60rem) {
    .has-stage .tb { animation: tb-drop 0.8s var(--ease) 0.5s both; }
    @keyframes tb-drop { from { opacity: 0; translate: -50% -100%; } }
  }
}

@supports (animation-timeline: scroll()) {
  .scroll-line { animation: scroll-grow linear both; animation-timeline: scroll(root); }
  @keyframes scroll-grow { to { scale: 1 1; } }
  .float-cta { animation: float-in linear both; animation-timeline: scroll(root); animation-range: 70vh 85vh; }
  @keyframes float-in { from { opacity: 0; translate: 0 1.5rem; visibility: hidden; } to { opacity: 1; translate: 0 0; visibility: visible; } }
  @media (prefers-reduced-motion: no-preference) {
    /* The wordmark fills from dim to white as it rises, then its full stop lands */
    .ft-mark span { color: transparent; background: linear-gradient(to right, #fff 0 48%, rgba(255, 255, 255, 0.1) 52% 100%) 100% 0 / 220% 100% no-repeat; -webkit-background-clip: text; background-clip: text; animation: ft-word linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    @keyframes ft-word { to { background-position: 0 0; } }
    .ft-mark i { animation: ft-stop linear both; animation-timeline: view(); animation-range: entry 70% entry 100%; }
    @keyframes ft-stop { from { scale: 0; translate: 0 -2em; } 70% { scale: 1.25; } to { scale: 1; translate: 0 0; } }
  }
}

/* ===== site-src/css/home/00-home.css ===== */
/* assets/home.css, after css/core/ (font, colours, header, footer): the stage layout of /, /work and /about
   (base.html layout = "stage"; operator, 2026-11-20, from the laforza.co.uk-style mockup in concepts/forza/). An inset
   rounded stage with big light type rising in, text that inks in as you scroll, a moving strip of trades, wiped-in
   pictures, a sideways gallery and a two-tap finder. Only websites we really built are shown. No JavaScript and no
   inline styles (the CSP allows neither): every effect is CSS (animations, scroll timelines, :has()). Without
   scroll-timeline support the page is simply still and fully inked. Anything that moves by itself sits inside
   prefers-reduced-motion: no-preference. */

:root {
  --inset: clamp(0.5rem, 0.3rem + 0.6vw, 0.75rem);
  --radius: clamp(1.1rem, 0.6rem + 1.4vw, 1.75rem);
  --block: clamp(4.5rem, 2.5rem + 7vw, 9rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.6 var(--font); font-optical-sizing: auto; -webkit-tap-highlight-color: transparent; overflow-x: clip; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 3px; }
.finder :focus-visible, .band :focus-visible, .stage :focus-visible { outline-color: var(--marker); }
.wrap { width: min(100% - 2.5rem, 80rem); margin-inline: auto; }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; min-height: 3.25rem; padding: 0.8rem 1.6rem; border-radius: 999px; font: 600 1.0625rem/1.2 var(--font); text-decoration: none; letter-spacing: -0.005em; white-space: nowrap; border: 0; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease, translate 0.25s var(--ease), box-shadow 0.25s ease; }
.btn::after { content: ""; width: 1.1em; height: 0.7em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 14'%3E%3Cpath d='M0 7h20M14 1l6 6-6 6' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 14'%3E%3Cpath d='M0 7h20M14 1l6 6-6 6' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat; transition: translate 0.25s var(--ease); }
.btn:hover::after { translate: 0.3em 0; }
.btn:hover { translate: 0 -2px; }
.btn:active { scale: 0.97; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: #17595a; color: #fff; box-shadow: 0 10px 22px -10px rgba(15, 61, 62, 0.7); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--marker); color: var(--ink); }
.btn-marker { background: var(--marker); color: var(--ink); }
.btn-marker:hover { background: #fff; color: var(--ink); }
.btn-sm { min-height: 2.75rem; padding: 0.55rem 1.15rem; font-size: 1rem; }
.btn-sm::after { display: none; }
/* Underlined link: a hairline that the marker wipes over on hover */
.ul { display: inline-block; padding: 0.35rem 0 0.2rem; color: inherit; font-weight: 600; text-decoration: none; background: linear-gradient(var(--marker), var(--marker)) 0 100% / 0 38% no-repeat, linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size 0.35s var(--ease); }
.ul:hover { background-size: 100% 38%, 100% 1px; }
.stage .ul:hover { color: var(--ink); background-size: 100% 100%, 100% 1px; }


/* ---------- The stage: an inset rounded panel that fills the first screen ---------- */
.stage { position: relative; isolation: isolate; margin: 0 var(--inset); height: calc(100svh - 4.5rem - var(--inset)); min-height: 34rem; max-height: 62rem; border-radius: var(--radius); overflow: hidden; color: #fff; background: radial-gradient(120% 90% at 85% 15%, #1d6062 0%, var(--teal) 45%, var(--deep) 100%); }
.stage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(8, 34, 35, 0.92) 0%, rgba(8, 34, 35, 0.55) 34%, rgba(8, 34, 35, 0) 62%); }
.stage-title { position: absolute; z-index: 2; left: clamp(1.25rem, 0.5rem + 3vw, 3.5rem); right: 1.25rem; bottom: 7.4rem; font-weight: 300; font-size: clamp(3.1rem, 1.2rem + 8.4vw, 9.5rem); line-height: 0.9; letter-spacing: -0.055em; }
.l { display: block; overflow: clip; overflow-clip-margin: 0.12em; padding-bottom: 0.06em; }
.l > span { display: inline-block; }
/* On teal the marker covers the whole line and the words turn ink (brand/GUIDE.md) */
.mk { position: relative; z-index: 0; color: var(--ink); padding: 0 0.08em; margin-left: -0.08em; }
.mk::before { content: ""; position: absolute; z-index: -1; inset: 0.1em -0.04em 0.02em; background: var(--marker); border-radius: 0.12em 0.35em 0.2em 0.4em / 0.4em 0.2em 0.35em 0.15em; transform-origin: 0 50%; rotate: -1deg; }
.stage-side { position: absolute; z-index: 2; left: clamp(1.25rem, 0.5rem + 3vw, 3.5rem); right: 1.25rem; bottom: 3.9rem; }
.captions { list-style: none; margin: 0; padding: 0; display: grid; }
.captions li { grid-area: 1 / 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 1rem; }
.captions li:not(:first-child) { visibility: hidden; }
.captions strong { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.captions span { display: none; color: var(--on-teal-soft); font-size: 1rem; max-width: 22rem; }
.captions .ul { color: #fff; font-size: 1rem; padding-block: 0.6rem 0.3rem; }
/* The slides: a browser window and a phone, drawn large, tilted and cropped by the stage edge */
.slides { position: absolute; inset: 0; z-index: 0; }
.slide { position: absolute; inset: 0; }
.slide:not(:first-child) { visibility: hidden; }
.dev-desk { position: absolute; top: 6%; left: 16%; width: 132%; border-radius: 0.8rem; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.65); rotate: -6deg; transform-origin: 0 0; }
.bar { display: flex; align-items: center; gap: 0.35rem; height: 1.9rem; padding: 0 0.7rem; background: #eef2f1; color: var(--soft); font-size: 0.75rem; }
.bar i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #cbd5d3; }
.bar span { margin-left: 0.6rem; padding: 0.1rem 0.8rem; border-radius: 999px; background: #fff; }
.dev-desk img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.dev-phone { position: absolute; top: 18%; left: 6%; width: 38%; max-width: 15rem; aspect-ratio: 9 / 18.5; border: 0.42rem solid #0a1d1e; border-radius: 1.9rem; overflow: hidden; background: #0a1d1e; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); rotate: 4deg; }
.dev-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 1.45rem; }
/* The notch at the foot of the stage: which slide, and pause */
.stage-notch { position: absolute; z-index: 3; left: 50%; bottom: 0; translate: -50% 0; display: flex; align-items: center; gap: 0.9rem; padding: 0.55rem 0.6rem 0.4rem 1.2rem; background: var(--paper); border-radius: 1.1rem 1.1rem 0 0; color: var(--ink); }
.stage-notch::before, .stage-notch::after { content: ""; position: absolute; bottom: 0; width: 1.1rem; height: 1.1rem; background: radial-gradient(circle at 0 0, transparent 1.1rem, var(--paper) 1.15rem); }
.stage-notch::before { right: 100%; }
.stage-notch::after { left: 100%; background: radial-gradient(circle at 100% 0, transparent 1.1rem, var(--paper) 1.15rem); }
.dots { display: flex; gap: 0.35rem; }
.dots i { position: relative; width: 0.45rem; height: 0.45rem; border-radius: 999px; background: var(--rule); overflow: hidden; }
.dots i:first-child { width: 1.8rem; background: var(--ink); }
.pause { position: absolute; opacity: 0; pointer-events: none; }
.pause-btn { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.8rem; border-radius: 999px; font-size: 0.95rem; font-weight: 600; cursor: pointer; }
.pause-btn:hover { background: var(--mist); }
.pause:focus-visible ~ .stage-notch .pause-btn { outline: 3px solid var(--teal); outline-offset: 0; }
.pause:checked ~ .stage-notch .when-on, .pause:not(:checked) ~ .stage-notch .when-off { display: none; }

/* ---------- Blocks ---------- */
.block { padding-block: var(--block); }
.block-mist { background: var(--mist); }
.cols { display: grid; gap: 1rem 2rem; }
.label { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1.25rem; color: var(--soft); font-size: 1rem; }
.label::before { content: ""; flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--marker); box-shadow: 0 0 0 1px rgba(16, 41, 42, 0.12); }
.block h2 { font-weight: 300; font-size: clamp(2.5rem, 1.2rem + 4.6vw, 5.5rem); line-height: 0.95; letter-spacing: -0.05em; margin-bottom: 1.5rem; }
.lede { color: var(--soft); font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3rem); max-width: 38rem; }
.statement { font-size: clamp(1.6rem, 1.05rem + 2.1vw, 2.85rem); line-height: 1.17; letter-spacing: -0.03em; font-weight: 500; max-width: 32ch; margin-bottom: 2rem; }

/* The moving strip of trades, with the logo's yellow full stop between them */
.marquee { overflow: hidden; border-block: 1px solid var(--rule); background: var(--sheet); }
.marquee-track { display: flex; width: max-content; }
.marquee span { display: flex; align-items: center; gap: clamp(1.5rem, 1rem + 2vw, 3rem); padding: 1.3rem clamp(0.75rem, 0.5rem + 1vw, 1.5rem); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); font-weight: 300; letter-spacing: -0.035em; white-space: nowrap; }
.marquee span::after { content: ""; width: 0.38em; height: 0.38em; border-radius: 50%; background: var(--marker); }

/* Services: four tall pictures, the label tag slides in on hover */
.svc { list-style: none; margin: clamp(2rem, 1rem + 3vw, 4rem) 0 0; padding: 0; display: grid; gap: 2.5rem 1.25rem; }
.svc a { display: grid; gap: 0.45rem; color: inherit; text-decoration: none; }
.svc-img { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 11; border-radius: 0.4rem; background: var(--mist); margin-bottom: 0.7rem; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: scale 0.8s var(--ease); }
.svc-img em { position: absolute; left: 0.75rem; bottom: 0.75rem; padding: 0.5rem 0.85rem; background: #fff; color: var(--ink); font-style: normal; font-size: 0.95rem; font-weight: 600; border-radius: 0.25rem; transition: translate 0.35s var(--ease), background-color 0.2s ease; }
.svc a:hover .svc-img img { scale: 1.06; }
.svc a:hover .svc-img em { background: var(--marker); translate: 0 -0.25rem; }
.svc strong { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.svc span:not(.svc-img) { color: var(--soft); font-size: 1.0625rem; }
.svc small { color: var(--soft); font-size: 0.95rem; border-top: 1px solid var(--rule); padding-top: 0.6rem; margin-top: 0.3rem; }

/* How we build: a tall picture that stays put while the list scrolls */
.how-grid { display: grid; gap: 2.5rem; }
.how-pic { position: relative; margin: 0; display: grid; place-items: center; padding: max(4.25rem, 1.5rem + 4vw) 1.5rem clamp(2.5rem, 1.5rem + 4vw, 4.5rem); border-radius: 0.4rem; background: radial-gradient(90% 70% at 70% 20%, #1d6062, var(--teal) 55%, var(--deep)); overflow: hidden; }
/* A straight phone (a tilt blurs a screenshot's small print): status bar and island as in brand/GUIDE.md, the site
   below it. No clip-path on it, or the shadow is cut to a square box round the rounded corners. */
.how-pic .dev-phone { position: relative; inset: auto; display: flex; flex-direction: column; width: min(64%, 18.5rem); max-width: none; padding-top: 1.9rem; border-width: 0.5rem; border-radius: 2.5rem; background: #000; rotate: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 44px 70px -28px rgba(0, 0, 0, 0.8); }
.how-pic .dev-phone::before { content: ""; position: absolute; z-index: 1; top: 0.45rem; left: 50%; translate: -50% 0; width: 30%; height: 1.05rem; border-radius: 999px; background: #111a1b; }
.how-pic .dev-phone::after { content: "9:41" / ""; position: absolute; top: 0.5rem; left: 1.35rem; color: #fff; font-size: 0.75rem; font-weight: 600; line-height: 1; }
.how-pic .dev-phone img { flex: 1; min-height: 0; height: auto; border-radius: 0; }
.tag { position: absolute; left: 0; top: 0; padding: 0.55rem 0.9rem; background: var(--marker); color: var(--ink); font-size: 0.95rem; font-weight: 600; border-radius: 0.4rem 0 0.4rem 0; }
.checks-list { list-style: none; counter-reset: c; margin: 2rem 0; padding: 0; border-top: 1px solid var(--ink); }
.checks-list li { counter-increment: c; display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.2rem 0.75rem; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); }
.checks-list li::before { content: counter(c); grid-row: span 2; color: var(--soft); font-size: 1.5rem; font-weight: 300; line-height: 1.1; }
.checks-list strong { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.checks-list span { color: var(--soft); }

/* The sideways gallery; its bar follows the scroll */
.gallery { timeline-scope: --rail; }
.rail { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-timeline: --rail inline; padding-inline: max(1.25rem, (100% - 80rem) / 2); scroll-padding-inline: max(1.25rem, (100% - 80rem) / 2); margin-top: clamp(1.5rem, 1rem + 2vw, 3rem); }
.rail::-webkit-scrollbar { display: none; }
.rail ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; width: max-content; }
.rail li { scroll-snap-align: start; width: min(82vw, 34rem); }
.rail a { display: grid; gap: 0.25rem; color: inherit; text-decoration: none; }
.rail-img { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 11; border-radius: 0.4rem; background: var(--mist); margin-bottom: 0.8rem; }
.rail-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: scale 0.8s var(--ease); }
.rail-img em { position: absolute; left: 0.9rem; bottom: 0.9rem; padding: 0.6rem 1rem; background: #fff; color: var(--ink); font-style: normal; font-size: 0.95rem; font-weight: 600; border-radius: 0.25rem; transition: background-color 0.2s ease; }
.rail a:hover img { scale: 1.04; }
.rail a:hover em { background: var(--marker); }
.rail strong { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.025em; }
.rail span:not(.rail-img) { color: var(--soft); }
.rail-bar { position: relative; height: 2px; margin-top: 2rem; background: var(--rule); overflow: hidden; }
.rail-bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; scale: 0.25 1; }

/* The finder: two lists of choices; the answer is put together by :has() */
.finder { background: var(--deep); color: #fff; }
.finder .label { color: var(--on-teal-soft); }
.finder h2 { color: #fff; }
.finder-grid { display: grid; gap: 2.5rem; }
.pick { border: 0; padding: 0; margin: 0 0 1.75rem; display: flex; flex-wrap: wrap; gap: 0.55rem; }
.pick legend { padding: 0; margin-bottom: 0.9rem; font-size: 1.15rem; font-weight: 600; display: flex; align-items: center; gap: 0.6rem; }
.pick legend b { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 1px solid var(--on-teal-soft); font-size: 0.95rem; font-weight: 600; }
.pick label { position: relative; display: inline-flex; align-items: center; min-height: 2.9rem; padding: 0.5rem 1.15rem; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; color: var(--on-teal); font-size: 1.0625rem; cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.pick label:hover { border-color: #fff; color: #fff; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick label:has(input:checked) { background: var(--marker); border-color: var(--marker); color: var(--ink); font-weight: 600; }
.pick label:has(input:focus-visible) { outline: 3px solid var(--marker); outline-offset: 3px; }
.answer { display: grid; gap: 1.25rem; align-items: start; padding: clamp(1rem, 0.6rem + 1.5vw, 1.75rem); background: #12393a; border-radius: var(--radius); }
.answer-pics { display: grid; aspect-ratio: 4 / 3; border: 0.3rem solid #061c1d; border-radius: 1.2rem; overflow: hidden; background: #061c1d; }
.answer-pics img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 1.05rem; opacity: 0; transition: opacity 0.45s ease, scale 0.6s var(--ease); scale: 1.06; }
.answer-text h3 { font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.9rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 0.75rem; }
.answer-text p { color: var(--on-teal); font-size: 1.0625rem; }
.a-none { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem) !important; line-height: 1.2; color: #fff !important; letter-spacing: -0.02em; }
.a-need, .a-biz a { display: none; }
.a-pic { color: var(--on-teal-soft) !important; font-size: 0.95rem !important; margin-top: -0.25rem; }
.a-biz { margin: 0 0 1.25rem; }
.chips { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips li { padding: 0.3rem 0.75rem; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 0.95rem; }
.finder:not(:has([name="need"]:checked)) .ap-enq { opacity: 1; scale: 1; }
.finder:has(#n-enq:checked) .ap-enq, .finder:has(#n-site:checked) .ap-site, .finder:has(#n-google:checked) .ap-google, .finder:has(#n-social:checked) .ap-social { opacity: 1; scale: 1; }
.finder:has(#b-trade:checked) .b-trade, .finder:has(#b-beauty:checked) .b-beauty, .finder:has(#b-garage:checked) .b-garage, .finder:has(#b-venue:checked) .b-venue, .finder:has(#b-other:checked) .b-other { display: inline-block; }
.finder:has(#n-enq:checked) .a-enq, .finder:has(#n-site:checked) .a-site, .finder:has(#n-google:checked) .a-google, .finder:has(#n-social:checked) .a-social { display: block; }
.finder:has([name="need"]:checked) .a-none { display: none; }

/* Pricing */
.price-grid { display: grid; gap: 1.5rem 3rem; }
.price-grid h2 { margin-bottom: 0; }
.price-num { margin: 0; font-size: 1.25rem; color: var(--soft); }
.price-num strong { display: block; font-size: clamp(4.5rem, 3rem + 6vw, 8.5rem); font-weight: 300; line-height: 0.9; letter-spacing: -0.06em; color: var(--ink); }
.ticks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.ticks li { position: relative; padding: 0.9rem 0 0.9rem 2rem; border-bottom: 1px solid var(--rule); }
.ticks li::before { content: ""; position: absolute; left: 0.1rem; top: 1.25rem; width: 1rem; height: 0.55rem; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); rotate: -45deg; }
.terms { color: var(--soft); font-size: 1rem; max-width: 46rem; }

/* Questions */
.faq-grid { display: grid; gap: 2rem 4rem; }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; position: relative; display: block; padding: 1.35rem 3.5rem 1.35rem 0; font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); font-weight: 500; letter-spacing: -0.02em; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ""; position: absolute; right: 0; top: 50%; width: 2.5rem; height: 2.5rem; margin-top: -1.25rem; border: 1px solid var(--rule); border-radius: 50%; transition: background-color 0.2s ease, border-color 0.2s ease; }
.faq summary::after { content: ""; position: absolute; right: 0.75rem; top: 50%; width: 1rem; height: 1rem; margin-top: -0.5rem; background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat; transition: rotate 0.35s var(--ease); }
.faq summary:hover::before { background: var(--marker); border-color: var(--marker); }
.faq details[open] summary::after { rotate: 135deg; }
.faq details p { color: var(--soft); max-width: 42rem; padding-bottom: 1.4rem; margin: 0; }

/* The closing band: teal, with a marker stroke sweeping across as you reach it */
.band { position: relative; overflow: hidden; background: var(--teal); color: #fff; padding-block: clamp(4rem, 2.5rem + 6vw, 8rem); isolation: isolate; }
.band::before { content: ""; position: absolute; z-index: -1; right: -10%; top: -30%; width: 60%; height: 160%; background: linear-gradient(100deg, transparent 0 22%, rgba(255, 255, 255, 0.06) 22% 100%); }
.band-grid { display: grid; gap: 2rem 4rem; align-items: end; }
.band h2 { font-weight: 300; font-size: clamp(2.8rem, 1.2rem + 6vw, 7rem); line-height: 0.92; letter-spacing: -0.055em; }
.band-line { display: block; }
.band p { color: var(--on-teal); font-size: 1.2rem; max-width: 30rem; }


/* ---------- Work page ---------- */
.stage-wall .wall { position: absolute; inset: -10% -5% -10% 30%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; rotate: -8deg; }
.wall-col { display: flex; flex-direction: column; gap: 1rem; }
.wall-col img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; border-radius: 0.8rem; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 2.5rem 1.25rem; }
.tiles a { display: grid; color: inherit; text-decoration: none; }
.tile-img { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 0.4rem; background: var(--mist); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: scale 0.8s var(--ease), translate 0.8s var(--ease); }
.tile-img em { position: absolute; left: 0.75rem; bottom: 0.75rem; padding: 0.5rem 0.85rem; background: #fff; color: var(--ink); font-style: normal; font-size: 0.95rem; font-weight: 600; border-radius: 0.25rem; opacity: 0; translate: 0 0.5rem; transition: opacity 0.25s ease, translate 0.35s var(--ease); }
.tiles a:hover .tile-img img { scale: 1.04; }
.tiles a:hover .tile-img em, .tiles a:focus-visible .tile-img em { opacity: 1; translate: 0; }
.tile-name { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 0.8rem; margin-top: 0.8rem; border-top: 1px solid var(--rule); }
.tile-name strong { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.tile-name small { flex: none; color: var(--soft); font-size: 0.9rem; }
.tile-line { color: var(--soft); font-size: 1rem; margin-top: 0.3rem; }
.diff { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.diff li { display: grid; gap: 0.4rem 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.diff h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 400; letter-spacing: -0.035em; }
.diff p { color: var(--soft); margin: 0; max-width: 40rem; }

/* ---------- About page ---------- */
.stage-about .big-k { position: absolute; z-index: 2; right: -6%; top: 4%; width: min(78%, 46rem); height: auto; }
.big-k path { fill: none; stroke: var(--on-teal); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.big-k circle { fill: var(--marker); }
.stage-place { position: absolute; z-index: 2; right: 1.25rem; left: clamp(1.25rem, 0.5rem + 3vw, 3.5rem); bottom: 1.4rem; display: none; }
.stage-place strong { display: block; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 0.3rem; }
.stage-place span { display: block; color: var(--on-teal-soft); font-size: 1rem; max-width: 20rem; }
.stage-place .ul { color: #fff; margin-top: 0.5rem; }
.steps { list-style: none; counter-reset: s; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 2rem 1.5rem; border-top: 1px solid var(--ink); }
.steps li { counter-increment: s; padding-top: 1.4rem; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; color: var(--soft); font-size: 1rem; margin-bottom: 1.4rem; }
.steps h3 { font-size: 1.6rem; font-weight: 400; letter-spacing: -0.035em; margin-bottom: 0.6rem; }
.steps p { color: var(--soft); margin: 0; }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--rule); border-block: 1px solid var(--rule); }
.values li { background: var(--paper); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem) clamp(1.25rem, 0.5rem + 2vw, 2.5rem); }
.values h3 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); font-weight: 300; letter-spacing: -0.045em; margin-bottom: 0.75rem; }
.values p { color: var(--soft); margin: 0; }
.split { display: grid; gap: 1rem 4rem; }
.split-body p { max-width: 40rem; }
.split h2 { margin-bottom: 0.5rem; }
.facts { margin: 0; border-top: 1px solid var(--ink); }
.facts div { display: grid; gap: 0.1rem 2rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--soft); font-size: 1rem; }
.facts dd { margin: 0; }

/* ---------- Phones only ---------- */
@media (max-width: 59.99rem) {
  .stage-wall .stage-side { bottom: 1.25rem; }
  .stage-about .stage-title { bottom: 1.75rem; }
}

/* ---------- From 40rem ---------- */
@media (min-width: 40rem) {
  .svc { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .facts div { grid-template-columns: 9rem 1fr; }
}

/* ---------- From 60rem: the header is a fixed tab over the stage (core), wider columns ---------- */
@media (min-width: 60rem) {
  .stage { margin-top: var(--inset); height: calc(100svh - 2 * var(--inset)); }
  .stage-title { right: 40%; bottom: clamp(3rem, 1rem + 5vw, 5.5rem); }
  .stage-side, .stage-place { display: block; left: auto; right: clamp(1.5rem, 0.5rem + 3vw, 3.5rem); bottom: clamp(3rem, 1rem + 5vw, 5.5rem); width: min(22rem, 30%); }
  .captions li { display: grid; gap: 0.2rem; align-content: start; }
  .captions strong { font-size: 1.6rem; letter-spacing: -0.03em; }
  .captions span { display: block; }
  .captions .ul { justify-self: start; margin-top: 0.2rem; }
  .dev-desk { top: 10%; left: 51%; width: 62%; rotate: -5deg; }
  .dev-phone { top: 25%; left: 43.5%; width: 14%; max-width: 15rem; }
  .stage::after { background: linear-gradient(to top, rgba(8, 34, 35, 0.9) 0%, rgba(8, 34, 35, 0.45) 30%, rgba(8, 34, 35, 0) 55%), linear-gradient(to right, rgba(8, 34, 35, 0.55), rgba(8, 34, 35, 0) 45%); }
  .stage-wall .wall { inset: -20% -5% -20% 42%; }
  .stage-about .big-k { right: 4%; top: 8%; width: min(46%, 40rem); }
  .cols { grid-template-columns: minmax(10rem, 32%) 1fr; }
  .cols > .label { margin-top: 0.5rem; }
  .head-cols { align-items: start; }
  .svc { grid-template-columns: repeat(4, 1fr); }
  .svc-img { aspect-ratio: 4 / 5; }
  .how-grid { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
  .how-pic { position: sticky; top: 6rem; }
  .finder-grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center; }
  .answer { grid-template-columns: minmax(7rem, 38%) 1fr; }
  .answer-pics { aspect-ratio: 9 / 18; border-width: 0.35rem; border-radius: 1.4rem; }
  .price-grid { grid-template-columns: 1.2fr 1fr; align-items: end; }
  .price-grid .ticks, .price-grid .terms { grid-column: 1 / -1; }
  .price-grid .ticks { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .faq-grid { grid-template-columns: minmax(16rem, 32%) 1fr; }
  .band-grid { grid-template-columns: 1.4fr 1fr; }
  .diff li { grid-template-columns: minmax(14rem, 32%) 1fr; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .values { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: minmax(14rem, 32%) 1fr; }
}

/* ============ Motion ============ */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out 0.25s ease both; }
  ::view-transition-new(root) { animation: vt-in 0.5s var(--ease) both; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; translate: 0 1.5rem; } }
  .stage { view-transition-name: stage; }

  /* The one load sequence: the stage opens out, the lines rise, the marker draws */
  .stage { animation: stage-open 1.2s var(--ease) both; }
  @keyframes stage-open { from { clip-path: inset(3% 3% 3% 3% round calc(var(--radius) * 1.6)); } to { clip-path: inset(0 0 0 0 round var(--radius)); } }
  .stage-title .l > span { animation: line-up 1.1s var(--ease) both; }
  .stage-title .l:nth-child(1) > span { animation-delay: 0.25s; }
  .stage-title .l:nth-child(2) > span { animation-delay: 0.37s; }
  .stage-title .l:nth-child(3) > span { animation-delay: 0.49s; }
  @keyframes line-up { from { translate: 0 108%; } }
  .mk { animation: mk-ink 0.5s ease 1.25s both; }
  .mk::before { animation: mk-draw 0.65s cubic-bezier(0.6, 0, 0.2, 1) 1.15s both; }
  @keyframes mk-draw { from { scale: 0 1; } }
  @keyframes mk-ink { from { color: #fff; } }
  .stage-side, .stage-place { animation: rise 0.9s var(--ease) 0.8s both; }
  @keyframes rise { from { opacity: 0; translate: 0 1.25rem; } }

  /* The slideshow: three slides, five seconds each, the devices drifting in while they show. Visibility is animated
     too, so a hidden slide's link can't be focused or tapped. */
  .slide:not(:first-child), .captions li:not(:first-child) { visibility: visible; }
  .slide, .captions li { animation: slide 15s linear infinite backwards; }
  .slide:first-child, .captions li:first-child { animation-name: slide-first; }
  .slide:nth-child(2), .captions li:nth-child(2) { --d: 5s; }
  .slide:nth-child(3), .captions li:nth-child(3) { --d: 10s; }
  .slide, .captions li, .slide .dev-desk, .slide .dev-phone { animation-delay: var(--d, 0s); }
  @keyframes slide { 0% { opacity: 0; visibility: hidden; } 0.1% { visibility: visible; } 4.5%, 33.3% { opacity: 1; } 38% { opacity: 0; } 38.1%, 100% { opacity: 0; visibility: hidden; } }
  @keyframes slide-first { 0%, 33.3% { opacity: 1; visibility: visible; } 38% { opacity: 0; } 38.1%, 95.4% { opacity: 0; visibility: hidden; } 95.5% { visibility: visible; } 100% { opacity: 1; visibility: visible; } }
  .slide .dev-desk { animation: drift-desk 15s var(--ease) infinite backwards; }
  .slide .dev-phone { animation: drift-phone 15s var(--ease) infinite backwards; }
  @keyframes drift-desk { 0% { translate: 5% 4%; } 40%, 100% { translate: 0 0; } }
  @keyframes drift-phone { 0% { translate: -10% 14%; } 40%, 100% { translate: 0 0; } }
  /* The dots: the current one widens and fills while its slide shows */
  .dots i, .dots i:first-child { width: 0.45rem; background: var(--rule); animation: dot-w 15s linear infinite backwards; animation-delay: var(--d, 0s); }
  .dots i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; animation: dot 15s linear infinite backwards; animation-delay: var(--d, 0s); }
  .dots i:nth-child(2) { --d: 5s; } .dots i:nth-child(3) { --d: 10s; }
  @keyframes dot { 0% { scale: 0 1; } 33.3% { scale: 1 1; } 34.5%, 100% { scale: 0 1; } }
  @keyframes dot-w { 0%, 33.3% { width: 1.8rem; } 36%, 100% { width: 0.45rem; } }
  .pause:checked ~ :is(.slides, .stage-side, .stage-notch) *, .pause:checked ~ .stage-notch .dots i::after { animation-play-state: paused; }

  /* The strip of trades runs on its own; it stops under the pointer */
  .marquee-track { animation: marquee 48s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  @keyframes marquee { to { translate: -50% 0; } }

  /* Work page: the wall of our sites slides up and down, column against column */
  .wall-col { animation: wall-up 40s linear infinite alternate; }
  .wall-col:nth-child(2) { animation-name: wall-down; animation-duration: 46s; }
  .wall-col:nth-child(3) { animation-duration: 52s; }
  @keyframes wall-up { from { translate: 0 0; } to { translate: 0 -30%; } }
  @keyframes wall-down { from { translate: 0 -30%; } to { translate: 0 0; } }

  /* About page: the K draws itself, then its full stop drops in */
  .big-k path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: k-draw 1.3s cubic-bezier(0.6, 0, 0.2, 1) 0.5s forwards; }
  .big-k path:nth-child(2) { animation-delay: 0.85s; }
  .big-k path:nth-child(3) { animation-delay: 1.1s; }
  @keyframes k-draw { to { stroke-dashoffset: 0; } }
  .big-k circle { transform-box: fill-box; transform-origin: 50% 50%; animation: k-dot 0.7s cubic-bezier(0.3, 1.6, 0.5, 1) 1.9s both; }
  @keyframes k-dot { from { translate: 0 -400%; opacity: 0; } 60% { opacity: 1; } }

  .answer-pics img { transition: opacity 0.45s ease, scale 0.7s var(--ease); }
}

/* Scroll-linked: nothing moves unless the visitor scrolls */
@supports (animation-timeline: scroll()) {
  .rail-bar i { animation: rail linear both; animation-timeline: --rail; }
  @keyframes rail { from { scale: 0.25 1; } to { scale: 1 1; } }

  @media (prefers-reduced-motion: no-preference) {
    /* Words ink in, line by line, as they cross the screen */
    .fill { color: transparent; background: linear-gradient(to bottom, var(--ink) 0 45%, var(--unlit) 55% 100%) 0 100% / 100% 220% no-repeat; -webkit-background-clip: text; background-clip: text; animation: ink linear both; animation-timeline: view(); animation-range: entry 40% cover 55%; }
    @keyframes ink { to { background-position: 0 0; } }
    /* Headings rise into their lines as they come into view */
    .rise { view-timeline: --h block; }
    .rise .l > span { animation: line-up linear both; animation-timeline: --h; animation-range: entry 10% entry 90%; }
    .rise .l:nth-child(2) > span { animation-range: entry 25% entry 100%; }
    /* Pictures are wiped on left to right, like the marker */
    .wipe { animation: wipe linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    .lift { animation: lift linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    @keyframes lift { from { translate: 0 12%; opacity: 0.25; } }
    @keyframes wipe { from { clip-path: inset(0 100% 0 0); scale: 1.12; } to { clip-path: inset(0 0 0 0); scale: 1; } }
    .svc a:hover .svc-img img.wipe { scale: 1.06; }
    /* The stage sinks and darkens a little as you scroll past it */
    .slides, .wall, .big-k { animation: sink linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes sink { to { translate: 0 12%; opacity: 0.55; } }
    /* The band's light swings across */
    .band::before { animation: sheen linear both; animation-timeline: view(); }
    @keyframes sheen { from { translate: 30% 0; } to { translate: -20% 0; } }
    .band-line { animation: band-in linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    .band-line:nth-child(2) { animation-range: entry 10% cover 45%; }
    @keyframes band-in { from { opacity: 0; translate: 0 50%; } }
  }
}

/* Reduced motion: the slideshow and strip stand still on their first frame */
@media (prefers-reduced-motion: reduce) {
  .pause-btn { display: none; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track span:nth-child(n + 13) { display: none; }
}

