/* Self-hosted faces, latin and latin-ext only (@fontsource, SIL OFL 1.1; licences in intake/references/licenses/). */
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/inter-latin-ext-400.woff2) format('woff2'); unicode-range: U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/inter-latin-400.woff2) format('woff2'); unicode-range: U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 500; src: url(/fonts/inter-latin-ext-500.woff2) format('woff2'); unicode-range: U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 500; src: url(/fonts/inter-latin-500.woff2) format('woff2'); unicode-range: U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/inter-latin-ext-600.woff2) format('woff2'); unicode-range: U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/inter-latin-600.woff2) format('woff2'); unicode-range: U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 700; src: url(/fonts/inter-latin-ext-700.woff2) format('woff2'); unicode-range: U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 700; src: url(/fonts/inter-latin-700.woff2) format('woff2'); unicode-range: U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Montserrat; font-style: normal; font-display: swap; font-weight: 800; src: url(/fonts/montserrat-latin-ext-800.woff2) format('woff2'); unicode-range: U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Montserrat; font-style: normal; font-display: swap; font-weight: 800; src: url(/fonts/montserrat-latin-800.woff2) format('woff2'); unicode-range: U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Montserrat; font-style: normal; font-display: swap; font-weight: 900; src: url(/fonts/montserrat-latin-ext-900.woff2) format('woff2'); unicode-range: U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Montserrat; font-style: normal; font-display: swap; font-weight: 900; src: url(/fonts/montserrat-latin-900.woff2) format('woff2'); unicode-range: U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* Achievo design system: tokens (dark only). Changed by pull request from the design lane, never edited by hand. */
:root {
  /* ground & surfaces */
  --bg: #0A0E1C;
  --panel: #10162A;
  --card: #131A2E;
  --input: #0B101F;
  --line: #232C48;
  --line2: #2F3A5E;

  /* accents — cyan = action/index, gold = brand/reward, green = live */
  --cyan: #3ED6F5;
  --cyan-deep: #19B8DA;
  --cyan-dim: rgba(62,214,245,0.09);
  --gold: #F2BE45;
  --gold-dim: rgba(242,190,69,0.1);
  --green: #35E08D;
  --purple-glow: rgba(109,74,214,0.16);
  --accent-cyan-line: rgba(62,214,245,0.35);   /* tinted borders on cyan elements */
  --accent-gold-line: rgba(242,190,69,0.4);    /* tinted borders on gold elements */

  /* text */
  --text: #F2F5FC;
  --muted: #98A1BC;
  --faint: #7681A8;   /* 4.51:1 on --card, the lightest ground it sits on */
  --ink-on-cyan: #06121E;
  --ink-on-gold: #241A05;

  /* shape */
  --radius-sm: 8px;   /* chips, stat tiles, inputs, icon wells */
  --radius: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* type */
  --display: 'Montserrat', sans-serif;   /* 800/900, uppercase */
  --body: 'Inter', system-ui, sans-serif;
  /* type scale (web): every Montserrat size is one of these; 900 down to --fs-title, 800 below */
  --fs-hero: 4rem;                              /* home h1, shrinks with its column to stay on 3 lines */
  --fs-page: clamp(2.2rem, 5.5vw, 3.5rem);      /* h1 of inner pages */
  --fs-section: clamp(1.8rem, 4vw, 2.75rem);    /* section titles */
  --fs-figure: clamp(1.8rem, 4.5vw, 2.25rem);   /* result figures, short pull quotes */
  --fs-title: 1.5rem;                           /* panel and block titles, figures in tight tiles */
  --fs-subtitle: 1.125rem;                      /* card and step titles, inline figures */
  --fs-label: 0.75rem;                          /* uppercase labels */
  --fs-quote: clamp(1.15rem, 2vw, 1.35rem);     /* Inter: testimonial text */
  --fs-lede: 1.15rem;                           /* Inter: the paragraph under a page or section title */
  --track-display: -0.01em;   /* hero, page, section and figure sizes */
  --track-title: 0.02em;      /* title and subtitle */
  --track-label: 0.12em;      /* labels and buttons */

  /* signature assets */
  --spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23F2BE45' d='M12 0l2.7 9.3L24 12l-9.3 2.7L12 24l-2.7-9.3L0 12l9.3-2.7z'/%3E%3C/svg%3E");
  --spark-faint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23F2BE45' fill-opacity='0.05' d='M12 0l2.7 9.3L24 12l-9.3 2.7L12 24l-2.7-9.3L0 12l9.3-2.7z'/%3E%3C/svg%3E");
  --favicon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect width='24' height='24' rx='5' fill='%230A0E1C'/%3E%3Cpath fill='%23F2BE45' d='M12 4l1.8 6.2L20 12l-6.2 1.8L12 20l-1.8-6.2L4 12l6.2-1.8z'/%3E%3C/svg%3E");
  --btn-grad: linear-gradient(180deg, #5CE0FA 0%, #3ED6F5 55%, #19B8DA 100%);
  --btn-glow: 0 0 22px rgba(62,214,245,0.3);   /* legacy halo, decks only */
  --btn-cast: 0 8px 22px -8px rgba(62,214,245,0.6);         /* primary CTA only: light cast downward */
  --btn-cast-hover: 0 12px 30px -8px rgba(62,214,245,0.7);
  --card-shadow: 0 24px 70px rgba(0,0,0,0.35);
  --cta-shadow: 0 24px 70px rgba(0,0,0,0.35), 0 20px 60px -30px rgba(62,214,245,0.35);   /* closing CTA card only */

  /* atmosphere: the hero and the closing call to action, nowhere else */
  --atmosphere: radial-gradient(ellipse 50% 60% at 82% 18%, rgba(109,74,214,0.26), transparent 70%),
                radial-gradient(ellipse 40% 50% at 8% 92%, rgba(62,214,245,0.07), transparent 70%);
  --band: #0D1224;   /* alternate section ground, between --bg and --panel */

  /* overlays */
  --backdrop: rgba(6,9,20,0.72);  /* pair with backdrop-filter: blur(3px) */

  /* motion (see design-language.md §Motion; all disabled under prefers-reduced-motion) */
  --motion-reveal: 0.35s cubic-bezier(0.16,1,0.3,1);   /* section titles + hero card only: 12px rise, no stagger */
  --orbit-period: 8s;   /* one lap of the loop dot; stage highlights are timed against it */
  --motion-orbit: var(--orbit-period) linear;   /* the multiplier-loop orbit, the one infinite animation */
  --motion-expand: 0.4s ease;   /* grid/accordion reveal: 14px rise */
  --motion-modal: 0.25s ease;   /* dialog fade-in: 14px rise + scale 0.985 */
}

/* From the design intake: intake/references/astro-source/src/styles/global.css */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--body); font-size: 1rem; line-height: 1.65;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased;
}
p, li, dd { text-wrap: pretty; }
img, svg { max-width: 100%; height: auto; }
::selection { background: var(--cyan); color: var(--ink-on-cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 200; }
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font: 800 0.85rem/1 var(--display); letter-spacing: var(--track-label); text-transform: uppercase;
  border: none; border-radius: var(--radius); cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--btn-grad); color: var(--ink-on-cyan); padding: 15px 30px; }
.btn-primary:hover { transform: translateY(-1px); }
/* The one glowing control: the primary "Book a demo" in the hero and the contact form. */
.btn-cast { box-shadow: var(--btn-cast); }
.btn-cast:hover { box-shadow: var(--btn-cast-hover); }
.btn-ghost { background: var(--input); color: var(--muted); padding: 14px 24px; border: 1px solid var(--line2); }
.btn-ghost:hover { color: var(--text); border-color: var(--cyan); }
/* On phones a group of buttons stacks: each one full width, label centred (Daniel, 2026-10-28). */
@media (max-width: 600px) {
  .btn-group { flex-direction: column; }
  .btn-group .btn { justify-content: center; }
}
.btn-sm { padding: 10px 18px; font-size: var(--fs-label); }

/* Homepage sections: every other one sits on a band so the long page has rhythm. */
.section { padding-block: 112px; }
.band { background: var(--band); border-block: 1px solid var(--line); }
.spark { display: block; width: 28px; height: 28px; background: var(--spark) center / contain no-repeat; }

/* Reveal: section titles and the hero card only. Hidden only after JS arms it, so content never waits on a script. */
.reveal-armed [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity var(--motion-reveal), transform var(--motion-reveal); }
.reveal-armed [data-reveal].revealed { opacity: 1; transform: none; }
.section-title {
  margin: 0 0 16px; max-width: 22ch;
  font: 900 var(--fs-section)/1.05 var(--display); letter-spacing: var(--track-display); text-transform: uppercase; text-wrap: balance;
}
.section-lede { margin: 0; font-size: var(--fs-lede); color: var(--muted); max-width: 60ch; }
@media (max-width: 640px) { .section { padding-block: 80px; } }

/* Form fields, shared by the contact form and the intake page */
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.cf-field label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.cf-field input, .cf-field select, .cf-field textarea {
  width: 100%; min-height: 44px;
  /* --faint, not --line2: a field's edge needs 3:1 against its fill to be seen (WCAG 1.4.11). */
  background: var(--input); border: 1px solid var(--faint); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--text);
  font: 400 0.95rem/1.5 var(--body);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cf-field input::placeholder, .cf-field textarea::placeholder { color: var(--faint); }
.cf-field input:focus-visible, .cf-field select:focus-visible, .cf-field textarea:focus-visible {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px var(--accent-cyan-line);
}
.cf-field textarea { resize: vertical; min-height: 120px; }
@media (max-width: 640px) { .cf-row { grid-template-columns: 1fr; gap: 0; } }

/* Inner pages (src/layouts/Page.astro): one header for every inner page, and two widths.
   Wide (default) keeps text left with short line lengths; .reading centres one 80ch column for text-heavy pages. */
.page { padding-top: 64px; }
.page-head { margin-bottom: 48px; }
.page-head h1 { margin: 0; font: 900 var(--fs-page)/1.05 var(--display); letter-spacing: var(--track-display); text-transform: uppercase; text-wrap: balance; }
.page-head p { margin: 12px 0 0; color: var(--muted); font-size: var(--fs-lede); max-width: 52ch; }
.page-head a { color: var(--cyan); }
.reading { max-width: 80ch; margin-inline: auto; }
.reading .page-head p { max-width: none; }

/* Long-form text: case study stories, blog posts, legal pages. */
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 56px 0 14px; font: 900 var(--fs-title)/1.15 var(--display); letter-spacing: var(--track-title); text-transform: uppercase; }
.prose h3 { margin: 36px 0 10px; font: 800 var(--fs-subtitle)/1.3 var(--display); text-transform: uppercase; letter-spacing: var(--track-title); }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose a { color: var(--cyan); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 10px; }
.prose blockquote { margin: 32px 0; padding: 20px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.prose blockquote p { margin: 0; }
.prose img { display: block; width: 100%; height: auto; margin: 32px 0; border-radius: var(--radius); border: 1px solid var(--line); }
/* Case-study cards (index, next study, homepage): the logo-band silhouette, the event chip, the read-more label. */
.client-logo { display: block; width: auto; filter: brightness(0) invert(1); opacity: 0.78; }
.event-chip { padding: 5px 10px; border: 1px solid var(--line2); border-radius: var(--radius-pill); color: var(--muted); font: 800 var(--fs-label)/1 var(--display); letter-spacing: var(--track-label); text-transform: uppercase; }
.more-label { margin-top: auto; padding-top: 8px; color: var(--cyan); font: 800 var(--fs-label)/1 var(--display); letter-spacing: var(--track-label); text-transform: uppercase; }

.legal-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 12px; }
.legal-block p { margin: 0; }

/* The way back to an index, above a case study or an article. */
.back { display: inline-block; padding: 11px 0; margin-bottom: 24px; color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.back::before { content: '← '; }
.back:hover { color: var(--cyan); }
/* Blog: category and dates, on the index and on each post. */
.post-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: baseline; margin: 0; font-size: 0.85rem; color: var(--muted); }
.post-cat { font: 800 var(--fs-label)/1 var(--display); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--cyan); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* intake: src/components/Icon.astro */
  .icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* intake: src/components/Wordmark.astro */
  .wordmark {
    font-family: var(--display); font-size: 1.3rem; font-weight: 900;
    letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.1;
    color: var(--gold); text-decoration: none; white-space: nowrap;
    display: inline-block; padding: 11px 0;
  }
  .wordmark.inline { font-size: inherit; line-height: inherit; padding: 0; display: inline; }

/* intake: src/components/Nav.astro */
  .site-header {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    border-bottom: 1px solid var(--line);
  }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
  .nav-panel { display: flex; align-items: center; gap: 32px; }
  .nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
  .nav-links a, .nav-dd-menu a, .nav-dd-toggle {
    color: var(--muted); font: 500 0.9rem/1 var(--body); text-decoration: none;
    background: none; border: 0; padding: 12px 0; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
  }
  .nav-links a:hover, .nav-dd-menu a:hover, .nav-dd-menu a[aria-current], .nav-dd-toggle:hover, .nav-dd-toggle[aria-expanded='true'] { color: var(--text); }
  .nav-dd { position: relative; }
  .nav-dd-toggle svg { transition: transform var(--motion-modal); }
  .nav-dd-toggle[aria-expanded='true'] svg { transform: rotate(180deg); }
  .nav-dd-menu {
    position: absolute; top: 100%; left: -16px; min-width: 200px;
    list-style: none; margin: 0; padding: 8px;
    background: var(--panel); border: 1px solid var(--line2); border-radius: var(--radius);
    box-shadow: var(--card-shadow);
  }
  .nav-dd-menu a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); }
  .nav-dd-menu a:hover { background: var(--card); }
  /* The language menu sits beside the button, so it opens towards the page's right edge. */
  .nav-end { display: flex; align-items: center; gap: 24px; }
  .nav-lang .nav-dd-toggle .icon { width: 16px; height: 16px; }
  .nav-lang .nav-dd-menu { left: auto; right: -12px; min-width: 160px; }

  .nav-toggle { display: none; }

  /* Desktop: links centred in the bar, wordmark left, language and button right. The panel steps aside so its
     children join the three columns. */
  @media (min-width: 961px) {
    .nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
    .nav-inner > .wordmark { justify-self: start; }
    .nav-panel { display: contents; }
    .nav-end { justify-self: end; }
  }

  @media (max-width: 960px) {
    .nav-toggle {
      display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
      width: 44px; height: 44px; padding: 11px; background: none; border: 0; cursor: pointer;
    }
    .nav-toggle span { display: block; height: 2px; background: var(--text); transition: transform var(--motion-modal), opacity var(--motion-modal); }
    .nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav-panel { display: none; }
    .nav-panel[data-open] {
      display: flex; flex-direction: column; align-items: stretch; gap: 24px;
      position: fixed; inset: 69px 0 auto 0; max-height: calc(100dvh - 69px); overflow-y: auto;
      padding: 16px 24px 32px; background: var(--bg); border-bottom: 1px solid var(--line);
    }
    .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-end { flex-direction: column; align-items: stretch; gap: 16px; }
    .nav-links a, .nav-dd-menu a, .nav-dd-toggle { font-size: 1.05rem; padding: 14px 0; width: 100%; }
    .nav-dd-menu { position: static; box-shadow: none; border: 0; background: none; padding: 0 0 0 16px; }
    .nav-panel .btn { justify-content: center; }
  }
  @media (prefers-reduced-motion: reduce) {
    .nav-dd-toggle svg, .nav-toggle span { transition: none; }
  }

/* intake: src/components/Footer.astro */
  .site-footer { padding: 56px 0 36px; border-top: 1px solid var(--line); margin-top: 96px; }
  .footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
  .footer-brand p { margin: 12px 0 0; font-size: 0.875rem; color: var(--muted); max-width: 30ch; }
  .footer-col h2 {
    font: 800 var(--fs-label)/1.2 var(--display); letter-spacing: var(--track-label); text-transform: uppercase;
    color: var(--faint); margin: 0 0 12px;
  }
  .footer-col ul { list-style: none; margin: 0; padding: 0; }
  .footer-col a {
    display: inline-block; padding: 8px 0; min-height: 44px; box-sizing: border-box;
    font: 400 0.9rem/1.75 var(--body); color: var(--muted); text-decoration: none;
  }
  .footer-col a:hover { color: var(--cyan); }
  .footer-bottom { margin: 0; padding-top: 28px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--faint); text-align: center; }
  @media (max-width: 960px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; gap: 32px; } }

/* The contact card (templates/partials/contact-card.liquid), from the design intake's ContactForm.astro.
   The fields themselves (.cf-row, .cf-field) are in 02-global.css. */

/* The card closes every page it is on: the footer's own top margin is the only gap below it. */
#contact:last-of-type { padding-bottom: 0; }
/* Copy centred above the form; the fields stay left-aligned, which is quicker to scan and fill. */
.contact {
  display: grid; gap: 40px;
  position: relative; padding: 64px 56px; background: var(--atmosphere), var(--panel);
  border: 1px solid var(--line2); border-radius: var(--radius-lg); box-shadow: var(--cta-shadow);
}
.contact-copy { text-align: center; }
.contact-copy > * { margin-inline: auto; }
.contact-players { margin: 8px 0 0; text-align: center; color: var(--muted); font-size: 0.9rem; }
.contact-form { width: 100%; max-width: 680px; margin-inline: auto; }
/* The waving star peeks over the top edge: the box clips it at the card's border, so only head and hand show. */
.contact-star { position: absolute; right: 72px; top: -88px; width: 140px; height: 88px; overflow: hidden; }
.contact-star img { display: block; height: 160px; width: auto; margin-inline: auto; }
.contact-alt { margin: 28px 0 0; text-align: center; color: var(--muted); font-size: 0.9rem; }
.contact-alt a { color: var(--cyan); text-underline-offset: 4px; }
.opt { font-weight: 400; color: var(--muted); }
.cf-submit { display: flex; margin: 4px auto 0; }
.cf-status { margin: 16px 0 0; min-height: 1.65em; color: var(--muted); text-align: center; }
.cf-status[data-state='error'] { color: var(--gold); }
.cf-status[data-state='ok'] { color: var(--cyan); }
.cf-status a { color: inherit; text-underline-offset: 4px; }
.cf-submit:disabled { opacity: 0.6; cursor: progress; transform: none; }
.contact [aria-invalid='true'] { border-color: var(--gold); }
.contact .cf-error { margin: 6px 0 0; color: var(--gold); font-size: 0.85rem; }

/* Without JavaScript the server returns to #contact-sent or #contact-failed: that answer shows in place of the
   empty status line (ADR-0006). */
.cf-outcome { display: none; }
.cf-outcome:target { display: block; }
.cf-outcome:target ~ #cfStatus { display: none; }

/* The honeypot: off screen and out of the tab order, so only a bot fills it. */
.cf-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 960px) { .contact { padding: 40px 32px; } }
@media (max-width: 480px) {
  .contact { padding: 28px 20px; }
  .contact-star { right: 20px; top: -56px; width: 90px; height: 56px; }
  .contact-star img { height: 100px; }
}

/* intake: src/components/StudyCard.astro and StudyKpis.astro. The wide case-study card: on the case studies index
   and as "Next case study" on every study page. */
.study {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: 100%; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color 0.15s ease;
}
.study:hover { border-color: var(--accent-cyan-line); }
.study-body { padding: 40px 44px; display: flex; flex-direction: column; gap: 18px; }
.study-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.study .study-logo { height: 28px; }
.study-title { margin: 0; font: 900 var(--fs-figure)/1.1 var(--display); letter-spacing: var(--track-display); text-transform: uppercase; text-wrap: balance; }
.study p { margin: 0; color: var(--muted); font-size: var(--fs-subtitle); }
/* The screenshot keeps a fixed 16:9 frame, centred in its half, so no image is cropped to the card's height. */
.study-frame { display: grid; align-items: center; padding: 32px; background: var(--panel); border-left: 1px solid var(--line); }
.study-shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: var(--radius); }

@media (max-width: 860px) {
  .study { grid-template-columns: minmax(0, 1fr); }
  .study-body { padding: 28px 24px; }
  .study-frame { padding: 0; border-left: 0; border-top: 1px solid var(--line); }
  .study-shot { border: 0; border-radius: 0; }
}

/* The three KPIs side by side while "ENGAGEMENT" fits a tile; in a narrower card each KPI takes one row.
   The box is the size container, since a container query cannot restyle the container itself. */
.kpis-box { container-type: inline-size; margin-top: 6px; }
.kpis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kpis li { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.kpis strong { font: 900 var(--fs-title)/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.kpis span { font: 800 var(--fs-label)/1.3 var(--display); letter-spacing: var(--track-label); text-transform: uppercase; }
@container (max-width: 440px) {
  .kpis { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .kpis li { flex-direction: row; align-items: baseline; gap: 12px; padding: 12px 16px; }
}

/* intake: src/components/home/Faq.astro. The FAQ accordion (templates/partials/faq.liquid), on the homepage and the
   integrations page. Split: heading beside the list. Centred: one column, heading centred above it. */
.faq.split { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.faq.centred .section-title { text-align: center; margin-inline: auto; }
.faq.centred .faq-list { max-width: 820px; margin: 40px auto 0; }
.faq .section-lede a { color: var(--cyan); text-underline-offset: 4px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; min-height: 44px; font-weight: 600; font-size: 1.05rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ''; flex-shrink: 0; width: 9px; height: 9px; margin-right: 6px;
  border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan);
  transform: translateY(-3px) rotate(45deg); transition: transform var(--motion-expand);
}
.faq-list details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-list summary:hover { color: var(--cyan); }
.faq-list details p { margin: 0 0 22px; color: var(--muted); max-width: 68ch; }
@media (max-width: 860px) { .faq.split { grid-template-columns: 1fr; gap: 32px; } }

/* intake: src/pages/case-studies/[slug].astro. One case study: header, facts, results, quote, story, next study. */
.study-head { padding-top: 64px; }
.study-head .study-logo { height: 32px; margin-bottom: 20px; }
.study-head h1 { margin: 0 0 12px; font: 900 var(--fs-page)/1.05 var(--display); letter-spacing: var(--track-display); text-transform: uppercase; max-width: 18ch; text-wrap: balance; }
.head-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; margin-bottom: 40px; }
.study-summary { margin: 0; font-size: var(--fs-lede); color: var(--muted); max-width: 48ch; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0 0 40px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { background: var(--card); padding: 16px 18px; }
.facts dt { font: 800 var(--fs-label)/1.2 var(--display); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.facts dd { margin: 0; font-weight: 600; }
.facts dd span { display: block; font-weight: 400; font-size: 0.85rem; color: var(--muted); }
.study-hero { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); }

.results-section { padding-top: 72px; }
.results-section h2 { margin: 0 0 12px; font: 900 var(--fs-section)/1.05 var(--display); letter-spacing: var(--track-display); text-transform: uppercase; }
.results-intro { margin: 0 0 28px; color: var(--muted); max-width: 68ch; }
.results { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
/* Three or six results fill rows of three, not a row of four with gaps (Daniel, 2026-11-02). */
@media (min-width: 861px) { .results:has(> li:last-child:nth-child(3n)) { grid-template-columns: repeat(3, 1fr); } }
.results li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.results strong { font: 900 var(--fs-figure)/1 var(--display); color: var(--gold); }
.r-label { font: 800 var(--fs-label)/1.3 var(--display); letter-spacing: var(--track-label); text-transform: uppercase; margin-top: 6px; }
.r-note { font-size: 0.85rem; color: var(--muted); }

.quote { margin-top: 96px; margin-bottom: 0; text-align: center; }
.quote blockquote { margin: 0; }
.quote blockquote p { margin: 0 auto; max-width: 52ch; font-size: var(--fs-title); font-weight: 600; line-height: 1.45; text-wrap: balance; }
/* same rule as the homepage testimonials: a short quote reads as a headline */
.quote.short blockquote p { max-width: 30ch; font: 900 var(--fs-figure)/1.15 var(--display); letter-spacing: var(--track-display); text-transform: uppercase; }
.quote figcaption { margin: 24px 0 0; color: var(--muted); font-size: 0.95rem; }
.quote figcaption strong { display: block; color: var(--text); font-weight: 600; }

.story { padding-top: 56px; }

.next-study { padding-top: 88px; }
.next-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.next-head h2 { margin: 0; font: 800 var(--fs-label)/1.2 var(--display); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--faint); }
.next-head a { color: var(--muted); text-decoration: none; font-size: 0.9rem; padding: 11px 0; }
.next-head a:hover { color: var(--cyan); }

@media (max-width: 860px) {
  .head-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .facts, .results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* On the smallest phones a tile is too narrow for "ENGAGEMENT": one per row, label beside the figure. */
@media (max-width: 420px) {
  .facts, .results { grid-template-columns: minmax(0, 1fr); }
  .results li { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 12px; }
  .r-label { margin-top: 0; }
  .r-note { flex-basis: 100%; }
}

/* intake: src/pages/press.astro (scoped styles, under a press- prefix since the stylesheet is one bundle) */
  .press-block { padding: 32px 0; border-top: 1px solid var(--line); }
  /* The footer's 96px margin is the only gap below the last block, as on every page. */
  .press-block:last-child { padding-bottom: 0; }
  .press-block h2 { margin: 0 0 14px; font: 900 var(--fs-title)/1.2 var(--display); letter-spacing: var(--track-title); text-transform: uppercase; }
  .press-block p { margin: 0; color: var(--muted); max-width: 68ch; }
  .press-block .press-note { margin-bottom: 20px; font-size: 0.9rem; }
  .press-files, .press-swatches { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
  .press-files li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 4px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
  .press-files a { color: var(--text); padding: 12px 0; text-decoration: none; }
  .press-files a:hover { color: var(--cyan); }
  .press-files span { font: 800 var(--fs-label)/1 var(--display); letter-spacing: var(--track-label); color: var(--faint); }
  /* The blocks span the page; files and swatches fill it as tiles. */
  .press-files { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
  .press-swatches { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .press-swatches li { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
  .press-chip { grid-row: span 2; width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--line2); }
  /* The intake set each chip's colour in a style attribute, which ADR-0004 rules out: one class per token instead. */
  .press-chip-bg { background: var(--bg); }
  .press-chip-gold { background: var(--gold); }
  .press-chip-cyan { background: var(--cyan); }
  .press-swatches code { color: var(--muted); font-size: 0.85rem; }

/* intake: src/pages/case-studies/index.astro. The case studies index: every row as tall as the tallest card, so the
   cards share one height. */
.studies { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-rows: 1fr; gap: 24px; }

/* intake: src/pages/404.astro (scoped styles) */
  .not-found { display: flex; flex-wrap: wrap; gap: 12px; margin-top: -16px; }

/* intake: src/components/home/Hero.astro. The headline and the rotating KPI card (public/js/home.js). */
.hero { position: relative; padding: 96px 0 112px; background: var(--atmosphere); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 56px; align-items: center; }
/* The headline sizes to its own column so it always sets in three lines; 10.2cqi fits the widest line (9.63em). */
.hero-copy { container-type: inline-size; }
.hero h1 {
  margin: 0 0 24px; font: 900 min(var(--fs-hero), 10.2cqi)/0.98 var(--display);
  letter-spacing: var(--track-display); text-transform: uppercase;
}
.hero h1 .l { display: block; white-space: nowrap; }
/* The German widest line ("brauchen kein Glück,") is 13.1em: same rule, smaller factor. */
.hero h1.de { font-size: min(var(--fs-hero), 7.5cqi); }
.hero h1 .c { color: var(--cyan); }
.hero h1 .g { color: var(--gold); }
.hero-sub { margin: 0 0 32px; font-size: var(--fs-lede); color: var(--muted); max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.kpi { position: relative; }
.kpi-spark { position: absolute; top: -14px; right: 28px; z-index: 1; transform: rotate(-12deg); }
.kpi .stack { display: grid; }
/* Daniel's call (hero screenshots): beside the copy, the campaign's screenshot sits in a browser window behind the
   card; once the hero stacks it tops the card instead (.dash-cover). The window fades with the card it belongs to. */
.kpi-window, .dash-cover { display: none; }
.kpi-window-bar { display: flex; gap: 6px; align-items: center; height: 24px; padding: 0 10px; border-bottom: 1px solid var(--line); }
.kpi-window-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line2); }
.kpi-shots { display: grid; }
.kpi-shot { grid-area: 1 / 1; display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; opacity: 0; transition: opacity 0.5s ease; }
.kpi-shot.active { opacity: 1; }
@media (min-width: 1121px) {
  .kpi { padding-top: 170px; }
  .kpi-spark { top: 156px; z-index: 2; }
  .kpi .stack { position: relative; z-index: 1; }
  /* -48px keeps the window inside the 56px column gap, clear of the headline. */
  .kpi-window {
    display: block; position: absolute; top: 0; left: -48px; width: 470px; overflow: hidden;
    background: var(--input); border: 1px solid var(--line2); border-radius: 12px; box-shadow: var(--card-shadow);
  }
}
.dash {
  grid-area: 1 / 1; display: flex; flex-direction: column;
  margin: 0; padding: 24px; background: var(--panel);
  border: 1px solid var(--line2); border-radius: var(--radius-lg); box-shadow: var(--card-shadow);
  opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}
.dash.active { opacity: 1; visibility: visible; transition: opacity 0.5s ease; }
.dash-head strong { display: block; font: 800 var(--fs-subtitle)/1.25 var(--display); text-transform: uppercase; letter-spacing: var(--track-title); }
.dash-head span { display: block; margin-top: 4px; font-size: 0.85rem; color: var(--muted); }
.dash-lead { margin: 20px 0 10px; font-size: 0.8rem; color: var(--faint); }

.kpi .tiles { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kpi .tiles li { display: flex; flex-direction: column; padding: 14px 12px; background: var(--input); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.kpi .tiles b { display: block; font: 900 var(--fs-title)/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.kpi .tiles li:first-child b { color: var(--cyan); }
.kpi .tiles span { display: block; margin-top: 6px; font-size: 0.75rem; color: var(--muted); line-height: 1.3; }
.kpi .tiles .row-bar { display: block; margin-top: auto; flex: none; }
/* Two lines reserved, so a longer label in one campaign never makes its card taller than the others. */
.kpi .tiles span:not(.row-bar) { margin-bottom: 10px; min-height: 2.6em; }

.kpi .rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kpi .rows li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; row-gap: 8px; align-items: center;
  padding: 10px 12px; background: var(--input); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 0.875rem;
}
.kpi .rows .row-label { min-width: 0; }
.kpi .rows .icon { color: var(--cyan); width: 18px; height: 18px; }
.kpi .rows b { font: 800 var(--fs-subtitle)/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
/* A bar's width is --pct, set by a class the server generates from the figure (src/bars.ts, ADR-0004). */
.row-bar { grid-column: 1 / -1; height: 4px; border-radius: var(--radius-pill); background: var(--line); position: relative; overflow: hidden; }
.row-bar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--pct, 0%); background: var(--cyan); border-radius: inherit; }
/* An average with no maximum keeps the bar's space, so every row is the same height. */
.row-bar.blank { visibility: hidden; }
.kpi .rows .unit { font: 600 0.8rem var(--body); color: var(--muted); }

.switch { display: flex; gap: 8px; margin-top: 14px; }
.switch[hidden] { display: none; }
.switch button {
  position: relative; flex: 1; min-height: 40px; padding: 0 12px; overflow: hidden; cursor: pointer;
  background: var(--input); border: 1px solid var(--line2); border-radius: var(--radius-sm);
  color: var(--muted); font: 600 0.8rem/1 var(--body);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.switch button:hover { color: var(--text); }
.switch button[aria-pressed='true'] { color: var(--text); border-color: var(--accent-cyan-line); }
/* The progress bar doubles as the rotation clock: its animation ending advances the card (public/js/home.js). */
.switch button[aria-pressed='true']::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--cyan); transform-origin: left; animation: kpi-progress 7s linear;
}
.kpi:hover .switch button::after, .kpi:focus-within .switch button::after, .kpi.offscreen .switch button::after { animation-play-state: paused; }
.kpi.manual .switch button::after { animation: none; transform: none; }
@keyframes kpi-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .switch button::after { animation: none !important; transform: none; }
  .dash, .dash.active, .kpi-shot { transition: none; }
}

/* Stacked, the copy keeps the width it has beside the card at 1121px (577px), so the headline only ever
   grows with the screen: 57px here, 59px and up once the card sits beside it. The card spans the full width. */
@media (max-width: 1120px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  /* width: auto margins would shrink the copy to its content, which its container query makes zero. */
  .hero-copy { width: 100%; max-width: 560px; margin-inline: auto; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .dash-cover {
    display: block; width: calc(100% + 48px); max-width: none; margin: -24px -24px 20px;
    aspect-ratio: 16 / 7; object-fit: cover; object-position: top;
    border-bottom: 1px solid var(--line2); border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
  }
}
@media (max-width: 960px) {
  .hero { padding: 56px 0 88px; }
}
@media (max-width: 480px) {
  .dash { padding: 20px 16px; }
  .dash-cover { width: calc(100% + 32px); margin: -20px -16px 18px; }
}
/* The tile labels ("Wishlisted", "Newsletter") need every pixel on the smallest phones. */
@media (max-width: 400px) {
  .kpi .tiles { gap: 6px; }
  .kpi .tiles li { padding: 12px 6px; }
}

/* intake: src/components/home/Logos.astro. The "Already loved by" strip under the hero. */
/* The hairline closes the hero's glow, which otherwise ends in a visible step. */
.logos-strip { padding-block: 56px 64px; border-top: 1px solid var(--line); }
.logos-label {
  margin: 0 0 28px; text-align: center; color: var(--muted);
  font: 800 var(--fs-label)/1.3 var(--display); letter-spacing: var(--track-label); text-transform: uppercase;
}
.logos {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 32px 88px;
}
/* Each logo's optical height, as the intake sets it per logo. */
.logo-astragon { height: 44px; }
.logo-4divinity { height: 60px; }
.logo-sporewood { height: 52px; }

@media (max-width: 480px) { .logos { gap: 28px 44px; } }

/* intake: src/components/home/HowItWorks.astro. Intro beside the multiplier loop, three steps below. */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.how-intro { min-width: 0; }
.how-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.steps {
  list-style: none; counter-reset: step; margin: 88px 0 0; padding: 48px 0 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 48px;
}
.steps li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; column-gap: 16px; align-content: start; }
.steps li::before {
  content: counter(step); grid-row: span 2;
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--accent-cyan-line); border-radius: 50%;
  font: 800 var(--fs-subtitle)/1 var(--display); color: var(--cyan);
}
.steps h3 { margin: 4px 0 6px; font: 800 var(--fs-subtitle)/1.3 var(--display); text-transform: uppercase; letter-spacing: var(--track-title); }
.steps p { margin: 0; color: var(--muted); max-width: 52ch; }
/* Desktop: one line per title. The longest title widens its column; below 1140px they would overflow, so they wrap. */
@media (min-width: 1140px) {
  .steps { grid-template-columns: repeat(3, minmax(min-content, 1fr)); }
  .steps h3 { white-space: nowrap; }
}

.loop { position: relative; margin: 0 auto; width: min(460px, 100%); aspect-ratio: 1; }
.loop-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.loop-ring circle {
  fill: none; stroke: var(--accent-cyan-line); stroke-width: 0.5;
  stroke-dasharray: 100; stroke-dashoffset: 0;
  transition: stroke-dashoffset 2.4s cubic-bezier(0.16, 1, 0.3, 1);
}
/* The rotating layer sits in a round clip so its corners never widen the page mid-turn. */
.loop-orbit { position: absolute; inset: 0; overflow: hidden; border-radius: 50%; }
/* The page's one infinite animation (DESIGN.md, Hard nos). */
.loop-orbit i { position: absolute; inset: 0; animation: loop-orbit var(--motion-orbit) infinite; }
.loop-orbit i::before {
  content: ''; position: absolute; left: 50%; top: 14%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 2px 10px var(--accent-gold-line);
}
.loop.offscreen .loop-orbit i, .loop.offscreen .loop-stages li { animation-play-state: paused; }
/* Armed: dot and stage clocks wait, so both start together when the intro runs. */
.loop[data-loop='armed'] .loop-orbit i, .loop[data-loop='armed'] .loop-stages li { animation: none; }
@keyframes loop-orbit { to { transform: rotate(360deg); } }
/* A stage is lit while the dot is within about 22deg of it: the same lap, started where the stage sits. */
@keyframes loop-orbit-touch {
  0%, 5%, 95%, 100% { border-color: var(--gold); box-shadow: 0 0 16px var(--accent-gold-line); transform: translate(-50%, -50%) scale(1.07); color: var(--text); }
  8%, 92% { border-color: var(--rest-line); box-shadow: none; transform: translate(-50%, -50%); color: var(--rest); }
}
.loop-stages { list-style: none; margin: 0; padding: 0; }
/* The stage's place on the ring: --i is its position in the list (the intake set it inline). */
.loop-stages li:nth-child(1) { --i: 0; }
.loop-stages li:nth-child(2) { --i: 1; }
.loop-stages li:nth-child(3) { --i: 2; }
.loop-stages li:nth-child(4) { --i: 3; }
.loop-stages li:nth-child(5) { --i: 4; }
.loop-stages li:nth-child(6) { --i: 5; }
.loop-stages li {
  --a: calc(var(--i) * 60deg - 90deg);
  position: absolute; width: 30%;
  left: calc(50% + cos(var(--a)) * 36%); top: calc(50% + sin(var(--a)) * 36%);
  transform: translate(-50%, -50%);
  display: grid; justify-items: center; align-content: center; gap: 6px; padding: 10px 12px; text-align: center;
  min-height: 6em; /* one- and two-line labels get the same box */
  --rest: var(--muted); --rest-line: var(--line);
  background: var(--panel); border: 1px solid var(--rest-line); border-radius: var(--radius);
  font: 600 0.85rem/1.3 var(--body); color: var(--rest);
  animation: loop-orbit-touch var(--orbit-period) linear infinite;
  animation-delay: calc((var(--i) / 6 - 1) * var(--orbit-period));
}
/* The intro dims what a stage holds, not the box, so the ring never shows through a stage. */
.loop-stages li > * { transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(var(--i) * 0.35s); }
.loop-stages li .icon { width: 18px; height: 18px; color: var(--cyan); }
.loop-stages li:last-child { --rest: var(--gold); --rest-line: var(--accent-gold-line); }
.loop-stages li:last-child .icon { color: var(--gold); }
.loop-hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 34%;
  text-align: center; font: 800 var(--fs-label)/1.3 var(--display); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--gold);
}
.loop[data-loop='armed'] .loop-ring circle { stroke-dashoffset: 100; }
.loop[data-loop='armed'] .loop-stages li > * { opacity: 0.25; }

@media (max-width: 960px) { .how { grid-template-columns: 1fr; gap: 56px; } }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); margin-top: 64px; } }
/* Reduced motion: the final state, the dot at rest at 12 o'clock and no stage lit. */
@media (prefers-reduced-motion: reduce) { .loop-orbit i, .loop-stages li { animation: none; } }
@media (max-width: 420px) {
  .loop-stages li { width: 33%; min-height: 4.2em; padding: 8px 6px; font-size: 0.75rem; }
  .loop-stages li .icon { display: none; }
  .loop-hub { font-size: 0.7rem; }
}

/* intake: src/components/home/Proof.astro. The testimonials. Named .testimonial, since .quote is the case study's. */
.testimonials { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 72px; align-items: start; }
.testimonial { margin: 0; }
.testimonial.short { grid-column: 1 / -1; }
.testimonial blockquote { margin: 0; }
.testimonial p { margin: 0; font-size: var(--fs-quote); line-height: 1.55; text-wrap: pretty; }
.testimonial p::before {
  content: '“'; display: block; height: 0.62em; margin-bottom: 12px;
  font: 900 var(--fs-hero)/1 var(--display); color: var(--gold);
}
.testimonial p::after { content: '”'; }
/* A short quote reads louder: set it bigger so the two sit as a pair, not a long and a stub. */
.testimonial.short p { font: 900 var(--fs-figure)/1.15 var(--display); letter-spacing: var(--track-display); text-transform: uppercase; }
.testimonial figcaption { margin-top: 20px; display: grid; gap: 2px; font-size: 0.95rem; color: var(--muted); }
.testimonial figcaption strong { color: var(--text); font-weight: 600; }

/* Desktop only: the star fills the gap under the right-hand quote, which is the shorter of the pair.
   If the quotes change and the right one grows, re-check that it still clears the caption. */
.proof-star { position: absolute; right: 16px; bottom: -8px; height: 150px; width: auto; }

@media (max-width: 860px) {
  .testimonials { grid-template-columns: minmax(0, 1fr); }
  .proof-star { display: none; }
}

/* intake: src/components/home/Campaigns.astro. Pre-launch and Launch side by side, then the rewards line. */
#campaigns .section-lede a { color: var(--cyan); text-underline-offset: 4px; }

/* The shared rows: title, pitch, four featured challenges, four more, toggle. The intake set these counts in style
   attributes (ADR-0004 moves them here); CAMPAIGN_ROWS in src/campaigns.ts holds the same numbers, and
   src/home.spec.ts fails when they differ. */
.modes { --rows: 11; }
.featured { --n: 4; }
.more { --n: 4; }

/* No row gap: the parent's gutters would sit between the shared rows, empty ones included. */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: 48px; }
/* Both cards share every row: title, pitch, each challenge, toggle. The same row is as tall as its taller side, so
   the columns never drift apart. A closed list leaves its rows empty, at zero height. */
.mode { display: grid; grid-template-rows: subgrid; grid-row: span var(--rows); row-gap: 0; padding: 32px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.featured, .more { grid-template-rows: subgrid; grid-row: span var(--n); row-gap: 0; }
.more[hidden] { display: none; }
.mode h3 { margin: 0 0 12px; font: 900 var(--fs-title)/1.1 var(--display); letter-spacing: var(--track-title); text-transform: uppercase; }
.mode-pre h3 { color: var(--cyan); }
.mode-launch h3 { color: var(--gold); }
.pitch { margin: 0 0 24px; color: var(--muted); }
.featured, .more { list-style: none; margin: 0; padding: 0; display: grid; }
.featured li, .more li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.featured .icon, .more .icon { width: 20px; height: 20px; margin-top: 2px; }
.mode-pre .icon { color: var(--cyan); }
.mode-launch .icon { color: var(--gold); }
.featured strong, .more strong { font-weight: 600; }
.featured p, .more p { margin: 2px 0 0; color: var(--muted); font-size: 0.925rem; }
.more-toggle {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 10px 0; cursor: pointer;
  background: none; border: 0; border-top: 1px solid var(--line); text-align: left;
  color: var(--cyan); font: 600 0.925rem/1.4 var(--body);
}
.more-toggle[hidden] { display: none; }
.more-toggle::after {
  content: ''; width: 7px; height: 7px; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
  transition: transform var(--motion-expand);
}
.more-toggle[aria-expanded='true']::after { transform: rotate(225deg); margin-top: 3px; }
.more-toggle:hover { color: var(--text); }

.rewards { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.rewards h3 { margin: 0; font: 800 var(--fs-label)/1.3 var(--display); text-transform: uppercase; letter-spacing: var(--track-label); }
.rewards ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rewards li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line2); border-radius: var(--radius-pill); font-size: 0.9rem; color: var(--text); }
.rewards .icon { width: 16px; height: 16px; color: var(--gold); }

@media (max-width: 860px) { .modes { grid-template-columns: 1fr; } .mode + .mode { margin-top: 24px; } }
@media (max-width: 480px) { .mode { padding: 24px 20px; } }

/* intake: src/components/home/CaseStudies.astro. The case study preview: one card per study, side by side, the
   screenshot on top. Its KPIs are the index card's (styles/14-study-card.css). */
.cases { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.case {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  color: var(--text); text-decoration: none;
  transition: border-color 0.15s ease;
}
.case:hover { border-color: var(--accent-cyan-line); }
.case-shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.case-body { display: flex; flex-direction: column; gap: 14px; padding: 24px 28px 28px; flex: 1; }
.case-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.case .case-logo { height: 28px; }
.case h3 { margin: 4px 0 0; font: 900 var(--fs-title)/1.15 var(--display); text-transform: uppercase; letter-spacing: var(--track-title); text-wrap: balance; }
.case-summary { margin: 0; color: var(--muted); }

@media (max-width: 860px) { .cases { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .case-body { padding: 20px; } }

/* intake: src/pages/integrations.astro and src/components/BrandMark.astro (templates/pages/integrations.liquid).
   Scoped to .integrations, as Astro scoped them to the page; the hero is .int-hero, apart from the homepage's .hero.
   The hub's --n and --i are written by the server (src/integrations.ts, hubRules), never in a style attribute. */

/* Platform marks (src/marks.ts): single colour, from currentColor. Xbox is our own PNG drawn as a mask. */
.mark { display: block; width: 100%; height: 100%; fill: currentColor; }
.mark-xbox { background: currentColor; -webkit-mask: url(/img/xbox.png) center / contain no-repeat; mask: url(/img/xbox.png) center / contain no-repeat; }

.int-hero { background: var(--atmosphere); padding-block: 64px 96px; border-bottom: 1px solid var(--line); }
.int-hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.int-hero h1 { margin: 0 0 18px; font: 900 var(--fs-page)/1.05 var(--display); letter-spacing: var(--track-display); text-transform: uppercase; }
/* "Integrations" is one long word: on the smallest phones it steps down a size instead of overflowing. */
@media (max-width: 360px) { .int-hero h1 { font-size: var(--fs-figure); } }
.int-lede { margin: 0 0 32px; max-width: 54ch; color: var(--muted); font-size: var(--fs-lede); }
.integrations .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.counts { display: flex; gap: 32px; margin: 40px 0 0; padding: 0; list-style: none; }
.counts strong { display: block; font: 900 var(--fs-title)/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.counts span { font-size: 0.875rem; color: var(--muted); }

/* Hub: Achievo at the centre, the live platforms evenly on the ring. */
.hub { position: relative; width: min(440px, 100%); aspect-ratio: 1; margin: 0 auto; }
.hub::before { content: ''; position: absolute; inset: 11%; border: 1px dashed var(--accent-cyan-line); border-radius: 50%; }
.hub ul { list-style: none; margin: 0; padding: 0; }
.hub li {
  position: absolute; left: 50%; top: 50%; width: 15%; aspect-ratio: 1; margin: -7.5% 0 0 -7.5%; padding: 4%;
  transform: rotate(calc(var(--i) * 360deg / var(--n))) translateY(-195%) rotate(calc(var(--i) * -360deg / var(--n)));
  color: var(--text); background: var(--card); border: 1px solid var(--line2); border-radius: 50%;
}
.hub-core {
  position: absolute; inset: 34%; display: grid; place-items: center; align-content: center; gap: 6px;
  background: var(--panel); border: 1px solid var(--accent-gold-line); border-radius: 50%; box-shadow: 0 0 60px -10px var(--accent-gold-line);
}
.hub-spark { width: 30px; height: 30px; color: var(--gold); }
.hub-word { font-size: 0.8rem; line-height: 1; }
@media (max-width: 900px) { .int-hero-inner { grid-template-columns: minmax(0, 1fr); } .hub { width: min(340px, 100%); } }

.integrations .logo { flex: none; width: 48px; height: 48px; padding: 12px; color: var(--text); background: var(--input); border: 1px solid var(--line2); border-radius: var(--radius-sm); }
.integrations .logo.native { color: var(--gold); border-color: var(--accent-gold-line); background: var(--gold-dim); }
.integrations .chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.integrations .chips li { padding: 4px 10px; font-size: 0.8rem; color: var(--cyan); background: var(--cyan-dim); border: 1px solid var(--accent-cyan-line); border-radius: var(--radius-pill); }
.integrations .kicker { font: 800 var(--fs-label)/1.3 var(--display); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--faint); }

/* Most used */
.most { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.feature { display: flex; flex-direction: column; gap: 16px; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.feature header { display: flex; align-items: center; gap: 14px; }
.feature h3 { margin: 0; font: 900 var(--fs-title)/1.15 var(--display); letter-spacing: var(--track-title); text-transform: uppercase; }
.feature p { margin: 0; color: var(--muted); }
.feature .chips { margin-top: auto; }
@media (max-width: 960px) { .most { grid-template-columns: minmax(0, 1fr); } }

/* All integrations: the filter shows once public/js/integrations.js runs. */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 28px; }
.filters[hidden] { display: none; }
.filters button { font: 600 0.9rem/1 var(--body); color: var(--muted); background: var(--input); border: 1px solid var(--line2); border-radius: var(--radius-pill); padding: 12px 16px; cursor: pointer; }
.filters button:hover { color: var(--text); }
.filters button[aria-pressed='true'] { color: var(--ink-on-cyan); background: var(--cyan); border-color: var(--cyan); }
/* Without the filter the grid keeps the space the filter leaves below the lede. */
.filters[hidden] + [data-filter-count] + .grid { margin-top: 40px; }
.integrations .grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.integrations .card { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 16px; align-content: start; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
/* display: grid above would otherwise override the hidden attribute the filters set. */
.integrations .card[hidden] { display: none; }
.integrations .card .logo { grid-row: span 2; }
.integrations .card h3 { margin: 0; align-self: end; font: 800 var(--fs-subtitle)/1.25 var(--display); letter-spacing: var(--track-title); text-transform: uppercase; }
.integrations .card p, .integrations .card .chips { grid-column: 1 / -1; }
.integrations .card p { margin: 12px 0 14px; color: var(--muted); font-size: 0.95rem; }
/* Achievo's own quests span the row, so the nine platforms below fill the grid evenly. */
.integrations .card-native { grid-column: 1 / -1; border-color: var(--accent-gold-line); background: linear-gradient(90deg, var(--gold-dim), transparent 60%), var(--card); }
.integrations .card-native .kicker { color: var(--gold); }

.soon-title { margin: 72px 0 20px; padding-top: 40px; border-top: 1px solid var(--line); font: 900 var(--fs-title)/1.2 var(--display); letter-spacing: var(--track-title); text-transform: uppercase; }
.soon { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 172px), 1fr)); gap: 12px; }
.soon li { display: flex; align-items: center; gap: 12px; padding: 14px; white-space: nowrap; color: var(--muted); font-weight: 600; border: 1px dashed var(--line2); border-radius: var(--radius); }
.integrations .soon .logo { width: 40px; height: 40px; padding: 10px; color: var(--muted); background: transparent; }

.custom { margin-top: 20px; padding: 28px; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 20px 24px; align-items: center; background: var(--panel); border: 1px solid var(--accent-cyan-line); border-radius: var(--radius-lg); }
.custom h3 { margin: 0 0 6px; font: 900 var(--fs-title)/1.2 var(--display); letter-spacing: var(--track-title); text-transform: uppercase; }
.custom p { margin: 0; color: var(--muted); max-width: 70ch; }
.integrations .custom-mark { display: grid; place-items: center; padding: 0; color: var(--cyan); font: 900 var(--fs-title)/1 var(--display); border-color: var(--accent-cyan-line); background: var(--cyan-dim); }
@media (max-width: 760px) { .custom { grid-template-columns: 48px minmax(0, 1fr); align-items: start; } .custom .btn { grid-column: 1 / -1; justify-self: start; } }
/* At phone width the + mark sits above the text, so "Custom integrations" gets the full width. */
@media (max-width: 480px) { .custom { grid-template-columns: minmax(0, 1fr); } .integrations .custom-mark { width: 40px; height: 40px; } }

/* Generated from the content: src/bars.ts, src/integrations.ts */
.pct-84 { --pct: 84%; }
.pct-53 { --pct: 53%; }
.pct-43 { --pct: 43%; }
.pct-37 { --pct: 37%; }
.pct-24 { --pct: 24%; }
.pct-9 { --pct: 9%; }
.pct-92 { --pct: 92%; }
.pct-51 { --pct: 51%; }
.pct-33 { --pct: 33%; }
.pct-70 { --pct: 70%; }
.hub ul { --n: 9; }
.hub li:nth-child(1) { --i: 0; }
.hub li:nth-child(2) { --i: 1; }
.hub li:nth-child(3) { --i: 2; }
.hub li:nth-child(4) { --i: 3; }
.hub li:nth-child(5) { --i: 4; }
.hub li:nth-child(6) { --i: 5; }
.hub li:nth-child(7) { --i: 6; }
.hub li:nth-child(8) { --i: 7; }
.hub li:nth-child(9) { --i: 8; }