/* ==========================================================================
   Seba Agency · site design system
   Plain CSS, no build step, one file. Read DESIGN.md before building a page;
   see /_design/components.html (in the repo, not published) for every component.

   Order of this file:
     1. Tokens            colours, type scale, spacing scale, radii, shadow, motion
     2. Base              reset, focus, skip link
     3. Typography        .t-display .t-headline .t-number .t-title .t-quote .t-body .t-label .t-caption
     4. Layout            .wrap, .section (light, surface, dark, image), .section-head, .split, .card-grid, .blob
     5. Components        buttons, pills, tags, header, footer, page hero, stats, image card,
                          quotes, FAQ, CTA band, prose, form card, breadcrumb, floating UI cards
     6. Sections          homepage only (hero, logos, results, problem, services, creator army, ...)
     7. Utilities
     8. Responsive
     9. Reduced motion

   Rules in short: black and white base, colour only through images, Inter only,
   sentence case, no uppercase, no letter spacing on text, no monospace.
   All asset URLs are root-absolute so the same file works from any folder.
   ========================================================================== */

/* Inter, self-hosted (variable font, weights 100 to 900). No Google Fonts. */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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";
  src: url("/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   1. Tokens
   Change a value here and it changes everywhere. Components never use raw numbers
   for colour, type size, spacing or radius when a token exists.
   -------------------------------------------------------------------------- */
:root {
  /* Colour: black and white base. Colour only ever comes from the images. */
  --white: #FFFFFF;
  --ink: #0A0A0A;              /* near black: text, dark sections, primary button */
  --grey-body: #525252;        /* body text on light */
  --grey-label: #737373;       /* labels, captions on light */
  --hairline: #E5E5E5;         /* 1 px lines and card borders on light */
  --surface: #F5F5F5;          /* quiet panel / tag fill on light */
  --ink-hover: #2A2A2A;        /* hover of the black pill */
  --light-hover: #EDEDED;      /* hover of the white pill */
  --on-dark-body: rgba(255, 255, 255, 0.7);    /* body text on dark and on images */
  --on-dark-strong: rgba(255, 255, 255, 0.8);
  --on-dark-muted: rgba(255, 255, 255, 0.6);   /* labels and captions on dark */
  --on-dark-line: rgba(255, 255, 255, 0.16);   /* hairlines on dark */
  --glass-fill: rgba(255, 255, 255, 0.16);     /* glass pill: fill and border */
  --glass-line: rgba(255, 255, 255, 0.3);
  --status: #4ADE80;           /* only for the small status dot */

  /* Process ring: the one place that shows these three colours (inline SVG in index.html). */
  --ring-coral: #FF5A3C;
  --ring-cobalt: #2B3FD6;
  --ring-lilac: #B48CFF;

  /* Behind images, visible only while an image loads */
  --fallback-blue: #1B1F6B;
  --fallback-violet: #1a1352;
  --fallback-navy: #1B2457;
  --fallback-dark: #1d1d2b;
  --fallback-panel: #20222b;

  /* Type: Inter only. Sizes are fluid, one scale for the whole site. */
  --font: "Inter", "Inter Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display: clamp(56px, 8vw, 168px);      /* t-display: hero, big statements */
  --fs-headline: clamp(40px, 5vw, 80px);      /* t-headline: section headline */
  --fs-number: clamp(64px, 7.4vw, 120px);     /* t-number: big figures */
  --fs-title: clamp(28px, 2.5vw, 40px);       /* t-title: card and row titles */
  --fs-body: clamp(18px, 1.35vw, 24px);       /* t-body: running text */
  --fs-label: clamp(16px, 1.1vw, 18px);       /* t-label: small headings, metric text */
  --fs-caption: 14px;                         /* t-caption: notes, legal lines */
  --fs-quote: clamp(32px, 3.4vw, 56px);       /* t-quote: big quote on an image */
  --fs-stat: clamp(56px, 6.2vw, 104px);       /* figures inside a stat row */
  --fs-statement: clamp(28px, 2.7vw, 44px);   /* short statements (problem section) */
  --fs-faq: clamp(22px, 1.9vw, 28px);         /* FAQ questions */
  --fs-prose: clamp(17px, 1.2vw, 19px);       /* long form text (legal, case study body) */
  --fs-figure: clamp(36px, 3.2vw, 56px);      /* figures inside cards and step rows, next to a title */

  /* Spacing scale: the only spacing values. Named by their size in px. */
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-20: 20px;
  --sp-24: 24px;
  --sp-28: 28px;
  --sp-32: 32px;
  --sp-40: 40px;
  --sp-48: 48px;
  --sp-56: 56px;
  --sp-64: 64px;
  --sp-80: 80px;
  --sp-96: 96px;
  /* Fluid spacing built for rhythm: use these between sections, heads and items */
  --space-section: clamp(96px, 11vw, 176px);  /* padding above and below every section */
  --space-block: clamp(56px, 7vw, 112px);     /* between a section head and its content, between rows */
  --space-item: clamp(16px, 1.6vw, 24px);     /* gap between cards and grid items */
  --space-head: var(--sp-20);                 /* label, headline and one line inside a section head */

  /* Layout */
  --gutter: clamp(24px, 4vw, 48px);           /* side margin: 48 desktop, 24 mobile */
  --max: 1824px;                              /* widest content */
  --measure: 68ch;                            /* comfortable line length for long text */
  --header-h: 80px;                           /* fixed header height (68 px under 961 px wide) */

  /* Shape */
  --radius-pill: 999px;        /* buttons, chips, pills */
  --radius-card: 20px;         /* cards, panels, image cards */
  --radius-ui: 16px;           /* floating UI cards, small panels */
  --radius-sm: 10px;           /* thumbnails inside cards */
  --shadow-float: 0 16px 48px rgba(0, 0, 0, 0.14);   /* floating UI cards only */

  /* Motion: minimal. Everything is switched off under prefers-reduced-motion. */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 0.2s;            /* hover colour, link underline */
  --dur-ui: 0.25s;             /* small toggles */
  --dur-base: 0.3s;            /* header state */
  --dur-image: 0.8s;           /* image zoom on card hover */
  --dur-reveal: 0.9s;          /* fade and rise on scroll */
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; }

button { font: inherit; color: inherit; }

/* Focus: black ring on light, white ring on dark and image areas. The ring keeps
   the shape of the element (pills stay pills). */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
a:focus-visible { border-radius: 4px; }
a.btn:focus-visible { border-radius: var(--radius-pill); }

:is(.hero, .problem, .army, .founder, .final, .site-footer, .mobile-menu, .video-dialog,
    .quote-card, .case, .img-card, .cta-band, .page-hero--image, .section--dark, .section--image,
    .form-card--dark, .on-dark) :focus-visible,
.site-header:not(.is-scrolled, .site-header--solid) :focus-visible,
.site-header.is-open :focus-visible { outline-color: var(--white); }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* --------------------------------------------------------------------------
   3. Typography
   One class per text style. A section uses its headline plus at most three others.
   The old names (.display, .headline, ...) keep working as aliases.
   -------------------------------------------------------------------------- */
/* t-display: hero and big statements. 700, 56 to 168 px. */
.display,
.t-display {
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

/* t-headline: one per section. 700, 40 to 80 px. */
.headline,
.t-headline {
  font-size: var(--fs-headline);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* t-number: big figures. 700, 64 to 120 px, tabular. */
.number,
.t-number {
  font-size: var(--fs-number);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* t-title: card, row and step titles. 600, 28 to 40 px. */
.title,
.t-title {
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

/* t-quote: the big quote on an image. 600, 32 to 56 px. */
.t-quote {
  font-size: var(--fs-quote);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* t-body: running text, grey. 400, 18 to 24 px. Add -light on dark and on images. */
.body,
.t-body {
  font-size: var(--fs-body);
  line-height: 1.4;
  color: var(--grey-body);
  text-wrap: pretty;
}
.body--light,
.t-body--light { color: var(--on-dark-body); }

/* t-label: small heading above a headline, metric text. 500, 16 to 18 px. */
.label,
.t-label {
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--grey-label);
}
.t-label--light { color: var(--on-dark-muted); }

/* t-caption: notes and legal lines. 400, 14 px. */
.caption,
.t-caption {
  font-size: var(--fs-caption);
  line-height: 1.45;
  color: var(--grey-label);
}
.caption--light,
.t-caption--light { color: var(--on-dark-muted); }
.caption a,
.t-caption a { color: inherit; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   4. Layout
   Content width, section shells, section head, split rows, card grids, background blob.
   -------------------------------------------------------------------------- */
/* Content column: 48 px side margins on desktop, 24 on mobile, 1824 px at most. */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
/* Narrower column for text pages */
.wrap--narrow { width: min(100% - 2 * var(--gutter), 1200px); }

/* Section shell. Every section has the same top and bottom padding (--space-section).
   Variants: .section--light (default, optional .blob), .section--surface,
   .section--dark, .section--image (full bleed image plus .section__bg). */
.section {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: var(--space-section);
}
.section > .wrap { position: relative; z-index: 1; }
.section--light { background: var(--white); }
.section--surface { background: var(--surface); }
.section--dark,
.problem,
.founder { background: var(--ink); color: var(--white); }

/* Image section: full bleed picture behind the content with a dark scrim for legibility.
   Put <img class="section__bg" alt=""> first. --focus sets the crop, --scrim replaces the scrim. */
.section--image {
  color: var(--white);
  background: var(--fallback-navy);
}
.section__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
}
.section--image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--scrim, linear-gradient(0deg, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.28) 60%, rgba(10, 10, 10, 0.12) 100%));
}

/* Zero-size anchor targets for legacy links (/#our-services, /#abou-us-hero) */
.anchor { display: block; height: 0; overflow: hidden; }

/* Section head: optional label, one headline, optional one line. Same gaps everywhere. */
.section-head { display: grid; gap: var(--space-head); }
.section-head .headline,
.section-head .t-headline { max-width: 18ch; }
.section-head .body,
.section-head .t-body { max-width: 46ch; }
.section-head .headline + .body,
.section-head .t-headline + .t-body { margin-top: var(--sp-8); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; max-width: none; }
/* Head with a link or button on the right */
.section-head--split,
.cases__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-24);
}
/* Content that follows a section head */
.section__body { margin-top: var(--space-block); }

/* Split: text column plus visual column, 12 column grid. Add .split--flip to alternate.
   The old .service names are kept as aliases. */
.split,
.service {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: var(--sp-32) clamp(24px, 3vw, 48px);
  margin-top: var(--space-block);
}
.split__text,
.service__text { grid-column: 1 / span 4; display: grid; gap: var(--sp-20); }
.split__visual,
.service__visual { grid-column: 6 / span 7; }
.split--flip .split__text,
.service--flip .service__text { grid-column: 9 / span 4; grid-row: 1; }
.split--flip .split__visual,
.service--flip .service__visual { grid-column: 1 / span 7; grid-row: 1; }

/* Visual panel: rounded image area that hosts floating UI cards, phones or a graphic */
.visual-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 7 / 5;
  border-radius: var(--radius-card);
  background: var(--fallback-panel);
}
.visual-panel__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.visual-panel__bg--flip { scale: -1 1; }

/* Card grids. Feature: one big card plus two (12 columns). Also .card-grid--2 and --3. */
.card-grid { display: grid; gap: var(--space-item); }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--feature,
.cases__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: var(--space-item);
}
.cases__grid { margin-top: var(--space-block); }
.card-grid--feature > :nth-child(1) { grid-column: 1 / span 7; grid-row: 1 / span 2; min-height: 760px; }
.card-grid--feature > :nth-child(2) { grid-column: 8 / span 5; grid-row: 1; }
.card-grid--feature > :nth-child(3) { grid-column: 8 / span 5; grid-row: 2; }

/* Document layout for long text: sticky contents list left, prose right */
.doc-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: var(--sp-48) clamp(24px, 3vw, 48px);
}
.doc-layout__aside { grid-column: 1 / span 3; position: sticky; top: calc(var(--header-h) + var(--sp-40)); }
.doc-layout__main { grid-column: 5 / span 7; min-width: 0; }

/* Soft image blob behind white sections. Radial mask fades it to nothing. */
.blob {
  position: absolute;
  z-index: 0;
  inset-block: 0;               /* never taller than its section, so no hard edge */
  width: min(1500px, 120vw);
  background: url("/images/site/blob-waves.webp") center / cover;
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 100%);
  opacity: 0.22;
  pointer-events: none;
}
.blob--left { left: max(-750px, -60vw); }
.blob--right { right: max(-750px, -60vw); }

/* --------------------------------------------------------------------------
   5. Components
   Generic and reusable. Each one starts with a short comment on what it is for.
   -------------------------------------------------------------------------- */

/* ---- Buttons ---------------------------------------------------------------
   Always fully round pills. .btn--dark: black on light. .btn--light: white on
   images and dark. .text-link: quiet link with underline. .icon-btn: round icon. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 var(--sp-28);
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-fast), color var(--dur-fast), translate var(--dur-fast) var(--ease);
}
.btn:hover { translate: 0 -2px; }

.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-hover); }

.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--light-hover); }

.btn--icon { padding-left: 22px; }

.text-link {
  font-size: 17px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-decoration-color var(--dur-fast);
}
.text-link:hover { text-decoration-thickness: 2px; }
.text-link--light { color: var(--white); }

/* Round icon button (arrow, close, play). Put an inline svg inside; add a label for screen readers. */
.icon-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--dur-fast), border-color var(--dur-fast);
}
.icon-btn:hover { background: var(--surface); }
.icon-btn--light { border-color: var(--glass-line); background: var(--glass-fill); color: var(--white); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.icon-btn--light:hover { background: rgba(255, 255, 255, 0.28); }

/* ---- Pills and tags --------------------------------------------------------
   .glass-pill: status or category line on an image (add .status-dot for a live status).
   .glass-pill--sm: the small chip on image cards. .tag: chip on light backgrounds. */
.glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px var(--sp-16);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-pill);
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}
.glass-pill--sm { padding: 6px 13px; font-size: 14px; }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.22);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
.tag--outline { background: transparent; border: 1px solid var(--hairline); }

/* Site header: fixed, 80 px. Two states:
   - over an image hero (homepage): transparent with white text; js/site.js adds
     .is-scrolled after 24 px of scrolling, which turns it white with a hairline.
   - on pages without an image hero: add .site-header--solid, white from the start.
   Mobile menu (full screen, black) opens from the menu button on small screens. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-base), border-color var(--dur-base), color var(--dur-base);
}
.site-header:is(.is-scrolled, .site-header--solid) {
  background: var(--white);
  border-bottom-color: var(--hairline);
  color: var(--ink);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: var(--sp-40);
  height: var(--header-h);
}
.site-header__logo { display: block; flex: none; margin-right: auto; }
.site-header__logo img { height: 30px; width: auto; }
.logo-dark { display: none; }
.site-header:is(.is-scrolled, .site-header--solid) .logo-light { display: none; }
.site-header:is(.is-scrolled, .site-header--solid) .logo-dark { display: block; }

.site-nav ul { display: flex; gap: 36px; }
.site-nav a {
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity var(--dur-fast);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

.btn--header { min-height: 44px; padding: 0 22px; font-size: 15px; background: var(--white); color: var(--ink); }
.btn--header:hover { background: var(--light-hover); }
.site-header:is(.is-scrolled, .site-header--solid) .btn--header { background: var(--ink); color: var(--white); }
.site-header:is(.is-scrolled, .site-header--solid) .btn--header:hover { background: var(--ink-hover); }

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-toggle__lines,
.menu-toggle__lines::before {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: rotate var(--dur-ui), translate var(--dur-ui);
}
.menu-toggle__lines { translate: 0 -4px; }
.menu-toggle__lines::before { content: ""; translate: 0 8px; }
.site-header.is-open .menu-toggle__lines { translate: 0 0; rotate: 45deg; }
.site-header.is-open .menu-toggle__lines::before { translate: 0 0; rotate: -90deg; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-40);
  padding: calc(var(--header-h) + var(--sp-40)) var(--gutter) var(--sp-40);
  background: var(--ink);
  color: var(--white);
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { display: grid; gap: 8px; }
.mobile-menu a:not(.btn) {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-decoration: none;
}
.mobile-menu .btn { width: 100%; }

/* Open menu: header bar sits on the black menu */
.site-header.is-open { background: var(--ink); border-bottom-color: transparent; color: var(--white); }
.site-header.is-open .logo-light { display: block; }
.site-header.is-open .logo-dark { display: none; }
.site-header.is-open .btn--header { visibility: hidden; }

/* ---- Site footer -----------------------------------------------------------
   Black, brand and tagline left, two link columns, legal line. Same on every page. */
.site-footer {
  padding-block: clamp(64px, 7vw, 104px) 40px;
  background: var(--ink);
  color: var(--white);
  font-size: 16px;
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px clamp(24px, 3vw, 48px);
}
.site-footer__brand img { width: auto; height: 32px; }
.site-footer__brand p { margin-top: 20px; font-size: var(--fs-title); font-weight: 600; letter-spacing: -0.015em; }
.site-footer__heading { font-size: 14px; color: rgba(255, 255, 255, 0.5); }
.site-footer__col ul { display: grid; gap: 12px; margin-top: 20px; }
.site-footer__col a,
.footer-button {
  color: var(--on-dark-strong);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.footer-button { padding: 0; border: 0; background: none; font-size: 16px; cursor: pointer; }
.site-footer__col a:hover,
.footer-button:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-12) var(--sp-32);
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: var(--sp-28);
  border-top: 1px solid var(--on-dark-line);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---- Page hero (inner pages) ------------------------------------------------
   Both variants start under the fixed header (padding-top includes --header-h).
   .page-hero--image: full bleed image, display or headline type, short sub, buttons.
   .page-hero--light: white with a soft blob, headline and sub (text pages, legal). */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: flex;
}
.page-hero > .wrap { position: relative; z-index: 1; }
.page-hero__copy { display: grid; justify-items: start; }
.page-hero__title { max-width: 12em; text-wrap: balance; }
.page-hero__title:not(:first-child) { margin-top: var(--sp-28); }
.page-hero__sub { max-width: 30em; margin-top: var(--sp-32); }
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-20) var(--sp-32);
  margin-top: var(--sp-40);
}
.page-hero__back { margin-bottom: var(--sp-24); }
.page-hero--light .page-hero__sub a { color: var(--ink); text-underline-offset: 3px; }
/* Short page (404): footer stays at the bottom of the window, the hero takes the space */
.stick-footer { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.stick-footer > main { flex: 1; display: flex; flex-direction: column; }
.stick-footer > main > .page-hero { flex: 1; }

.page-hero--image {
  min-height: max(560px, 76svh);
  color: var(--white);
  background: var(--fallback-blue);
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 70% 40%);
}
.page-hero--image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.62) 0%, rgba(10, 10, 10, 0.34) 38%, rgba(10, 10, 10, 0) 64%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.28) 0%, rgba(10, 10, 10, 0) 30%);
}
.page-hero--image > .wrap { display: flex; }
.page-hero--image .page-hero__copy {
  align-self: end;
  padding: calc(var(--header-h) + var(--sp-64)) 0 clamp(64px, 9vh, 120px);
}
.page-hero--image .page-hero__sub { color: rgba(255, 255, 255, 0.82); }

.page-hero--light {
  padding: calc(var(--header-h) + var(--space-block)) 0 var(--space-block);
  background: var(--white);
}
.page-hero--light .page-hero__sub { color: var(--grey-body); }
.page-hero--light .page-hero__sub.t-title { color: var(--ink); }

/* ---- Stat row --------------------------------------------------------------
   Numbers split by hairlines, no boxes. 3 items by default; add .stats--2 or .stats--4.
   .stats--dark on dark sections. Markup: dl > .stat > dt.sr-only + dd.number + dd.stat__label. */
.stats {
  --cols: 3;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  margin-top: var(--space-block);
  border-top: 1px solid var(--hairline);
}
.stats--2 { --cols: 2; }
.stats--4 { --cols: 4; }
.stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
  padding: var(--sp-40) var(--sp-40) 0;
}
.stat:first-child { padding-left: 0; }
.stats .number,
.stats .t-number { font-size: var(--fs-stat); }
.stats--4 .number,
.stats--4 .t-number { font-size: clamp(44px, 4.6vw, 80px); }
.stat + .stat { border-left: 1px solid var(--hairline); }
.stat__label { font-size: var(--fs-label); font-weight: 500; color: var(--grey-body); max-width: 22ch; }
.stats--dark { border-top-color: var(--on-dark-line); }
.stats--dark .stat + .stat { border-color: var(--on-dark-line); }
.stats--dark .stat__label { color: var(--on-dark-body); }

/* ---- Image card ------------------------------------------------------------
   Case study card: image fill, dark scrim, chip on top, number, title, text.
   The whole card is the link (the title link stretches over it). Sizes: default 400 px,
   .img-card--lg 760 px, .img-card--sm 300 px. Lay out with .card-grid--feature, --2 or --3.
   Markup: article.img-card > img.img-card__bg + .img-card__top + .img-card__body.
   The old .case names are kept as aliases. */
.case,
.img-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-48);
  min-height: 400px;
  padding: clamp(24px, 2.8vw, 44px);
  border-radius: var(--radius-card);
  color: var(--white);
  background: var(--fallback-dark);
}
.img-card--lg { min-height: 760px; }
.img-card--sm { min-height: 300px; }

.case__bg,
.img-card__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale var(--dur-image) var(--ease);
}
.case::after,
.img-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(10, 10, 10, 0.72) 0%, rgba(10, 10, 10, 0.25) 60%, rgba(10, 10, 10, 0.1) 100%);
}
.case:hover .case__bg,
.img-card:hover .img-card__bg { scale: 1.06; }
.case:focus-within,
.img-card:focus-within { outline: 2px solid var(--ink); outline-offset: 4px; }

.case__body,
.img-card__body { display: grid; gap: 14px; }
.case__number,
.img-card__number { font-size: var(--fs-number); }
.case__number--words,
.img-card__number--words { white-space: normal; }
.case__metric,
.case__text,
.img-card__metric,
.img-card__text {
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.4;
  color: var(--on-dark-strong);
  max-width: 34ch;
}
.case__metric,
.img-card__metric { margin-top: -4px; }
.case .title,
.img-card .title { margin-top: 18px; }
.case__numbers,
.img-card__numbers { display: grid; gap: var(--sp-24); }
.case__numbers > div,
.img-card__numbers > div { display: grid; gap: 10px; }

/* Whole card is clickable through the title link */
.case__link,
.img-card__link { text-decoration: none; }
.case__link::after,
.img-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.case__link:focus-visible,
.img-card__link:focus-visible { outline: none; }
.case__link:hover,
.img-card__link:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---- Quotes ----------------------------------------------------------------
   .quote-card: big quote on an image (a result, with a link to the case study).
   .small-testimonial: one short line with a name, under a section's main content. */
.quote-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: space-between;
  gap: var(--sp-56) var(--sp-40);
  min-height: 380px;
  margin-top: var(--space-block);
  padding: clamp(32px, 4.5vw, 72px);
  border-radius: var(--radius-card);
  color: var(--white);
}
.quote-card__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: -1 1; /* mirrored, so it reads differently from the Creator Army background */
}
.quote-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(10, 10, 10, 0.66), rgba(10, 10, 10, 0.3));
}
.quote-card__quote { grid-column: 1; }
.quote-card__quote p {
  max-width: 20ch;
  font-size: clamp(32px, 3.4vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.quote-card__meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-12) var(--sp-32);
  font-size: 17px;
  color: rgba(255, 255, 255, 0.78);
}
.quote-card__logo {
  grid-column: 2;
  grid-row: 1;
  width: auto;
  height: 18px;
  opacity: 0.9;
}

.small-testimonial {
  width: 100%;
  margin-top: var(--sp-56);
  padding-top: var(--sp-32);
  border-top: 1px solid var(--on-dark-line);
}
.small-testimonial p { font-size: var(--fs-body); line-height: 1.4; max-width: 34em; }
.small-testimonial figcaption { margin-top: 12px; font-size: 14px; color: var(--on-dark-muted); }

.small-testimonial--light { border-top-color: var(--hairline); }
.small-testimonial--light figcaption { color: var(--grey-label); }

/* ---- FAQ -------------------------------------------------------------------
   details with summary.faq-question: plus turns into a minus. Wrap the items in .faq-list.
   Rules for the homepage's .faq__list are the same. */
.faq-list,
.faq__list { border-top: 1px solid var(--hairline); }
.faq-list details,
.faq__list details { border-bottom: 1px solid var(--hairline); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-24);
  padding: var(--sp-28) 0;
  font-size: var(--fs-faq);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
}
.faq-question::-webkit-details-marker { display: none; }
/* Plus that turns into a minus */
.faq-question::after {
  content: "";
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: background-size var(--dur-ui), background-color var(--dur-ui);
}
.faq-question:hover::after { background-color: var(--surface); }
details[open] > .faq-question::after {
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 0 no-repeat;
}
.faq-list details p,
.faq__list details p {
  max-width: 40em;
  padding: 0 var(--sp-64) var(--sp-32) 0;
  font-size: var(--fs-body);
  color: var(--grey-body);
}

/* ---- CTA band --------------------------------------------------------------
   The closing call to action: full bleed image, display headline low and left, one line,
   one white button. Keep id="call-to-action" on it so links can point to it.
   Markup: section.cta-band > img.cta-band__bg + .wrap.cta-band__inner. (.final is the same.) */
.final,
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: flex;
  min-height: max(680px, 92svh);
  color: var(--white);
  background: var(--fallback-navy);
}
.final__bg,
.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
}
.final::after,
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(20deg, rgba(10, 10, 10, 0.6) 0%, rgba(10, 10, 10, 0.2) 40%, rgba(10, 10, 10, 0) 62%);
}
.final__inner,
.cta-band__inner {
  align-self: end;
  display: grid;
  justify-items: start;
  padding-block: 160px clamp(64px, 8vw, 120px);
}
.final h2,
.cta-band h2 { font-size: clamp(56px, 9.6vw, 168px); max-width: 8em; }
.final .body,
.cta-band .body,
.cta-band .t-body { max-width: 28em; margin-top: 32px; color: rgba(255, 255, 255, 0.85); }
.final .btn,
.cta-band .btn { margin-top: 40px; }
.cta-band .glass-pill + h2 { margin-top: var(--sp-28); }

/* ---- Prose -----------------------------------------------------------------
   Long form text for legal pages and case study bodies. Inter, grey text, black headings,
   hairlines, about 68 characters per line, no colour. Wrap every table in
   <div class="table-wrap" role="region" aria-label="..." tabindex="0">: it scrolls sideways on narrow screens, shows a
   shadow hint on the side with more content and can be scrolled with the keyboard.
   Optional .callout for a boxed note. Never change the wording of a legal text, only its look. */
.prose {
  max-width: var(--measure);
  font-size: var(--fs-prose);
  line-height: 1.65;
  color: var(--grey-body);
}
.prose :where(p, ul, ol, dl, blockquote, figure, hr, .table-wrap, .callout) { margin-top: var(--sp-16); }
.prose > :first-child { margin-top: 0; }
/* Legal text keeps its own <section> and language <div> wrappers: no gap above the very first element either */
.prose > :where(section, div):first-child > :first-child,
.prose > div:first-child > section:first-child > :first-child { margin-top: 0; }
.prose :where(h2, h3, h4) { color: var(--ink); text-wrap: balance; }
.prose h2 {
  margin-top: var(--sp-64);
  font-size: clamp(26px, 2.2vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.prose h3 {
  margin-top: var(--sp-40);
  font-size: clamp(19px, 1.4vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.prose h4 { margin-top: var(--sp-32); font-size: 1em; font-weight: 600; line-height: 1.4; }
.prose :where(h2, h3, h4) + :where(p, ul, ol, dl, blockquote, figure, .table-wrap, .callout) { margin-top: var(--sp-12); }
.prose :where(h2, h3, h4)[id],
.prose section[id] { scroll-margin-top: calc(var(--header-h) + var(--sp-24)); }
.prose ul { list-style: disc; padding-left: 1.25em; }
.prose ol { list-style: decimal; padding-left: 1.5em; }
.prose li { margin-top: var(--sp-8); padding-left: var(--sp-4); }
.prose li::marker { color: var(--grey-label); }
.prose li > :where(ul, ol) { margin-top: var(--sp-8); }
.prose ul ul { list-style: circle; }
.prose strong,
.prose b { font-weight: 600; color: var(--ink); }
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.prose a:hover { text-decoration-thickness: 2px; }
.prose hr { margin-block: var(--sp-48); border: 0; border-top: 1px solid var(--hairline); }
.prose blockquote { padding-left: var(--sp-24); border-left: 1px solid var(--hairline); }
.prose code,
.prose kbd,
.prose pre { font-family: inherit; font-size: inherit; }
.prose .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  /* Scroll hint: soft shadow on the side that has more content */
  background:
    linear-gradient(to right, var(--white) 30%, rgba(255, 255, 255, 0)) left center / 40px 100% no-repeat local,
    linear-gradient(to left, var(--white) 30%, rgba(255, 255, 255, 0)) right center / 40px 100% no-repeat local,
    linear-gradient(to right, rgba(10, 10, 10, 0.16), rgba(10, 10, 10, 0)) left center / 16px 100% no-repeat scroll,
    linear-gradient(to left, rgba(10, 10, 10, 0.16), rgba(10, 10, 10, 0)) right center / 16px 100% no-repeat scroll;
}
.prose table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.94em;
  line-height: 1.45;
}
.prose th,
.prose td {
  padding: var(--sp-12) var(--sp-16) var(--sp-12) 0;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}
.prose th { border-bottom-color: var(--ink); font-weight: 600; color: var(--ink); }
.prose .callout {
  padding: var(--sp-24);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-ui);
}
.prose .callout > :first-child { margin-top: 0; }
/* A button inside running text (for example "Open cookie settings") looks like a link */
.prose button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.prose button:hover { text-decoration-thickness: 2px; }
/* --compact: many short labelled blocks (Impressum). Section headings are small, lines sit close together. */
.prose--compact section h2 {
  margin-top: var(--sp-40);
  font-size: clamp(19px, 1.4vw, 22px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.prose--compact section p + p { margin-top: var(--sp-8); }

/* Contents list for long documents (inside .doc-layout__aside) */
.toc__heading { font-size: var(--fs-label); font-weight: 600; color: var(--ink); }
.toc ul { display: grid; gap: var(--sp-12); margin-top: var(--sp-16); }
.toc a {
  font-size: var(--fs-caption);
  line-height: 1.4;
  color: var(--grey-label);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---- Form card -------------------------------------------------------------
   Card that hosts an embedded third party form (Tally iframe). Light by default,
   .form-card--dark on dark sections. Load the iframe only after consent where required;
   the form itself needs its own matching theme in Tally. */
.form-card {
  padding: clamp(24px, 3vw, 48px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--white);
  color: var(--ink);
}
.form-card--dark {
  border-color: var(--on-dark-line);
  background: var(--ink);
  color: var(--white);
}
.form-card__head { display: grid; gap: var(--sp-12); margin-bottom: var(--sp-32); }
.form-card iframe { display: block; width: 100%; min-height: 480px; border: 0; }

/* ---- Landing page parts ------------------------------------------------------
   For ad landing pages with an application deadline (/creator-army/).
   State: html.is-closed is set by a small inline script in the page head (and by js at the deadline).
   .when-open / .when-closed: two versions of one line. .open-only: hidden when closed and leaves no gap
   behind (apply buttons, the form section).
   .sticky-cta: a pill fixed at the bottom of the screen. Use with .btn .btn--dark and id="sticky-cta"; the page script
   fades it with .is-hidden. Add .has-sticky-cta to the body so the footer text stays clear of it.
   .site-footer--compact: logo left and legal links right in one row, then the legal lines. */
.when-closed { display: none; }
.is-closed .when-open { display: none; }
.is-closed .when-closed { display: revert; }
.is-closed .open-only { display: none !important; }

.sticky-cta {
  position: fixed;
  inset: auto var(--gutter) calc(var(--sp-20) + env(safe-area-inset-bottom)) var(--gutter);
  z-index: 40;
  width: max-content;
  max-width: calc(100% - 2 * var(--gutter));
  margin-inline: auto;
  box-shadow: 0 0 0 1px var(--glass-line), var(--shadow-float);
  transition: background-color var(--dur-fast), color var(--dur-fast), translate var(--dur-fast) var(--ease), opacity var(--dur-base), visibility 0s linear 0s;
}
.sticky-cta.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-base), visibility 0s linear var(--dur-base);
}
.has-sticky-cta .site-footer { padding-bottom: calc(var(--sp-40) + var(--sp-56) + var(--sp-24)); }
.is-closed .has-sticky-cta .site-footer { padding-bottom: var(--sp-40); }

/* .text-split--compact: several short rows in one section (pricing, fit). Even 64 px rows, larger text on the right, no tall gaps.
   After a closed (hidden) .open-only section the next light section drops its top padding, so two light sections do not leave a double gap. */
.text-split--compact + .text-split--compact { margin-top: var(--sp-64); padding-top: var(--sp-64); }
.text-split--compact .text-split__body :is(p, li) { font-size: var(--fs-faq); line-height: 1.3; }
.is-closed .open-only + .section--light { padding-top: 0; }
.text-split__body > .line-list > li { text-wrap: pretty; }

.site-footer--compact { padding-top: var(--sp-64); }
.site-footer--compact .site-footer__top {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--sp-16) var(--sp-48);
}
.site-footer--compact .site-footer__col ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 var(--sp-32);
  margin-top: 0;
}
.site-footer--compact :is(.site-footer__col a, .footer-button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer--compact .site-footer__bottom { margin-top: var(--sp-40); }
@media (max-width: 960px) {
  .site-footer--compact .site-footer__top { grid-template-columns: minmax(0, 1fr); }
  .site-footer--compact .site-footer__col ul { justify-content: flex-start; }
}

/* ---- Breadcrumb and back link ----------------------------------------------
   Small, label style. .back-link for one step back, .crumbs for a trail. Add -light on images. */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--grey-label);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.back-link::before {
  content: "";
  width: 8px;
  height: 8px;
  border-bottom: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  rotate: 45deg;
}
.back-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--sp-8) var(--sp-12); font-size: var(--fs-label); font-weight: 500; color: var(--grey-label); }
.crumbs li + li::before { content: "/"; margin-right: var(--sp-12); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.crumbs [aria-current="page"] { color: var(--ink); }
.back-link--light,
.crumbs--light ol { color: var(--on-dark-body); }
.back-link--light:hover,
.crumbs--light a:hover,
.crumbs--light [aria-current="page"] { color: var(--white); }

/* ---- Facts ------------------------------------------------------------------
   Label and value pairs under a hero or head (case study: duration, services). Hairline above.
   Markup: dl.facts > div > dt + dd. Values can hold .tag chips. .facts--dark on dark and images. */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-24) var(--sp-40);
  margin-top: var(--sp-40);
  padding-top: var(--sp-32);
  border-top: 1px solid var(--hairline);
}
.facts dt { font-size: var(--fs-caption); color: var(--grey-label); }
.facts dd { margin-top: var(--sp-4); font-size: var(--fs-label); font-weight: 600; }
.facts dd.facts__tags { display: flex; flex-wrap: wrap; gap: var(--sp-8); margin-top: var(--sp-8); font-weight: 400; }
.facts--dark { border-top-color: var(--on-dark-line); }
.facts--dark dt { color: var(--on-dark-muted); }

/* ---- Case study parts ------------------------------------------------------
   Used by the case study list and the case study pages.
   .page-hero--split: light hero with copy left and a .media-panel right (stacks under 961 px).
   .media-panel: rounded client image, ratio set by --square or the default 4:3.
   .text-split: headline left, prose right; rows are separated by a hairline.
   .step-rows: numbered steps (number and title left, text right), hairlines between; --dark on dark.
   .line-list: hairline list with a bold lead-in; --num for numbered, --dark on dark.
   .stats--words: stat row whose figures are words or short phrases (wraps, headline size).
   .img-card--photo: image card on a real photo, with a stronger scrim under the text. .img-card__top holds several chips; .img-card__numbers--row puts the figures side by side.
   .chart: a figure with an SVG line and a row of axis labels, on an image section.
   .section--flush-top: a section that follows a light page hero (the hero already gives the space). */
.page-hero--split .page-hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: var(--sp-56) clamp(24px, 3vw, 48px);
}
.page-hero--split .page-hero__copy { grid-column: 1 / span 6; min-width: 0; }
.page-hero--split .page-hero__visual { grid-column: 8 / span 5; min-width: 0; }
.page-hero__logo { width: auto; height: 24px; }
.page-hero__sub + .page-hero__sub { margin-top: var(--sp-20); }
.page-hero__copy > .facts { justify-self: stretch; margin-top: var(--sp-48); }

.media-panel {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  background: var(--fallback-panel);
}
.media-panel--square { aspect-ratio: 1; }
.media-panel img { width: 100%; height: 100%; object-fit: cover; }

.section--flush-top { padding-top: 0; }

.text-split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: var(--sp-32) clamp(24px, 3vw, 48px);
}
.text-split + .text-split {
  margin-top: var(--space-block);
  padding-top: var(--space-block);
  border-top: 1px solid var(--hairline);
}
.text-split__head { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + var(--sp-40)); }
.text-split__body { grid-column: 7 / span 6; min-width: 0; }

.step-rows { display: grid; margin-top: var(--space-block); border-top: 1px solid var(--hairline); }
.step-rows__item {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: var(--sp-24) clamp(24px, 3vw, 48px);
  padding-block: var(--sp-56);
  border-bottom: 1px solid var(--hairline);
}
.step-rows__head { grid-column: 1 / span 5; display: grid; gap: var(--sp-20); align-content: start; }
.step-rows__num {
  font-size: var(--fs-figure);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.step-rows__body { grid-column: 7 / span 6; display: grid; gap: var(--sp-20); align-content: start; min-width: 0; }
.step-rows__body em { font-style: normal; font-weight: 600; color: var(--ink); }
.step-rows__body > .glass-pill { justify-self: start; font-size: var(--fs-label); }
.step-rows__item:last-child { padding-bottom: 0; border-bottom: 0; }
.step-rows--dark { border-top-color: var(--on-dark-line); }
.step-rows--dark .step-rows__item { border-bottom-color: var(--on-dark-line); }
.step-rows--dark .step-rows__body em { color: var(--white); }

.line-list { display: grid; border-top: 1px solid var(--hairline); }
.line-list > li {
  padding-block: var(--sp-16);
  border-bottom: 1px solid var(--hairline);
  font-size: var(--fs-body);
  line-height: 1.4;
  color: var(--grey-body);
}
.line-list strong { font-weight: 600; color: var(--ink); }
.line-list--num > li { display: grid; grid-template-columns: var(--sp-32) minmax(0, 1fr); }
.line-list__num { font-variant-numeric: tabular-nums; color: var(--grey-label); }
.line-list--dark,
.line-list--dark > li { border-color: var(--on-dark-line); }
.line-list--dark > li { color: var(--on-dark-body); }
.line-list--dark strong { color: var(--white); }
.line-list--dark .line-list__num { color: var(--on-dark-muted); }
/* --links: every row is one link (hub pages: legal, policies). Bold title, optional grey line below, arrow right. */
.line-list--links > li { padding-block: 0; }
.line-list--links a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--sp-24);
  padding-block: var(--sp-20);
  color: inherit;
  text-decoration: none;
}
.line-list--links a > * { grid-column: 1; }
.line-list--links strong { font-size: var(--fs-faq); line-height: 1.25; letter-spacing: -0.01em; }
.line-list--links a > span { margin-top: var(--sp-4); }
.line-list--links a::after {
  content: "";
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 10px;
  height: 10px;
  border-top: 1.5px solid var(--grey-label);
  border-right: 1.5px solid var(--grey-label);
  rotate: 45deg;
  transition: translate var(--dur-fast) var(--ease), border-color var(--dur-fast);
}
.line-list--links a:hover::after { translate: 4px 0; border-color: var(--ink); }
.line-list--links a:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.stats--words .stat__label { max-width: 30ch; }
.stats--words .number,
.stats--words .t-number { font-size: var(--fs-headline); line-height: 1; white-space: normal; text-wrap: balance; font-variant-numeric: normal; }

.chart { display: grid; gap: var(--sp-16); margin-top: var(--space-block); }
.chart svg { width: 100%; height: auto; }
.chart__axis { display: grid; grid-template-columns: repeat(3, 1fr); padding-inline: 2.5%; font-size: var(--fs-label); font-weight: 500; color: var(--on-dark-body); }
.chart__axis span:nth-child(2) { text-align: center; }
.chart__axis span:nth-child(3) { text-align: right; }
.stats + .stack { margin-top: var(--sp-40); }

.img-card--photo::after { background: linear-gradient(0deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.72) 38%, rgba(10, 10, 10, 0.08) 66%, rgba(10, 10, 10, 0.16) 100%); }
.img-card__top { display: flex; flex-wrap: wrap; gap: var(--sp-8); }
.img-card__numbers--row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-24) var(--sp-32); }
.img-card__numbers .number { font-size: var(--fs-figure); font-variant-numeric: normal; }

/* ---- Floating UI cards -----------------------------------------------------
   White cards with ad metrics, slightly rotated (max 3deg, set with --r), positioned
   inside a .visual-panel or hero stage. They are illustrative: every group carries the
   caption "Illustrative example" (.ui-caption on images, .ui-caption--ink on light). */
.ui-card {
  position: absolute;
  z-index: 3;
  padding: var(--sp-16) var(--sp-20) 18px;
  border-radius: var(--radius-ui);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-float);
  rotate: var(--r, 0deg);
}
.ui-card__label { font-size: 14px; font-weight: 500; color: var(--grey-label); }
.ui-card__value {
  margin-top: 2px;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.ui-card__value--sm { font-size: 32px; }
.ui-card__note { margin-top: 6px; font-size: 14px; color: var(--grey-label); }
.ui-card__bar {
  display: block;
  height: 4px;
  margin-top: 14px;
  border-radius: 4px;
  background: var(--hairline);
}
.ui-card__bar span {
  display: block;
  width: var(--fill);
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
}
.ui-card__spark { width: 120px; height: 32px; margin-top: 8px; }

.ui-caption {
  position: absolute;
  z-index: 3;
  right: 16px;
  bottom: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.ui-caption--ink { color: var(--grey-label); }

/* Slow drift for floating cards (off under reduced motion) */
@keyframes drift {
  from { translate: 0 0; }
  to   { translate: 0 -10px; }
}
.float { animation: drift 5s ease-in-out infinite alternate; }
.float--slow { animation-duration: 7s; animation-delay: -2s; }

/* ---- Ad chrome (the fake ad interface on a phone or creator tile) ---------- */
.ad-chrome {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}
.ad-chrome__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
}
.ad-chrome__avatar img { width: 17px; height: auto; }
.ad-chrome__brand {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}
.ad-chrome__brand small { font-size: 12px; font-weight: 400; opacity: 0.85; }
.ad-chrome__cta {
  display: grid;
  place-items: center;
  width: 100%;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

/* ---- Video dialog (founder message). Opened by js/site.js, iframe added on click. ---- */
.video-dialog {
  width: min(1100px, 100% - 2 * var(--gutter));
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  overflow: visible;
}
.video-dialog::backdrop {
  background: rgba(10, 10, 10, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.video-dialog__frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: #000;
  box-shadow: var(--shadow-float);
}
.video-dialog__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-dialog__close {
  position: absolute;
  right: 0;
  bottom: calc(100% + 16px);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  min-height: 44px;
  padding: 0 var(--sp-20);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-pill);
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--dur-fast);
}
.video-dialog__close:hover { background: rgba(255, 255, 255, 0.28); }
html.is-modal { overflow: hidden; }

/* --------------------------------------------------------------------------
   6. Sections (homepage)
   Rules that belong to one homepage section. New pages should build from the
   components above and only add rules here when a section really needs its own.
   -------------------------------------------------------------------------- */

/* ---- Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: max(760px, 100svh);
  display: flex;
  color: var(--white);
  background: var(--fallback-blue); /* shown only while the image loads */
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 40%;
}
/* Legibility: dark gradient from the left */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.62) 0%, rgba(10, 10, 10, 0.34) 38%, rgba(10, 10, 10, 0) 64%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.28) 0%, rgba(10, 10, 10, 0) 30%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--sp-24);
}
.hero__copy {
  align-self: end;
  display: grid;
  justify-items: start;
  padding: calc(var(--header-h) + 64px) 0 clamp(64px, 9vh, 120px);
}
.hero h1 {
  margin-top: var(--sp-28);
  font-size: clamp(56px, 6.8vw, 168px);
  max-width: 9.6em;
}
.hero__sub {
  max-width: 30em;
  margin-top: var(--sp-32);
  font-size: var(--fs-body);
  color: rgba(255, 255, 255, 0.82);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-20) var(--sp-32);
  margin-top: var(--sp-40);
}

/* Phones: front one largest, two behind, all cropped by the section bottom.
   Offsets use cqw (percent of the stage width) so cards stay on the phones
   at every width. */
.hero__stage { position: relative; min-height: 560px; container-type: inline-size; }
.hero-phone {
  position: absolute;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(10, 10, 20, 0.45));
}
.hero-phone--front { z-index: 2; left: 24%; bottom: -20cqw; width: 56%; }
.hero-phone--left  { z-index: 1; left: -2%; bottom: -26cqw; width: 42%; }
.hero-phone--right { z-index: 1; right: -8%; bottom: -24cqw; width: 44%; }

.hero .ui-group { position: absolute; inset: 0; z-index: 3; }
.ui-card--roas { --r: -2.5deg; left: 2%; bottom: 42cqw; min-width: 230px; }
.ui-card--hook { --r: 2deg; right: 0; bottom: 70cqw; }
.hero .ui-caption { right: 0; bottom: 18px; }

/* ---- Logo strip ------------------------------------------------------------ */
.logos { padding-block: clamp(48px, 5vw, 72px); border-bottom: 1px solid var(--hairline); }
.logos__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 48px clamp(32px, 4vw, 72px);
}
.logos__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px clamp(20px, 2vw, 40px);
}
.logos__list img {
  width: auto;
  height: var(--h);
  filter: brightness(0); /* white and coloured files rendered black */
  opacity: 0.82;
}

/* ---- Proof numbers --------------------------------------------------------- */
/* Headline with its one sentence directly underneath, same column, left aligned */
.results__head { display: grid; justify-items: start; gap: 28px; }
.results__head .headline { max-width: 24ch; }
.results__head .body { max-width: 46ch; }
.results__caption { margin-top: var(--sp-20); }

/* ---- Problem (dark, images in greyscale) ----------------------------------- */
/* Calm, even 2 x 2: both columns start at the same line, equal row heights,
   a hairline above every item, the image as the anchor next to its quote. */
.pains {
  --pain-img: clamp(112px, 10.5vw, 144px);   /* 4:5, so 140 to 180 px tall */
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 0 clamp(40px, 6vw, 120px);
  margin-top: var(--space-block);
}
.pain {
  display: grid;
  grid-template-columns: var(--pain-img) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 2.6vw, 44px);
  padding-block: var(--sp-48);
  border-top: 1px solid var(--on-dark-line);
}

.pain__img {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-ui);
  background: #222;
}
.pain__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) blur(2px);
  scale: 1.12;
}
.pain__text {
  max-width: 17em;
  font-size: clamp(28px, 2.7vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.answer-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 3vw, 48px);
  margin-top: var(--sp-48);
  padding: clamp(32px, 4.5vw, 72px);
  border-radius: var(--radius-card);
  background: var(--white);
  color: var(--ink);
}
.answer-card__mark { width: clamp(30px, 3vw, 48px); height: auto; margin-top: 6px; }
.answer-card p {
  max-width: 34ch;
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

/* ---- Services: visuals for the three rows ---------------------------------- */
/* Creative strategy: brief cards */
.brief-card { width: min(46%, 300px); }
.brief-card__text {
  margin-top: var(--sp-4);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.brief-card--angle { --r: -3deg; left: 7%; top: 10%; }
.brief-card--hook  { --r: 2deg; right: 7%; top: 18%; }
.brief-card--board { --r: -1deg; left: 26%; bottom: 9%; width: min(54%, 360px); }
.chip {
  display: inline-block;
  margin-top: var(--sp-12);
  padding: 5px var(--sp-12);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
}
.storyboard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.storyboard li { display: grid; gap: 6px; font-size: 13px; color: var(--grey-body); }
.storyboard img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
}
.storyboard li { overflow: hidden; }

/* Ad management: phone with ad chrome */
.ad-phone {
  position: absolute;
  top: 6%;
  left: 40%;
  height: 112%;
  aspect-ratio: 493 / 1119;
  translate: -50% 0;
  filter: drop-shadow(0 30px 50px rgba(10, 10, 30, 0.45));
}
.ad-phone__img { width: 100%; height: 100%; }
.ad-phone .ad-chrome--top { top: 8%; left: 14%; right: 8%; }
.ad-phone .ad-chrome--bottom { top: 66%; left: 14%; right: 8%; }
.ui-card--roas-panel { --r: 2.5deg; right: 9%; top: 34%; min-width: 210px; }

/* Ecom consulting: funnel of white bars, each step narrower */
.funnel {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: var(--sp-20);
  padding: 8% 10%;
}
.funnel__steps { display: grid; justify-items: center; gap: 10px; width: 100%; }
.funnel__steps li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--w);
  min-height: clamp(44px, 4.4vw, 64px);
  padding: 0 var(--sp-16);
  border-radius: var(--radius-pill);
  background: var(--white);
  box-shadow: var(--shadow-float);
  font-size: clamp(15px, 1.25vw, 20px);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.funnel__steps li:last-child { background: var(--ink); color: var(--white); }

/* ---- Creator Army: hand of cards ------------------------------------------- */
.army {
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: var(--white);
  background: var(--fallback-violet);
}
.army__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.army__inner {
  position: relative;
  display: grid;
  min-height: clamp(780px, 66vw, 1120px);
}
.army__copy {
  position: relative;
  z-index: 2;
  align-self: start;
  display: grid;
  justify-items: start;
  max-width: 640px;
  padding-top: var(--space-section);
}
.army h2 { margin-top: 28px; font-size: clamp(56px, 6.4vw, 132px); max-width: 7.5em; }
.army .body { max-width: 30em; margin-top: 32px; }
.army__stats { display: flex; flex-wrap: wrap; gap: 24px clamp(40px, 5vw, 80px); margin: 40px 0 48px; }
.army__stats > div { display: grid; gap: 10px; }
.army .stat__label { color: var(--on-dark-body); max-width: 16ch; }

/* The fan. Each card turns around a pivot far below it.
   --cw is the card width, --hand-x the horizontal centre of the hand as a share
   of the content width. Both are set per width so the arc never reaches the copy. */
.fan {
  --cw: clamp(150px, 12vw, 190px);
  --pivot: 230%;                       /* distance of the pivot, in card heights */
  --hand-x: 78%;
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}
.fan__hand {
  position: absolute;
  left: var(--hand-x);
  bottom: calc(var(--cw) * 0.08);
  width: var(--cw);
  aspect-ratio: 9 / 16;
  translate: -50% 0;
}
.fan__card,
.fan__winner {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 5px solid var(--white);
  border-radius: 22px;
  background: #3a2a7a;
  box-shadow: 0 20px 50px rgba(10, 5, 40, 0.35);
}
.fan__card {
  transform-origin: 50% var(--pivot);
  rotate: calc(var(--a) * 1deg);
}
.fan__card img,
.fan__winner > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fan__winner {
  z-index: 5;
  inset: auto;
  left: 50%;
  bottom: calc(var(--cw) * 0.4);
  width: calc(var(--cw) * 1.55);
  aspect-ratio: 9 / 16;
  translate: -50% 0;
  border-width: 6px;
  box-shadow: 0 30px 80px rgba(10, 5, 40, 0.5);
  container-type: inline-size;         /* ad chrome scales with the card (cqw) */
}
.fan__winner .ad-chrome { gap: 3cqw; }
.fan__winner .ad-chrome--top { top: 5cqw; left: 5cqw; right: 5cqw; }
.fan__winner .ad-chrome--bottom { left: 5cqw; right: 5cqw; bottom: 5cqw; }
.fan__winner .ad-chrome__avatar { width: 12.5cqw; height: 12.5cqw; }
.fan__winner .ad-chrome__avatar img { width: 6.5cqw; height: auto; }
.fan__winner .ad-chrome__brand { font-size: 5.2cqw; }
.fan__winner .ad-chrome__brand small { font-size: 4.4cqw; }
.fan__winner .ad-chrome__cta { height: 14cqw; font-size: 5.2cqw; }
.fan__winner .winner-pill { padding: 2.2cqw 4.2cqw; font-size: 4.8cqw; }
.winner-pill {
  margin-left: auto;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
}

/* ---- Case studies: the three cards of the homepage grid -------------------- */
.case--lead { grid-column: 1 / span 7; grid-row: 1 / span 2; min-height: 760px; }
.case--fintech { grid-column: 8 / span 5; grid-row: 1; }
.case--ngo { grid-column: 8 / span 5; grid-row: 2; }

.case--lead .case__bg { scale: -1.12 1.12; }   /* pre-blurred file, mirrored */
.case--fintech .case__bg { scale: -1.25 1.25; }
.case--ngo .case__bg { object-position: 85% 50%; }
.case--lead:hover .case__bg { scale: -1.18 1.18; }
.case--fintech:hover .case__bg { scale: -1.31 1.31; }
.case--fintech .case__number { font-size: clamp(40px, 3.6vw, 64px); }

/* ---- Process: ring --------------------------------------------------------- */
.process .section-head { margin-bottom: var(--space-block); }

.loop {
  --ring: clamp(300px, 30vw, 520px);
  display: grid;
}
.loop__ring,
.steps { grid-area: 1 / 1; }
.loop__ring {
  justify-self: center;
  width: var(--ring);
  height: auto;
  overflow: visible;
}
.loop__arrow { fill: var(--ink); }
.loop__node circle { fill: var(--ink); stroke: var(--white); stroke-width: 4; }
.loop__node text {
  fill: var(--white);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: central;
}

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(var(--ring) + 2 * clamp(24px, 3vw, 64px)) minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  min-height: var(--ring);
}
.step { display: grid; gap: 14px; max-width: 380px; }
.step--1 { grid-column: 1; grid-row: 1; align-self: start; justify-self: end; text-align: right; }
.step--3 { grid-column: 1; grid-row: 2; align-self: end; justify-self: end; text-align: right; }
.step--2 { grid-column: 3; grid-row: 1 / span 2; align-self: center; justify-self: start; }
.step .title { display: flex; align-items: center; gap: 14px; }
.step--1 .title,
.step--3 .title { justify-content: flex-start; flex-direction: row-reverse; }
.step__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}

/* ---- Founder --------------------------------------------------------------- */
.founder__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 48px clamp(24px, 3vw, 48px);
}
.portrait {
  grid-column: 1 / span 5;
  justify-self: start;
  width: 100%;
  max-width: 560px;            /* the source photo is only 640 px wide */
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  background: #1C1C1C;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 47% 30%; }

.founder__copy { grid-column: 7 / span 6; display: grid; justify-items: start; }
.founder .label { color: var(--on-dark-muted); }
.founder__quote { margin-top: 28px; }
.founder__quote p {
  font-size: var(--fs-headline);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.founder__name {
  display: grid;
  gap: var(--sp-4);
  margin-top: 36px;
  font-size: var(--fs-label);
  font-weight: 600;
}
.founder__name span { font-weight: 400; color: var(--on-dark-body); }
.founder__copy > .body { margin-top: 32px; max-width: 32em; }
.founder__video { display: grid; justify-items: start; gap: 16px; margin-top: 40px; }
.founder__video .caption { max-width: 44ch; }


/* ---- FAQ: two column layout ------------------------------------------------ */
.faq__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 48px clamp(24px, 3vw, 48px);
}
.faq__title { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 40px); max-width: 9ch; }
.faq__list { grid-column: 6 / span 7; }

/* --------------------------------------------------------------------------
   7. Utilities
   A few helpers. Prefer components over utilities.
   -------------------------------------------------------------------------- */
/* Visually hidden, still read by screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.on-dark { color: var(--white); }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.measure { max-width: 46ch; }
.measure--wide { max-width: var(--measure); }
.mt-block { margin-top: var(--space-block); }
.mt-item { margin-top: var(--space-item); }
.stack > * + * { margin-top: var(--stack-gap, var(--sp-20)); }

/* Scroll reveal: only hides content when JS is running (html.js). Add data-reveal to a block. */
.js [data-reveal] {
  opacity: 0;
  translate: 0 28px;
  transition: opacity var(--dur-reveal) var(--ease), translate var(--dur-reveal) var(--ease);
}
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* --------------------------------------------------------------------------
   8. Responsive
   Large screens, small laptops (1180), tablet and phone (960), phone (560).
   -------------------------------------------------------------------------- */

/* Large screens: let the hand of cards and the hero breathe */
@media (min-width: 1600px) {
  .fan { --cw: clamp(190px, 13vw, 260px); }
  .fan__card:first-child { display: none; }
  .army__copy { max-width: 760px; }
}

/* Small laptops and tablets */
@media (max-width: 1180px) {
  .site-nav ul { gap: 24px; }
  .split__text,
  .service__text { grid-column: 1 / span 5; }
  .split--flip .split__text,
  .service--flip .service__text { grid-column: 8 / span 5; }

  /* Four stats: two by two */
  .stats--4 { --cols: 2; }
  .stats--4 .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stats--4 .stat:nth-child(-n+2) { padding-bottom: var(--sp-40); }
  .stats--4 .stat:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .stats--4.stats--dark .stat:nth-child(n+3) { border-top-color: var(--on-dark-line); }
}

/* Tablet and phone: one column, re-composed visuals */
@media (max-width: 960px) {
  :root { --header-h: 68px; }

  .site-nav { display: none; }
  .menu-toggle { display: grid; }
  .site-header__bar { gap: 12px; }
  .site-header__logo img { height: 26px; }
  .btn--header { min-height: 40px; padding: 0 16px; font-size: 14px; }

  /* Hero: copy first, then a smaller stage with two phones */
  .hero { min-height: 0; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero__copy { padding: calc(var(--header-h) + 48px) 0 48px; }
  .hero h1 { font-size: clamp(52px, 11vw, 96px); }
  .hero::after {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.5) 0%, rgba(10, 10, 10, 0.3) 55%, rgba(10, 10, 10, 0) 80%);
  }
  .hero__bg { object-position: 72% 50%; }
  .hero__stage { min-height: min(118vw, 620px); width: min(100%, 520px); justify-self: center; }
  .hero-phone--left { display: none; }
  .hero-phone--front { left: 14%; width: 60%; bottom: -22cqw; }
  .hero-phone--right { right: -6%; width: 44%; bottom: -34cqw; }
  .ui-card--roas { left: -1%; bottom: 26cqw; min-width: 0; }
  .ui-card--hook { right: -1%; bottom: 80cqw; }

  /* Logos centred and wrapping */
  .logos__inner { grid-template-columns: 1fr; justify-items: center; gap: 32px; text-align: center; }
  .logos__list { justify-content: center; gap: 28px 36px; }
  .logos__list img { height: calc(var(--h) * 0.85); }

  .results__head { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat,
  .stat:first-child { padding: 32px 0; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--hairline); }
  .stats--4 .stat:nth-child(n) { padding: var(--sp-32) 0; border-left: 0; }
  .stats--4 .stat:nth-child(n+2) { border-top: 1px solid var(--hairline); }
  .stats--dark.stats--4 .stat:nth-child(n+2) { border-top-color: var(--on-dark-line); }
  .quote-card { grid-template-columns: 1fr; min-height: 0; }
  .quote-card__logo { grid-column: 1; grid-row: auto; order: -1; }

  .pains { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .pain { padding-block: 32px; }
  .pain__text { max-width: 20em; }

  .split,
  .split--flip,
  .service,
  .service--flip { grid-template-columns: 1fr; }
  .split__text,
  .split__visual,
  .split--flip .split__text,
  .split--flip .split__visual,
  .service__text,
  .service__visual,
  .service--flip .service__text,
  .service--flip .service__visual { grid-column: 1; grid-row: auto; }
  .visual-panel { aspect-ratio: 4 / 4.2; }

  /* Creator Army: copy, then a smaller fan below it */
  .army__inner { display: block; min-height: 0; }
  .army__copy { padding-top: var(--space-section); max-width: none; }
  .fan {
    --cw: clamp(124px, 31vw, 190px);
    --pivot: 220%;
    position: relative;
    inset: auto;
    width: 100%;
    height: calc(var(--cw) * 3.4);
    margin-top: var(--sp-32);
  }
  .fan__hand { left: 50%; bottom: 0; }
  .fan__winner { width: calc(var(--cw) * 1.65); bottom: calc(var(--cw) * 0.3); }
  .fan__card--outer { display: none; }

  .cases__grid,
  .card-grid--feature,
  .card-grid--2,
  .card-grid--3 { grid-template-columns: 1fr; }
  .case--lead,
  .case--fintech,
  .case--ngo,
  .card-grid--feature > :nth-child(n) { grid-column: 1; grid-row: auto; min-height: 420px; }
  .case--lead,
  .card-grid--feature > :nth-child(1) { min-height: 560px; }

  .loop { --ring: min(78vw, 360px); }
  .loop__ring,
  .steps { grid-area: auto; }
  .steps {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: var(--sp-40);
    min-height: 0;
    margin-top: var(--sp-56);
  }
  .step--1,
  .step--2,
  .step--3 { grid-column: 1; grid-row: auto; justify-self: start; text-align: left; max-width: 34em; }
  .step--1 .title,
  .step--3 .title { flex-direction: row; justify-content: flex-start; }

  .founder__grid { grid-template-columns: 1fr; }
  .portrait,
  .founder__copy { grid-column: 1; }
  .portrait { max-width: 440px; }

  .faq__grid { grid-template-columns: 1fr; gap: 40px; }
  .faq__title,
  .faq__list { grid-column: 1; }
  .faq__title { position: static; }
  .faq-list details p,
  .faq__list details p { padding-right: 0; }

  .final,
  .cta-band { min-height: max(620px, 88svh); }
  .final__bg,
  .cta-band__bg { object-position: 60% 50%; }
  .final::after,
  .cta-band::after { background: linear-gradient(0deg, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.25) 50%, rgba(10, 10, 10, 0) 75%); }

  /* Page hero, text pages, documents */
  .page-hero--image { min-height: max(520px, 72svh); }
  .page-hero--image::after { background: linear-gradient(0deg, rgba(10, 10, 10, 0.62) 0%, rgba(10, 10, 10, 0.3) 55%, rgba(10, 10, 10, 0.12) 100%); }
  .page-hero__bg { object-position: var(--focus-mobile, 72% 50%); }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-layout__aside,
  .doc-layout__main { grid-column: 1; }
  .doc-layout__aside { position: static; }
  .toc ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .img-card--lg { min-height: 560px; }

  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }

  /* Case study parts */
  .page-hero--split .page-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .page-hero--split .page-hero__copy,
  .page-hero--split .page-hero__visual { grid-column: 1; }
  .text-split,
  .step-rows__item { grid-template-columns: minmax(0, 1fr); }
  .text-split__head,
  .text-split__body,
  .step-rows__head,
  .step-rows__body { grid-column: 1; }
  .text-split__head { position: static; }
  .step-rows__item { padding-block: var(--sp-40); }
}

/* Phones */
@media (max-width: 560px) {
  .btn { width: 100%; }
  .btn--header { width: auto; }
  .hero__actions { width: 100%; justify-content: center; }
  .hero .ui-caption { bottom: 10px; }
  .ui-card { padding: 12px 14px 14px; }
  .ui-card__value { font-size: 34px; }
  .ui-card__value--sm { font-size: 26px; }
  .ui-card__note { font-size: 13px; }
  .ui-card__spark { width: 90px; height: 24px; }

  .visual-panel { aspect-ratio: 4 / 5; }
  .brief-card { width: 58%; }
  .brief-card--angle { left: 5%; top: 5%; }
  .brief-card--hook { right: 5%; top: 27%; width: 56%; }
  .brief-card--board { left: 8%; bottom: 6%; width: 74%; }
  .chip { display: none; }

  .ad-phone { left: 36%; height: 108%; }
  .ui-card--roas-panel { right: 5%; min-width: 0; }

  .funnel { padding: 8% 6%; }

  .answer-card { grid-template-columns: 1fr; }
  .army__stats { gap: var(--sp-24) var(--sp-32); }

  .page-hero__actions { width: 100%; }
  .toc ul { grid-template-columns: 1fr; }
  .form-card iframe { min-height: 420px; }
}

/* --------------------------------------------------------------------------
   9. Reduced motion
   No drift, no reveal, no hover lift, no zoom. Content is always visible.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js [data-reveal] { opacity: 1; translate: none; }
  .btn:hover { translate: none; }
}
