/* ---- Tweakable spacing ----------------------------------------------------
 * Named so they're easy to find and nudge in Chrome DevTools (Inspect → Styles
 * → :root, arrow keys change a value live). Then set the number you land on here.
 */
:root {
  --toolbar-height: 112px;                 /* 80px logo + 16px padding top and bottom */
  --toolbar-logo-height: 80px;
  --section-space: var(--space-3xl);        /* vertical padding of each section */
  --heading-gap: var(--space-xl);           /* section heading → its content */
  --cta-gap: var(--space-lg);               /* text → button */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Touch: no browser flash or blue selection; the brand's ink and paper instead, paper on the black
   bands (var(--foreground) came out unreadable there: Chrome resolves highlight colours differently) */
html { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--brand-black); color: var(--brand-offwhite); }
:is(.section-inverse, .toolbar, .logos) ::selection { background: var(--brand-offwhite); color: var(--brand-black); }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-tight);
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }

/* Anchors and Tab land below the fixed toolbar, not under it */
html { scroll-padding-top: calc(var(--toolbar-height) + var(--space-md)); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--space-md); top: var(--space-md); z-index: 100; background: var(--card); padding: var(--space-sm) var(--space-md); }

/* Logo: a CSS mask of the currentColor SVG, so it takes the text colour in both bands. */
.logo {
  display: block;
  aspect-ratio: 400.56 / 211.68;
  background: currentColor;
  -webkit-mask: url(/assets/stencil_logo_primary.svg) no-repeat center / contain;
          mask: url(/assets/stencil_logo_primary.svg) no-repeat center / contain;
}

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px var(--space-lg);
  line-height: 1.4; /* its own, so it's one height wherever it sits */
  background: var(--primary);
  color: var(--primary-foreground);
  border: var(--border-width-strong) solid var(--primary);
  font-weight: 800;
  font-size: var(--text-body);
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), transform 80ms var(--ease-standard);
}
.btn--outline { background: transparent; color: var(--primary); }
/* Hover only where there's a pointer, so it doesn't stick after a tap; pressed settles 1px */
@media (hover: hover) {
  .btn:hover { background: transparent; color: var(--primary); }
  .btn--outline:hover { background: var(--primary); color: var(--primary-foreground); }
}
.btn:active { transform: translateY(1px); }

/* ---- Toolbar: hidden during the opening, then persistent. Black everywhere (a see-through or section-matching bar
   let text run under it). The grey hairline keeps it apart from the black sections. ------------------ */
.toolbar {
  --background: var(--bg-inverse);
  --foreground: var(--brand-white);
  --muted-foreground: var(--brand-grey-300);
  --border: var(--brand-grey-500);
  --primary: var(--brand-white);
  --primary-foreground: var(--brand-black);
  --ring: var(--brand-white);
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--toolbar-height);
  background: var(--background); color: var(--foreground);
  border-bottom: var(--border-width) solid var(--border);
  transform: translateY(-100%);
  transition: transform var(--duration-base) var(--ease-standard), background-color var(--tb-fade) ease, color var(--tb-fade) ease, border-color var(--tb-fade) ease;
}
.toolbar.is-visible, .toolbar:focus-within { transform: none; }
/* Over a black section the bar turns off-white, so it never matches what's
   under it. menu.js checks every scroll frame and changes it as the section's edge reaches the bar's bottom edge */
:root { --tb-fade: 180ms; } /* quicker than --duration-base on purpose */
.toolbar .logo, .toolbar .btn, .toolbar .navpanel { transition: background-color var(--tb-fade) ease, color var(--tb-fade) ease, border-color var(--tb-fade) ease; }
/* This rule outranks the panel's own transition, so the panel's fade is restated here */
.toolbar .navpanel { transition: background-color var(--tb-fade) ease, color var(--tb-fade) ease, border-color var(--tb-fade) ease, opacity var(--duration-fast) var(--ease-standard), display var(--duration-fast) allow-discrete; }
.toolbar.toolbar--light {
  --background: var(--brand-offwhite);
  --foreground: var(--brand-black);
  --muted-foreground: var(--brand-grey-500);
  --border: var(--brand-grey-300);
  --primary: var(--brand-black);
  --primary-foreground: var(--brand-white);
  --ring: var(--brand-black);
}
.toolbar__inner { height: 100%; display: flex; align-items: center; gap: var(--space-xl); }
.toolbar__logo { height: var(--toolbar-logo-height); width: auto; flex: none; }
.toolbar__nav { display: flex; gap: 32px; margin-left: auto; } /* room for the 0.15em tracking; between --space-lg and --space-xl, checked at 1024-1440px */
.toolbar__nav a { text-decoration: none; font-weight: 500; padding: var(--space-xs) 0; border-bottom: var(--border-width-strong) solid transparent; }

.toolbar .btn { padding: 10px var(--space-md); }
.toolbar__menu { display: none; }

/* ---- The highlight: hover, keyboard focus and the page you're on show the
   subject highlight, the block SOUND and the buyer cards carry, filling up from where an underline would sit; the
   letters take the background's colour. --hl is the block, --hl-ink the
   letters; the dropdown is the toolbar inverted, so it swaps them, and .section-inverse sets white text but no
   --background, so the footer names its black. In the dropdown and the phone menu the words are in a span (layout.html),
   as those links are full-width rows. */
.toolbar__nav > a, .toolbar__nav .navgroup > a, .footer__col a, .faq summary > span, .toolbar__nav .navpanel a > span, .toolbar__menu nav a > span, .back, .news-list h3 a {
  --hl: var(--foreground); --hl-ink: var(--background);
  text-decoration: none;
  background: linear-gradient(var(--hl), var(--hl)) 0 100% / 0 2px no-repeat;
  padding-inline: 0.12em; margin-inline: -0.12em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}
.toolbar__nav .navpanel a > span { --hl: var(--background); --hl-ink: var(--foreground); }
.section-inverse .footer__col a { --hl-ink: var(--bg-inverse); }
@media (hover: hover) {
  .toolbar__nav > a:hover, .toolbar__nav .navgroup:hover > a, .footer__col a:hover, .faq summary:hover > span,
  .toolbar__nav .navpanel a:hover > span, .back:hover, .news-list h3 a:hover { background-size: 100% 100%; color: var(--hl-ink); transition-duration: var(--duration-base); }
}
.toolbar__nav > a:is(:focus-visible, [aria-current="page"]), .toolbar__nav .navgroup > a:focus-visible, .footer__col a:focus-visible, .back:focus-visible, .news-list h3 a:focus-visible,
.faq summary:focus-visible > span, .toolbar__nav .navpanel a:is(:focus-visible, [aria-current="page"]) > span,
.toolbar__menu nav a:is(:focus-visible, [aria-current="page"]) > span { background-size: 100% 100%; color: var(--hl-ink); }

/* Buyer card titles: the subject highlight fills in from where the underline starts, the same block
   the page's own title carries, so the hover previews the page */
.buyer h3 > span {
  background: linear-gradient(var(--foreground), var(--foreground)) 0 100% / 0 2px no-repeat;
  padding-inline: 0.06em; margin-inline: -0.06em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}
.buyer:focus-visible h3 > span { background-size: 100% 100%; color: var(--background); }
/* Touch screens have no hover, so the cards show the highlight from the start: it says "tap me" */
@media (hover: none) { .buyer h3 > span { background-size: 100% 100%; color: var(--background); } }
@media (hover: hover) {
  .buyer:hover h3 > span { background-size: 100% 100%; color: var(--background); transition-duration: var(--duration-base); }
}


/* ---- Sections ------------------------------------------------------------------ */
.section { padding-block: var(--section-space); }
.section__heading { font-size: var(--text-h3); font-weight: 800; line-height: var(--leading-heading); letter-spacing: var(--tracking-tight); max-width: 18ch; margin-bottom: var(--heading-gap); }
.section__lead { max-width: var(--measure); font-size: var(--text-lg); line-height: 1.4; margin-bottom: var(--heading-gap); }
.section__heading + .section__lead { margin-top: calc(var(--space-md) - var(--heading-gap)); }
.label { font-family: var(--font-accent); font-size: var(--text-label); letter-spacing: var(--tracking-accent); text-transform: uppercase; line-height: 1.2; }
.muted { color: var(--muted-foreground); }

/* Labelled placeholders: never pass for real content. */
.placeholder {
  display: flex; align-items: flex-end;
  background: var(--muted);
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(15,19,20,.05) 14px 15px);
  padding: var(--space-md);
  color: var(--muted-foreground);
  font-size: 14px;
}

/* Products */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--border-width-strong) solid var(--foreground); }
.tier { padding: var(--space-lg) var(--space-lg) 0 0; display: flex; flex-direction: column; gap: var(--space-md); }
.tier + .tier { padding-left: var(--space-lg); border-left: var(--border-width) solid var(--border-input); }
.tier__img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.tier h3 { font-size: var(--text-lg); font-weight: 800; }
.tier p { max-width: 34ch; line-height: var(--leading-prose); letter-spacing: var(--tracking-prose); }
.tier a { font-weight: 800; margin-top: auto; }

/* Visualiser invitation */
.visualiser { background: var(--card); }
/* Text left, the visualiser film as a second way in on the right */
.visualiser__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--space-2xl); }
.visualiser h2 { font-size: var(--text-h2); font-weight: 800; line-height: var(--leading-heading); letter-spacing: var(--tracking-tight); }
.visualiser p { margin-top: var(--space-md); font-size: var(--text-lg); max-width: 24ch; line-height: 1.2; }
.visualiser .btn { margin-top: var(--space-xl); }
.visualiser__stage { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.visualiser__stage > img { display: block; width: 100%; height: 100%; object-fit: cover; } /* a still fills the 16:9 box without stretching */
/* The visualiser film: fills the box; a small Pause in the top corner, clear of the film's captions (bottom left) */
.film__link, .film video { display: block; width: 100%; height: 100%; }
.film video { object-fit: cover; }
.film__pause { position: absolute; top: var(--space-sm); right: var(--space-sm); font-family: var(--font-accent); font-size: var(--text-label); letter-spacing: var(--tracking-accent); text-transform: uppercase; color: var(--background); background: var(--foreground); border: 0; padding: 6px 10px; min-width: 24px; min-height: 24px; cursor: pointer; }
.film__pause[hidden] { display: none; }
@media (hover: hover) { .film__pause:hover { background: var(--background); color: var(--foreground); } } /* the button's swap, not an underline */
.visualiser__tag { position: absolute; left: var(--space-md); bottom: var(--space-md); background: var(--foreground); color: var(--background); padding: 4px 8px; }
@media (max-width: 1023px) { .visualiser__inner { grid-template-columns: 1fr; } }
/* The screen below the toolbar, on desktop: the film gives up height to fit, and the
   section centres it */
@media (min-width: 1024px) {
  .visualiser { min-height: calc(100svh - var(--toolbar-height)); display: grid; align-content: center; }
  .visualiser__inner { grid-template-columns: 1fr 2fr; } /* the film takes two thirds */
  .visualiser__stage { width: min(100%, (100svh - var(--toolbar-height) - 2 * var(--section-space)) * 16 / 9); justify-self: end; } /* 16:9 at the height that fits, on the right margin */
}


/* Testimonials (inverse band) */
.quote-lead { font-size: var(--text-h3); font-weight: 800; line-height: 1.08; letter-spacing: var(--tracking-tight); max-width: 24ch; }
.quote-lead p + p { margin-top: 0.5em; }
.quotes { margin-top: var(--space-2xl); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.quotes blockquote { border-top: var(--border-width) solid var(--border); padding-top: var(--space-lg); font-size: var(--text-lg); line-height: 1.2; }
cite { display: block; margin-top: var(--space-lg); font-style: normal; font-size: var(--text-body); letter-spacing: var(--tracking-tight); } /* re-declared: inherited em tracking is computed at the parent's size, so under the 48px lead quote it was ~3x too tight */
cite strong { font-weight: 800; }
/* ™ in headings: a small raised mark, not a full-size letter */
.tm { font-size: 0.4em; line-height: 0; vertical-align: super; letter-spacing: 0; margin-left: 0.08em; }

/* The founder's message */
.founder { align-items: start; }
/* A line above and below the founder's message, inside the page margins */
#about .founder {
  padding-block: var(--space-2xl);
  background: linear-gradient(var(--foreground), var(--foreground)) top / calc(100% - 2 * var(--container-pad)) 1px no-repeat,
              linear-gradient(var(--foreground), var(--foreground)) bottom / calc(100% - 2 * var(--container-pad)) 1px no-repeat;
}
.founder__img { grid-column: 1 / span 4; aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.founder__text { grid-column: 6 / span 7; }
.founder__text blockquote, .origins blockquote { font-size: var(--text-lg); line-height: 1.25; max-width: 38ch; }
.founder__text blockquote, .origins blockquote { font-style: italic; } /* The founder's words in Archivo Italic, his name upright (cite resets it), on the home page and About */
.origins blockquote { margin-top: var(--space-xl); border-top: var(--border-width) solid var(--border); padding-top: var(--space-lg); }

/* FAQ: native disclosure, so keyboard and screen readers work with no script */
.faq { border-top: var(--border-width-strong) solid var(--foreground); max-width: 60rem; }
.faq details { border-bottom: var(--border-width) solid var(--border-input); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-lg);
  padding: var(--space-lg) 0;
  font-weight: 800; font-size: var(--text-lg); line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  border-right: var(--border-width-strong) solid currentColor; border-bottom: var(--border-width-strong) solid currentColor;
  transform: translateY(-4px) rotate(45deg);
  transition: transform var(--duration-fast) var(--ease-standard); /* state speed, with the answer */
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq .answer { padding-bottom: var(--space-lg); max-width: var(--measure); }
.faq .answer--pending { color: var(--muted-foreground); }
.faq .answer p { margin: 0 0 var(--space-md); }
.faq .answer ul { margin: 0 0 var(--space-md); padding-left: 1.2em; }
.faq .answer li { margin: 0 0 .35em; }
.faq .answer > :last-child { margin-bottom: 0; }

/* How it works: numbered steps, same rules and spacing as the FAQ */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; max-width: 60rem; border-top: var(--border-width-strong) solid var(--foreground); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: var(--space-md); padding: var(--space-lg) 0; border-bottom: var(--border-width) solid var(--border-input); }
/* The boxed figure, as the buyer pages' steps: one step style, no leading zero */
.steps li::before { content: counter(step); width: 32px; height: 32px; display: grid; place-items: center; background: var(--foreground); color: var(--background); font-family: var(--font-accent); font-weight: 700; font-size: 16px; text-transform: uppercase; border-radius: var(--radius-sm); }
.steps h3 { margin: 0 0 .3em; font-weight: 800; font-size: var(--text-lg); line-height: 1.2; }
.steps p { margin: 0; max-width: var(--measure); line-height: var(--leading-prose); letter-spacing: var(--tracking-prose); }
.faq-more { margin-top: var(--space-xl); }

/* Enquire */
.enquire h2 { font-size: var(--text-h2); font-weight: 800; line-height: var(--leading-heading); letter-spacing: var(--tracking-tight); max-width: 16ch; }
.enquire__row { margin-top: var(--space-xl); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); }

/* Footer (inverse) */
.footer { padding-block: var(--space-2xl) var(--space-xl); }
.footer__grid { row-gap: var(--space-xl); }
.footer__logo { width: 120px; grid-column: 1 / -1; } /* its own row, so four columns fit beside each other */
.footer__col { grid-column: span 3; display: flex; flex-direction: column; gap: var(--space-sm); }
.footer__col .label { color: var(--muted-foreground); margin-bottom: var(--space-xs); }
.footer__col a { align-self: flex-start; } /* the drawn underline stays text-width */
.footer address { font-style: normal; }
.footer__small { grid-column: 1 / -1; border-top: var(--border-width) solid var(--border); padding-top: var(--space-lg); display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-xl); font-size: 14px; color: var(--muted-foreground); }


/* ---- Tablet and phone --------------------------------------------------------- */
@media (max-width: 1023px) {
  :root { --toolbar-height: 80px; --toolbar-logo-height: 48px; } /* --section-space doesn't step here: --space-3xl is fluid */
  .toolbar__nav { display: none; }
  .toolbar__menu { display: block; margin-left: auto; }
  /* The menu as an icon: three lines, a cross when open; the word is there for screen readers */
  .toolbar__menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; }
  .burger { position: relative; width: 24px; height: 14px; }
  .burger i { position: absolute; left: 0; right: 0; height: 2px; background: var(--foreground); transition: transform var(--duration-base) var(--ease-standard), opacity var(--duration-fast); }
  .burger i:nth-child(2) { top: 6px; }
  .burger i:nth-child(3) { top: 12px; }
  .toolbar__menu[open] .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .toolbar__menu[open] .burger i:nth-child(2) { opacity: 0; }
  .toolbar__menu[open] .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .toolbar__menu summary::-webkit-details-marker { display: none; }
  .toolbar__menu nav { position: absolute; left: 0; right: 0; top: var(--toolbar-height); background: var(--background); border-bottom: var(--border-width) solid var(--border-input); padding: var(--space-md) var(--container-pad) var(--space-lg); display: flex; flex-direction: column; }
  /* Hack capitals, as the desktop nav, in 44px rows; the sub-links' size is with .sub below */
  .toolbar__menu nav a { display: flex; align-items: center; min-height: 44px; font-family: var(--font-accent); font-weight: 400; font-size: 16px; letter-spacing: var(--tracking-accent); text-transform: uppercase; text-decoration: none; }
  .toolbar__inner { gap: var(--space-md); }

  .tiers { grid-template-columns: 1fr; }
  .tier, .tier + .tier { padding: var(--space-lg) 0; border-left: 0; }
  .tier + .tier { border-top: var(--border-width) solid var(--border-input); }
  .quotes { grid-template-columns: 1fr; }
  .founder__img { grid-column: 1 / span 12; max-width: 320px; }
  .founder__text { grid-column: 1 / -1; }
  .footer__logo, .footer__col { grid-column: 1 / -1; }
}


/* ---- Reduced motion (the hero's own rules are in /assets/hero/hero.css) */
@media (prefers-reduced-motion: reduce) {
  .toolbar { transform: none; }
}

/* ---- Visualiser page ---------------------------------------------------------- */
.page-visualiser main { padding-top: var(--toolbar-height); }
.vis-app { border-block: var(--border-width) solid var(--border-input); }
.vis-app { padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px); } /* a phone held sideways: the app stays clear of the notch (viewport-fit=cover) */
.vis-app iframe { display: block; width: 100%; height: calc(100svh - var(--toolbar-height)); min-height: 640px; border: 0; background: var(--card); scroll-margin-top: var(--toolbar-height); }
/* Phones: the frame is exactly the screen under the toolbar, no taller (640px ran past an iPhone SE's), so once the page
   brings it up (visualiser.html) all of it, SAVE PNG included, is on screen */
@media (max-width: 1023px) { .vis-app iframe { min-height: 0; } }
/* While the app loads, the speaker's line drawing covers the frame on the page's own colour, so
   nobody sees it half-built; it fades once the model is in (visualiser.html). Placed by the frame's height, so the
   drawing and the note sit in its first screen on desktop and phones */
.vis-app { position: relative; }
.vis-load { position: absolute; inset: 0; z-index: 1; background: var(--background); color: var(--foreground); pointer-events: none; transition: opacity var(--duration-slow) var(--ease-standard); }
.vis-load.is-done { opacity: 0; }
.vis-load img { position: absolute; left: 50%; top: 8%; height: 50%; transform: translateX(-50%); }
/* Centred under the speaker; the block moves, its text stays left-aligned (brand book) */
.vis-load__note { position: absolute; left: 50%; transform: translateX(-50%); top: calc(58% + var(--space-md)); display: flex; flex-direction: column; gap: var(--space-sm); }
.vis-load__t { font-family: var(--font-accent); font-size: var(--text-label); letter-spacing: var(--tracking-accent); text-transform: uppercase; }
.vis-load__bar { position: relative; width: 240px; height: var(--border-width); overflow: hidden; background: color-mix(in srgb, currentColor 25%, transparent); }
.vis-load__bar::after { content: ""; position: absolute; inset: 0; width: 40%; background: currentColor; animation: vis-load 1.4s var(--ease-draw) infinite; }
@keyframes vis-load { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .vis-load { transition: none; } .vis-load__bar::after { animation: none; width: 100%; } }

/* Testimonial headshots: square, like everything else in the system */
.cite--face { display: flex; align-items: center; gap: var(--space-md); }
.cite--face img { width: 56px; height: 56px; object-fit: cover; flex: none; }

/* ---- Section follow-on buttons -------------------------------------------------- */
.section-cta { margin-top: var(--space-xl); }

/* ---- Logo bar: one scrolling row under the hero, with Pause ---------- */
/* On black, so it stands apart from the hero's paper; the logos are black artwork, so they're inverted */
.logos { --foreground: var(--brand-white); --muted-foreground: var(--brand-grey-300); --ring: var(--brand-white);
  position: relative; padding-block: var(--space-xl); background: var(--bg-inverse); color: var(--foreground); }
.marquee { display: flex; overflow: hidden; }
.marquee__track { display: flex; flex: none; align-items: center; gap: var(--space-3xl); padding-right: var(--space-3xl); list-style: none; margin: 0; }
/* Still unless home.js starts it (motion allowed): no JS or reduced motion gets one wrapped, left-aligned row */
.marquee:not(.is-moving) { padding-inline: var(--container-pad); }
.marquee:not(.is-moving) .marquee__track { flex: 1; flex-wrap: wrap; gap: var(--space-md) var(--space-xl); padding: 0; }
.marquee:not(.is-moving) .marquee__track[aria-hidden] { display: none; }
.marquee.is-moving { /* logos fade in and out at the edges instead of being cut off */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee.is-moving .marquee__track { animation: marquee 40s linear infinite; }
.marquee.is-paused .marquee__track { animation-play-state: paused; }
@media (hover: hover) { .marquee.is-moving:hover .marquee__track { animation-play-state: paused; } } /* a pointer only: after a tap, hover sticks */
@keyframes marquee { to { transform: translateX(-100%); } }
/* Clients as names until Stencil OK each logo: the titles' condensed capitals at a logo's height */
.logos__name { font: 700 22px/1 var(--font-display); font-stretch: 75%; text-transform: uppercase; white-space: nowrap; }
.marquee img { height: 28px; width: auto; max-width: none; filter: invert(1); }
/* Optical balance: the four marks have very different proportions, so each gets its own height. */
.marquee img[src*="db_audiotechnik"] { height: 34px; }
.marquee img[src*="L-acoustics"] { height: 17px; }
.marquee img[src*="emacoustics"] { height: 26px; }
.marquee img[src*="Martin_Audio"] { height: 22px; }
.marquee img[src*="nkn_productions"] { height: 24px; }
.marquee img[src*="penguin_media_hire"] { height: 40px; }
.marquee img[src*="ben_and_jerrys"] { height: 18px; }
.marquee img[src*="solotech"] { height: 26px; } /* a 100px-tall PNG: fine to 3x at this size; a vector would be sharper */
.marquee img[src*="moody_disco"] { height: 18px; }
/* No visible Pause (visual clutter). WCAG 2.2.2 still has its mechanism: hover pauses, a tap or click on the
   bar toggles it, and this button shows only when the keyboard reaches it, like a skip link. */
.logos__pause { position: absolute; left: var(--container-pad); bottom: var(--space-xs); font-family: var(--font-accent); font-size: var(--text-label); letter-spacing: var(--tracking-accent); text-transform: uppercase; color: var(--foreground); background: var(--bg-inverse); border: 0; padding: var(--space-xs) var(--space-sm); min-height: 24px; cursor: pointer; }
.logos__pause:not(:focus-visible) { width: 1px; height: 1px; min-height: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.logos__pause[hidden] { display: none; }
@media (max-width: 700px) {
  .marquee__track { gap: var(--space-2xl); padding-right: var(--space-2xl); }
  .logos__name { font-size: 18px; }
  .marquee img { height: 20px; }
  .marquee img[src*="db_audiotechnik"] { height: 24px; }
  .marquee img[src*="L-acoustics"] { height: 12px; }
  .marquee img[src*="emacoustics"] { height: 19px; }
  .marquee img[src*="Martin_Audio"] { height: 16px; }
  .marquee img[src*="nkn_productions"] { height: 17px; }
  .marquee img[src*="penguin_media_hire"] { height: 29px; }
  .marquee img[src*="ben_and_jerrys"] { height: 13px; }
}

/* ---- Inner pages (case study, team) -------------------------------------------- */
.page-inner main { padding-top: var(--toolbar-height); }
.page-head { padding-block: var(--space-2xl) var(--space-xl); }
.back { display: inline-block; justify-self: start; /* a grid item on the side-heading pages: stops the highlight stretching across the row */ margin-bottom: var(--space-xl); font-weight: 800; }
.page-head__title { font-size: var(--text-h2); font-weight: 800; line-height: var(--leading-heading); letter-spacing: var(--tracking-tight); max-width: 14ch; }
/* The intro line under a page title: a clear step between the title and body text, room above so it
   doesn't crowd the title, balanced lines so no word sits alone. Looser tracking and leading than the brand book's -45 / 1.12,
   like the home hero line. Phones: 24px. */
.page-head__lead { margin-top: var(--space-xl); font-size: clamp(22px, 2.2vw, 34px); line-height: 1.35; letter-spacing: -0.01em; max-width: 52ch; text-wrap: balance; }
@media (max-width: 700px) { .page-head__lead { margin-top: var(--space-lg); font-size: var(--text-lg); } }
.facts { margin: var(--space-xl) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-2xl); }
.facts dt { color: var(--muted-foreground); margin-bottom: var(--space-xs); }
.facts dd { margin: 0; font-weight: 800; }

.cs-hero img { width: 100%; height: auto; max-height: 80vh; object-fit: cover; } /* width/height in the page hold its space before it loads */
.cs-hero--uncropped img { max-height: none; }
.cs-hero .placeholder { aspect-ratio: 16 / 7; }
/* Photo credits: a Hack label under a top photo, a small tag on a card's photo */
.credit { font-family: var(--font-accent); font-size: 11px; letter-spacing: var(--tracking-accent); text-transform: uppercase; line-height: 1.2; }
.cs-hero .credit { display: block; margin-top: var(--space-sm); color: var(--muted-foreground); }
.buyer__photo .credit { position: absolute; right: var(--space-sm); bottom: var(--space-sm); padding: 3px 6px; background: var(--foreground); color: var(--background); }

/* Application pages: four specific points, as many columns as fit */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-xl) var(--space-lg); border-top: var(--border-width-strong) solid var(--foreground); padding-top: var(--space-lg); }
.points h3 { font-size: var(--text-lg); font-weight: 800; line-height: 1.2; margin-bottom: var(--space-sm); }
.points p { max-width: 34ch; line-height: var(--leading-prose); letter-spacing: var(--tracking-prose); }
/* The buyer pages' points as a 1-2-3-4 flow: a number tag on a line that joins them, across on
   desktop, down the left on phones. An <ol>, so the order is announced too */
.points--steps { list-style: none; padding-left: 0; border-top: 0; padding-top: 0;
  /* One row, never auto-fit: a 3 + 1 wrap broke the joining line at 900-1150px */
  grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.points--steps li { position: relative; padding-top: 56px; }
.points--steps li::before { content: counter(list-item); position: absolute; top: 0; left: 0; z-index: 1; width: 32px; height: 32px; display: grid; place-items: center;
  background: var(--foreground); color: var(--background); font-family: var(--font-accent); font-weight: 700; font-size: 16px; text-transform: uppercase; border-radius: var(--radius-sm); }
.points--steps li::after { content: ""; position: absolute; top: 15px; left: 0; right: calc(-1 * var(--space-lg)); border-top: var(--border-width-strong) solid var(--foreground); }
.points--steps li:last-child::after { right: 0; }
@media (max-width: 1023px) {
  .points--steps { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); }
  .points--steps li { padding-top: 0; padding-left: 56px; min-height: 32px; }
  .points--steps li::after { top: 0; bottom: calc(-1 * var(--space-xl)); left: 15px; right: auto; border-top: 0; border-left: var(--border-width-strong) solid var(--foreground); }
  .points--steps li:last-child::after { content: none; }
}
.enquire .page-head__lead { max-width: 48ch; }
.cs-lead { font-size: var(--text-h3); font-weight: 800; line-height: 1.08; letter-spacing: var(--tracking-tight); max-width: 28ch; }
.cs-body + .cs-body { padding-top: 0; }
.cs-body .grid { align-items: start; }
.cs-text { grid-column: 1 / span 6; }
.cs-text h2 { font-size: var(--text-lg); font-weight: 800; margin-bottom: var(--space-md); }
.cs-text :is(p, ul) { max-width: var(--measure); }
.cs-text :is(p, ul) + :is(p, ul) { margin-top: var(--space-md); }
.cs-text ul { padding-left: 1.2em; list-style: square; } /* the bullet lists on the landing pages */
.cs-text li + li { margin-top: var(--space-xs); }
.cs-text + .points { margin-top: var(--space-xl); }

/* Highlighted subject: the words that name an application or buyer page, inverted like a stencil cut-out.
   Only the subject of a page title, only on sibling pages that share a title pattern */
.hl { background: var(--foreground); color: var(--background); padding-inline: 0.06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* The words sit on their own layer above every line's box: with tight leading the next line's box was painted over
   the round bottoms of the letters above (S, O, U) */
.hl > span { position: relative; }

/* Side headings: on the longer reading pages, section headings hang in a left column and the
   text sits in one column to the right, like a spec sheet. Text stays left-aligned; phones keep one column */
@media (min-width: 1024px) {
  .page-side .page-head .container,
  .page-side .section:not(.numbers, .visualiser) > .container:not(.grid),
  .page-side .cs-body .grid:not(:has(.cs-side)) .cs-text {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gutter); row-gap: 0;
  }
  .page-side .page-head .container > * { grid-column: 1 / -1; }
  .page-side .page-head .container > .facts { grid-column: 5 / 11; } /* the lead stays left under the title */
  .page-side .section:not(.numbers, .visualiser) > .container:not(.grid) > h2,
  .page-side .cs-body .cs-text > h2 { grid-column: 1 / 5; grid-row: 1 / span 6; align-self: start; margin-bottom: 0; padding-right: var(--space-lg); }
  .page-side .section:not(.numbers, .visualiser) > .container:not(.grid) > :not(h2) { grid-column: 5 / -1; }
  .page-side .section:not(.numbers, .visualiser) > .container:not(.grid) > .section__heading,
  .page-side .enquire h2 { font-size: clamp(32px, 3.2vw, 48px); }
  .page-side .cs-body .grid:not(:has(.cs-side)) .cs-text { grid-column: 1 / -1; }
  .page-side .cs-body .grid:not(:has(.cs-side)) .cs-text > :not(h2) { grid-column: 5 / 12; }
  /* a section with a photo beside it: heading, text, photo */
  .page-side .cs-body .grid:has(.cs-side) .cs-text { grid-column: 1 / span 8; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: var(--grid-gutter); }
  .page-side .cs-body .grid:has(.cs-side) .cs-text > h2 { grid-column: 1 / 4; }
  .page-side .cs-body .grid:has(.cs-side) .cs-text > :not(h2) { grid-column: 4 / -1; }
  .page-side .cs-body .grid:has(.cs-side) .cs-side { grid-column: 9 / -1; }
  .page-side .points { border-top: 0; padding-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.cs-side { grid-column: 8 / span 5; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.cs-side--top { object-position: 50% 0; } /* keep the speaker's top, lose the dolly (phones crop to 4:3) */

.numbers__row { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.numbers__row dt { font-size: var(--text-h2); font-weight: 800; line-height: 1; letter-spacing: var(--tracking-tight); }
.numbers__row dd { margin: var(--space-sm) 0 0; font-size: var(--text-lg); }

.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-xl) var(--grid-gutter); }
.person { display: flex; flex-direction: column; gap: var(--space-xs); }
.person img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; margin-bottom: var(--space-sm); }
.person__placeholder { background: var(--card); padding: var(--space-xl); }
.person strong { font-weight: 800; font-size: var(--text-lg); }
.person span { color: var(--muted-foreground); }

.lab .grid { align-items: center; }
.lab__img { grid-column: 1 / span 6; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.lab__text { grid-column: 8 / span 5; }
.lab__text h2 { font-size: var(--text-h3); font-weight: 800; line-height: 1; letter-spacing: var(--tracking-tight); margin-bottom: var(--space-lg); }
.lab__text h3 { font-size: var(--text-lg); font-weight: 800; margin: var(--space-xl) 0 var(--space-md); }
.lab__text p + p { margin-top: var(--space-md); }
.lab__list { list-style: square; padding-left: 1.2em; display: grid; gap: var(--space-sm); line-height: 1.3; }

@media (max-width: 1023px) {
  .cs-text, .cs-side, .lab__img, .lab__text { grid-column: 1 / -1; }
  .cs-side { margin-top: var(--space-lg); aspect-ratio: 4 / 3; }
  .numbers__row { grid-template-columns: 1fr; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .lab__text { margin-top: var(--space-xl); }
}

/* ---- Partner with us: one question per screen ------- */
[hidden] { display: none !important; } /* .btn sets display, which would otherwise beat the hidden attribute */
button.btn { cursor: pointer; } /* font and tracking come from .btn, as on the link buttons */
.pw-section { padding-top: 0; }
.pw, .pw-done { max-width: 52rem; }
.pw__progress { color: var(--muted-foreground); margin-bottom: var(--space-lg); }
.pw__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.pw__step:not([hidden]) ~ .pw__step:not([hidden]) { margin-top: var(--space-2xl); } /* no-JS: all questions on one page */
.pw__step:not([hidden]) { animation: pw-in var(--duration-base) var(--ease-standard); } /* the next question fades in (the bar) */
@keyframes pw-in { from { opacity: 0; transform: translateY(8px); } }
.pw__step > legend { padding: 0; font-size: var(--text-h3); font-weight: 800; line-height: var(--leading-heading); letter-spacing: var(--tracking-tight); max-width: 22ch; }
.pw__step > legend:focus { outline: none; }
.pw__group { border: 0; margin: var(--space-xl) 0 0; padding: 0; min-width: 0; } /* a follow-up question, its own group */
.pw__group > .pw__sub { margin: 0 0 var(--space-md); padding: 0; }
.pw__hint { margin-top: var(--space-sm); color: var(--muted-foreground); }
.pw__sub { margin: var(--space-xl) 0 var(--space-md); font-size: var(--text-lg); font-weight: 800; line-height: 1.2; }
.pw__optional { font-weight: 500; color: var(--muted-foreground); font-size: var(--text-body); }
.pw__options { margin-top: var(--space-lg); display: grid; gap: var(--space-sm); grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.pw__sub + .pw__options { margin-top: 0; }
.pw__options--pair { grid-template-columns: repeat(2, minmax(0, 12rem)); }
.pw__opt { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-md); background: var(--card); border: var(--border-width) solid var(--border-input); border-radius: var(--radius-sm); cursor: pointer; line-height: 1.25;
  transition: border-color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard); }
@media (hover: hover) { .pw__opt:hover { border-color: var(--foreground); } }
/* Checked: a fill as well as the ring and the bold (the bar: more than one signal in a monochrome system) */
.pw__opt:has(:checked) { border-color: var(--foreground); box-shadow: inset 0 0 0 1px var(--foreground); background: var(--muted); font-weight: 800; }
.pw__opt:has(:focus-visible) { outline: 2px solid var(--ring); outline-offset: 2px; }
.pw__opt input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
/* Q2 branch: follow-up questions appear for the answer chosen, no script */
.pw__branch { display: none; }
.pw__step:has(input[name="owns"][value="Yes"]:checked) .pw__branch--yes,
.pw__step:has(input[name="owns"][value="No"]:checked) .pw__branch--no { display: block; }
.pw__fields { margin-top: var(--space-lg); display: grid; gap: var(--space-lg); max-width: 32rem; }
.pw__field { display: grid; gap: var(--space-sm); font-weight: 800; }
.pw__field :is(input, textarea) { font: inherit; font-weight: 500; letter-spacing: inherit; padding: 14px var(--space-md); background: var(--card); color: var(--foreground); border: var(--border-width) solid var(--border-input); border-radius: var(--radius-sm); }
.pw__field :is(input, textarea):focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.pw__field textarea { resize: vertical; }
.pw__small { margin-top: var(--space-lg); line-height: var(--leading-prose); letter-spacing: var(--tracking-prose); color: var(--muted-foreground); max-width: 48ch; }
.pw__turnstile { margin-top: var(--space-lg); }
.pw__error { min-height: 1.5em; margin-top: var(--space-lg); font-weight: 800; }
.pw__nav { display: flex; flex-wrap: wrap; gap: var(--space-md); }
/* Phones: Back and Continue stay at the bottom of the screen, so a long question never hides them (moving on by
   itself would skip Q2's follow-ups) */
@media (max-width: 1023px) {
  .pw__nav { position: sticky; bottom: 0; z-index: 5; background: var(--background); border-top: 1px solid var(--border);
    margin-inline: calc(-1 * var(--container-pad)); padding: 12px var(--container-pad) calc(12px + env(safe-area-inset-bottom)); }
  html:has(.pw__nav) { scroll-padding-bottom: 96px; } /* focus and the error scroll clear of the bar (WCAG 2.4.11) */
}
.pw-done__title { font-size: var(--text-h2); font-weight: 800; line-height: var(--leading-heading); letter-spacing: var(--tracking-tight); max-width: 16ch; }
.pw-done__title:focus { outline: none; }
.pw-done__lead { margin-top: var(--space-lg); font-size: var(--text-lg); line-height: 1.2; max-width: 40ch; }
.pw-done__proto { margin-top: var(--space-2xl); padding: var(--space-lg); border: var(--border-width) dashed var(--border-input); }
.pw-done__proto .label { color: var(--muted-foreground); margin-bottom: var(--space-md); }
.pw-done__proto dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: var(--space-sm) var(--space-lg); }
.pw-done__proto dt { color: var(--muted-foreground); }
.pw-done__proto dd { margin: 0; }
@media (max-width: 600px) {
  .pw-done__proto dl { grid-template-columns: 1fr; }
  .pw-done__proto dd { margin-bottom: var(--space-sm); }
}
/* Phones: focused headings scrolled under the fixed toolbar. */
.pw__progress, .pw__step legend, .pw-done__title { scroll-margin-top: calc(var(--toolbar-height) + var(--space-lg)); }

/* ==== Speaker styling as a service: the three buyers, the nav panel, services, work ==================== */

/* Who we work with: the three buyers open on hover or keyboard focus (desktop with a pointer only).
   On touch the parent is a plain link to the home section; the menu lists the buyers too. */
.navgroup { position: relative; display: flex; }
.navpanel { display: none; }
@media (hover: hover) {
  .navpanel {
    position: absolute; top: calc(100% + var(--space-md)); left: 0; z-index: 2;
    min-width: 22rem; padding: var(--space-sm) var(--space-md);
    background: var(--foreground); color: var(--background); /* always the opposite of the toolbar it hangs from */
    border: var(--border-width) solid var(--brand-grey-500);
    flex-direction: column;
    --ring: var(--background); /* the toolbar's black, so focus shows on the white panel */
    transition: opacity var(--duration-fast) var(--ease-standard), display var(--duration-fast) allow-discrete; /* fades in (the bar) */
  }
  .navgroup:is(:hover, :focus-within) .navpanel { display: flex; opacity: 1; }
  .navgroup.is-dismissed .navpanel { display: none; } /* Esc (menu.js) */
  @starting-style { .navgroup:is(:hover, :focus-within) .navpanel { opacity: 0; } }
  .navpanel::before { content: ""; position: absolute; inset: calc(-1 * var(--space-md) - 1px) 0 100%; } /* bridge the gap so hover survives */
  .toolbar__nav .navpanel a { padding: var(--space-sm) 0; white-space: nowrap; /* "Festivals and media rights owners" on one line */ color: inherit; border-bottom: var(--border-width) solid var(--brand-grey-500); }
  .toolbar__nav .navpanel a:last-child { border-bottom: 0; }
}
.toolbar__menu nav a.sub { font-size: var(--text-label); padding-left: var(--space-md); }

/* Services, as a folder. Phones: each service stacked, its tag and name, its text, then its
   photo. Desktop: the names are rows on the left; the active one is a tab holding its name and text, joined with curved inner corners to a panel on the right holding its photo. Closed rows are a fixed 88px;
   the open tab is taller, so the rows under it move a little, but the open one stays put when the pointer leaves, so
   that can't flicker. Design is active on arrival; home.js moves .is-active on hover, focus or a tap. Closed texts are
   clipped out of sight, not removed, so screen readers read all three */
.services { list-style: none; padding: 0; margin: var(--space-xl) 0 0; border-top: var(--border-width-strong) solid var(--foreground); counter-reset: svc; }
.services li { display: grid; gap: var(--space-md); padding-block: var(--space-lg); border-bottom: var(--border-width) solid var(--border-input); }
.services__tab { display: grid; gap: var(--space-sm); }
.services h3 button { all: unset; cursor: pointer; } /* a real button for the name, styled as the heading */
.services h3 button:focus-visible { outline: 2px solid var(--ring); }
.services h3 { display: flex; align-items: center; gap: var(--space-md); font-weight: 800; line-height: var(--leading-heading); letter-spacing: var(--tracking-tight); counter-increment: svc; }
.services h3::before { content: counter(svc); flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--radius-sm);
  font-family: var(--font-accent); font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0; background: var(--brand-white); color: var(--brand-black); }
.services__more img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); }
.services p { font-size: var(--text-lg); line-height: 1.25; max-width: 30ch; }
@media (min-width: 1024px) {
  .services { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto) 1fr; border-top: 0; } /* no line under the heading here: it squared the panel's corner */
  .services li { display: contents; }
  .services li:nth-child(1) .services__tab { grid-row: 1; } .services li:nth-child(2) .services__tab { grid-row: 2; } .services li:nth-child(3) .services__tab { grid-row: 3; }
  .services__tab { grid-column: 1; position: relative; min-height: 88px; align-content: center; margin-left: calc(-1 * var(--space-md)); padding: var(--space-md);
    border-top-left-radius: var(--radius-md); border-bottom-left-radius: var(--radius-md);
    background: linear-gradient(var(--border-input), var(--border-input)) right bottom / calc(100% - var(--space-md)) 1px no-repeat; /* its line */
    transition: background-color var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard); }
  .services h3 button { outline-offset: 6px; }
  .services li:not(.is-active) p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* as .visually-hidden */
  .services__tab p { padding-left: 48px; max-width: calc(34ch + 48px); } /* under the name, past the tag */
  .services__more { grid-column: 2; grid-row: 1 / -1; align-self: start; padding: var(--space-lg); border-radius: var(--radius-md);
    background: var(--brand-offwhite); opacity: 0; pointer-events: none; transition: opacity var(--duration-base) var(--ease-standard); }
  .services li.is-active .services__more { opacity: 1; pointer-events: auto; }
  .services li.is-active .services__tab { background-color: var(--brand-offwhite); background-size: 0 0; color: var(--brand-black); }
  .services li.is-active h3::before { background: var(--brand-black); color: var(--brand-white); }
  .services li:has(+ li.is-active) .services__tab { background-size: 0 0; } /* no line against the tab */
  .services li:first-child.is-active .services__more { border-top-left-radius: 0; } /* Design's tab joins it there */
  /* The curved inner corners where the tab meets the panel: a small piece above and below the tab's right end, off-white
     but for a quarter circle of the dark section, so the tab flows into the panel. On the first service the tab meets the
     panel's top edge, so there's no piece above */
  .services li.is-active .services__tab::after { content: ""; position: absolute; right: 0; top: calc(-1 * var(--radius-md)); bottom: calc(-1 * var(--radius-md)); width: var(--radius-md);
    background: radial-gradient(circle at 0 0, transparent calc(var(--radius-md) - 0.5px), var(--brand-offwhite) var(--radius-md)) top / var(--radius-md) var(--radius-md) no-repeat,
                radial-gradient(circle at 0 100%, transparent calc(var(--radius-md) - 0.5px), var(--brand-offwhite) var(--radius-md)) bottom / var(--radius-md) var(--radius-md) no-repeat; }
  .services li:first-child.is-active .services__tab::after { background-size: 0 0, var(--radius-md) var(--radius-md); }
}

/* The three buyers */
.buyers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); margin-top: var(--space-xl); }
.buyer { display: flex; flex-direction: column; gap: var(--space-sm); text-decoration: none; }
@media (min-width: 1024px) { /* photo, title and text line up across the three cards, however a title wraps; after .buyer, so it wins */
  .buyers { grid-template-rows: auto auto 1fr; }
  .buyer { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
  .buyers:has(> :nth-child(4)) { grid-template-columns: repeat(4, 1fr); } /* four cards in one row, not three and one */
}
.buyer__photo { position: relative; display: block; overflow: hidden; border-radius: var(--radius-md); margin-bottom: var(--space-sm); } /* a fixed frame */
.buyer img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; transition: transform var(--duration-base) var(--ease-standard); }
/* Hover: the photo grows to 1.03 inside its frame over --duration-slow, back at --duration-base */
@media (hover: hover) { .buyer:hover img { transform: scale(1.03); transition-duration: var(--duration-slow); } }
.buyer h3 { font-size: var(--text-lg); font-weight: 800; line-height: 1.15; }
.buyer p { max-width: 32ch; line-height: var(--leading-prose); letter-spacing: var(--tracking-prose); }

/* The work: one job, shown big */
.work { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--grid-gutter); align-items: start; } /* text level with the photo's top */
.work__photo { grid-column: 1 / span 7; display: block; overflow: hidden; border-radius: var(--radius-md); } /* a fixed frame, as .buyer__photo */
.work__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform var(--duration-base) var(--ease-standard); }
@media (hover: hover) { .work__photo:hover .work__img { transform: scale(1.03); transition-duration: var(--duration-slow); } } /* the cards' zoom */
.work__text { grid-column: 9 / span 4; }
.work h3 { font-size: var(--text-h3); font-weight: 800; line-height: var(--leading-heading); letter-spacing: var(--tracking-tight); text-wrap: balance; }
/* square bullets, no lines */
.work__facts { list-style: none; padding: 0; margin: var(--space-lg) 0 0; display: grid; gap: var(--space-sm); }
.work__facts li { position: relative; padding-left: 28px; font-size: var(--text-lg); line-height: 1.3; }
.work__facts li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 10px; height: 10px; background: var(--foreground); }
.work__quote { margin: var(--space-lg) 0 0; padding-left: var(--space-md); border-left: var(--border-width-strong) solid var(--foreground); }
.work__quote p { font-size: var(--text-lg); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; margin: 0; }
.work__quote cite { display: block; margin-top: var(--space-sm); font-family: var(--font-accent); font-size: var(--text-label); letter-spacing: var(--tracking-accent); text-transform: uppercase; font-style: normal; }
.work__actions { margin-top: var(--space-xl); display: flex; flex-wrap: wrap; gap: var(--space-md); }

.enquire__row span a { font-weight: 800; }

/* Inner pages: news and the legal stubs */
.news-list { list-style: none; padding: 0; border-top: var(--border-width-strong) solid var(--foreground); max-width: 60rem; }
.news-list li { display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-lg); padding-block: var(--space-lg); border-bottom: var(--border-width) solid var(--border-input); }
.news-list img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.news-list h2 { font-size: var(--text-lg); font-weight: 800; line-height: 1.15; }
.news-list p { margin-top: var(--space-sm); line-height: var(--leading-prose); }
.stub { max-width: var(--measure); }
.stub > * + * { margin-top: var(--space-md); }
.stub :is(h2, h3) { font-weight: 800; margin-top: var(--space-xl); }
.stub h2 { font-size: var(--text-lg); }
.stub :is(ul, ol) { padding-left: 1.2em; }
/* Terms sub-clauses as "(a)" and "(i)"; older browsers fall back to "a." */
@counter-style paren-alpha { system: extends lower-alpha; prefix: "("; suffix: ") "; }
@counter-style paren-roman { system: extends lower-roman; prefix: "("; suffix: ") "; }
.stub ol[type="a"] { list-style-type: paren-alpha; padding-left: 2.2em; }
.stub ol[type="i"] { list-style-type: paren-roman; padding-left: 2.4em; }
.stub li + li { margin-top: var(--space-xs); }

@media (max-width: 1023px) {
  .buyers { grid-template-columns: 1fr; }
  .buyer img { aspect-ratio: 3 / 2; }
  .work { grid-template-columns: 1fr; row-gap: var(--space-xl); }
  .work__photo, .work__text { grid-column: 1 / -1; }
  .news-list li { grid-template-columns: 1fr; }
}

/* Mission statement, straight after the hero */
/* White and centred: a deliberate exception to the brand book's left-aligned rule, for this one statement */
.mission { background: var(--foreground) url(/assets/site/Speaker-grille-close-up.webp) center / cover no-repeat; color: var(--brand-white); text-align: center; padding-block: clamp(96px, 16vw, 200px); } /* a speaker grille photo behind the line (2400px wide), white text */
.mission__text { font-size: var(--text-h3); font-weight: 800; line-height: 1.05; letter-spacing: var(--tracking-tight); max-width: 24ch; margin-inline: auto; }
/* Wipe: an inline span's background runs as one strip across its lines, so the fill follows reading order */
.wipe--ready {
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(var(--brand-white), var(--brand-white)), linear-gradient(var(--brand-grey-300), var(--brand-grey-300));
  background-repeat: no-repeat; background-size: 0% 100%, 100% 100%;
  transition: background-size var(--dur-draw) var(--ease-draw); /* on the grille the wipe runs grey to white; the grey is readable from the start */
}
.wipe--ready.is-filled { background-size: 100% 100%, 100% 100%; }

/* Home page closing section on white */
.enquire--white { background: var(--card); }

/* Instagram mirror on News: square tiles, 3 across, 2 on phones */
.ig-note { margin: calc(-1 * var(--space-sm)) 0 var(--space-lg); }
.ig-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }
.ig-grid a { display: block; }
/* The cards' zoom, not a fade */
.ig-grid a { overflow: hidden; border-radius: var(--radius-md); }
.ig-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: transform var(--duration-base) var(--ease-standard); }
.ig-grid a:focus-visible img { transform: scale(1.03); }
@media (hover: hover) { .ig-grid a:hover img { transform: scale(1.03); transition-duration: var(--duration-slow); } }
@media (max-width: 1023px) { .ig-grid { grid-template-columns: repeat(2, 1fr); } }

/* White band, for alternating sections on inner pages */
.bg-white { background: var(--card); }

/* ---- Type direction ------------------------------------------
 * Condensed Archivo for titles, Hack for nav, labels and buttons, Archivo for reading.
 * Departs from the brand book (capitals on titles, open tracking, Hack instead of the pixel accent), as the
 * brand's second version does. The values live in tokens.css. */

/* Titles: Archivo ExtraBold, width 62, capitals. */
.section__heading, .services h3, .visualiser h2, .work h3, .enquire h2, .buyer h3,
.page-head__title, .pw-done__title, .lab__text h2, .numbers__row dt {
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.92;
  text-wrap: balance; /* no one-word last lines */
}
h2, h3 { text-wrap: balance; } /* sentence-case headings too */
#faq-h { text-wrap: wrap; } /* "Questions we get asked" reads better left as it falls */
.section__heading { font-size: clamp(40px, 5.5vw, 72px); max-width: 16ch; }
.page-head__title, .pw-done__title { font-size: clamp(56px, 8vw, 112px); }
.visualiser h2, .enquire h2 { font-size: clamp(40px, 5.5vw, 72px); } /* the section-heading size */
@media (max-width: 359px) { /* "INSTALLATIONS" at 56px is wider than a 320px screen */
  .page-head__title, .pw-done__title { font-size: 48px; }
}
/* Below the section heading, as everywhere else */
.work h3 { font-size: clamp(36px, 4.5vw, 60px); }
.services h3 { font-size: 32px; line-height: 1; } /* a clear step under the 72px heading, as the card titles */
.buyer h3 { font-size: 32px; line-height: 1; } /* condensed type reads small: sized up */

/* Long display lines: Archivo SemiBold, width 75, sentence case, so a whole sentence still reads. */
.mission__text, .quote-lead, .cs-lead, .pw__step legend {
  font-family: var(--font-display);
  font-stretch: calc(var(--display-stretch) + 13%);
  font-weight: 600;
  line-height: 1.05;
}
.mission__text { font-size: clamp(36px, 5vw, 64px); }
.quote-lead { font-size: clamp(32px, 4vw, 52px); }
cite { font-stretch: 100%; font-weight: 500; }

/* Running text: 18px rather than 24px, so it sits under the condensed titles. */
.section__lead, .services p, .quotes blockquote, .work__facts li {
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: var(--tracking-prose);
}
.quotes blockquote { line-height: 1.5; }

/* Hack Regular, spaced capitals: nav and labels. */
.toolbar__nav a, .label, .systems__heading {
  font-family: var(--font-accent);
  font-size: var(--text-label);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--tracking-accent);
}

/* Buttons and FAQ questions: Hack Bold. */
.btn {
  border-radius: var(--radius-sm); /* the design system's button corner */
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-accent);
}
.faq summary { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); letter-spacing: 0; } /* Archivo 700: questions are reading text, so not the Hack capitals */

/* Images and cards: the design system's rounded corner (--radius-md, 10px).
   Not the logos, the hero's cut-out, the visualiser's frame or the form fields. */
.placeholder, .tier__img, .visualiser__stage, .founder__img, .cs-hero img, .cs-side, .person img,
.lab__img, .buyer img, .work__img, .news-list img, .ig-grid img, .cite--face img { border-radius: var(--radius-md); }

/* Newsletter sign-up: a band at the top of the footer and a box under the News page's header.
   Sending: assets/js/newsletter.js */
.nl__row { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.nl__input { flex: 1 1 14rem; min-width: 0; font: inherit; font-weight: 500; letter-spacing: inherit; padding: 14px var(--space-md); background: var(--card); color: var(--foreground); border: var(--border-width) solid var(--border-input); border-radius: var(--radius-sm); }
.nl__input::placeholder { color: var(--muted-foreground); }
.nl__input:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.section-inverse .nl__input { background: transparent; }
.nl__small { font-size: 14px; line-height: 1.45; color: var(--muted-foreground); }
.nl__small a { color: inherit; }
.nl__status { font-weight: 800; }
.nl__status:empty { display: none; }
.nl__done { font-weight: 800; font-size: 20px; line-height: 1.25; outline: none; } /* a step under the footer line (24px); the News page line matches it; focused by script only, to be read out */
.nl__note { display: block; margin-top: var(--space-xs); font-weight: 500; font-size: 14px; color: var(--muted-foreground); }
.nl--band { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); column-gap: var(--grid-gutter); row-gap: var(--space-sm); align-items: end; padding-bottom: var(--space-xl); border-bottom: var(--border-width) solid var(--border); }
.nl--band .nl__label { color: var(--muted-foreground); }
.nl--band .nl__line { font-weight: 800; font-size: var(--text-lg); line-height: 1.2; max-width: 24ch; }
.nl--band :is(.nl__label, .nl__line) { grid-column: 1; }
.nl--band :is(.nl__row, .nl__done) { grid-column: 2; grid-row: 1 / 3; }
.nl--band :is(.nl__small, .nl__status) { grid-column: 2; }
.page-head:has(+ .nl-news) { padding-bottom: var(--space-lg); }
.nl-news { padding-top: 0; }
.nl--news { display: grid; gap: var(--space-md); max-width: 40rem; }
.nl--news .nl__line { font-size: 20px; font-weight: 800; line-height: 1.25; } /* the thank-you's size */
/* Phones: one column, and more room between the line, the box and the small print */
@media (max-width: 760px) {
  .nl--band { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-md); }
  .nl--band :is(.nl__label, .nl__line, .nl__row, .nl__done, .nl__small, .nl__status) { grid-column: 1; grid-row: auto; }
  .nl--band .nl__label { margin-bottom: calc(var(--space-sm) * -1); }
  .nl--band .nl__done { margin-top: var(--space-sm); } /* clear space under the line once signed up */
  .nl--news { gap: var(--space-lg); }
  .nl__row { gap: var(--space-md); }
}

/* News stories, for when Stencil start posting: five a page, newest first, then page numbers.
   Not on the site yet: the markup is in HANDOVER.md section 6. */
.news-stories { padding-top: 0; }
.news-stories .section__heading { margin-bottom: var(--space-lg); }
.news-list h3 { font-size: var(--text-lg); font-weight: 800; line-height: 1.15; margin-top: var(--space-xs); }
.news-date { color: var(--muted-foreground); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); margin-top: var(--space-xl); max-width: 60rem; }
.pager__nums { display: flex; gap: var(--space-sm); list-style: none; margin: 0; padding: 0; }
.pager__nums a { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 var(--space-sm); border: var(--border-width) solid var(--border-input); border-radius: var(--radius-sm); text-decoration: none; font-weight: 800; }
.pager__nums a[aria-current] { background: var(--foreground); color: var(--background); border-color: var(--foreground); }
.pager__step { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 800; text-decoration: none; }
.pager__step.is-off { color: var(--muted-foreground); }
