/* All Access Motorsport site styles */

:root {
  --ink: #15131c;
  --ink-2: #1f1c29;
  --ink-3: #2b2737;
  --slate: #5d5676;
  --slate-soft: #8c86a3;
  --lilac: #dcd9e6;
  --paper: #f3f2f6;
  --white: #ffffff;
  --orange: #f15722;
  --orange-deep: #c2410c;
  --studio: #fcfefc;
  --line: rgba(21, 19, 28, 0.12);
  --line-inv: rgba(255, 255, 255, 0.14);
  --muted: #5b5867;
  --muted-inv: #a9a5b7;

  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-label: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --wrap: 100%; /* full width: content runs edge to edge inside the gutters */
  --gutter: clamp(16px, 4vw, 72px);
  --sec: clamp(48px, 5.5vw, 80px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--head-h, 0px); } /* anchor jumps land below the sticky header */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--orange); color: var(--white); padding: 10px 16px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */

.display {
  font-stretch: 118%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.012em;
  line-height: 0.92;
}
.h-xl { font-size: clamp(44px, 8.2vw, 116px); }
.h-lg { font-size: clamp(36px, 5.6vw, 76px); }
.h-md { font-size: clamp(28px, 3.6vw, 48px); }
.h-sm { font-size: clamp(21px, 2vw, 26px); font-stretch: 108%; letter-spacing: -0.005em; }

.lede { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; color: var(--muted); max-width: 40ch; }
.on-dark .lede, .lede.inv { color: var(--muted-inv); }

.label {
  font-family: var(--f-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  display: inline-flex; align-items: center; gap: 10px;
}
.label b { color: var(--orange-deep); font-weight: 500; }
.on-dark .label { color: var(--muted-inv); }
.on-dark .label b { color: var(--orange); }

.accent { color: var(--orange-deep); }
.on-dark .accent { color: var(--orange); }

/* ---------- Buttons ---------- */

.btn {
  --bg: var(--orange); --fg: var(--white);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 22px 15px 24px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 15px; letter-spacing: 0.02em;
  text-decoration: none; border: 0; cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
/* orange buttons invert on hover: white box, orange text, thin orange outline so it still shows on white backgrounds */
.btn:hover { --bg: var(--white); --fg: var(--orange); box-shadow: inset 0 0 0 1.5px var(--orange); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { --bg: var(--white); --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--white); }
.btn--ink { --bg: var(--ink); --fg: var(--white); }
.btn--ink:hover { --bg: var(--ink-3); --fg: var(--white); box-shadow: none; }
.btn--sm { padding: 10px 16px; font-size: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.link-arrow:hover { color: var(--orange-deep); }
.on-dark .link-arrow:hover { color: var(--orange); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { position: relative; z-index: 1; display: flex; align-items: center; gap: 28px; height: 72px; }
/* the same faded chequer as the CTA band, sized so three rows fill the bar, fading out to plain white leftwards */
.site-header::before {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 34%; pointer-events: none;
  --sq: 48px; background-image: conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0);
  background-size: var(--sq) var(--sq); background-position: right top; opacity: 0.09;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.brand { display: block; flex-shrink: 0; }
.brand img { height: 56px; width: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 10px 14px; color: var(--ink); white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { margin-left: 10px; }
.nav a.header-cta { --fg: var(--white); color: var(--white); }
.nav a.header-cta:hover { --fg: var(--orange); color: var(--orange); }
.nav a.header-cta::after { display: none; } /* no menu underline inside the button */
/* narrower desktops: tighter links so the full menu stays on one line until the phone menu takes over */
@media (min-width: 1021px) and (max-width: 1240px) {
  .nav { gap: 0; }
  .nav a:not(.header-cta) { padding: 10px 8px; font-size: 14px; }
  .nav a::after { left: 8px; right: 8px; }
  .header-cta { margin-left: 6px; }
}

.menu-btn {
  display: none; margin-left: auto; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer;
  position: relative;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  position: absolute; left: 11px; width: 24px; height: 2px; background: var(--ink); content: ""; transition: transform 0.3s var(--ease), opacity 0.2s;
}
.menu-btn span { top: 22px; }
.menu-btn span::before { left: 0; top: -7px; }
.menu-btn span::after { left: 0; top: 7px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
  .menu-btn { display: block; }
  .site-header .wrap { height: 57px; }
  .site-header::before { --sq: 38px; width: 50%; }
  .brand img { height: 38px; }
  .nav {
    position: fixed; inset: var(--nav-top, 57px) 0 0 0; background: var(--white);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 40px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
    overflow-y: auto;
  }
  .menu-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav a { font-size: 26px; font-stretch: 112%; font-weight: 800; text-transform: uppercase; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--orange-deep); }
  .header-cta { margin: 24px 0 0; justify-content: center; }
}

/* ---------- Partner ticker (pinned to the bottom of the screen) ---------- */

/* orange band, logos as single-colour white silhouettes (assets/img/logos/ticker/mono); site.js pads the page by
   the band's height (--ticker-h) so it never covers the end of the footer. Sits under the header's phone menu. */
.ticker {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; overflow: hidden; background: var(--orange);
  padding-bottom: env(safe-area-inset-bottom);
}
body { padding-bottom: var(--ticker-h, 0px); }
.ticker__track { display: flex; width: max-content; }
.ticker.is-on .ticker__track { animation: ticker var(--ticker-t, 40s) linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__set { display: flex; align-items: center; gap: 54px; margin: 0; padding: 10px 27px; list-style: none; }
.ticker__set img { display: block; height: calc(30px * var(--s, 1)); width: auto; }
.ticker__set a { display: block; transition: opacity 0.2s; }
.ticker__set a:hover { opacity: 0.7; }
@keyframes ticker { to { transform: translateX(calc(-1 * var(--ticker-shift, 50%))); } }
@media (max-width: 1020px) {
  .ticker__set { gap: 36px; padding: 8px 18px; }
  .ticker__set img { height: calc(22px * var(--s, 1)); }
}
/* phones: no ticker, so the band never takes up screen space (site.js then pads the page by 0) */
@media (max-width: 600px) {
  .ticker { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; }
  .ticker.is-on .ticker__track { animation: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; min-height: min(88vh, 860px); color: var(--white);
  display: flex; align-items: flex-end; overflow: hidden; background: var(--ink);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(21, 19, 28, 0.88) 0%, rgba(21, 19, 28, 0.55) 42%, rgba(21, 19, 28, 0.05) 75%),
    linear-gradient(0deg, rgba(21, 19, 28, 0.9) 0%, rgba(21, 19, 28, 0) 45%);
}
.hero__body { position: relative; width: 100%; padding-top: 140px; padding-bottom: 56px; }
.hero h1 { max-width: 11ch; }
.hero .lede { color: rgba(255, 255, 255, 0.82); margin: 28px 0 36px; max-width: 34ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta {
  margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--line-inv);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  font-family: var(--f-label); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-inv);
}
.hero__meta strong { display: block; color: var(--white); font-family: var(--f-sans); font-size: 16px; letter-spacing: 0; text-transform: none; font-weight: 700; margin-top: 6px; }
.hero__caption {
  position: absolute; right: var(--gutter); top: 28px;
  font-family: var(--f-label); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7);
}
@media (max-width: 820px) {
  .hero { min-height: 0; }
  .hero__media img { object-position: 78% 30%; }
  .hero__media::after { background: linear-gradient(0deg, rgba(21, 19, 28, 0.96) 18%, rgba(21, 19, 28, 0.35) 70%, rgba(21, 19, 28, 0.15) 100%); }
  .hero__body { padding-top: 46vh; padding-bottom: 36px; }
  .hero__meta { grid-template-columns: 1fr 1fr; margin-top: 44px; }
  .hero__caption { display: none; }
}

/* Homepage video hero: footage on the right, fading into the ink so the words sit clear on the left */
/* fills the first screen exactly: from under the menu down to the pinned ticker (site.js measures both) */
.vhero {
  position: relative; display: flex; align-items: center; overflow: hidden; background: var(--ink); color: var(--white);
  height: calc(100svh - var(--head-h, 72px) - var(--ticker-h, 0px)); min-height: 460px;
}
.vhero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 70%; }
.vhero__video {
  width: 100%; height: 100%; object-fit: cover; object-position: 88% 50%; display: block; background: var(--ink);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%); mask-image: linear-gradient(90deg, transparent, #000 38%);
}
/* still-photo version: the whole photo fits beside the words, right-aligned, with soft edges, so nothing important sits in the fade */
/* the photo runs the full height of the hero, right-aligned, fading into the ink along its left edge */
.vhero__media--photo { left: 0; width: auto; display: flex; justify-content: flex-end; }
.vhero__photo {
  display: block; height: 100%; width: auto; max-width: none; flex: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 4%, rgba(0, 0, 0, 0.35) 18%, #000 32%); mask-image: linear-gradient(90deg, transparent 4%, rgba(0, 0, 0, 0.35) 18%, #000 32%);
}
.vhero__body { position: relative; width: 100%; padding-top: 64px; padding-bottom: 64px; }
/* photo hero layout: heading on two lines across the sky at the top, intro and buttons on the track at the bottom, clear of both cars */
@media (min-width: 821px) {
  .vhero--photo { align-items: stretch; }
  .vhero--photo .vhero__body { display: flex; flex-direction: column; padding-top: clamp(40px, 6.5vh, 76px); padding-bottom: clamp(24px, 12vh - 64px, 92px); } /* lifts the intro more on taller screens, where there is more track below the cars */
  /* an even dark wash across the top of the photo so the heading reads clearly over the sky and trees */
  .vhero__media--photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(21, 19, 28, 0.72), rgba(21, 19, 28, 0.5) 20%, rgba(21, 19, 28, 0) 42%); }
  .vhero.vhero--photo h1 { max-width: 20ch; font-size: clamp(36px, 4.4vw, 72px); }
  .vhero.vhero--photo .lede { margin: auto 0 18px; max-width: min(52ch, 27vw); font-size: clamp(16px, 1.25vw, 20px); line-height: 1.45; } /* stays left of the BMW's nose */
}
.vhero h1 { max-width: 11ch; font-size: clamp(38px, 4.9vw, 78px); }
.vhero .lede { color: rgba(255, 255, 255, 0.82); margin: 28px 0 36px; max-width: 34ch; }
@media (max-width: 820px) {
  .vhero { flex-direction: column; align-items: stretch; min-height: 520px; }
  .vhero__media { position: relative; flex: 1; min-height: 160px; width: 100%; }
  .vhero__video { -webkit-mask-image: linear-gradient(0deg, transparent, #000 30%); mask-image: linear-gradient(0deg, transparent, #000 30%); }
  .vhero:has(.vhero__media--photo) { height: auto; min-height: 0; }
  .vhero__media--photo { flex: none; min-height: 0; }
  .vhero__photo { width: 100%; height: auto; max-width: 100%; max-height: none; -webkit-mask-image: linear-gradient(0deg, transparent, #000 30%); mask-image: linear-gradient(0deg, transparent, #000 30%); }
  .vhero__body { padding-top: 8px; padding-bottom: 28px; }
  .vhero .lede { margin: 16px 0 22px; }
}

/* Inner page hero */
.page-hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 10%, rgba(21, 19, 28, 0.2) 80%); }
/* Clear: photo scaled to the right-hand side so a full-size headline never sits over the car */
@media (min-width: 768px) {
  .page-hero.page-hero--clear h1 { max-width: 9ch; }
  .page-hero.page-hero--clear .lede { max-width: 30ch; }
  .page-hero--clear .page-hero__media img {
    position: absolute; top: 50%; right: 0; width: var(--img-w, 54%); height: auto; max-width: none; opacity: 0.6; transform: translateY(-50%);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%), linear-gradient(transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent, #000 24%), linear-gradient(transparent, #000 12%, #000 88%, transparent);
    mask-composite: intersect;
  }
}
/* Split: photo framed in the right half so the subject sits clear of a slightly smaller headline */
@media (min-width: 768px) {
  /* whole photo at full height, only its left edge blends into the background, and a lighter overlay so the crew read clearly */
  /* nudged right by 5% of the photo's own width: only empty track to the right of the crew is trimmed */
  .page-hero--split .page-hero__media img { position: absolute; top: 0; right: 0; width: auto; max-width: none; height: 100%; opacity: 0.85; transform: translateX(5%);
    -webkit-mask-image: linear-gradient(90deg, transparent 4%, #000 30%); mask-image: linear-gradient(90deg, transparent 4%, #000 30%); }
  .page-hero--split .page-hero__media::after { background: linear-gradient(90deg, var(--ink) 30%, rgba(21, 19, 28, 0) 62%); }
  /* --slide (set on the img) pushes a wide photo right so its subject clears the headline */
  .page-hero--fit .page-hero__media img { position: absolute; top: 0; right: 0; width: auto; max-width: none; height: 100%; opacity: 0.6; transform: translateX(var(--slide, 0));
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
}
.page-hero .wrap { position: relative; padding-top: clamp(90px, 13vw, 170px); padding-bottom: clamp(56px, 7vw, 96px); }
.page-hero h1 { margin-top: 22px; max-width: 14ch; }

/* Cycling headline: the words share one grid cell (so the line never changes height) and roll up in turn */
.cycle__words { display: grid; overflow: hidden; padding-block: 0.06em; }
.cycle__words > span { grid-area: 1 / 1; opacity: 0; transform: translateY(70%); transition: transform 0.6s var(--ease), opacity 0.45s; }
.cycle__words > .is-on { opacity: 1; transform: none; }
.cycle__words > .is-out { opacity: 0; transform: translateY(-70%); }
@media (prefers-reduced-motion: reduce) {
  .cycle__words { display: block; }
  .cycle__words > span { display: block; opacity: 1; transform: none; }
}
.page-hero .lede { margin-top: 26px; color: rgba(255, 255, 255, 0.8); }
.crumbs { font-family: var(--f-label); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-inv); }
.crumbs a { color: var(--white); text-decoration: none; }

/* ---------- Sections ---------- */

.section { padding: var(--sec) 0; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--white); }
.section--tight { padding: calc(var(--sec) * 0.6) 0; }
.section--short-end { padding-bottom: calc(var(--sec) * 0.5); }
/* full-width outlined wordmark, drawn as a thin ink stroke with no fill */
.outline-mark { display: block; width: 100%; height: auto; margin-bottom: clamp(24px, 3vw, 40px); overflow: visible; }
.section:has(> .wrap > .outline-mark:first-child) { padding-top: calc(var(--sec) * 0.5); }
.outline-mark text { fill: none; stroke: var(--ink); stroke-opacity: 0.38; stroke-width: 1.5px; vector-effect: non-scaling-stroke; }

.sec-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(28px, 3vw, 44px); }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; color: var(--muted); max-width: 52ch; }
.on-dark .sec-head p { color: var(--muted-inv); }
/* a short subheading plus a couple of paragraphs on the right instead of one line */
.sec-head__text h3 { margin: 0 0 12px; text-transform: uppercase; }
.sec-head__text p + p { margin-top: 12px; }
/* a bolder closing line under a few paragraphs */
.sec-head__text p.sec-head__close { margin-top: 20px; font-size: clamp(19px, 1.7vw, 23px); font-weight: 700; color: var(--ink); }
.on-dark .sec-head__text p.sec-head__close { color: var(--white); }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }

/* Statement */
.statement { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px 64px; }
.statement__text { font-size: clamp(26px, 3.3vw, 46px); line-height: 1.16; font-weight: 600; font-stretch: 104%; letter-spacing: -0.015em; }
.statement__text em { font-style: normal; color: var(--slate); }
.statement__foot { display: flex; flex-wrap: wrap; gap: 28px 48px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.statement__foot div { max-width: 34ch; color: var(--muted); font-size: 16px; }
.statement__foot strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
@media (max-width: 860px) { .statement { grid-template-columns: 1fr; } }

/* Roles */
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.role { display: flex; flex-direction: column; }
.role__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-2); }
.role__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.role:hover .role__img img { transform: scale(1.04); }
.role__num {
  position: absolute; left: 0; top: 0; background: var(--white); color: var(--ink);
  font-family: var(--f-label); font-size: 12px; letter-spacing: 0.1em; padding: 8px 12px;
}
.role h3 { margin: 24px 0 10px; }
.role p { color: var(--muted); margin: 0; }
@media (max-width: 900px) {
  .roles { grid-template-columns: 1fr; gap: 48px; }
  .role__img { aspect-ratio: 16 / 11; }
}

/* ---------- Scroll / drag 360 hero ---------- */

.spin-hero { position: relative; height: 260vh; background: var(--spin-bg, #fff); }
.spin-hero__pin {
  position: sticky; top: var(--head-h, 72px); height: calc(100vh - var(--head-h, 72px) - var(--ticker-h, 0px)); min-height: 560px;
  display: flex; flex-direction: column; overflow: hidden;
}
.spin-hero__top {
  position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 24px 56px; align-items: end; padding-top: clamp(28px, 5vh, 64px);
}
.spin-hero__top h1 { max-width: 15ch; font-size: clamp(38px, 4.9vw, 78px); }
.spin-hero__top .lede { margin: 0 0 22px; }
.spin-hero__top .lede:has(+ .spin-hero__note) { margin-bottom: 12px; }
.spin-hero__note a { color: var(--ink); font-weight: 600; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.spin-hero__note a:hover { color: var(--orange-deep); }
.spin-hero__credit { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.spin-hero__credit a { color: var(--ink); font-weight: 600; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.spin-hero__credit a:hover { color: var(--orange-deep); }
/* wide screens: heading lines up with the top of the text, and the auction note floats into the empty space above the car so the car keeps its full size */
@media (min-width: 901px) {
  .spin-hero--note .spin-hero__top { align-items: start; }
  .spin-hero--note .spin-hero__top > div { position: relative; }
  .spin-hero--note .spin-hero__note { position: absolute; left: 0; right: 0; top: 100%; margin: 0; }
}
.spin-hero__car {
  position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.spin-hero__car.is-dragging { cursor: grabbing; }
.spin-hero__car img { width: min(1500px, 118vw); max-width: none; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.spin-hero__bar {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 22px; padding-bottom: 26px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.spin-hero__track { flex: 1; height: 2px; background: var(--line); position: relative; }
.spin-hero__track i { position: absolute; left: 0; top: -1px; height: 4px; width: 0; background: var(--orange); }
.spin-hero__deg { color: var(--ink); min-width: 4ch; font-variant-numeric: tabular-nums; }
.spin-hero__hint { display: inline-flex; align-items: center; gap: 10px; }
.spin-hero__hint svg { width: 22px; height: 10px; }
.spin-hero__load { position: absolute; left: 0; top: 0; height: 2px; background: var(--orange); width: 0; transition: width 0.2s, opacity 0.4s; z-index: 3; }
.spin-hero--static { height: auto; }
.spin-hero--static .spin-hero__pin { position: relative; top: 0; height: auto; min-height: 0; }
.spin-hero--static .spin-hero__car { height: min(58vw, 620px); flex: none; }
@media (max-width: 860px) {
  .spin-hero { height: 220vh; }
  .spin-hero__top { grid-template-columns: 1fr; gap: 14px; }
  .spin-hero__top .lede { margin-bottom: 16px; }
  .spin-hero__car img { width: 112vw; height: auto; max-height: 100%; }
  .spin-hero__bar { flex-wrap: wrap; gap: 10px 16px; padding-bottom: 18px; }
  .spin-hero__bar .spin-hero__track { order: 3; flex-basis: 100%; }
  .spin-hero__caption { display: none; }
}

/* BMW 1 Series: cut-out car with a ground shadow underneath, on a deeper grey so it stands apart from the white 360 section above */
.section.bmw { background: var(--lilac); }
.bmw__car { position: relative; margin: clamp(-48px, -3vw, -8px) auto 0; max-width: 1040px; }
.bmw__car img { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
@media (max-width: 860px) {
  .bmw__car { margin-inline: -4vw; }
}

/* Full-bleed photo band */
/* the whole photo shows uncovered, with the headline and points on the dark band beneath it */
.band { position: relative; color: var(--white); background: var(--ink); overflow: hidden; }
.band > img { display: block; width: 100%; height: auto; }
.band .wrap { position: relative; z-index: 1; padding-top: var(--sec); padding-bottom: var(--sec); }
.band__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 56px; margin-top: 48px; }
.band__grid strong { display: block; font-size: 20px; font-stretch: 110%; text-transform: uppercase; margin-bottom: 6px; }
.band__grid p { margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 16px; }
/* a vertical rule centred in each gap, so only between the points, never at the outer edges */
.band__grid > div { position: relative; }
.band__grid > div + div::before { content: ""; position: absolute; left: -28px; top: 0; bottom: 0; border-left: 1px solid var(--line-inv); }
.band__cap { position: absolute; right: var(--gutter); top: 26px; z-index: 1; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
@media (max-width: 760px) { .band__grid { grid-template-columns: 1fr; gap: 18px; } .band__grid > div + div::before { display: none; } }
@media (max-width: 900px) { .band--flip > img { -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); } }
/* wide screens: photo and words side by side to save height; the points stack with a rule between each */
@media (min-width: 901px) {
  .band { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; }
  .band > img { height: 100%; object-fit: cover; }
  .band .wrap { max-width: none; margin: 0; padding: var(--sec) var(--gutter) var(--sec) clamp(32px, 4.5vw, 72px); }
  .band h2 { font-size: clamp(34px, 3.6vw, 56px); }
  .band__grid { grid-template-columns: 1fr; gap: 0; margin-top: 32px; }
  .band__grid > div { padding: 18px 0; }
  .band__grid > div:last-child { padding-bottom: 0; }
  .band__grid > div + div::before { left: 0; right: 0; top: 0; bottom: auto; border-left: 0; border-top: 1px solid var(--line-inv); }
  .band__cap { left: var(--gutter); right: auto; }
  /* mirrored: words on the left, photo on the right */
  .band--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .band--flip > img { order: 2; -webkit-mask-image: linear-gradient(270deg, #000 55%, transparent); mask-image: linear-gradient(270deg, #000 55%, transparent); } /* fades into the dark along the edge facing the text */
  .band--flip .wrap { padding: var(--sec) clamp(32px, 4.5vw, 72px) var(--sec) var(--gutter); }
  .band--flip .band__cap { left: auto; right: var(--gutter); }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: s; border-top: 2px solid currentColor; }
.step { counter-increment: s; padding: 26px 26px 0 0; }
.step + .step { padding-left: 26px; border-left: 1px solid var(--line); }
.on-dark .step + .step { border-color: var(--line-inv); }
.step::before { content: counter(s); display: block; font-size: 56px; font-weight: 800; font-stretch: 125%; line-height: 1; color: var(--orange-deep); margin-bottom: 18px; }
.on-dark .step::before { color: var(--orange); }
.step h3 { font-size: 21px; font-stretch: 110%; text-transform: uppercase; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 16px; margin: 0; }
.on-dark .step p { color: var(--muted-inv); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n + 3) { padding-top: 30px; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .step + .step { padding-left: 0; border-left: 0; padding-top: 30px; } }

/* Photo mosaic */
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(160px, 18vw, 260px); gap: 12px; }
.mosaic figure { margin: 0; position: relative; overflow: hidden; background: var(--ink-2); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.mosaic figure:hover img { transform: scale(1.03); }
.mosaic figcaption { position: absolute; left: 12px; bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.m-a { grid-column: span 7; grid-row: span 2; }
.m-b { grid-column: span 5; }
.m-c { grid-column: span 5; }
.m-d { grid-column: span 4; }
.m-e { grid-column: span 4; }
.m-f { grid-column: span 4; }
@media (max-width: 760px) { .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; } .mosaic figure { grid-column: span 1 !important; grid-row: span 1 !important; } .m-a { grid-column: span 2 !important; } }

/* ---------- 360 spin ---------- */

.spin-sec { background: var(--ink); color: var(--white); padding: var(--sec) 0; overflow: hidden; }
.spin-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px 64px; align-items: center; }
.spin-copy h2 { margin: 18px 0 22px; }
.spec { margin-top: 36px; border-top: 1px solid var(--line-inv); }
.spec div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-inv); font-size: 15px; }
.spec dt { font-family: var(--f-label); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-inv); padding-top: 3px; }
.spec dd { margin: 0; font-weight: 600; }

.spin {
  position: relative; background: var(--studio); color: var(--ink);
  aspect-ratio: 1100 / 520; user-select: none; -webkit-user-select: none;
  touch-action: pan-y; cursor: grab; overflow: hidden;
}
.spin.is-dragging { cursor: grabbing; }
.spin__stage { position: absolute; inset: 0 0 34px; display: flex; align-items: center; justify-content: center; }
.spin__stage img { width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; }
.spin__floor {
  position: absolute; left: 12%; right: 12%; bottom: 46px; height: 26px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(21, 19, 28, 0.16), rgba(21, 19, 28, 0));
  pointer-events: none;
}
.spin__hud {
  position: absolute; left: 0; right: 0; bottom: 0; height: 52px; padding: 0 18px;
  display: flex; align-items: center; gap: 16px;
  font-family: var(--f-label); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  border-top: 1px solid var(--line); background: var(--studio);
}
.spin__deg { color: var(--ink); min-width: 4ch; font-weight: 500; }
.spin__range { flex: 1; -webkit-appearance: none; appearance: none; background: transparent; height: 24px; cursor: pointer; }
.spin__range::-webkit-slider-runnable-track { height: 2px; background: var(--line); }
.spin__range::-moz-range-track { height: 2px; background: var(--line); }
.spin__range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -6px; background: var(--orange); border: 0; border-radius: 0; transform: rotate(45deg); }
.spin__range::-moz-range-thumb { width: 12px; height: 12px; background: var(--orange); border: 0; border-radius: 0; transform: rotate(45deg); }
.spin__play { border: 0; background: transparent; color: var(--ink); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; padding: 6px 0; display: inline-flex; align-items: center; gap: 8px; }
.spin__play svg { width: 12px; height: 12px; }
.spin__hint {
  position: absolute; left: 50%; top: 22px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px;
  background: var(--ink); color: var(--white);
  font-family: var(--f-label); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  transition: opacity 0.4s; pointer-events: none;
}
.spin.has-interacted .spin__hint { opacity: 0; }
.spin__load { position: absolute; left: 0; top: 0; height: 2px; background: var(--orange); width: 0; transition: width 0.2s, opacity 0.4s; }
.spin__corner { position: absolute; top: 18px; font-family: var(--f-label); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.spin__corner--l { left: 18px; }
.spin__corner--r { right: 18px; }
.spin-note { margin-top: 14px; font-size: 13px; color: var(--muted-inv); }
@media (max-width: 960px) {
  .spin-grid { grid-template-columns: 1fr; }
  .spin { aspect-ratio: 4 / 3; }
  .spin__stage { inset: 40px 0 52px; }
  .spin__hint { top: auto; bottom: 66px; }
}

/* ---------- Program / sectors ---------- */

.sectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.sector { padding: 34px 40px 40px 0; }
.sector + .sector { padding-left: 40px; border-left: 1px solid var(--line); }
.sector__tag { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.sector h3 { margin: 18px 0 22px; }
.ticks li { position: relative; padding: 12px 0 12px 30px; border-top: 1px solid var(--line); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 21px; width: 12px; height: 6px;
  border-left: 2px solid var(--orange-deep); border-bottom: 2px solid var(--orange-deep); transform: rotate(-45deg);
}
.on-dark .ticks li { border-color: var(--line-inv); }
.on-dark .ticks li::before { border-color: var(--orange); }
@media (max-width: 860px) {
  .sectors { grid-template-columns: 1fr; }
  .sector, .sector + .sector { padding: 30px 0; border-left: 0; }
  .sector + .sector { border-top: 1px solid var(--line); }
}

/* Split feature (image + copy) */
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px 72px; align-items: center; }
.split--rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split--top { align-items: start; }
.split--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split--flip .split__media { order: -1; }
/* photo on the left fades into the background along the edge facing the text (its bottom edge on phones, where it sits above the text) */
.split--fade-r .split__media img { -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent); mask-image: linear-gradient(90deg, #000 55%, transparent); }
/* photo on the right fades along its left edge (its top edge on phones, where it sits below the text) */
.split--fade-l .split__media img { aspect-ratio: 16 / 10; -webkit-mask-image: linear-gradient(270deg, #000 55%, transparent); mask-image: linear-gradient(270deg, #000 55%, transparent); } /* a little shorter than 4:3 so it sits closer to the height of the text beside it */
@media (max-width: 900px) {
  .split--fade-r .split__media img { -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
  .split--fade-l .split__media img { -webkit-mask-image: linear-gradient(0deg, #000 60%, transparent); mask-image: linear-gradient(0deg, #000 60%, transparent); }
}.split--top .statement__text:first-child { margin-top: -0.18em; } /* cancels the line spacing above the first line so the text sits flush with the photo's top edge */
.split--rev .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media figcaption, .fig-cap {
  margin-top: 12px; font-family: var(--f-label); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.on-dark .fig-cap, .on-dark .split__media figcaption { color: var(--muted-inv); }
.split__copy h2 { margin: 18px 0 24px; }
.split__copy .ticks { margin: 28px 0 32px; }
.inset-img { position: absolute; width: 42%; right: -6%; bottom: -12%; border: 8px solid var(--white); box-shadow: 0 30px 60px -30px rgba(21, 19, 28, 0.5); }
.section--paper .inset-img { border-color: var(--paper); }
@media (max-width: 900px) {
  .split, .split--rev { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .inset-img { display: none; }
}

/* ---------- Support / tiers (timing sheet) ---------- */

.sheet { border-top: 2px solid var(--ink); }
.sheet__head, .tier {
  display: grid; grid-template-columns: 64px minmax(0, 2.2fr) 120px minmax(0, 4fr) 196px; gap: 20px; align-items: center;
}
.sheet__head {
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-family: var(--f-label); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.tier { padding: 22px 0; border-bottom: 1px solid var(--line); transition: background 0.2s; }
.tier:hover { background: linear-gradient(90deg, rgba(240, 90, 34, 0.06), rgba(240, 90, 34, 0)); }
.tier__pos { font-family: var(--f-label); font-size: 13px; color: var(--muted); padding-left: 4px; }
.tier__name { font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: 21px; line-height: 1.05; }
.tier__name small { display: block; font-family: var(--f-label); font-weight: 400; font-stretch: 100%; text-transform: uppercase; font-size: 11px; letter-spacing: 0.1em; color: var(--muted); margin-top: 6px; }
.tier__amt { font-family: var(--f-label); font-size: 24px; font-weight: 800; font-stretch: 110%; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.tier__amt sup { font-size: 0.55em; vertical-align: 0.65em; margin-right: 1px; }
.tier__what { color: var(--muted); font-size: 15px; line-height: 1.5; }
.tier__what ul { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.tier__what li::before { content: "/ "; color: var(--orange-deep); }
.tier__cta { justify-self: stretch; }
.tier--feature .tier__name { color: var(--orange-deep); }

/* Tier button: one size in every row, label plus an icon cell that says where it goes (â†— new tab, â†’ on this page) */
.tier-btn {
  display: flex; align-items: stretch; width: 100%; min-height: 50px;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  font-weight: 700; font-size: 14px; letter-spacing: 0.02em; text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tier-btn__label { flex: 1; display: flex; align-items: center; padding: 0 16px; white-space: nowrap; }
.tier-btn__icon { flex: none; width: 48px; display: grid; place-items: center; border-left: 1.5px solid currentColor; transition: border-color 0.2s; }
.tier-btn__icon svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.tier-btn:hover { background: var(--ink); color: var(--white); }
.tier-btn:hover .tier-btn__icon svg { transform: translate(2px, -2px); }
.tier-btn--page:hover .tier-btn__icon svg { transform: translateX(3px); }
.tier-btn--feature { background: var(--orange); border-color: var(--orange); color: var(--white); }
.tier-btn--feature .tier-btn__icon { border-left-color: rgba(255, 255, 255, 0.4); }
.tier-btn--feature:hover { background: var(--white); border-color: var(--orange); color: var(--orange); }
.tier-btn--feature:hover .tier-btn__icon { border-left-color: currentColor; }
/* Payments paused: a plain label in the button's slot until the gateway is approved */
.tier-btn--soon, .tier-btn--soon:hover { align-items: center; justify-content: center; padding: 0 16px; border-color: var(--line); background: transparent; color: var(--muted); white-space: nowrap; cursor: default; }
.sheet-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
/* a two-square-high chequered flag strip after the note: solid at the right edge, fully faded just after "partnerships" so it never sits behind the text (site.js places it) */
.sheet-note--flag { position: relative; isolation: isolate; }
.sheet-note--flag::after {
  content: ""; position: absolute; z-index: -1; right: 0; left: var(--flag-left, 60%); top: var(--flag-top, 50%); height: 28px; transform: translateY(-50%);
  background-image: conic-gradient(#000 25%, #fff 0 50%, #000 0 75%, #fff 0); background-size: 28px 28px; background-position: right center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 85%); mask-image: linear-gradient(90deg, transparent, #000 85%);
}
@media (max-width: 980px) {
  .sheet__head { display: none; }
  .tier { grid-template-columns: 48px 1fr auto; grid-template-areas: "pos name amt" ". what what" ". cta cta"; gap: 10px 16px; }
  .tier__pos { grid-area: pos; }
  .tier__name { grid-area: name; }
  .tier__amt { grid-area: amt; }
  .tier__what { grid-area: what; }
  .tier__cta { grid-area: cta; justify-self: stretch; max-width: 320px; margin-top: 6px; }
}

/* ---------- News ---------- */

.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.post { display: flex; flex-direction: column; text-decoration: none; }
.post__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink-2); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.post:hover .post__img img { transform: scale(1.04); }
.post__meta { display: flex; gap: 14px; margin-top: 20px; font-family: var(--f-label); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.post__meta span:first-child { color: var(--orange-deep); }
.post h3 { margin: 12px 0 10px; font-size: 22px; font-stretch: 106%; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
.post p { color: var(--muted); font-size: 15px; margin: 0; }
.post:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--orange); }
.on-dark .post__meta, .on-dark .post p { color: var(--muted-inv); }
.on-dark .post__meta span:first-child { color: var(--orange); }
.news--lead { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.news__side { display: flex; flex-direction: column; gap: 28px; }
.news--lead .post:first-child h3 { font-size: clamp(26px, 2.6vw, 34px); }
.news__side .post { display: grid; grid-template-columns: 200px 1fr; gap: 0 22px; align-items: start; }
.news__side .post .post__meta { margin-top: 0; }
@media (max-width: 960px) {
  .news, .news--lead { grid-template-columns: 1fr; }

  .news__side .post { grid-template-columns: 120px 1fr; }
}

/* Article list on news page */
.article { display: grid; grid-template-columns: 160px minmax(0, 1fr) minmax(0, 0.9fr); gap: 24px 48px; padding: 44px 0; border-top: 1px solid var(--line); }
.article:last-child { border-bottom: 1px solid var(--line); }
.article__date { font-family: var(--f-label); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.article__date b { display: block; color: var(--orange-deep); font-weight: 500; margin-bottom: 6px; }
.article h2 { font-size: clamp(24px, 2.4vw, 32px); font-stretch: 108%; line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 16px; }
.article p { color: var(--muted); }
.article__link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.article__link:hover { color: var(--orange-deep); }
.article img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.results { font-family: var(--f-label); font-size: 13px; margin: 18px 0; border-top: 1px solid var(--line); }
.results div { display: grid; grid-template-columns: 90px 70px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.results .dnf { color: var(--orange-deep); }
@media (max-width: 900px) { .article { grid-template-columns: 1fr; } }

/* ---------- Partners ---------- */

/* tiles wrap and a short last row centres itself; each tile overlaps its neighbours by 1px so borders stay single */
.partners { --per: 6; display: flex; flex-wrap: wrap; justify-content: center; padding: 1px 0 0 1px; }
.partner {
  flex: 0 0 calc(100% / var(--per) + 1px); margin: -1px 0 0 -1px; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center;
  padding: 22px 28px; border: 1px solid var(--line);
}
.partner--wide { padding-inline: 14px; }
.partner img { max-height: 64px; width: auto; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: 0.78; transition: filter 0.3s, opacity 0.3s; }
.partner:hover img, .partner:focus-visible img { filter: none; opacity: 1; }
a.partner:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.partner--text { font-weight: 700; font-stretch: 110%; text-transform: uppercase; font-size: 15px; text-align: center; line-height: 1.2; color: var(--muted); }
.thanks { margin-top: 26px; font-size: 15px; color: var(--muted); max-width: 80ch; }
.thanks a { text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.thanks a:hover { color: var(--orange); }
@media (max-width: 1100px) { .partners { --per: 3; } }
@media (max-width: 900px) { .partners { --per: 2; } }

/* ---------- Quote ---------- */

.quote { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 72px; align-items: center; }
.quote blockquote { margin: 0; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.12; font-weight: 700; font-stretch: 106%; letter-spacing: -0.02em; }
.quote blockquote::before { content: "\201C"; display: block; font-size: 1.8em; line-height: 0.6; color: var(--orange); margin-bottom: 12px; }
.quote cite { display: block; margin-top: 26px; font-style: normal; font-family: var(--f-label); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-inv); }
.quote blockquote::after { content: "\201D"; color: var(--orange); }
/* photo fades into the background on the side facing the quote (below it on phones, where they stack) */
.quote img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent); mask-image: linear-gradient(90deg, #000 55%, transparent); }
/* mirrored: quote on the left, photo on the right fading out along its left edge */
@media (min-width: 861px) {
  .quote--flip img { order: 2; -webkit-mask-image: linear-gradient(270deg, #000 55%, transparent); mask-image: linear-gradient(270deg, #000 55%, transparent); }
}
@media (max-width: 860px) {
  .quote { grid-template-columns: 1fr; }
  .quote img { aspect-ratio: 16 / 10; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
}

/* ---------- Stat row ---------- */

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid currentColor; }
.stat { padding: 24px 24px 8px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.on-dark .stat + .stat { border-color: var(--line-inv); }
.stat__n { font-size: clamp(40px, 4.6vw, 64px); font-weight: 800; font-stretch: 118%; line-height: 1; letter-spacing: -0.02em; }
.stats--words .stat__n { font-size: clamp(28px, 3vw, 42px); text-transform: uppercase; }
/* figures (not words) in the same orange as the numbered steps */
.stats:not(.stats--words) .stat__n { color: var(--orange-deep); }
.on-dark .stats:not(.stats--words) .stat__n { color: var(--orange); }
.stats--orange .stat__n { color: var(--orange-deep); }
.on-dark .stats--orange .stat__n { color: var(--orange); }
.stat__l { margin-top: 10px; font-size: 15px; color: var(--muted); max-width: 22ch; }
.on-dark .stat__l { color: var(--muted-inv); }
/* evens out a stats section: drops the cards' bottom padding and the trailing line spacing so the gap under the last line matches the gap above the heading */
.section--even .stat { padding-bottom: 0; }
/* three cards in a row; on phones they stack so the long words never run off the screen */
.stats.stats--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 820px) {
  .stats.stats--three { grid-template-columns: 1fr; }
  .stats--three .stat, .stats--three .stat + .stat { padding: 20px 0; border-left: 0; }
  .stats--three .stat + .stat { border-top: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
/* on phones the word cards (Access, Possible...) need a touch less type and padding to fit two across */
@media (max-width: 480px) {
  .stat { padding-right: 14px; }
  .stat + .stat { padding-left: 14px; }
  .stat:nth-child(3) { padding-left: 0; }
  .stats--words .stat__n { font-size: 24px; }
}

/* ---------- Gallery strip ---------- */

.strip { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 12px; }
.strip img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.strip img:nth-child(1), .strip img:nth-child(4) { aspect-ratio: 4 / 3.5; }
@media (max-width: 820px) { .strip { grid-template-columns: 1fr 1fr; } .strip img { aspect-ratio: 1 !important; } }

/* Results / achievements */
.honours { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.honour { border-top: 2px solid var(--white); padding-top: 22px; }
.honour__year { font-family: var(--f-label); font-size: 12px; letter-spacing: 0.12em; color: var(--orange); }
.honour h3 { margin: 12px 0 10px; font-size: 24px; font-stretch: 112%; text-transform: uppercase; line-height: 1.05; }
.honour p { color: var(--muted-inv); font-size: 15px; margin: 0; }
@media (max-width: 860px) { .honours { grid-template-columns: 1fr; } }

/* People */
/* compact wide tiles like the home page's partner strip; five to a row with any short last row centred */
.person__tile {
  aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; padding: 9% 12%;
  background: var(--white); border: 1px solid var(--line); container-type: inline-size;
}
.person__tile .num { font-size: 22cqi; font-weight: 800; font-stretch: 125%; line-height: 1; letter-spacing: -0.03em; color: var(--orange); }
/* Logo widths are balanced by aspect ratio so each mark carries similar visual weight */
.person .person__tile img { width: var(--logo-w, 80%); height: auto; aspect-ratio: auto; object-fit: contain; background: none; }
/* logos sit in greyscale and come back to full colour as the pointer passes over the card (devices with a mouse only, so touch screens keep the colour) */
@media (hover: hover) {
  .person__tile > * { filter: grayscale(1); opacity: 0.75; transition: filter 0.35s var(--ease), opacity 0.35s var(--ease); }
  .person:hover .person__tile > * { filter: none; opacity: 1; }
}
.people { --per: 5; --gap: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 36px var(--gap); }
.people > .person { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); min-width: 0; }
.person img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--paper); }
.person h3 { margin-top: 14px; font-size: 16px; font-stretch: 110%; text-transform: uppercase; }
.person p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.person .label { margin-top: 6px; }
.people--start { justify-content: flex-start; }
.on-dark .person p { color: var(--muted-inv); }
/* "Our team" / "Our board" sub-headings inside People */
.people-group { margin: 0 0 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: clamp(18px, 1.6vw, 22px); font-stretch: 110%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.on-dark .people-group { border-color: var(--line-inv); }
.people + .people-group { margin-top: 56px; }
.person .person__photo { aspect-ratio: 1; width: 100%; object-fit: cover; display: block; }
.on-dark .person__tile { border-color: transparent; }
/* cards whose logo and name link out to the partner */
a.person__tile:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.person h3 a { text-decoration: none; }
.person h3 a:hover { color: var(--orange-deep); }
@media (max-width: 1100px) { .people { --per: 3; } }
@media (max-width: 900px) { .people { --per: 2; --gap: 20px; row-gap: 28px; } }

/* Funds list */
.funds { counter-reset: f; border-top: 1px solid var(--line-inv); }
.funds li { counter-increment: f; display: grid; grid-template-columns: 64px 1fr; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-inv); font-size: 19px; font-weight: 600; }
/* plain 1, 2, 3 in the same heavy display figures and orange as the stats and numbered steps */
.funds li::before { content: counter(f); font-size: 40px; font-weight: 800; font-stretch: 118%; line-height: 1; letter-spacing: -0.02em; color: var(--orange-deep); }
.on-dark .funds li::before { color: var(--orange); }
.section--paper .funds, .section--paper .funds li { border-color: var(--line); }
.section--paper .funds li::before { color: var(--orange-deep); }

/* ---------- Forms ---------- */

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--f-label); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--white);
  border: 1px solid rgba(21, 19, 28, 0.22); border-radius: 0; padding: 14px 14px; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--orange); outline-offset: -1px; border-color: transparent; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; justify-content: space-between; }
.form__foot small { color: var(--muted); font-size: 13px; max-width: 46ch; }
.form-status { grid-column: 1 / -1; font-weight: 600; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px 80px; }
.contact-list li { padding: 18px 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list span { display: block; font-family: var(--f-label); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-list a { font-weight: 700; text-decoration: none; font-size: 18px; }
.contact-list a:hover { color: var(--orange-deep); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */

.cta-band { position: relative; background: var(--orange); color: var(--white); overflow: hidden; }
.cta-band .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; padding-top: var(--sec); padding-bottom: var(--sec); }
.cta-band p { font-size: 19px; max-width: 44ch; }
.cta-band .label { color: var(--white); }
.cta-band h2 { margin: 0; }
.cta-band__checks {
  position: absolute; right: 0; top: 0; bottom: 0; width: 34%;
  background-image: conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0);
  background-size: 44px 44px; opacity: 0.09;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* the same faded chequer, mirrored: strongest at the left edge and fading out to the right */
.section--checks { position: relative; }
.section--checks::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 34%; pointer-events: none;
  background-image: conic-gradient(var(--sq-ink, var(--ink)) 25%, transparent 0 50%, var(--sq-ink, var(--ink)) 0 75%, transparent 0);
  background-size: 44px 44px; opacity: var(--sq-op, 0.09);
  -webkit-mask-image: linear-gradient(270deg, transparent, #000 70%); mask-image: linear-gradient(270deg, transparent, #000 70%);
}
.section--checks > .wrap { position: relative; z-index: 1; }
/* right-hand version: strongest at the right edge, fading out to the left */
.section--checks-right::before { left: auto; right: 0; background-position: right top; -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); }
/* top version: full width, strongest along the top edge, fading out downwards */
.section--checks-top::before { width: auto; right: 0; bottom: auto; height: calc(var(--sec) + 8px); -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); } /* ends just above the first line of text */
/* band version: a dark two-row strip along the top edge, strongest at the right and fading out to the left, as a break from the section above */
.section--checks-band::before { width: auto; right: 0; bottom: auto; height: calc(var(--sec) / 2); background-size: calc(var(--sec) / 2) calc(var(--sec) / 2); background-position: right top; --sq-op: 0.9; -webkit-mask-image: linear-gradient(90deg, transparent, #000 85%); mask-image: linear-gradient(90deg, transparent, #000 85%); }
/* the same strip along the bottom edge instead, as a break before a dark section below */
.section--checks-band-end::before { top: auto; bottom: 0; background-position: right bottom; }
/* on dark sections the squares are a lighter shade of the same ink, tone on tone */
.section--checks.on-dark { --sq-ink: var(--white); --sq-op: 0.05; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--muted-inv); padding: var(--sec) 0 32px; font-size: 15px; }
/* a dark last section runs straight into the dark footer, so split them with a rule instead of stacking two lots of padding */
main:has(> .section--ink:last-child) + .site-footer { padding-top: 0; }
main:has(> .section--ink:last-child) + .site-footer .foot-grid { padding-top: var(--sec); border-top: 1px solid var(--line-inv); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 40px; padding-bottom: var(--sec); border-bottom: 1px solid var(--line-inv); }
.foot-brand img { width: 230px; height: auto; }
.foot-brand p { margin-top: 24px; max-width: 34ch; }
.site-footer h4 { font-family: var(--f-label); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); margin-bottom: 18px; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { text-decoration: none; color: var(--muted-inv); overflow-wrap: anywhere; } /* lets the long email address break instead of pushing the page sideways */
.site-footer a:hover { color: var(--white); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: 13px; }
.foot-ack { max-width: 70ch; }
.foot-meta { text-align: right; line-height: 1.8; }
.foot-meta a { color: var(--white); text-decoration: none; }
.foot-meta a:hover { color: var(--orange); }
@media (max-width: 760px) { .foot-meta { text-align: left; } }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- Motion ---------- */

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Utilities */
.mt-0 { margin-top: 0; }
.mt-s { margin-top: 18px; }
.mt-m { margin-top: 36px; }
.mt-l { margin-top: 64px; }
.max-60 { max-width: 60ch; }
.muted { color: var(--muted); }
.on-dark .muted { color: var(--muted-inv); }
.prose p { max-width: 64ch; }
.prose h3 { margin: 40px 0 14px; font-size: 22px; font-stretch: 108%; }
.two-col { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px 80px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
