/* IAMX tokens. The only file in the site allowed raw colour, size and spacing values.
   Source: Claude Design round 2, turn A (design/rounds/2026-09-24-iamx-system-tokens-reply.md),
   on top of the round 1 Variable palette. The dark block under prefers-color-scheme repeats
   the data-theme dark block, so the site follows the system until a theme is chosen.
   npm run check reads the pair comments below and fails any pair under its minimum, in light and dark. */

/* WOFF2 since round 4 (1 Oct), converted locally from the WOFF files with fontTools, whose Brotli step ran on Node's
   own zlib: no download. Same glyphs and tables as the WOFF, 140 KB against 171 KB. */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/SchibstedGrotesk-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/SchibstedGrotesk-Italic-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* Text, 4.5:1 */
/* pair: text on bg >= 4.5 */
/* pair: text on surface >= 4.5 */
/* pair: text on surface-2 >= 4.5 */
/* pair: muted on bg >= 4.5 */
/* pair: muted on surface >= 4.5 */
/* pair: muted on surface-2 >= 4.5 */
/* pair: accent on bg >= 4.5 */
/* pair: accent on surface >= 4.5 */
/* pair: accent on surface-2 >= 4.5 */
/* pair: accent-hover on bg >= 4.5 */
/* pair: accent-hover on surface >= 4.5 */
/* pair: on-accent on accent >= 4.5 */
/* pair: on-accent on accent-hover >= 4.5 */
/* pair: on-accent on accent-pressed >= 4.5 */
/* pair: on-disabled on disabled >= 4.5 */
/* pair: error on bg >= 4.5 */
/* pair: error on surface >= 4.5 */
/* pair: success on bg >= 4.5 */
/* pair: success on surface >= 4.5 */
/* Control edges and focus rings, 3:1 */
/* pair: control-border on bg >= 3 */
/* pair: control-border on surface >= 3 */
/* pair: control-border on surface-2 >= 3 */
/* pair: error on surface-2 >= 3 */
/* pair: focus on bg >= 3 */
/* pair: focus on surface >= 3 */
/* pair: focus on surface-2 >= 3 */
/* The stage: the 3D story is always the dark set, in both schemes */
/* pair: stage-text on stage-bg >= 4.5 */
/* pair: stage-muted on stage-bg >= 4.5 */
/* pair: stage-accent on stage-bg >= 4.5 */
/* pair: stage-on-accent on stage-accent >= 4.5 */
/* pair: stage-on-accent on stage-accent-hover >= 4.5 */
/* pair: stage-focus on stage-bg >= 3 */
/* The rules between the services on the stage's ground (round 5 A2, 12 Oct): a divider, not a control edge or a carrier of
   meaning (the names separate the rows; hover and focus turn the rule to stage-text and underline the name), so its floor
   is only that it shows, the same step the dark page's --border takes on its ground. */
/* pair: stage-border on stage-bg >= 1.4 */
/* The band that opens a service page and About: the stage's dark in light, one surface step up in dark */
/* pair: stage-text on band-bg >= 4.5 */
/* pair: stage-muted on band-bg >= 4.5 */
/* pair: stage-accent on band-bg >= 4.5 */
/* pair: stage-focus on band-bg >= 3 */

:root {
  /* Colour: fixed roles. The accent is ink since 30 Sep (owner): near-black on the light theme, near-white on the dark
     theme and on the stage. Cobalt and periwinkle are retired. Chrome is the 3D X's material only, never a UI colour,
     because a chrome grey fails text contrast. */
  --bg: #F4F5F2;
  --surface: #FFFFFF;
  --text: #111418;
  --muted: #4E5560;
  --accent: #111418;
  --on-accent: #FFFFFF;
  --border: #D5D8DC;
  --focus: #111418;
  /* Colour: added roles */
  --accent-hover: #2E343C;
  --accent-pressed: #05070A;
  --surface-2: #EBECE8;
  --control-border: #747B85;
  --disabled: #E3E5E3;
  --on-disabled: #5C636D;
  --error: #B3261E;
  --success: #1B7340;

  /* Type */
  --font-sans: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 700;
  /* A service name drawn heavier while it is hovered or focused: the variable face moves between the two. */
  --weight-heavy: 800;
  --step-display: clamp(3.5rem, 0.7143rem + 11.4286vw, 11rem);
  --step-slot: clamp(2rem, 1.0714rem + 3.8095vw, 4.5rem);
  --step-h1: clamp(2.25rem, 1.6rem + 2.6667vw, 4rem);
  --step-h2: clamp(1.75rem, 1.4714rem + 1.1429vw, 2.5rem);
  --step-lead: clamp(1.25rem, 1.0643rem + 0.7619vw, 1.75rem);
  --step-mark: clamp(1.25rem, 1.1571rem + 0.381vw, 1.5rem);
  --step-body: clamp(1.0625rem, 1.0393rem + 0.0952vw, 1.125rem);
  --step-button: 1rem;
  --step-label: 0.9375rem;
  --step-caption: 0.8125rem;
  /* A step's numeral beside a step at h2: about 20px, so the number reads as part of the step, not a footnote */
  --step-index: 1.25rem;
  --lh-display: 0.95;
  --lh-slot: 1;
  --lh-h1: 1.05;
  --lh-h2: 1.15;
  --lh-lead: 1.35;
  --lh-body: 1.55;
  --lh-ui: 1.25;
  --lh-label: 1.4;
  --track-display: -0.03em;
  --track-slot: -0.025em;
  --track-h1: -0.02em;
  --track-h2: -0.015em;
  --track-lead: -0.01em;
  --track-mark: -0.01em;
  --track-body: 0;
  --track-label: 0.01em;
  --track-mono: 0.02em;
  --measure: 38rem;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  /* The logo sits in running type: its height and baseline drop are fractions of the font around it. */
  --logo-h: 0.954em;
  --logo-drop: -0.02em;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --space-11: 192px;

  /* Radius */
  --radius-none: 0;
  --radius-control: 8px;
  --radius-icon: 20%;
  --radius-round: 50%;

  /* Borders */
  --border-divider: 1px;
  --border-control: 1px;
  --border-error: 2px;

  /* Focus */
  --focus-width: 3px;
  --focus-offset: 2px;

  /* Shadow */
  --shadow: none;

  /* Sizes */
  --control-h: 48px;
  /* The contact form's one choice (owner, 2 Oct): a round box and the ring of surface left around its checked dot. */
  --choice-size: 24px;
  --choice-ring: 5px;
  --field-lg-h: 9rem;
  --header-h: 64px;
  --z-header: 10;

  /* Breakpoints, for reference: @media cannot read custom properties, so the literals repeat below */
  --bp-sm: 390px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1440px;

  /* Grid, 390 first */
  --grid-columns: 4;
  --grid-gutter: 16px;
  --grid-margin: 20px;
  --content-max: 1312px;

  /* Motion */
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-header: 240ms;
  --dur-slot: 360ms;
  /* A rule or a line figure drawing itself in once as it comes on screen (Services, round 5 A2, 12 Oct), on
     --ease-enter. 900 ms on --ease-standard until the motion review of 12 Oct: that curve had drawn about 90% of a
     stroke by 40% of the time, so the rest was a creep. Not below 500 ms; the strokes are long. */
  --dur-draw: 640ms;
  /* The closing band's canvas fading in over its still (round 5 A2 phase 2, motion review 12 Oct). */
  --dur-fade: 160ms;
  --ease-settle: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-enter: cubic-bezier(0, 0, 0.2, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
  /* The story: nine stops (the eight services and the blank) at 6/9 of the six-stop story's 80svh each, so the
     pinned scroll stays the length it was (owner, 30 Sep). --slot-stops must equal the page's slot units; npm run
     check fails when they differ, because CSS cannot count them and the track needs its height before any script. */
  --slot-scroll-per-stop: 53.33svh;
  --slot-stops: 9;

  /* Site build: derived values the board used inline, named here so site.css holds no raw value */
  --index-num-w: 2.5rem;

  /* The stage: fixed dark set for the 3D story. It does not flip with the theme.
     --stage-light is the light beyond the X-shaped door, the light page's own background.
     The scene reads these at runtime (scripts/hero.js), so the canvas and the CSS agree. */
  --stage-bg: #0C0E12;
  --stage-text: #F1F2EF;
  --stage-muted: #A3AAB5;
  --stage-accent: #FFFFFF;
  --stage-accent-hover: #D2D5CF;
  --stage-on-accent: #0C0E12;
  --stage-focus: #FFFFFF;
  --stage-border: #2A303A;
  /* The band at the top of a service page and About. Not a stage token: in dark it lifts one surface step, because the
     stage's own dark is the dark page's background and the band would vanish into it (round 4 review, 1 Oct). */
  --band-bg: var(--stage-bg);
  --stage-light: #F4F5F2;
  --stage-scrim: rgba(12, 14, 18, 0.84);
  --stage-scrim-mid: rgba(12, 14, 18, 0.5);
  --stage-scrim-0: rgba(12, 14, 18, 0);
  /* A soft dark halo behind the stage's words, so a label keeps its contrast where lit stone passes behind it
     (stop 4's slab face measured about #50) without the side fade dimming the X. */
  --stage-text-halo: 0 0 0.3em rgba(12, 14, 18, 0.9), 0 0 0.9em rgba(12, 14, 18, 0.7);

  /* The story's layout. The stage lets go the moment the last stop ends and scrolls away onto Services, which since
     round 5 A2 (12 Oct) sits on the stage's own ground, so no stretch of scroll is a blank screen. (Until then, on the
     light page, the camera walked through the door into the light page as the stage left; scripts/hero.js.) */
  --stage-copy-w: min(44vw, 39rem);
  --slot-top: 29svh;
  --scrim-top-h: 18svh;
  --scrim-side-w: calc(var(--stage-copy-w) + var(--grid-margin) + 4vw);
  --scrim-bottom-h: 50svh;
  --scrim-bottom-mid: 28%;
  --scrim-foot-h: 14svh;
  --stage-pad-bottom: var(--space-7);

  /* Masked line reveal: room inside each mask for italic overhang and descenders */
  --mask-pad-x: 0.16em;
  --mask-pad-y: 0.18em;
  --mask-travel: 115%;
  --slot-stagger: 26ms;
  --slot-enter-delay: 90ms;
  --slot-line-delay: 120ms;
  --slot-blank-w: 3em;
  --slot-blank-gap: 0.24em;
  --slot-blank-rule: 0.07em;
  --slot-shrink-delay: 160ms;
  --dur-reveal: 760ms;
  --reveal-delay-1: 80ms;
  --reveal-delay-2: 300ms;
  --reveal-delay-3: 440ms;

  /* The closing band's X from 1024 (round 5 A2 phase 2, 12 Oct): most of a screen, capped on a tall one. */
  --x-band-h: min(76svh, 44rem);

  /* Progress rail */
  --rail-mark-w: 12px;
  --rail-mark-on-w: 40px;
  --rail-mark-h: 3px;
  --rail-gap: 8px;

  /* The "Your X" field: while it has focus, a large faint X lies in its corner, cropped by the field's right and lower
     edges, the X of light the scene's open door throws on its floor. Decorative; text contrast is unaffected. */
  --x-echo-size: 15rem;
  --x-echo-crop-x: 5.5rem;
  --x-echo-crop-y: 6.5rem;
  --x-echo-tint: rgba(17, 20, 24, 0.06);

  color-scheme: light;
}

@media (min-width: 768px) {
  :root {
    --grid-columns: 8;
    --grid-gutter: 20px;
    --grid-margin: 40px;
  }
}

@media (min-width: 1024px) {
  :root {
    --grid-columns: 12;
    --grid-gutter: 24px;
    --grid-margin: 48px;
    --header-h: 72px;
  }
}

@media (min-width: 1440px) {
  :root {
    --grid-margin: 64px;
  }
}

:root[data-theme="dark"] {
  --bg: #0C0E12;
  --surface: #161A20;
  --text: #F1F2EF;
  --muted: #A3AAB5;
  --accent: #F1F2EF;
  --on-accent: #0C0E12;
  --border: #2A303A;
  --focus: #F1F2EF;
  --accent-hover: #D2D5CF;
  --accent-pressed: #B9BDB6;
  --surface-2: #1F242C;
  --control-border: #7C8490;
  --disabled: #262B33;
  --on-disabled: #A0A7B1;
  --error: #FF8A80;
  --success: #5FD08A;
  --x-echo-tint: rgba(241, 242, 239, 0.08);
  --band-bg: #161A20;
  /* premium-five: the dotted world under Where, light ink at low alpha on the dark band. */
  --map-dot: rgba(241, 242, 239, 0.3);

  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C0E12;
    --surface: #161A20;
    --text: #F1F2EF;
    --muted: #A3AAB5;
    --accent: #F1F2EF;
    --on-accent: #0C0E12;
    --border: #2A303A;
    --focus: #F1F2EF;
    --accent-hover: #D2D5CF;
    --accent-pressed: #B9BDB6;
    --surface-2: #1F242C;
    --control-border: #7C8490;
    --disabled: #262B33;
    --on-disabled: #A0A7B1;
    --error: #FF8A80;
    --success: #5FD08A;
    --x-echo-tint: rgba(241, 242, 239, 0.08);
    --band-bg: #161A20;
    /* premium-five: the dotted world under Where, light ink at low alpha on the dark band. */
    --map-dot: rgba(241, 242, 239, 0.3);

    color-scheme: dark;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-header: 0ms;
    --dur-slot: 0ms;
    --dur-reveal: 0ms;
    --dur-draw: 0ms;
    --dur-fade: 0ms;
  }
}

/* ==== premium-four (13 Oct): tokens for the fourth premium pass. ==========================================
   docs/superpowers/decisions/2026-10-13-premium-pass-four.md. The close of the home page (For partners, Contact and the
   footer) stands on the stage's dark ground in both schemes, like Services, so every new colour is a stage token: fixed,
   never flipped by the theme. The glows are light at low alpha over that ground; they carry nothing, so they hold no
   contrast pair. Lengths are the pass's type scale, rhythm and the ported components' own measures. */
/* pair: stage-text on stage-surface >= 4.5 */
/* pair: stage-muted on stage-surface >= 4.5 */
/* pair: stage-error on stage-bg >= 4.5 */
/* pair: stage-error on stage-surface >= 4.5 */
/* pair: stage-success on stage-bg >= 4.5 */
/* pair: stage-success on stage-surface >= 4.5 */
/* pair: stage-on-disabled on stage-disabled >= 4.5 */
/* pair: stage-on-accent on stage-accent-pressed >= 4.5 */
/* pair: stage-control-border on stage-bg >= 3 */
/* pair: stage-control-border on stage-surface >= 3 */
/* pair: stage-focus on stage-surface >= 3 */
:root {
  --stage-surface: #14181E;
  --stage-surface-2: #1A1F26;
  --stage-control-border: #7C8490;
  --stage-accent-pressed: #B9BDB6;
  --stage-disabled: #262B33;
  --stage-on-disabled: #A0A7B1;
  --stage-error: #FF8A80;
  --stage-success: #5FD08A;
  /* The footer's giant wordmark at rest: a step above the ground, so the beam reads as light crossing it. A logo, so
     it is exempt from text contrast (WCAG 1.4.3), and its accessible name is the svg's own "IAMX". */
  --stage-wordmark: #343B46;
  --stage-glow-strong: rgba(241, 242, 239, 0.16);
  --stage-glow: rgba(241, 242, 239, 0.08);
  --stage-glow-soft: rgba(241, 242, 239, 0.04);
  --stage-glow-none: rgba(241, 242, 239, 0);
  /* The spotlight over For partners, a step brighter than the glows elsewhere so its beams read (review, 13 Oct). */
  --spot-glow-strong: rgba(241, 242, 239, 0.22);
  --spot-glow: rgba(241, 242, 239, 0.11);
  --spot-glow-soft: rgba(241, 242, 239, 0.05);

  /* Section titles on the home page: display-scale, regular weight, tight. 48 px on a phone, about 123 px at 1440. */
  --step-section: clamp(3rem, 1.2rem + 7.2vw, 9rem);
  --lh-section: 0.94;
  --track-section: -0.04em;
  /* How it works: each step's sentence and its numeral. */
  --step-step: clamp(1.75rem, 1rem + 2.6vw, 3.5rem);
  --step-numeral: clamp(1rem, 0.8rem + 0.6vw, 1.25rem);
  --step-block-h: 56svh;
  --step-panel-h: min(70svh, 40rem);
  --step-x-size: clamp(10rem, 4rem + 16vw, 22rem);
  --step-dim: 0.5;
  /* Industries as a bento: the row height and the large tile's figure. */
  --bento-row: clamp(12rem, 8rem + 7vw, 17rem);
  --bento-figure-lg: min(100%, 34rem);
  --bento-stagger: 70ms;
  /* The mask that section titles rise through, and its timing. */
  --dur-mask: 820ms;
  /* Track record's words, read in as the line crosses the screen: the floor keeps unread words above 3:1 for large text. */
  --reveal-floor: 0.5;
  /* Aceternity Spotlight (spotlight-new), at its own defaults. */
  --spot-w: 560px;
  --spot-w-small: 240px;
  --spot-h: 1380px;
  --spot-y: -350px;
  --spot-x: 100px;
  --dur-spot: 7s;
  /* Aceternity Input's pointer glow radius, and the form's large controls. */
  --glow-r: 100px;
  --control-h-lg: 64px;
  --field-xl-h: 12rem;
  /* The footer's beam (21st.dev Beam Wordmark Footer): its drift time and its band. */
  --dur-beam: 16s;
  --beam-w: 46%;
  --wordmark-crop: -5.4%;
}
/* ==== end premium-four tokens ==== */

/* ==== premium-five (14 Oct): tokens for Who it is for and Where. ==========================================
   docs/superpowers/decisions/2026-10-14-premium-pass-five.md. The map's dots are ink at low alpha on the band, like
   Aceternity World Map's own 25% dots; they carry nothing, so they hold no contrast pair. South Africa's dots and the
   reach pulse are the text colour itself. */
:root {
  /* The dotted world: land dots, the box's shape (scripts/build-world-map.mjs: 800 by 324 map units). */
  --map-dot: rgba(17, 20, 24, 0.26);
  --map-ratio: 800 / 324;
  /* On a phone the map is drawn this much wider than its column, shifted so South Africa sits near the middle. */
  --map-phone-w: 180%;
  --map-phone-shift: -46%;
  /* South Africa's middle as a share of the map's box, printed by scripts/build-world-map.mjs. scripts/check.mjs rule 11
     holds both inside South Africa. */
  --reach-x: 57.01%;
  --reach-y: 78.53%;
  /* The reach pulse: the widest ring as a share of the map's width, its stroke, its glow, and its timing. */
  --reach-ring: 26%;
  --reach-ring-w: 1.5px;
  --reach-core: 11%;
  --reach-glow: rgba(17, 20, 24, 0.2);
  --reach-glow-none: rgba(17, 20, 24, 0);
  --dur-reach: 5.4s;
  --reach-stagger: 1.8s;
  --dur-map-in: 1100ms;
  /* The audiences: each name at display scale in bold, the panel's top rule, the figure's widest size, the stagger. */
  --step-audience: clamp(2.25rem, 1.2rem + 3vw, 4.5rem);
  --audience-rule-h: 2px;
  /* The figure frame: the figure drawn 118% wide (below) is 0.8 x 1.18 of the frame width tall, so the tower's frame is
     400 / 378 to hold it whole; the office's is cut down to the office. */
  --audience-frame: 400 / 378;
  --audience-crop-low: 400 / 182;
  /* Each figure is drawn wider than its frame and cut by it at the sides, where its box is empty, so the buildings fill
     the panel; the frame is the same in both panels, so the door stays one size. */
  --audience-art-w: 118%;
  --audience-stagger: 140ms;
}
:root[data-theme="dark"] {
  --reach-glow: rgba(241, 242, 239, 0.14);
  --reach-glow-none: rgba(241, 242, 239, 0);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --reach-glow: rgba(241, 242, 239, 0.14);
    --reach-glow-none: rgba(241, 242, 239, 0);
  }
}
/* ==== end premium-five tokens ==== */
