/* DESTEN Design System — global stylesheet entry.
   Consumers link this one file. Keep it as @import lines only. */

/* DESTEN — Color tokens
   Neutral ramp (white → black) + Torch Red brand palette.
   Base values plus alpha mixes used for borders/overlays. */

:root {
  /* Neutral ramp */
  --color-white: #ffffff;
  --color-neutral-lightest: #f2f2f2;
  --color-neutral-lighter: #d8d8d8;
  --color-neutral-light: #b2b2b2;
  --color-neutral: #7f7f7f;
  /* AA-safe muted grey on white: #7f7f7f is only 4.0:1, below the 4.5:1 floor. */
  --color-neutral-aa: #696969;
  --color-neutral-dark: #4c4c4c;
  --color-neutral-darker: #191919;
  --color-neutral-darkest: #000000;

  /* Torch Red — the single brand accent */
  --color-torch-red-lightest: #fce5e9;
  --color-torch-red-lighter: #faccd4;
  --color-torch-red-light: #f04c69;
  --color-torch-red: #ea0029;
  --color-torch-red-dark: #bb0020;
  --color-torch-red-darker: #5d0010;
  --color-torch-red-darkest: #46000c;
  /* Muted red used for the lower marquee line. */
  --color-torch-red-deep: #5c1c1c;

  /* White alphas — overlays / borders on dark surfaces */
  --color-white-5: rgba(255, 255, 255, 0.05);
  --color-white-10: rgba(255, 255, 255, 0.10);
  --color-white-15: rgba(255, 255, 255, 0.15);
  --color-white-20: rgba(255, 255, 255, 0.20);
  --color-white-30: rgba(255, 255, 255, 0.30);
  --color-white-40: rgba(255, 255, 255, 0.40);
  --color-white-50: rgba(255, 255, 255, 0.50);
  --color-white-60: rgba(255, 255, 255, 0.60);
  /* AA-safe muted white on #191919: 0.60 is 4.0:1, 0.72 is 9.1:1. */
  --color-white-72: rgba(255, 255, 255, 0.72);
  --color-white-62: rgba(255, 255, 255, 0.62);
  --color-white-92: rgba(255, 255, 255, 0.92);

  /* Black alphas — overlays / borders on light surfaces */
  --color-black-5: rgba(0, 0, 0, 0.05);
  --color-black-10: rgba(0, 0, 0, 0.10);
  --color-black-15: rgba(0, 0, 0, 0.15);
  --color-black-20: rgba(0, 0, 0, 0.20);
  --color-black-30: rgba(0, 0, 0, 0.30);
  --color-black-50: rgba(0, 0, 0, 0.50);
  --color-black-60: rgba(0, 0, 0, 0.60);

  /* ---- Semantic aliases (default = light surface) ---- */
  --accent: var(--color-torch-red);
  --accent-hover: var(--color-torch-red-dark);
  /* --accent is the brand red and stays exactly that for fills, rules and
     graphics. As TEXT it only reaches 2.25:1 on white and 3.79:1 on #191919,
     so type uses a scheme-aware pair instead: 6.8:1 and 4.8:1. */
  /* Brand secondary — woven in sparingly (the wordmark glow today). */
  --accent-secondary: #1FA85E;
  --surface-page: var(--color-white);
  --surface-card: var(--color-white);
  --surface-inverse: var(--color-neutral-darker);
  --text-primary: var(--color-neutral-darkest);
  --text-secondary: var(--color-neutral-dark);
  --text-muted: var(--color-neutral-aa);
  --text-on-accent: var(--color-white);
  --border-subtle: var(--color-black-15);
}

@font-face { font-family: "Roc Grotesk"; src: url("assets/fonts/roc-grotesk-regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Roc Grotesk Wide"; src: url("assets/fonts/roc-grotesk-wide.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Roc Grotesk Wide"; src: url("assets/fonts/roc-grotesk-wide-bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }

/* DESTEN — Typography tokens
   Body face is Roc Grotesk (regular width); headings are Roc Grotesk Wide Bold, uppercase.
   Headings 700, tight tracking. Balanced ramp (one level below the earlier bump).
   Line height: H1–H3 100%, H4–H6 120%, body 150%.
   Sizes step up at the lg breakpoint (992px) — mobile values are the base. */

:root {
  --font-sans: "Roc Grotesk", Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-display: "Roc Grotesk Wide", "Roc Grotesk", Arial, sans-serif;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Headings — scale anchored to the hero H1 (56px desktop), Roc Grotesk Wide uppercase */
  --text-h1: 1.75rem;  /* 28px */
  --text-h1-line: 1.05;
  --text-h1-tracking: -0.005em;
  --text-h2: 1.45rem;  /* 23px */
  --text-h2-line: 1.05;
  --text-h2-tracking: -0.005em;
  --text-h3: 1.2rem;    /* 19px */
  --text-h3-line: 1.1;
  --text-h3-tracking: -0.005em;
  --text-h4: 1.1rem;  /* 18px */
  --text-h4-line: 1.2;
  --text-h4-tracking: -0.005em;
  --text-h5: 1rem;      /* 16px */
  --text-h5-line: 1.2;
  --text-h6: 0.875rem;  /* 14px */
  --text-h6-line: 1.2;

  /* Body / supporting */
  --text-large: 1.125rem;   /* 18px */
  --text-medium: 1rem;      /* 16px */
  --text-regular: 0.875rem; /* 14px */
  --text-small: 0.875rem;   /* 14px */
  --text-tiny: 0.75rem;     /* 12px */
  --text-body-line: 1.5;

  /* Overline / eyebrow — small uppercase label above headings (wide tracking echoes the wordmark) */
  --text-overline: 0.875rem;        /* 14px */
  --text-overline-tracking: 0.16em;
}

@media (min-width: 62rem) {
  :root {
    --text-h1: 3.5rem;    /* 56px — hero anchor */
    --text-h2: 2.25rem;   /* 36px */
    --text-h3: 1.75rem;   /* 28px */
    --text-h4: 1.375rem;  /* 22px */
    --text-h5: 1.125rem;  /* 18px */
    --text-h6: 1rem;      /* 16px */
    --text-large: 1.375rem;
    --text-medium: 1.125rem;
    --text-regular: 1rem;
    --text-small: 0.875rem;
    --text-tiny: 0.75rem;
  }
}

/* DESTEN — Radii tokens
   Pills for buttons/badges, soft 16px for cards & media, small for inputs. */

:root {
  /* Hairline radii stay in px on purpose: 2px should not scale with the type ramp. */
  --radius-button: 2px;
  --radius-badge: 2px;
  --radius-card: 2px;
  --radius-image: 2px;
  --radius-input: 2px;
  --radius-checkbox: 0.125rem; /* 2px */
}

/* DESTEN — Spacing & layout tokens
   Generous vertical section rhythm; content gutters at 5% on each side;
   a max content container of 80rem (1280px). */

:root {
  /* Base spacing scale (rem) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-18: 4.5rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-28: 7rem;
  --space-30: 7.5rem;

  /* Section vertical padding (mobile → desktop) */
  --section-py: 4rem;     /* 64px */
  --section-py-md: 6rem;  /* 96px */
  --section-py-lg: 7rem;  /* 112px */

  /* Horizontal page gutter */
  --page-gutter: 5%;

  /* Container max widths */
  --container-sm: 30rem;
  --container-md: 35rem;
  --container-lg: 48rem;
  --container-xl: 64rem;
  --container-xxl: 80rem; /* 1280px — default page container */
  --page-edge: 5%;        /* side gutter used on narrow screens */
}

/* DESTEN — Color schemes
   Sections opt into a scheme by class. Every scheme redefines the same
   set of scoped variables so child components (buttons, cards, borders,
   text) adapt automatically. Alternate dark/light to create rhythm.

   Source mapping (Relume export): .scheme-1 = dark, .scheme-2 = light.
   Friendly aliases .scheme-dark / .scheme-light are preferred in new work. */

.scheme-dark {
  --scheme-bg: var(--color-neutral-darker);
  --scheme-surface: var(--color-neutral-darker);
  --scheme-text: var(--color-white);
  --scheme-text-muted: var(--color-white-72);
  --scheme-border: var(--color-white-20);
  --scheme-accent: var(--color-torch-red);
  background-color: var(--scheme-bg);
  color: var(--scheme-text);
}

.scheme-light {
  --scheme-bg: var(--color-white);
  --scheme-surface: var(--color-white);
  --scheme-text: var(--color-neutral-darkest);
  --scheme-text-muted: var(--color-neutral-aa);
  --scheme-border: var(--color-black-15);
  --scheme-accent: var(--color-torch-red);
  background-color: var(--scheme-bg);
  color: var(--scheme-text);
}

/* DESTEN — Base element styles
   Brand face is Roc Grotesk. Headings Wide Bold, uppercase. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--font-weight-regular);
  font-size: var(--text-medium);
  line-height: var(--text-body-line);
  color: var(--text-primary);
  background-color: var(--surface-page);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: var(--font-weight-bold);
  margin: 0;
}

h1 { font-size: var(--text-h1); line-height: var(--text-h1-line); letter-spacing: var(--text-h1-tracking); }
h2 { font-size: var(--text-h2); line-height: var(--text-h2-line); letter-spacing: var(--text-h2-tracking); }
h3 { font-size: var(--text-h3); line-height: var(--text-h3-line); letter-spacing: var(--text-h3-tracking); }
h4 { font-size: var(--text-h4); line-height: var(--text-h4-line); letter-spacing: var(--text-h4-tracking); }
h5 { font-size: var(--text-h5); line-height: var(--text-h5-line); }
h6 { font-size: var(--text-h6); line-height: var(--text-h6-line); }

p { margin: 0; }

a { color: inherit; text-decoration: none; }

button:not(:disabled),
[role="button"]:not(:disabled) {
  cursor: pointer;
}

img { display: block; max-width: 100%; }

/* ---------- Site components (nav, buttons, sections, hero, footer) ---------- */
/* Global scale — emulates ~85% browser zoom by shrinking the rem unit.
     All type/spacing tokens are rem-based, so this scales them uniformly.
     Tune this single value (e.g. 92.5%) to taste. */
  /* 1rem = 16px. This was 85%, which shrank every rem-based size and space on
     the site by 15% and made the whole layout read cramped on large displays.
     All type and spacing tokens are rem-based, so they now scale from a true
     browser default and respect a user's own font-size preference. */
  html { font-size: 100%; scroll-behavior: smooth; }
  body { margin: 0; }

  /* ---------- Components (plain-CSS ports of the DS primitives) ---------- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .625rem; white-space: nowrap; font-family: var(--font-display);
    font-weight: var(--font-weight-bold); line-height: 1.05;
    border-radius: var(--radius-button); border: 1px solid transparent;
    /* Uppercase has no descenders, so the ink sits high in the line box —
       the optical nudge adds a little extra top padding to even it out. */
    padding: calc(var(--btn-pad-y, 0.6875rem) + var(--btn-optical, 2px)) var(--btn-pad-x, 1.375rem) var(--btn-pad-y, 0.6875rem);
    font-size: var(--text-regular);
    cursor: pointer; text-decoration: none;
    text-transform: uppercase; letter-spacing: var(--btn-tracking, 0.04em);
    transition: background-color .2s, border-color .2s, color .2s, opacity .2s, box-shadow .2s;
  }
  .btn--sm { padding: calc(var(--btn-pad-y-sm, 0.5rem) + var(--btn-optical, 2px)) var(--btn-pad-x-sm, 1.125rem) var(--btn-pad-y-sm, 0.5rem); font-size: var(--text-tiny); }
  .btn--primary { background: var(--accent); border-color: var(--accent); color: var(--text-on-accent); }
  .btn--primary:hover { background: var(--btn-hover-bg, #faccd4); border-color: var(--btn-hover-border, #fce5e9); color: var(--btn-hover-text, #000000); box-shadow: 0 0 24px rgba(234, 0, 41, .55); }
  .scheme-light .btn--secondary, .scheme-light .btn--secondary:link {
    background: transparent; border-color: var(--color-black-30, rgba(0,0,0,.3)); color: var(--color-neutral-darkest, #000);
  }
  .scheme-light .btn--secondary:hover { background: var(--color-neutral-darkest, #000); border-color: var(--color-neutral-darkest, #000); color: var(--color-white); }
  .btn--secondary {
    background: var(--color-black-30);
    border-color: var(--scheme-border, var(--border-subtle));
    color: var(--scheme-text, var(--text-primary));
    backdrop-filter: blur(10px);
  }
  .btn--secondary:hover { background: var(--color-white); border-color: var(--color-white); color: var(--color-neutral-darkest); }

  .badge {
    display: inline-flex; align-items: center; gap: .375rem;
    padding: .25rem .75rem; font-size: var(--text-small);
    font-weight: var(--font-weight-semibold); line-height: 1.4;
    border-radius: var(--radius-badge);
    border: 1px solid var(--scheme-border, var(--border-subtle));
    color: var(--scheme-text, var(--text-primary));
  }

  .card {
    border-radius: var(--radius-card); overflow: hidden; padding: 2rem;
    border: 1px solid var(--scheme-border, var(--border-subtle));
    background: var(--scheme-surface, var(--surface-card));
    color: var(--scheme-text, var(--text-primary));
  }
  .card--flush { padding: 0; }

  /* ---------- Layout ---------- */
  .container { max-width: var(--container-xxl); margin: 0 auto; }
  .section { padding: var(--section-py-lg) var(--page-edge, 5%); }
  /* Base eyebrow treatment, so a tagline outside .section-heading (e.g. the Partners
     column) reads like every other overline instead of plain sentence-case text. */
  .tagline { font-weight: var(--font-weight-semibold); font-size: var(--text-overline); letter-spacing: var(--text-overline-tracking); text-transform: uppercase; margin-bottom: 1.5rem; color: var(--accent); }
  .section-heading { max-width: var(--container-lg); margin: 0 auto; text-align: center; }
  .section-heading .tagline { font-weight: var(--font-weight-semibold); font-size: var(--text-small); margin-bottom: .75rem; text-transform: uppercase; letter-spacing: 0.16em; }
  .section-heading h2 { margin-bottom: 1.25rem; }
  .section-heading .desc { font-size: var(--text-medium); line-height: var(--text-body-line); color: var(--scheme-text-muted, var(--text-secondary)); margin-inline: auto; }

  .wave { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

  /* ---------- Navbar ---------- */
  .nav { position: sticky; top: 0; z-index: 999; border-bottom: 1px solid var(--scheme-border); transition: transform .35s ease; will-change: transform; }
  .nav__inner { padding-inline: max(var(--page-edge, 5%), calc((100% - var(--container-xxl)) / 2)); min-height: 4.5rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
  .nav__links { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
  /* One notch above --text-tiny; scoped here so the 12px overline token elsewhere is untouched. */
  .nav__links a { padding: .5rem 1rem; font-size: 0.8125rem; color: var(--scheme-text); transition: color .2s ease; text-transform: uppercase; letter-spacing: 0.15em; }
  .nav__links a:hover { color: var(--accent); }
  .nav__actions { display: flex; align-items: center; gap: .75rem; }

  /* ---------- Hero ---------- */
  .hero { position: relative; height: 260vh; }

  /* ---------- Industries (hover-expand, pure CSS) ---------- */
  .industries { display: flex; gap: 1.5rem; }
  .industry { position: relative; overflow: hidden; border-radius: var(--radius-card); min-height: 30rem; flex: 1; cursor: pointer; transition: flex .45s cubic-bezier(.4,0,.2,1); }
  .industry img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
  .industry__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.94) 0%, rgba(0,0,0,.78) 32%, rgba(0,0,0,.45) 62%, rgba(0,0,0,.28) 100%); transition: background .45s ease; }
  .industry__inner { position: relative; height: 100%; min-height: 30rem; display: flex; flex-direction: column; justify-content: flex-end; padding: 2.5rem; color: #fff; }
  .industry__tag { font-weight: 600; margin-bottom: .5rem; font-size: var(--text-small); text-transform: uppercase; letter-spacing: 0.16em; }
  .industry__body { display: grid; grid-template-rows: 0fr; opacity: 0; margin-top: 0; transition: grid-template-rows .45s ease, opacity .35s ease, margin-top .45s ease; }
  .industry__body > div { overflow: hidden; min-height: 0; }
  .industry__body p { color: rgba(255,255,255,.88); max-width: 34rem; }
  .industry__learn { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; }
  .industry:hover { flex: 1.7; }
  .industry:hover img { transform: scale(1.05); }
  .industry:hover .industry__scrim { background: linear-gradient(to top, rgba(0,0,0,.96) 0%, rgba(0,0,0,.9) 45%, rgba(0,0,0,.7) 75%, rgba(0,0,0,.5) 100%); }
  .industry:hover .industry__body { grid-template-rows: 1fr; opacity: 1; margin-top: 1.25rem; }

  /* ---------- Banner ---------- */
  .banner { position: relative; overflow: hidden; padding: var(--section-py-lg) 0; }
  .banner__stack { position: relative; z-index: 1; width: 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .4rem; }
  .banner__line { font-family: var(--font-display); text-transform: uppercase; font-size: var(--text-h1); font-weight: 700; line-height: 1.05; letter-spacing: -.01em; white-space: nowrap; will-change: transform; }
  .banner__line--1 { color: #5c1c1c; }
  .banner__line--2 { color: var(--banner-line, #5c1c1c); }
  .banner__heading { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2rem, 6.25vw, 12rem); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; color: var(--color-white); text-align: center; padding: 0 5%; white-space: nowrap; }

  /* ---------- Solutions (sticky stack) ---------- */
  .sol { position: sticky; background: var(--color-neutral-darker); padding-bottom: 1.5rem; }
  .sol__head { border-top: 1px solid var(--scheme-border); padding-top: 1rem; }
  .sol__title { display: flex; align-items: center; height: 3rem; font-weight: 600; }
  .sol__title .n { margin-right: 1.25rem; color: var(--accent); }
  .sol__row { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 1.5rem 0 2.5rem; }
  .sol__row h3 { margin-bottom: 1.5rem; }
  .sol__row .body { font-size: var(--text-medium); color: var(--scheme-text-muted); }
  .sol__row img { width: 100%; height: 21.25rem; object-fit: cover; border-radius: var(--radius-image); }

  /* ---------- Approach (timeline) ---------- */
  .timeline { position: relative; }
  .timeline__rail { position: absolute; left: 50%; top: 0; bottom: 0; width: 0.1875rem; transform: translateX(-50%); background: var(--color-black-10); }
  .timeline__fill { position: absolute; left: 0; top: 0; width: 100%; height: 0%; background: var(--accent); }
  .timeline__rows { display: flex; flex-direction: column; gap: 3rem; }
  .tlrow { display: grid; grid-template-columns: 1fr 2.5rem 1fr; align-items: center; gap: 1rem; }
  .tlrow__circle-cell { display: flex; justify-content: center; }
  @media (prefers-reduced-motion: no-preference) {
    .tlrow__circle.is-on { animation: tlGlow 1.9s ease-in-out infinite; }
  }
  @keyframes tlGlow {
    0%, 100% { box-shadow: 0 0 0 0.1875rem var(--color-white), 0 0 6px 1px rgba(234, 0, 41, .5); }
    50% { box-shadow: 0 0 0 0.1875rem var(--color-white), 0 0 15px 5px rgba(234, 0, 41, .9); }
  }
  .tlrow__circle { width: 0.5625rem; height: 0.5625rem; border-radius: 50%; background: var(--color-black-15); box-shadow: 0 0 0 0.1875rem var(--color-white); transition: background .3s ease, transform .3s ease; }
  .stepcard h3 { font-size: var(--text-h4); margin-bottom: 1rem; }
  .stepcard p { color: var(--text-secondary); }
  .stepcard img { width: 100%; height: 13.75rem; object-fit: cover; }

  /* ---------- Partners (pinned stacking cards) ---------- */
  .partners { position: relative; padding: 0; }
  .partners__track { position: relative; height: var(--track-h, 380vh); }
  .partners__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
  .partners__grid { position: relative; z-index: 1; width: 100%; padding-inline: max(var(--page-edge, 5%), calc((100% - var(--container-xxl)) / 2)); display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
  .partners__head { align-self: center; }
  .partners__head h2 { text-wrap: balance; }
  .partners__head h2 { margin-bottom: 1.5rem; }
  .prose-cycle { display: grid; }
  .prose-cycle__item { grid-area: 1 / 1; margin: 0; font-size: var(--text-medium); line-height: var(--text-body-line); color: rgba(255,255,255,.78);
    opacity: 0; transform: translateY(10px); transition: opacity .55s cubic-bezier(.4,0,.2,1), transform .55s cubic-bezier(.4,0,.2,1); }
  .prose-cycle__item.is-active { opacity: 1; transform: none; }
  .prose-cycle__nav { display: flex; gap: .5rem; margin-top: 1.25rem; }
  .prose-cycle__dot { width: 2.25rem; height: 1.5rem; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
  .prose-cycle__dot::before { content: ""; display: block; width: 100%; height: 0.1875rem; border-radius: 2px; background: var(--color-white-15, rgba(255,255,255,.18)); transition: background .3s ease; }
  .prose-cycle__dot:hover::before { background: rgba(255,255,255,.4); }
  .prose-cycle__dot.is-active::before { background: var(--accent); }
  .partners__stack { position: relative; height: 16.25rem; }
  .benefit { position: absolute; inset: 0; will-change: transform, opacity; }
  .benefit .card { height: 100%; display: flex; flex-direction: column; justify-content: center; background: var(--color-neutral-darker); border-color: var(--scheme-border); box-shadow: 0 -10px 40px rgba(0,0,0,.5); }
  .benefit h3 { font-size: var(--text-h6); line-height: var(--text-h6-line); margin-bottom: .75rem; text-transform: uppercase; letter-spacing: 0.12em; text-wrap: balance; }
  .benefit p { color: var(--scheme-text-muted); }

  /* ---------- CTA ---------- */
  .cta__inner { max-width: var(--container-xxl); margin: 0 auto; text-align: center; }
  .cta__inner h2 { margin-bottom: 1.25rem; }
  .cta__inner .sub { font-size: var(--text-medium); color: var(--text-secondary); }
  .cta__buttons { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
  .cta { position: relative; overflow: hidden; }
  .cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .cta__scrim { position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.78), rgba(0,0,0,.78)); }

  /* ---------- Footer ---------- */
  .footer { padding: var(--section-py) 5% 2rem; }
  .footer__grid { display: grid; grid-template-columns: .25fr 1fr .25fr; align-items: center; gap: 3rem; padding-bottom: 3rem; }
  .footer__nav { display: flex; gap: 1.5rem; justify-content: center; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
  .footer__nav a { font-weight: 400; font-size: var(--text-small); transition: color .2s ease; text-transform: uppercase; letter-spacing: 0.15em; }
  .footer__nav a:hover { color: var(--accent); }
  .footer__social { display: flex; gap: .75rem; justify-self: end; }
  .footer__social a { transition: color .2s ease; }
  .footer__social a:hover { color: var(--accent); }
  .footer__rule { height: 1px; background: var(--scheme-border); }
  .footer__legal { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; padding-top: 2rem; font-size: var(--text-small); color: var(--scheme-text-muted); }
  .footer__legal a { text-decoration: underline; }

  /* ---------- Reveal-on-enter ---------- */
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-in { opacity: 1; transform: none; }

  /* ---------- Responsive ---------- */
  @media (max-width: 61.9375rem) {
    .nav__links { display: none; }
    .industries { flex-direction: column; }
    .industry { flex: none; min-height: 22.5rem; }
    .industry__body { grid-template-rows: 1fr; opacity: 1; margin-top: 1.25rem; }
    .sol__row, .partners__grid, .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
    .partners__grid { justify-items: center; text-align: center; gap: 4rem; padding-inline: 6%; }
    .partners__head { align-self: end; }
    /* Flat (unpinned) mobile deck: the pin no longer supplies height or centering,
       so the section needs its own vertical rhythm back. */
    .partners { padding: var(--section-py) 0; }
    .partners__track { --track-h: auto; }
    .partners__pin { position: static; height: auto; overflow: visible; }
    .prose-cycle { display: block; text-align: left; max-width: 34rem; margin-inline: auto; }
    .prose-cycle__item { opacity: 1; transform: none; margin-bottom: 1.25rem; }
    .prose-cycle__nav { display: none; }
    .partners__stack { width: 100%; max-width: 30rem; }
    .sol { position: static; margin-bottom: 0; }
    .tlrow { grid-template-columns: 28px 1fr; }
    .tlrow > [data-tl-empty] { display: none; }
    .tlrow__circle-cell { grid-column: 1; }
    .tlrow > [data-tl-card-cell] { grid-column: 2; }
    .timeline__rail { left: 0.875rem; }
    .banner { padding-bottom: 2rem; }
    .footer__grid { justify-items: center; text-align: center; }
    .footer__grid .footer__brand { justify-self: center; }
    .footer__nav { flex-direction: column; align-items: center; gap: .85rem; }
    .footer__social { justify-self: center; }
  }
  @media (max-width: 37.5rem) {
    .hero { height: auto; overflow: hidden; }
  }
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
  }

  /* ---------- Hero: framed image (inset by margin), content aligned to the page container ---------- */
  .rhero { position: relative; display: flex; align-items: center; min-height: calc(100svh - 4.5rem); background: var(--surface-inverse); }
  .rhero__lines { z-index: 0; }
  .m-br { display: none; }
  .rhero__frame { position: absolute; top: var(--rhero-margin, 1.5rem); left: var(--rhero-margin, 1.5rem); right: var(--rhero-margin, 1.5rem); bottom: var(--rhero-mb, 4.5rem); z-index: 1; overflow: hidden; border-radius: var(--rhero-radius, 16px); box-shadow: var(--rhero-shadow, 0 24px 48px rgba(0,0,0,.45)); will-change: transform, opacity; }
  .rhero__slides { position: absolute; inset: 0; }
  .rhero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--rhero-fade, 1.2s) ease; }
  .rhero__slide.is-active { opacity: 1; }
  .rhero__imgscrim { position: absolute; inset: 0; background: #000; opacity: var(--rhero-img-dark, 0.35); }
  .rhero__inner { position: relative; z-index: 2; width: 100%; padding-inline: max(var(--page-edge, 5%), calc((100% - var(--container-xxl)) / 2)); }
  .rhero__content { max-width: 40rem; will-change: transform, opacity; }
  .rhero__content h1 { color: var(--color-white); margin-bottom: 1.5rem; font-size: clamp(1.625rem, 4.8vw, 3.125rem); overflow-wrap: break-word; }
  .rhero__lede { font-size: var(--text-medium); color: var(--color-white); line-height: var(--text-body-line); }
  .rhero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
  .rhero__nav { position: absolute; bottom: 1rem; z-index: 3; width: 2.625rem; height: 2.625rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(25,25,25,.4); color: var(--color-white-60); border: 1px solid var(--color-white-15); cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .2s ease, color .2s ease; }
  .rhero__nav:hover { background: rgba(25,25,25,.72); color: var(--color-white); }
  .rhero__nav--prev { right: 4.375rem; }
  .rhero__nav--next { right: 1rem; }
  .rhero__nav i { width: 1.25rem; height: 1.25rem; }
  .rhero__scroll { position: absolute; bottom: max(1.25rem, calc((var(--rhero-mb, 0px) - 1.625rem) / 2)); left: 50%; transform: translateX(-50%); z-index: 2; color: var(--color-neutral); pointer-events: none; display: flex; }
  .rhero__scroll i { width: 1.625rem; height: 1.625rem; }
  @media (prefers-reduced-motion: no-preference) { .rhero__scroll { animation: rheroBob 2.2s ease-in-out infinite; } }
  @keyframes rheroBob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }
  /* Hero text card — translucent black panel, light type */
  .rhero--card .rhero__content { max-width: 40rem; margin-bottom: calc(var(--rhero-mb, 0px) + 3.5rem); padding: var(--rhero-cardpad, 2.5rem); background: rgba(0,0,0,var(--rhero-card-op, .8)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: var(--radius-card, 16px); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
  .rhero--card .rhero__content h1 { color: var(--color-white); }
  .rhero--card .rhero__lede { color: rgba(255,255,255,.85); }
  .rhero--card .btn--secondary { background: var(--color-white-10); border-color: var(--color-white); color: var(--color-white); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .rhero--card .btn--secondary:hover { background: var(--color-white); border-color: var(--color-white); color: var(--color-neutral-darkest); }
  @media (max-width: 61.9375rem) {
    .rhero { min-height: calc(100svh - 4.5rem); align-items: flex-end; }
    /* Two across rather than stacked; labels may wrap, so release nowrap here. */
    .rhero__cta { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem; align-items: stretch; }
    .rhero__cta .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding-inline: .75rem; }
    /* Direct-edit refinements — mobile only */
    /* Matching .rhero--card .rhero__content (0,2,0) rather than reaching for
       !important — the desktop card rule is the only thing these need to beat. */
    .rhero .rhero__content, .rhero--card .rhero__content { padding: 1.5rem; margin-bottom: calc(var(--rhero-mb, 0px) + 3.5rem); max-width: 100%; }
    .rhero .rhero__content h1, .rhero--card .rhero__content h1 { font-size: 1.625rem; }
    .rhero .rhero__lede, .rhero--card .rhero__lede { font-size: 0.875rem; }
    .rhero .rhero__nav { width: 1.875rem; height: 1.875rem; top: 0.5rem; bottom: auto; }
    .rhero .rhero__nav i { width: 1rem; height: 1rem; }
    .rhero .rhero__nav--prev { left: auto; right: 2.75rem; }
    .rhero .rhero__nav--next { left: auto; right: 0.5rem; }
    h2:not(.banner__heading):not(.banner__mid-main) { font-size: var(--text-h2); }
    .m-br { display: inline; }
  }

/* ---------- Mobile navigation (hamburger + slide-in panel) ---------- */
.nav__toggle { display: none; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; color: var(--scheme-text); padding: 0; }
.nav__toggle i { width: 1.375rem; height: 1.375rem; }
.nav__toggle .nav__toggle-close { display: none; }
.nav-open .nav__toggle .nav__toggle-close { display: block; }
.nav-open .nav__toggle .nav__toggle-open { display: none; }
.nav__scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.nav-open .nav__scrim { opacity: 1; pointer-events: auto; }
.nav__panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(20rem, 86vw); background: var(--color-neutral-darker); color: var(--color-white);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; gap: .25rem; padding: 5.5rem 2rem 2rem; overflow-y: auto; }
.nav-open .nav__panel { transform: translateX(0); }
.nav__panel a { display: block; padding: .85rem 0; font-size: var(--text-regular); text-transform: uppercase; letter-spacing: .15em; color: var(--color-white); border-bottom: 1px solid var(--color-white-15); }
.nav__panel a:hover { color: var(--accent); }
.nav__panel .btn { margin-top: 1.5rem; border-bottom: 0; justify-content: center; padding: calc(var(--btn-pad-y, 0.6875rem) + var(--btn-optical, 2px)) var(--btn-pad-x, 1.375rem) var(--btn-pad-y, 0.6875rem); font-size: var(--text-regular); letter-spacing: var(--btn-tracking, 0em); }
.nav-open { overflow: hidden; }
@media (max-width: 61.9375rem) {
  .nav__toggle { display: flex; }
}
@media (min-width: 62rem) {
  .nav__scrim, .nav__panel { display: none; }
}

/* ---------- Inner page hero (shared across subpages) ---------- */
.phero { position: relative; overflow: hidden; background: var(--surface-inverse); color: var(--color-white); padding: calc(4.5rem + var(--section-py)) 0 var(--section-py); }
.phero__inner { position: relative; z-index: 1; padding-inline: max(var(--page-edge, 5%), calc((100% - var(--container-xxl)) / 2)); }
.phero__copy { max-width: 46rem; }
.phero__lede { margin-inline: 0; }
.phero h1 { color: var(--color-white); margin-bottom: 1.5rem; }
.phero__lede { font-size: var(--text-large); line-height: var(--text-body-line); color: rgba(255,255,255,.8); }

/* ---------- Accordion spec rows ---------- */
.spec { border-top: 1px solid var(--scheme-border); }
.spec:last-of-type { border-bottom: 1px solid var(--scheme-border); }
.spec__btn { width: 100%; display: flex; align-items: center; gap: 1.5rem; padding: 1.35rem 0; background: none; border: 0; cursor: pointer; text-align: left; color: inherit; font-family: var(--font-display); }
.spec__name { flex: 1; font-size: var(--text-h6); font-weight: 700; line-height: 1.3; }
.spec__icon { width: 1.25rem; height: 1.25rem; flex: none; transition: transform .3s ease; color: var(--scheme-text-muted); }
.spec.is-open .spec__icon { transform: rotate(45deg); }
.spec__body { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.4,0,.2,1); }
.spec.is-open .spec__body { max-height: 160rem; }
.spec__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; padding: 0 0 2.25rem; }

/* ---------- Product cards (homepage 2B) ---------- */
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pcard { display: flex; flex-direction: column; padding: 0; overflow: hidden; background: var(--scheme-surface); border: 1px solid var(--color-white-15, rgba(255,255,255,.15)); border-radius: var(--radius-card); }
.pcard__media { position: relative; }
.pcard__thumb { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pcard__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.7) 45%, rgba(0,0,0,.25) 100%); }
.pcard__over { position: absolute; inset: auto 0 0 0; padding: 1.5rem; }
.pcard__over h3 { margin: 0; color: var(--color-white); font-size: var(--text-h4); }
.pcard .pcard__over p.pcard__status { display: inline-block; align-self: flex-start; color: rgba(255, 255, 255, .88); background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .22); border-radius: 2px; padding: .3rem .55rem; margin-bottom: .6rem; letter-spacing: .12em; }
.pcard__body { display: flex; flex-direction: column; gap: 1rem; padding: 1.75rem; flex: 1; }
/* Second state: the forward-looking line stays out of the way until asked for */
.pcard__next { max-height: 0; overflow: hidden; border-top: 0 solid var(--scheme-border); transition: max-height .45s cubic-bezier(.4,0,.2,1), border-top-width .45s, padding-top .45s, opacity .3s ease; opacity: 0; padding-top: 0; }
.pcard:hover .pcard__next, .pcard:focus-visible .pcard__next, .pcard:focus-within .pcard__next { max-height: 16rem; opacity: 1; border-top-width: 1px; padding-top: 1rem; }
.pcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: none) { .pcard__next { max-height: 16rem; opacity: 1; border-top-width: 1px; padding-top: 1rem; } }

.pcard p.pcard__status, .pcard__status { font-size: var(--text-tiny); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin: 0; }
.pcard h3 { margin: 0; font-size: var(--text-h4); }
.pcard p.pcard__label, .pcard__label { font-size: var(--text-tiny); text-transform: uppercase; letter-spacing: .14em; color: var(--scheme-text-muted); margin-bottom: .35rem; }
.pcard p { font-size: var(--text-regular); line-height: var(--text-body-line); color: var(--scheme-text-muted); margin: 0; }
.pcard__next { padding-top: 1rem; border-top: 1px solid var(--scheme-border); }
.pcard__link { margin-top: auto; padding-top: 1rem; font-size: var(--text-tiny); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
.cat-label { margin-bottom: .5rem; font-size: var(--text-overline); text-transform: uppercase; letter-spacing: var(--text-overline-tracking); color: var(--accent); margin-bottom: 1.5rem; font-weight: var(--font-weight-semibold); }

/* ---------- Now / Next rail inside the product cards ----------
   Layout is FIXED: the Next block always occupies its space and only fades /
   shifts. Animating its height would change card height mid-scroll, which moves
   the document under the reader and feeds back into the scroll maths. */
.rail { position: relative; padding-left: 1.5rem; }
.rail__track { position: absolute; left: 0.1875rem; top: calc(.28rem + 0.25rem); height: var(--rail-dy, 0px); width: 1px; background: var(--scheme-border); }
.rail__line { position: absolute; left: 0.1875rem; top: calc(.28rem + 0.25rem); width: 1px; background: var(--accent); box-shadow: 0 0 6px rgba(234, 0, 41, .85), 0 0 16px rgba(234, 0, 41, .5); height: 0; transition: height .8s cubic-bezier(.4,0,.2,1); }
.rail__item { position: relative; margin-bottom: 1.1rem; }
.rail__item:last-child { margin-bottom: 0; }
.rail__dot { position: absolute; left: calc(-1.5rem - 0.5px); top: .28rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--scheme-border); transition: background .35s ease, box-shadow .35s ease; }
/* The runner is the single filled node — the "point in time" travelling down */
.rail__runner { position: absolute; left: -0.5px; top: .28rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(234, 0, 41, .95), 0 0 22px rgba(234, 0, 41, .55); z-index: 2;
  transform: translateY(0); transition: transform .8s cubic-bezier(.4,0,.2,1); }
.rail__label { font-size: var(--text-tiny); text-transform: uppercase; letter-spacing: .14em; color: var(--scheme-text-muted); margin: 0 0 .3rem; transition: color .35s ease; }
.rail__body { font-size: var(--text-regular); line-height: var(--text-body-line); color: var(--scheme-text-muted); margin: 0; }
.rail__item--now .rail__label { color: var(--accent); }
.rail__item--now .rail__dot { background: var(--accent); box-shadow: 0 0 8px rgba(234, 0, 41, .8), 0 0 16px rgba(234, 0, 41, .4); }
.rail__item--next { opacity: .18; transform: translateY(-3px); transition: opacity .55s ease .1s, transform .55s cubic-bezier(.4,0,.2,1) .1s; }
/* 2 — the "next" heading carries the glow instead of the block, with a slow pulse */
@keyframes railHeadPulse {
  0%, 100% { text-shadow: 0 0 6px rgba(234, 0, 41, .5), 0 0 14px rgba(234, 0, 41, .25); }
  50%      { text-shadow: 0 0 10px rgba(234, 0, 41, .95), 0 0 24px rgba(234, 0, 41, .5); }
}
.rail.is-open .rail__item--next { opacity: 1; transform: none; }
.rail.is-open .rail__item--next .rail__label { color: var(--accent); }
.rail.is-open .rail__item--next .rail__dot,
.rail__item--next.is-arrived .rail__dot { background: var(--accent); box-shadow: 0 0 8px rgba(234, 0, 41, .8), 0 0 16px rgba(234, 0, 41, .4); }
.rail__item--next.is-arrived .rail__label,
.rail.is-open .rail__item--next .rail__label { color: var(--accent); }
.rail.is-open .rail__runner { transform: translateY(var(--rail-dy, 0px)); }
.rail.is-open .rail__line { height: var(--rail-dy, 0px); }
/* Scroll mode drives the same properties from inline styles */
[data-reveal="scroll"] .rail__line, [data-reveal="scroll"] .rail__runner, [data-reveal="scroll"] .rail__item--next { transition: none; }
@media (hover: none), (prefers-reduced-motion: reduce) {
  .rail__item--next { opacity: 1; transform: none; }
  .rail__item--next .rail__label { color: var(--accent); }
  .rail__item--next .rail__dot { background: var(--accent); box-shadow: 0 0 8px rgba(234, 0, 41, .8), 0 0 16px rgba(234, 0, 41, .4); }
  .rail__runner { transform: translateY(var(--rail-dy, 0px)); }
  .rail__line { height: var(--rail-dy, 0px); }
}

/* Novel Systems: light section, dark cards. The scheme class on each card
   re-points the surface/text tokens, so nothing needs hard-coded colours. */
#systems .pcard { background: var(--scheme-surface); }

/* ---------- Editorial case study ---------- */
.case { padding: var(--section-py) 0; border-top: 1px solid var(--scheme-border); }

/* ---------- Simple content grids used on lighter pages ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.tile { padding: 2rem; background: var(--scheme-surface); border: 1px solid var(--scheme-border); border-radius: var(--radius-card); }
/* Opt-in thumbnail variant: the image is flush to the card edges and the padding
   moves onto the text, so the tile reads as one object rather than a framed photo. */
.tile--thumb { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
/* The thumb keeps its own aspect ratio so an empty drop target reserves the same
   space a filled one will, and the card never reflows when a photo lands. */
.tile--thumb .tile__thumb { display: block; margin: 0; overflow: hidden; background: var(--scheme-border);
  aspect-ratio: 16 / 10; }
.tile--thumb .tile__thumb image-slot { display: block; width: 100%; height: 100%; }
.tile--thumb .tile__thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  transition: transform .7s cubic-bezier(.4,0,.2,1); }
.tile--thumb:hover .tile__thumb img { transform: scale(1.04); }
.tile--thumb .tile__text { padding: 1.75rem; }
.tile h4 { margin-bottom: .75rem; }
.tile p { font-size: var(--text-regular); line-height: var(--text-body-line); color: var(--scheme-text-muted); margin: 0; }
.placeholder { border: 1px dashed var(--accent); border-radius: var(--radius-card); padding: 2rem; }
.placeholder__tag { display: inline-block; font-size: var(--text-tiny); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin-bottom: 1rem; }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field label { font-size: var(--text-tiny); text-transform: uppercase; letter-spacing: .14em; color: var(--scheme-text-muted); }
.field input, .field textarea, .field select { font-family: var(--font-sans); font-size: var(--text-regular); padding: .85rem 1rem; background: var(--scheme-surface); border: 1px solid var(--scheme-border); border-radius: var(--radius-input, 6px); color: var(--scheme-text); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

@media (prefers-reduced-motion: reduce) { .tile--thumb:hover .tile__thumb img { transform: none; } }
@media (max-width: 61.9375rem) {
  .pcards, .grid-3 { grid-template-columns: 1fr; }
  .pcard__thumb { aspect-ratio: 16 / 9; max-height: 13.75rem; }
  .grid-2, .spec__inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .phero { padding-top: calc(4.5rem + 3rem); }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Stacked cards: the divider runs horizontally instead of vertically.
   Must come after the base .pcard + .pcard rule to win the cascade. */

/* The heading pulse is motion, so it is gated the same way as the page's other
   infinite animations. Reduced-motion users keep the accent colour, no movement. */
@media (prefers-reduced-motion: no-preference) {
  .rail__item--next.is-arrived .rail__label,
  .rail.is-open .rail__item--next .rail__label { animation: railHeadPulse 2.6s ease-in-out infinite; }
}
@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .rail__item--next .rail__label { animation: railHeadPulse 2.6s ease-in-out infinite; }
}

/* ============================================================
   BAKED DEFAULTS — the homepage is the north star.
   These are the values the homepage Tweaks panel writes onto :root at runtime.
   Without them every other page silently falls back to different defaults
   (that is why buttons, headings and CTAs drifted page to page).
   The panel still overrides these on the homepage; every page now starts here.
   ============================================================ */
:root {
  --btn-tracking: 0em;
  --btn-pad-y: 0.6875rem;
  --btn-pad-x: 1.375rem;
  --btn-optical: 2px;
  --btn-hover-bg: #ffffff;
  --btn-hover-text: #000000;
  --btn-hover-border: #ff7070;
  /* Hairline radii stay in px on purpose: 2px should not scale with the type ramp. */
  --radius-button: 2px;
  --radius-badge: 2px;
  --radius-card: 2px;
  --radius-image: 2px;
  --radius-input: 2px;
  --rhero-cardpad: 2rem;   /* 28.8px */
  --rhero-margin: 0rem;
  --rhero-mb: 0rem;
  --rhero-radius: 0rem;
  --rhero-shadow: none;
  --rhero-img-dark: 0.10;
  --rhero-card-op: 0.75;
  --container-xxl: 80rem;
  --page-edge: 5%;
}
/* Desktop type scale (Sept 2026: headings ~12% down, lead/medium body ~6% down;
   regular body, small and tiny unchanged for legibility) */
@media (min-width: 62rem) {
  :root {
    --text-h1: 3.5rem;      /* 56px */
    --text-h2: 3rem;        /* 48px */
    --text-h3: 2.375rem;    /* 38px */
    --text-h4: 1.875rem;    /* 30px */
    --text-h5: 1.5rem;      /* 24px */
    --text-h6: 1.25rem;     /* 20px */
    --text-large: 1.25rem;  /* 20px */
    --text-medium: 1.0625rem;/* 17px */
    --section-py: 7rem;     /* 100.8px */
    --section-py-lg: 7rem;
  }
}

/* ---------- Innovations page ---------- */
.rhero--page { min-height: 68svh; }
.rhero--page { align-items: center; }
.rhero--page .rhero__scroll { display: none; }
.rhero--page .rhero__content { margin-bottom: 0 !important; }
.rhero--page .rhero__content { margin-inline: 0; text-align: left; }

/* Marquee: middle row sits at the same scale as the drifting rows, but static.
   Centre instance in white, flanking instances in the same red as the rows. */
.banner__mid { display: flex; align-items: baseline; justify-content: center; gap: 2.5rem; white-space: nowrap; }
.banner__mid .banner__line--flank { color: var(--banner-line, #5c1c1c); }
.banner__mid-main { margin: 0; color: var(--color-white); }

/* Reasons: panels that hug their copy instead of a fixed-height clipped deck */
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--color-white-15, rgba(255,255,255,.15)); border: 1px solid var(--color-white-15, rgba(255,255,255,.15)); }
.reason { position: relative; display: flex; flex-direction: column; gap: .85rem; padding: 2.5rem; background: var(--surface-inverse, #191919); transition: background-color .3s ease; }
.reason:hover { background: #1f1f1f; }
.reason__n { font-family: var(--font-display); font-size: var(--text-tiny); letter-spacing: .18em; color: var(--accent); }
.reason h3 { margin: 0; font-size: var(--text-h5); color: var(--color-white); }
.reason p { margin: 0; font-size: var(--text-regular); line-height: var(--text-body-line); color: rgba(255,255,255,.62); }
@media (max-width: 61.9375rem) {
  .reasons { grid-template-columns: 1fr; }
  .reason { padding: 1.75rem; }
  .banner__mid { gap: 1.25rem; }
}

/* Staggered entrance: any .reveal can opt in with --d */
.reveal[style*="--d"] { transition-delay: var(--d, 0ms); }

/* ---------- Quotes: one at a time, editorial scale ---------- */
.quotes { max-width: 60rem; margin-inline: auto; }
.quotes__stage { position: relative; display: grid; }
.quote { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.4,0,.2,1), visibility .5s; text-align: center; }
.quote.is-active { opacity: 1; visibility: visible; transform: none; }
/* Lighter cut: Roc Grotesk Wide 400 is the only weight below the 700 used for
   headings, and at h4 size large uppercase needs a touch of positive tracking
   to stay open once the strokes thin out. */
.quote__text { margin: 0 0 1.75rem; font-family: var(--font-display); font-weight: var(--font-weight-regular); text-transform: uppercase;
  font-size: var(--text-h4); line-height: 1.25; letter-spacing: .01em; color: var(--scheme-text); text-wrap: balance; }
.quote__text::before { content: "\201C"; color: var(--accent); }
.quote__text::after { content: "\201D"; color: var(--accent); }
.quote__by { font-size: var(--text-tiny); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
.quote__by::before { content: "\2014\00a0"; }
.quotes__nav { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 2.5rem; }
.quotes__arrow { width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; padding: 0;
  background: none; border: 1px solid var(--scheme-border); border-radius: 2px; color: var(--scheme-text); cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease; }
.quotes__arrow:hover { border-color: var(--accent); color: var(--accent); }
.quotes__arrow i { width: 1rem; height: 1rem; }

/* ---------- Emerging applications: icon tiles ---------- */
.emerging { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--scheme-border); border: 1px solid var(--scheme-border); }
.emerge { display: flex; flex-direction: column; gap: 1rem; padding: 2.5rem; background: var(--scheme-surface); transition: background-color .3s ease; }
.emerge:hover { background: var(--scheme-surface-2, var(--scheme-surface)); }
.emerge__icon { width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center; border-radius: 2px;
  background: rgba(234, 0, 41, .1); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(234, 0, 41, .28); }
.emerge__icon i, .emerge__icon svg { width: 1.375rem; height: 1.375rem; }
.emerge h4 { margin: 0; }
.emerge p { margin: 0; font-size: var(--text-regular); line-height: var(--text-body-line); color: var(--scheme-text-muted); }
@media (max-width: 61.9375rem) {
  .emerging { grid-template-columns: 1fr; }
  .emerge { padding: 1.75rem; }
}
.seg { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 30%; gap: 3rem;
  padding: 3.5rem 0; border-bottom: 1px solid var(--scheme-border); align-items: start; }
@media (max-width: 61.9375rem) {
  .seg { grid-template-columns: 1fr; gap: 1.5rem; padding: 2.5rem 0; }
}

/* ---------- Mobility platform cards ---------- */
.plats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--color-white-15, rgba(255,255,255,.15)); border: 1px solid var(--color-white-15, rgba(255,255,255,.15)); }
.plat { display: flex; flex-direction: column; gap: .85rem; padding: 2rem; background: var(--surface-inverse, #191919); }
.plat__figure { margin-bottom: .25rem; }
.plat__num { font-family: var(--font-display); font-weight: 700; font-size: var(--text-h3); line-height: 1; color: var(--accent); }
.plat h3 { margin: 0; font-size: var(--text-h6); color: var(--color-white); }
.plat__power { margin: 0; font-size: var(--text-tiny); text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.6); }
.plat__specs { margin: .5rem 0 0; display: grid; gap: .5rem; padding-top: .85rem; border-top: 1px solid var(--color-white-15, rgba(255,255,255,.15)); }
.plat__specs > div { display: flex; justify-content: space-between; gap: 1rem; }
.plat__specs dt { font-size: var(--text-tiny); text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.45); }
.plat__specs dd { margin: 0; font-size: var(--text-tiny); color: var(--color-white); text-align: right; }
.plat__status { margin: .5rem 0 1.25rem; font-size: var(--text-tiny); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.plat .btn { margin-top: auto; }

/* ---------- Case studies: full-bleed, oversized metrics ---------- */
.cases { background: var(--surface-inverse, #191919); }
.case2 { position: relative; padding: var(--section-py) 0; border-top: 1px solid var(--color-white-15, rgba(255,255,255,.15)); overflow: hidden; }
.case2__inner { position: relative; z-index: 1; }
.case2__title { margin: 0 0 3rem; max-width: 24ch; color: var(--color-white); }
.case2__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.case2__cols h4 { margin: 0 0 .85rem; color: var(--color-white); }
.case2__cols p { margin: 0; font-size: var(--text-medium); line-height: var(--text-body-line); color: rgba(255,255,255,.62); }
.case2__figs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--color-white-15, rgba(255,255,255,.15)); }
.cfig__v { margin: 0 0 .5rem; font-family: var(--font-display); font-weight: 700; font-size: var(--text-h2); line-height: 1; color: var(--accent); }
.cfig__note { margin: 0; font-size: var(--text-regular); line-height: var(--text-body-line); color: rgba(255,255,255,.55); }
.case2__foot { margin: 2rem 0 0; font-size: var(--text-regular); color: rgba(255,255,255,.55); max-width: 52rem; }
@media (max-width: 61.9375rem) {
  .plats { grid-template-columns: 1fr; }
  .case2__cols, .case2__cols:has(> :nth-child(3)) { grid-template-columns: 1fr; gap: 1.75rem; }
  .case2__figs { grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
}

/* Wider measure for this heading so the last word does not orphan */
#voices .section-heading { max-width: none; }
#voices .section-heading h2 { text-wrap: balance; }

/* Innovations reads left-aligned throughout (hero, segment rows, cards), so the
   section headings follow suit instead of jumping centre -> left mid-section. */
.page-left .section-heading { max-width: var(--measure-block); margin-inline: 0; text-align: left; }
/* Standalone prose in a left-aligned page shares the same column as the
   headings above it, instead of running the full container width. */
.page-left .container > .lede { max-width: var(--measure-block); text-wrap: pretty; }
.page-left .section-heading .desc { margin-inline: 0; }
.plats--3 { grid-template-columns: repeat(3, 1fr); }
.plats--2 { grid-template-columns: repeat(2, 1fr); }
/* Cell-family cards inside a solutions segment: they sit under the image row,
   still inside the segment's top rule, so the segment reads as one item. */
/* Innovations segments: image takes one third, copy two thirds (either side). */
@media (min-width: 62rem) {
  #segments .sol__row:has(> img:first-child) { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  #segments .sol__row:has(> img:last-child) { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}
/* Cell families: stat strip + drawer, inside the segment's copy column. */
/* One bordered object: the active tab and its copy share a surface and there is
   no rule between them, so the tab visibly opens into the text below. */
.fams-set { margin-top: 1.5rem; border: 1px solid var(--scheme-border); background: var(--scheme-surface); }
.fams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--scheme-border); }
.fams__btn { position: relative; display: grid; gap: .3rem; align-content: start; padding: .875rem 1rem 1rem; min-height: 2.75rem; background: var(--scheme-bg, #fff); box-shadow: inset 0 -1px 0 var(--scheme-border); border: 0; cursor: pointer; text-align: left; font: inherit; color: var(--scheme-text); transition: background .25s ease; }
.fams__btn::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left center; transition: transform .3s cubic-bezier(.4,0,.2,1); }
.fams__btn:hover { background: var(--scheme-surface); }
.fams__btn.is-active { background: var(--scheme-surface); box-shadow: none; }
.fams__btn.is-active::after { transform: scaleX(1); }
.fams__fig { font-family: var(--font-display); font-weight: 700; font-size: var(--text-h6); line-height: 1; color: var(--accent); }
.fams__cap { font-size: var(--text-tiny); text-transform: uppercase; letter-spacing: .12em; color: var(--scheme-text-muted); }
.fams__name { font-size: var(--text-small); font-weight: 600; line-height: 1.3; }
.fams__panel { display: none; gap: .6rem; padding: 1.25rem 1rem 1.5rem; }
.fams__panel.is-active { display: grid; animation: caseIn .4s cubic-bezier(.4,0,.2,1) both; }
.fams__panel p { margin: 0; font-size: var(--text-regular); line-height: var(--text-body-line); color: var(--scheme-text-muted); }
.fams__badge { justify-self: start; margin-top: .35rem; padding: .2rem .4rem; border: 1px solid var(--scheme-border); border-radius: var(--radius-badge); font-size: .625rem; line-height: 1.2; white-space: nowrap; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .fams__panel.is-active { animation: none; } }
@media (max-width: 47.9375rem) { .fams { grid-template-columns: 1fr; } .fams__btn.is-active { box-shadow: inset 0 -1px 0 var(--scheme-border); } }
/* Case copy with three columns (Challenge / Solution / Results). */
.case2__cols:has(> :nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case2__steps:has(> :nth-child(3):last-child) { grid-template-columns: 1fr 1fr; }
.case2__steps:has(> :nth-child(4)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plat__note { margin: .25rem 0 0; font-size: var(--text-regular); line-height: var(--text-body-line); color: rgba(255,255,255,.62); }
.scheme-light .plats { background: var(--scheme-border); border-color: var(--scheme-border); }
.scheme-light .plat { background: var(--scheme-surface); }
.scheme-light .plat h3 { color: var(--scheme-text); }
.scheme-light .plat__power { color: var(--scheme-text-muted); }
.scheme-light .plat__specs { border-top-color: var(--scheme-border); }
.scheme-light .plat__specs dt { color: var(--scheme-text-muted); }
.scheme-light .plat__specs dd { color: var(--scheme-text); }
.scheme-light .plat__note { color: var(--scheme-text-muted); }
@media (max-width: 61.9375rem) { .plats--3, .plats--2 { grid-template-columns: 1fr; } }

/* ---------- Glow border: a conic sweep travelling clockwise around the box ----------
   The angle itself is animated (registered custom property) rather than rotating an
   oversized pseudo-element. Rotating a box that is wider than it is tall makes the
   arc appear to cross itself at the corners; advancing only the gradient's start
   angle keeps the travel continuous and strictly clockwise. */
@property --glow-a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.glowbox { position: relative; isolation: isolate; border: 0 !important; border-radius: 2px; overflow: hidden; }
.glowbox::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: conic-gradient(from var(--glow-a) at 50% 50%, transparent 0turn, transparent .13turn, rgba(234,0,41,.16) .24turn, rgba(234,0,41,.52) .36turn, rgba(234,0,41,.88) .46turn, var(--accent) .50turn, rgba(234,0,41,.88) .54turn, rgba(234,0,41,.52) .64turn, rgba(234,0,41,.16) .76turn, transparent .87turn, transparent 1turn);
  animation: glowSpin 4.6s linear infinite; }
/* Soft bloom inside the hairline so the arc reads as light, not a drawn line. */
.glowbox::after { box-shadow: inset 0 0 22px 1px rgba(234,0,41,.14); }
/* Quincunx dot field (the 5-dots tile): two offset dot grids on a 10px tile with sub-pixel dots —
   corners plus centre — the same arrangement as the reference tile, but
   as CSS so it recolours with the accent token and stays crisp at any DPI.
   Held at ~5% white so it reads as paper texture, not decoration. */
.glowbox::after { content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: 1px;
  background:
    radial-gradient(circle at 0 0, rgba(255,255,255,.06) 0 .75px, rgba(255,255,255,0) .75px),
    radial-gradient(circle at 5px 5px, rgba(255,255,255,.06) 0 .75px, rgba(255,255,255,0) .75px),
    var(--surface-inverse, #191919);
  background-size: 10px 10px, 10px 10px, auto; }
/* The same dot field again in accent, revealed only where the cursor is. Masking
   a duplicate layer is what makes the dots themselves light up locally, rather
   than a flat red circle floating over them. */
.glowbox .glowbox__mesh { position: absolute; inset: 1px; z-index: 0; pointer-events: none; border-radius: 1px;
  background:
    radial-gradient(circle var(--glow-r, 15rem) at var(--mx, 50%) var(--my, -40%), rgba(234,0,41,.10), rgba(234,0,41,.03) 48%, rgba(234,0,41,0) 72%),
    radial-gradient(circle at 0 0, rgba(234,0,41,.6) 0 .75px, rgba(234,0,41,0) .75px),
    radial-gradient(circle at 5px 5px, rgba(234,0,41,.6) 0 .75px, rgba(234,0,41,0) .75px);
  background-size: auto, 10px 10px, 10px 10px;
  -webkit-mask-image: radial-gradient(circle var(--glow-r, 15rem) at var(--mx, 50%) var(--my, -40%), #000 0%, rgba(0,0,0,.4) 44%, rgba(0,0,0,0) 72%);
  mask-image: radial-gradient(circle var(--glow-r, 15rem) at var(--mx, 50%) var(--my, -40%), #000 0%, rgba(0,0,0,.4) 44%, rgba(0,0,0,0) 72%);
  opacity: 0; transition: opacity .5s ease; }
.glowbox.is-lit .glowbox__mesh { opacity: 1; }
.glowbox > * { position: relative; z-index: 1; }
@keyframes glowSpin { to { --glow-a: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .glowbox::before { animation: none; background: rgba(234,0,41,.45); }
  .glowbox .glowbox__mesh { display: none; }
}

/* ---------- Solution approach: pinned technical plate + stepped list ----------
   The page already pins media in two other places (segments, .sols), so one
   sticky plate that changes as you move through the three steps stays in
   vocabulary. The plates are drawn in CSS rather than photographed: the section
   is about method, not hardware, and the existing photo set is facility and
   vehicle shots that would say nothing about cell selection or pack scoping.
   Each plate is one motif — cell array, module bays, system topology — built
   from the same 1px accent hairlines used by the glow box. */
.approach { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 42%); gap: 3.5rem; align-items: stretch; }
.approach__media { grid-column: 2; grid-row: 1; }
.approach__steps { grid-column: 1; grid-row: 1; }
/* The plate matches the step list's height exactly rather than carrying its own
   aspect ratio, so its top and bottom line up with the list's first and last rules
   and the closing paragraph below picks up a clean single baseline. */
.approach__media { position: relative; overflow: hidden;
  border-radius: var(--radius-image); background: var(--surface-inverse, #191919);
  border: 1px solid var(--color-white-15, rgba(255,255,255,.15)); }
/* Corner ticks: the one thing that reads "measured drawing" rather than "pattern". */
.approach__media::before, .approach__media::after { content: ""; position: absolute; width: 0.875rem; height: 0.875rem;
  border: 1px solid rgba(234,0,41,.55); pointer-events: none; z-index: 3; }
.approach__media::before { top: 0.75rem; left: 0.75rem; border-right: 0; border-bottom: 0; }
.approach__media::after { bottom: 0.75rem; right: 0.75rem; border-left: 0; border-top: 0; }
.approach__plate { position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .55s ease, visibility .55s; }
.approach__plate.is-active { opacity: 1; visibility: visible; }
/* The slot's own hover controls must stay reachable, so everything layered over
   the photo is click-through. */
.approach__cap, .approach__media::before, .approach__media::after { pointer-events: none; }
.approach__cap { position: absolute; left: 1.25rem; bottom: 1.1rem; z-index: 3; margin: 0;
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-tiny);
  letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.approach__cap b { color: var(--accent); font-weight: 700; }
.approach__steps { list-style: none; margin: 0; padding: 0; }
.approach__step { display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 1rem;
  padding: 1.75rem 0; border-top: 1px solid var(--scheme-border); transition: opacity .4s ease; }
.approach__step:last-child { border-bottom: 1px solid var(--scheme-border); }
.approach__step:not(.is-active) { opacity: .42; }
.approach__n { font-family: var(--font-display); font-weight: 700; font-size: var(--text-tiny);
  letter-spacing: .18em; line-height: 1; padding-top: .5rem; color: var(--accent); }
.approach__step h4 { margin: 0 0 .6rem; }
.approach__step p { margin: 0; font-size: var(--text-regular); line-height: var(--text-body-line); color: var(--scheme-text-muted); }
@media (max-width: 61.9375rem) {
  .approach { grid-template-columns: 1fr; gap: 2rem; }
  .approach__media { aspect-ratio: 16 / 10; grid-column: 1; grid-row: 1; }
  .approach__steps { grid-column: 1; grid-row: 2; }
  .approach__step:not(.is-active) { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .approach__step:not(.is-active) { opacity: 1; }
}

/* ---------- Process flow: full-width rows, nothing clipped ---------- */
.flow { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--scheme-border); }
/* The index sits above the row rather than in its own column, so the heading
   keeps the full measure. */
.flow__step { display: block; padding: 2.25rem 0; border-bottom: 1px solid var(--scheme-border); }
.flow__n { display: block; margin-bottom: .6rem; font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-tiny); letter-spacing: .18em; line-height: 1; color: var(--accent); }
.flow__body { display: grid; grid-template-columns: minmax(min-content, 20rem) minmax(0, 1fr); gap: 2rem; align-items: baseline; }
.flow__body h4 { margin: 0; }
.flow__body p { margin: 0; font-size: var(--text-medium); line-height: var(--text-body-line); color: var(--scheme-text-muted); }
@media (max-width: 61.9375rem) {
  .flow__step { padding: 1.75rem 0; }
  .flow__body { grid-template-columns: 1fr; gap: .65rem; }
}
/* .cases is full-bleed rather than .section, so its heading needs the page gutter */
.cases__head { padding-top: var(--section-py); padding-inline: max(var(--page-edge, 5%), calc((100% - var(--container-xxl)) / 2)); }
.case2__inner { padding-inline: max(var(--page-edge, 5%), calc((100% - var(--container-xxl)) / 2)); }

/* ---------- What is inside a pack: component cards ---------- */
.parts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--scheme-border); border: 1px solid var(--scheme-border); }
.part { display: flex; flex-direction: column; gap: .85rem; padding: 1.75rem; background: var(--scheme-surface); transition: background-color .3s ease; }
.part__icon { width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; border-radius: 2px;
  background: rgba(234, 0, 41, .1); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(234, 0, 41, .28); }
.part h4 { margin: 0; font-size: var(--text-h6); }
.part p { margin: 0; font-size: var(--text-regular); line-height: var(--text-body-line); color: var(--scheme-text-muted); }
@media (max-width: 75rem) { .parts { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 61.9375rem) { .parts { grid-template-columns: 1fr; } }

/* ---------- Case studies: one at a time, switched by tabs ---------- */
/* No gutter here: .cases__head already applies the page gutter, and repeating it
   pushed the tabs inboard of the headings. */
.cases__tabs { display: flex; gap: 2rem; margin-top: 2.5rem; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--color-white-15, rgba(255,255,255,.15)); }
.cases__tab { position: relative; padding: 0 0 1rem; background: none; border: 0; cursor: pointer;
  color: rgba(255,255,255,.5); font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: var(--text-tiny); letter-spacing: .14em; transition: color .25s ease; }
.cases__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left center; transition: transform .35s cubic-bezier(.4,0,.2,1); }
.cases__tab:hover { color: rgba(255,255,255,.85); }
.cases__tab.is-active { color: var(--color-white); }
.cases__tab.is-active::after { transform: scaleX(1); }
.case2 { display: none; padding: var(--section-py) 0 calc(var(--section-py) + 1rem); }
.case2.is-active { display: block; animation: caseIn .5s cubic-bezier(.4,0,.2,1) both; }
@keyframes caseIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .case2.is-active { animation: none; } }
/* Three tabs: one scrollable row on small screens rather than wrapping onto a
   second line under the rule. Labels never truncate. */
.cases__tabs::-webkit-scrollbar { display: none; }
/* overflow-x clips anything outside the box, so the rule moves inside (inset
   shadow) and the active underline sits on it at bottom:0 — same look as before. */
.cases__tabs { border-bottom: 0; box-shadow: inset 0 -1px 0 var(--color-white-15, rgba(255,255,255,.15)); }
.cases__tab::after { bottom: 0; }
.cases__tab { flex: none; white-space: nowrap; }

/* Nothing on this page centres. Every block starts at the same left edge. */
.page-left .section-heading,
.page-left .section-heading h2,
.page-left .placeholder { text-align: left; margin-inline: 0; }
/* Exception: the testimonials section is centred as a deliberate feature moment. */
.page-left #voices .section-heading,
.page-left #voices .section-heading h2,
.page-left #voices .section-heading .tagline { text-align: center; margin-inline: auto; }
.page-left #voices .quotes { margin-inline: auto; }
.page-left #voices .quote { text-align: center; }
.page-left #voices .quotes__nav { justify-content: center; }
/* Sticky solution stack on a light section (it is dark on the homepage) */
.scheme-light .sol { background: var(--scheme-bg, #fff); }
.scheme-light .sol__head { border-top-color: var(--scheme-border); }

/* Custom cell block: centred, with heading and copy sharing one measure
   so the two never disagree and the last word cannot orphan. */
.page-left .placeholder.glowbox { text-align: center; padding: 3rem 2rem; }
/* This one heading is set to break in exactly two lines rather than left to a
   measure, so it stays a deliberate two-line statement at any container width.
   The break only applies on wide screens; below that it wraps naturally. */
.glowbox h2 { max-width: none; margin: 0 auto 1.25rem; }
.br-wide { display: none; }
@media (min-width: 62rem) { .br-wide { display: inline; } }
.glowbox p { max-width: var(--measure-block); margin: 0 auto 2rem;
  font-size: var(--text-medium); line-height: var(--text-body-line); color: var(--scheme-text-muted); }
.glowbox h2 { text-wrap: balance; }
.glowbox .placeholder__tag { display: inline-block; }

/* ============================================================
   Orphan control, site-wide. Headings balance across lines so a
   single word can never be stranded; body copy avoids widows.
   ============================================================ */
h1, h2, h3, h4, h5, h6,
.section-heading h2, .quote__text, .case2__title { text-wrap: balance; }
/* The marquee lines are a single unbroken run — never balance or wrap them. */
.banner__line, .banner__mid-main, .banner__heading { text-wrap: nowrap; white-space: nowrap; max-width: none; }
p, li, dd, figcaption, blockquote { text-wrap: pretty; }
/* Case study hero: full-bleed image under the pinned tabs, eyebrow + title set
   on it; the base dissolves into the section (same bottom-fade idea as before). */
.case2 { padding-top: 0; border-top: 0; }
.case2__hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(26rem, 78vh, 48rem); overflow: hidden; }
.case2__hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.case2__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--surface-inverse, #191919) 0%, rgba(25,25,25,.6) 26%, rgba(25,25,25,0) 55%), linear-gradient(to right, rgba(25,25,25,.45), transparent 50%); }
.case2__hero-copy { position: relative; z-index: 1; width: 100%; padding: 0 max(var(--page-edge, 5%), calc((100% - var(--container-xxl)) / 2)) 1rem; }
.case2__hero-copy .case2__title { margin: 0; max-width: 22ch; }
/* Challenge → Solution → Results: a red line fills with scroll (site.js sets
   --p 0→1) and each step lights as the line reaches it. */
.case2__steps { position: relative; margin-top: 2.5rem; padding-top: 3rem; }
.case2__track { position: absolute; left: 0; right: 0; top: calc(.375rem - .5px); height: 1px; background: var(--color-white-15, rgba(255,255,255,.15)); }
.case2__track i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left center; }
.case2__step { position: relative; opacity: .38; transition: opacity .45s ease; }
.case2__step.is-on { opacity: 1; }
.case2__dot { position: absolute; top: -3rem; left: 0; display: flex; align-items: center; gap: .6rem; height: .75rem; line-height: 1; padding-right: .6rem; background: var(--surface-inverse, #191919); font-family: var(--font-display); font-weight: 700; font-size: var(--text-tiny); letter-spacing: .14em; color: rgba(255,255,255,.7); }
.case2__dot::before { content: ""; width: .75rem; height: .75rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: var(--surface-inverse, #191919); transition: background .3s ease, border-color .3s ease; }
.case2__step.is-on .case2__dot { color: var(--color-white); }
.case2__step.is-on .case2__dot::before { background: var(--accent); border-color: var(--accent); }
/* Tabs pin under the nav for the whole section, full-bleed rule. */
.cases > .cases__tabs { position: sticky; top: var(--nav-h); z-index: 5; margin-top: 2.5rem; padding: 1rem max(var(--page-edge, 5%), calc((100% - var(--container-xxl)) / 2)) 0; background: var(--surface-inverse, #191919); transition: transform .35s ease, box-shadow .3s ease; }
/* Nav slides away on scroll-down → the bar slides up into its place (same
   timing); nav returns on scroll-up → the bar drops back beneath it. */
html.nav-hidden .cases > .cases__tabs.is-stuck { transform: translateY(calc(-1 * var(--nav-h))); }
.cases > .cases__tabs.is-stuck { box-shadow: inset 0 -1px 0 var(--color-white-15, rgba(255,255,255,.15)), 0 10px 24px -12px rgba(0,0,0,.6); }
/* Compact section label, only while pinned (the full heading has scrolled off). */
.cases__bar-label { flex: none; display: flex; align-items: center; gap: 2rem; max-width: 0; margin-right: -2rem; padding-bottom: 1rem; overflow: hidden; opacity: 0; white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-size: var(--text-tiny); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); transition: max-width .45s cubic-bezier(.4,0,.2,1), margin-right .45s cubic-bezier(.4,0,.2,1), opacity .3s ease; }
.cases__bar-label::after { content: ""; width: 1px; height: 1rem; background: var(--color-white-15, rgba(255,255,255,.15)); }
.is-stuck > .cases__bar-label { max-width: 14rem; margin-right: 0; opacity: 1; }
/* Short one-word tab labels swap in on mobile. */
.cases__tab .tab-short { display: none; }
@media (max-width: 47.9375rem) {
  /* Mobile: label stays pinned at the left while the tabs swipe beneath it;
     slightly smaller type so more of each tab fits. */
  .cases > .cases__tabs { gap: 1.25rem; padding-left: 0; }
  .cases__bar-label { position: sticky; left: 0; z-index: 1; gap: 1rem; padding-left: var(--page-edge, 5%); background: var(--surface-inverse, #191919); font-size: .625rem; margin-right: -1.25rem; }
  .is-stuck > .cases__bar-label { max-width: 12rem; margin-right: 0; box-shadow: 14px 0 14px -4px var(--surface-inverse, #191919); }
  .cases > .cases__tabs:not(.is-stuck) > .cases__bar-label { padding-left: 0; }
  .cases > .cases__tabs:not(.is-stuck) > .cases__tab:first-of-type { margin-left: var(--page-edge, 5%); }
  .cases__tab { font-size: .6875rem; letter-spacing: .1em; }
  /* (No right-edge fade: the cut-off tab already signals more to swipe.) */
  .cases__tab .tab-full { display: none; }
  .cases__tab .tab-short { display: inline; }
}
@media (max-width: 61.9375rem) {
  .cases__tabs { gap: 1.25rem; }
  .case2__hero { min-height: clamp(20rem, 62vh, 30rem); }
  .case2__steps, .case2__steps:has(> :nth-child(3):last-child), .case2__steps:has(> :nth-child(4)) { grid-template-columns: 1fr; }
  .case2__steps { padding: 0 0 0 2rem; }
  .case2__track { left: calc(.375rem - .5px); right: auto; top: .5rem; bottom: 0; width: 1px; height: auto; }
  .case2__track i { transform: scaleY(var(--p, 0)); transform-origin: center top; }
  .case2__dot { top: .15rem; left: -2rem; padding: 0; background: none; font-size: 0; gap: 0; }
}
@media (prefers-reduced-motion: reduce) { .case2__step { opacity: 1; transition: none; } }

/* ============================================================
   MEASURE TOKENS — one source of truth for text widths.
   Every max-width on a text block should reference one of these,
   never a hand-written rem value.
   ============================================================ */
:root {
  --measure-heading: 30ch;   /* display headings */
  --measure-lede:    46ch;   /* section intros / ledes */
  --measure-copy:    68ch;   /* body paragraphs */
  --measure-wide:    88ch;   /* full-width closing statements */
  --measure-block:   52rem;  /* intro copy under a section heading */
  /* Display headings need a wider measure than the body copy beneath them:
     52rem is sized for 16-18px prose, so at 48px+ any two-clause heading broke
     to three lines. The block opens up on desktop; the intro keeps 52rem. */
  --measure-heading-block: 52rem;
}
/* One measure for the whole heading block: ch is font-relative, so the same ch
   value on a 50px heading and 16px copy produces wildly different pixel widths.
   The block gets a single rem measure and both children fill it exactly. */
.section-heading { max-width: var(--measure-heading-block); }
.section-heading h2 { max-width: none; }
.section-heading .desc { max-width: var(--measure-block); }
@media (min-width: 62rem) { :root { --measure-heading-block: 72rem; } }
#voices .section-heading h2 { max-width: none; }
/* Sticky stack is scoped to its own wrapper so the last card releases
   at the end of the group instead of hanging over the next section. */
.sols { position: relative; }
/* Material Symbols used for the emerging-application icons */
.material-symbols-outlined { font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal;
  line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr;
  -webkit-font-feature-settings: "liga"; font-feature-settings: "liga"; -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24; }
.emerge__icon .material-symbols-outlined, .part__icon .material-symbols-outlined { font-size: 1.375rem; }
/* Failure containment: the glyph box is fixed and clipped, and the ligature text is
   hidden until the font has actually loaded — so a failed/blocked font shows nothing
   rather than spilling the literal word "precision_manufacturing" across the card. */
.material-symbols-outlined { display: inline-flex; align-items: center; justify-content: center;
  width: 1.375rem; height: 1.375rem; overflow: hidden; visibility: hidden; }
.fonts-ms-ready .material-symbols-outlined { visibility: visible; }
.part__icon i { width: 1.125rem; height: 1.125rem; }

/* ---------- Page hero band ----------
   The inner pages (.phero) are text-only by design. This is the one image they
   get: a full-container plate directly under the hero copy, same radius and
   hover behaviour as the segment media so it reads as part of the same system.
   Deliberately wide and shallow so it establishes place without competing with
   the H1 above it. */
.pband { padding: 0 var(--page-edge, 5%) var(--section-py); }
.pband__inner { max-width: var(--container-xxl); margin: 0 auto; overflow: hidden; border-radius: var(--radius-image); }
.pband img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover;
  transition: transform .9s cubic-bezier(.4,0,.2,1); }
.pband:hover img { transform: scale(1.03); }
@media (max-width: 61.9375rem) { .pband img { aspect-ratio: 16 / 10; } }
@media (prefers-reduced-motion: reduce) { .pband:hover img { transform: none; } }

/* ---------- Navbar wordmark glow on hover ----------
   drop-shadow reads the PNG's alpha, so the bloom follows the letterforms rather
   than boxing the image. Two stops: a tight core and a wide halo, in the brand
   secondary green — the one place the site currently glows something other than red. */
.nav__brand, .footer__brand { display: inline-flex; align-items: center; }
.nav__brand img, .footer__brand img { transition: filter .35s ease, transform .35s cubic-bezier(.4,0,.2,1); }
.nav__brand:hover img, .nav__brand:focus-visible img,
.footer__brand:hover img, .footer__brand:focus-visible img {
  filter: drop-shadow(0 0 6px rgba(31,168,94,.75)) drop-shadow(0 0 18px rgba(31,168,94,.45));
  transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
  .nav__brand:hover img, .footer__brand:hover img { transform: none; transition: none; }
}

/* ---------- People: portrait cards + compact roster rows ----------
   Used on Our Company. The portrait grid carries name and role only; the long
   biographies live in the accordion below, so the section reads as a team at a
   glance instead of four columns of prose. */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.person__portrait { overflow: hidden; border-radius: var(--radius-image); background: var(--scheme-border); }
.person__portrait img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  filter: grayscale(1) contrast(1.04); transition: transform .7s cubic-bezier(.4,0,.2,1); }
.person:hover .person__portrait img { transform: scale(1.04); }
.person h4 { margin: 1.1rem 0 .4rem; }
.person__role { margin: 0; font-size: var(--text-tiny); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
.person__line { margin: .85rem 0 0; font-size: var(--text-regular); line-height: var(--text-body-line); color: var(--scheme-text-muted); }
@media (max-width: 61.9375rem) { .people { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
@media (max-width: 37.4375rem) { .people { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .person:hover .person__portrait img { transform: none; } }

/* Directors and advisors are names and one line each — rows, not cards. */
.roster { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3.5rem; }
.roster__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 1.5rem;
  padding: 1.15rem 0; border-top: 1px solid var(--scheme-border); align-items: baseline; }
.roster__name { margin: 0; font-family: var(--font-display); text-transform: uppercase;
  font-weight: var(--font-weight-bold); font-size: var(--text-h6); }
.roster__note { margin: 0; font-size: var(--text-regular); line-height: var(--text-body-line); color: var(--scheme-text-muted); }
@media (max-width: 61.9375rem) { .roster { grid-template-columns: 1fr; } .roster__row { grid-template-columns: 1fr; gap: .4rem; } }

/* Chairman portrait: same square crop as the team grid, but the media track is
   capped. A percentage width with no maximum resolves to half the container,
   which put an 800px headshot next to a 250px paragraph. */
.chair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: 4rem; align-items: start; }
.chair__portrait { overflow: hidden; border-radius: var(--radius-image); background: var(--scheme-border); max-width: 20rem; }
.chair__portrait img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; filter: grayscale(1) contrast(1.04); }
@media (max-width: 61.9375rem) { .chair { grid-template-columns: 1fr; gap: 2rem; } .chair__portrait { max-width: 16rem; } }

/* This one H1 is three sentences long, so it needs a wider card than the 40rem
   default to land on three lines instead of five. Scoped to the page. */
#company-hero .rhero__content { max-width: 60rem; }

/* Accordion answers read at 80% of the container rather than full width — the
   question row spans the full rule, the answer sits inside it. Applies to every
   .spec accordion on the site (Innovations FAQ and specs, Our Company ESG and
   team biographies). */
.spec__inner { max-width: 80%; }
@media (max-width: 61.9375rem) { .spec__inner { max-width: 100%; } }

/* Inline bio disclosure inside each person card. The summary always shows; the
   rest expands in place, so the grid stays a grid instead of being followed by a
   second list of the same four names. */
.person__more { max-height: 0; overflow: hidden; visibility: hidden;
  transition: max-height .45s cubic-bezier(.4,0,.2,1), visibility .45s; }
.person.is-open .person__more { max-height: 120rem; visibility: visible; }
.person__more p { margin: .85rem 0 0; font-size: var(--text-regular); line-height: var(--text-body-line); color: var(--scheme-text-muted); }
.person__toggle { display: inline-flex; align-items: center; gap: .4rem; margin-top: .9rem; padding: 0;
  background: none; border: 0; cursor: pointer; font-family: var(--font-display); font-weight: var(--font-weight-bold);
  font-size: var(--text-tiny); text-transform: uppercase; letter-spacing: .14em; color: var(--accent);
  transition: color .2s ease; }
.person__toggle:hover { color: var(--color-white); }
.person__toggle span { font-size: 1.1em; line-height: 1; transition: transform .3s ease; }
.person.is-open .person__toggle span { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .person__more { transition: none; } .person__toggle span { transition: none; } }

/* ---------- Application form ----------
   Two columns of equal fields with explicit full-width spans, rather than nested
   grid-2 rows — every field lines up on the same two tracks. The apply block is
   centred as a deliberate moment on an otherwise left-aligned page. */
#apply .section-heading, #apply .section-heading h2, #apply .section-heading .tagline, #apply .section-heading .desc {
  text-align: center; margin-inline: auto; }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem;
  max-width: 44rem; margin-inline: auto; }
.formgrid .field--full { grid-column: 1 / -1; }
.formgrid__actions { display: flex; justify-content: center; margin-top: .75rem; }
.formgrid__note { margin: 0; text-align: center; font-size: var(--text-regular);
  line-height: var(--text-body-line); color: var(--scheme-text-muted); }
@media (max-width: 37.4375rem) { .formgrid { grid-template-columns: 1fr; } }

/* ============================================================
   Mobile pass — touch targets and the narrow-width edge cases
   the desktop breakpoints did not cover.
   ============================================================ */
@media (max-width: 61.9375rem) {
  /* 44px minimum touch target: these were 12px text with no padding. */
  .person__toggle { min-height: 2.75rem; padding: .5rem 0; margin-top: .35rem; }
  .spec__btn { min-height: 3.5rem; }
  .quotes__arrow { min-width: 2.75rem; min-height: 2.75rem; }
  .prose-cycle__dot { min-width: 2.75rem; min-height: 2.75rem; }
  /* The stats band reads as two rows of two rather than four cramped columns. */
  #numbers .case2__figs { gap: 2rem 1.5rem; }
  #numbers .cfig__v { font-size: var(--text-h3); }
  /* Roster rows: name and note stack, so give the pair breathing room. */
  .roster__row { padding: 1.35rem 0; }
  /* Team portraits at two-up get a little more air between rows than columns. */
  .people { gap: 2rem 1.5rem; }
}
@media (max-width: 37.4375rem) {
  /* Single column: the square portrait would otherwise dominate the viewport. */
  .person__portrait img { aspect-ratio: 4 / 3; }
  .formgrid__actions .btn { width: 100%; }
  /* Flow steps and segment rows already stack; tighten the vertical rhythm. */
  .flow__step { padding: 1.5rem 0; }
  .pband { padding-bottom: var(--section-py); }
}

/* Open-application block is centred, matching the apply form above it. */
#open-application .section-heading, #open-application .section-heading h2,
#open-application .section-heading .tagline, #open-application .section-heading .desc {
  text-align: center; margin-inline: auto; }

/* ============================================================
   Page width scale — rem-based, and it grows on large displays.
   The container used to stop dead at 1280px, so a 2560px screen got the same
   measure as a laptop and everything read as a narrow column in a wide field.
   ============================================================ */
@media (min-width: 93.75rem) { :root { --container-xxl: 88rem; --page-edge: 5%; } }
@media (min-width: 112.5rem) { :root { --container-xxl: 96rem; --page-edge: 6%; } }
@media (min-width: 137.5rem) { :root { --container-xxl: 108rem; --page-edge: 7%; } }

/* Never let a grid or flex child force the page wider than the viewport: an
   unbreakable word or a fixed-width child in a 1fr track does exactly that,
   which is what pushed whole sections off-screen on mobile. */
.container, .section, .sol__row, .partners__grid, .footer__grid, .grid-2, .grid-3, .people, .roster, .roster__row, .chair, .approach, .flow__body, .formgrid, .case2__cols, .case2__figs, .plats, .parts, .emerging, .pcards, .industries { min-width: 0; }
.grid-2 > *, .grid-3 > *, .people > *, .chair > *, .approach > *, .flow__body > *, .formgrid > *, .case2__cols > *, .partners__grid > *, .sol__row > * { min-width: 0; }
/* Long unbroken strings (URLs, part numbers) wrap instead of widening the page.
   Headings are deliberately excluded: break-word let a display heading split
   mid-word ("DEVELOPMEN / T") the moment its grid track dipped under the
   longest word. Headings never break mid-word above phone widths — the track
   is given a min-content floor instead, so it cannot get that narrow. */
p, li, dd, dt, .roster__note, .person__line { overflow-wrap: break-word; }
h1, h2, h3, h4, h5, h6 { overflow-wrap: normal; word-break: normal; hyphens: none; }
/* Grid tracks that carry a heading can never be narrower than its longest word. */
.flow__body > h4, .approach__step h4, .case2__cols > div { min-width: min-content; }
/* Belt and braces: clip stray horizontal overflow without killing sticky/position. */
html { overflow-x: clip; }
body { overflow-x: clip; max-width: 100%; }

/* ============================================================
   Navbar wordmark — it was a flex child with no shrink protection, so on
   narrow screens the row squeezed the image instead of the nav links.
   ============================================================ */
.nav__brand { flex: 0 0 auto; min-width: 0; }
.nav__brand img { height: 1.375rem; width: auto; max-width: none; flex: none; display: block; }
.nav__inner { gap: 1rem; flex-wrap: nowrap; }
.nav__actions { flex: 0 0 auto; }
/* No header CTA: links sit flush right, the last one on the page gutter. */
.nav__links { margin-left: auto; justify-content: flex-end; }
.nav__links a:last-child { padding-right: 0; }
.nav__actions:not(:has(> :not(.nav__toggle))) { gap: 0; }
/* Desktop: .nav__actions only holds the (hidden) mobile toggle, so drop it from
   the row — otherwise the row gap leaves the links 1rem short of the gutter. */
@media (min-width: 62rem) { .nav__actions:not(:has(> :not(.nav__toggle))) { display: none; } }
@media (max-width: 61.9375rem) {
  /* Below the nav-link breakpoint the row is brand + CTA + toggle only, so the
     CTA is what gives way, never the wordmark. */
  .nav__actions .btn { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 37.4375rem) {
  .nav__brand img { height: 1.25rem; }
  /* The full CTA label does not fit next to the wordmark on a phone; the nav
     panel carries it instead. */
  .nav__actions > .btn { display: none; }
}

/* ============================================================
   Partners: the heading column was the same width as the card column, so a
   four-word headline broke across five lines on a wide screen.
   ============================================================ */
@media (min-width: 62rem) {
  .partners__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 5rem; }
  .partners__head h2 { max-width: 24ch; }
  .partners__head .prose-cycle { max-width: var(--measure-copy); }
}
@media (min-width: 93.75rem) { .partners__grid { gap: 7rem; } }

/* ============================================================
   Mobile readability — copy sitting over photography needs a stronger scrim
   and a tighter measure than the same copy on a flat surface.
   ============================================================ */
@media (max-width: 61.9375rem) {
  .industry__scrim { background: linear-gradient(to top, rgba(0,0,0,.94), rgba(0,0,0,.8) 60%, rgba(0,0,0,.55)); }
  .industry__body p { font-size: var(--text-regular); line-height: 1.55; max-width: none; }
  .industry__inner { padding: 1.75rem; }
  .industry { min-height: 26rem; }
  /* Hero card copy: the lede was running long lines against a photograph. */
  .rhero__lede { font-size: var(--text-regular); }
  /* Section intros and descriptions stop at a comfortable measure. */
  .section-heading .desc, .phero__lede { max-width: 34rem; }
}
@media (max-width: 37.4375rem) {
  .industry__inner { padding: 1.5rem; }
  .industry__body p { font-size: 0.9375rem; }
  .cat-label, .tagline { letter-spacing: .12em; }
}

/* ============================================================
   Partners on mobile: the section is a flat stack, not a pinned scroll scene.
   Two things went wrong here — justify-items:center made the grid items
   shrink-to-fit (so the heading column collapsed to its longest word), and the
   desktop pin animation's transform stayed applied, pushing it off the left edge.
   ============================================================ */
@media (max-width: 61.9375rem) {
  .partners__grid { justify-items: stretch; text-align: left; }
  /* transform stays !important: site.js writes an inline transform for the
     desktop pin animation and does not clear it when the pin is disabled. */
  .partners__head, .partners__stack,
  [data-partners-head], [data-partners-stack] { width: 100%; max-width: none; transform: none !important; }
  .partners__head { text-align: left; }
  .prose-cycle, .prose-cycle__item { max-width: none; }
}

/* ============================================================
   Buttons on narrow screens. .btn is white-space:nowrap by design, which is
   right on desktop but means a long label ("Let's Talk About Your Application")
   renders wider than the phone and gets clipped. Below the tablet breakpoint a
   button may wrap and can never exceed its container.
   ============================================================ */
@media (max-width: 61.9375rem) {
  .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.25; }
  /* 44px minimum touch target for anything tappable — .btn--sm and the case
     tabs were landing at 33-34px. */
  .btn, .cases__tab { min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; }
  /* Any flex row of buttons wraps rather than overflowing. */
  .cta__buttons, .rhero__cta, .quotes__nav { flex-wrap: wrap; }
}
@media (max-width: 37.4375rem) {
  /* Full-width buttons read better than ragged widths on a phone. */
  .cta__buttons .btn, .rhero__cta .btn { width: 100%; }
  .cta__buttons { width: 100%; }
}

/* ============================================================
   Form controls: an <input> carries an intrinsic width (the default size=20),
   so in a grid track it refuses to shrink and pushes the row past the viewport.
   This is why the Contact form ran off the right edge on a phone.
   ============================================================ */
input, select, textarea, button { max-width: 100%; box-sizing: border-box; }
.field { min-width: 0; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; }

/* Hero CTA: 1fr tracks have min-width auto, so a long button label sets the
   floor and two columns cannot fit a narrow phone. Give the tracks a zero
   minimum, and stack them outright on the smallest screens. */
@media (max-width: 61.9375rem) {
  .rhero__cta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 37.4375rem) {
  .rhero__cta { grid-template-columns: 1fr; }
}

/* Hero CTAs sit on one line on desktop. The two labels need ~630px and the
   40rem card only offered 576px of inner width, so the pair wrapped. */
@media (min-width: 62rem) {
  .rhero--card .rhero__content { max-width: 44rem; }
  .rhero__cta { flex-wrap: nowrap; }
  .rhero__cta .btn { flex: 0 0 auto; white-space: nowrap; }
}

/* ============================================================
   LAYER 2 — patterns, utilities and cascade corrections.
   Everything below is site-wide and token-driven. Component rules live above;
   this layer only defines shared patterns and fixes places where a component
   rule out-specified a token.
   ============================================================ */

/* ---- Layout corrections ---- */
/* Blocks that compute their own centring gutter must not ALSO carry .container's
   max-width — the two stack and the content column collapses to ~1023px at 1800px. */
.container.partners__grid, .container.cases__head, .container.case2__inner,
.container.rhero__inner, .container.phero__inner, .container.nav__inner { max-width: none; }

/* Marquee lines are nowrap and far wider than the page; as flex items they used to
   stretch .banner__stack, so the real heading never wrapped. Pin the stack to the
   page and let the lines overflow into .banner's existing clip. */
.banner__stack > * { max-width: 100%; }
.banner__line { max-width: none; flex: 0 0 auto; letter-spacing: -0.02em; }
.banner__heading { max-width: 100%; overflow-wrap: break-word; }

/* The asymmetric partners grid sits outside any media query and later in the file
   than the mobile stack rule, so it won the cascade all the way down to 320px. */

/* At phone width an unbreakable word genuinely cannot fit. */
@media (max-width: 37.4375rem) {
  h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
}

/* ---- Spacing scale ----
   Vertical rhythm was 88 ad-hoc inline margins; one named scale instead. */
:root {
  --space-0: 0; --space-2xs: .75rem; --space-xs: 1rem; --space-sm: 1.25rem;
  --space-md: 1.5rem; --space-lg: 2rem; --space-xl: 2.5rem; --space-2xl: 3rem;
  --space-3xl: 3.5rem; --space-4xl: 4rem; --space-5xl: 4.5rem; --space-6xl: 5rem;
}
/* Doubled class = (0,2,0) so a spacing utility always beats a component reset
   like ".tile p { margin: 0 }" (0,1,1). A utility that loses to the component
   it is placed on is not a utility. */
.mt-0.mt-0{margin-top:var(--space-0)}.mb-0.mb-0{margin-bottom:var(--space-0)}
.mt-2xs.mt-2xs{margin-top:var(--space-2xs)}.mb-2xs.mb-2xs{margin-bottom:var(--space-2xs)}.mb-xs.mb-xs{margin-bottom:var(--space-xs)}
.mt-sm.mt-sm{margin-top:var(--space-sm)}.mb-sm.mb-sm{margin-bottom:var(--space-sm)}
.mt-md.mt-md{margin-top:var(--space-md)}.mb-md.mb-md{margin-bottom:var(--space-md)}
.mt-lg.mt-lg{margin-top:var(--space-lg)}.mb-lg.mb-lg{margin-bottom:var(--space-lg)}
.mt-xl.mt-xl{margin-top:var(--space-xl)}.mb-xl.mb-xl{margin-bottom:var(--space-xl)}
.mt-2xl.mt-2xl{margin-top:var(--space-2xl)}.mb-2xl.mb-2xl{margin-bottom:var(--space-2xl)}
.mt-3xl.mt-3xl{margin-top:var(--space-3xl)}.mb-3xl.mb-3xl{margin-bottom:var(--space-3xl)}
.mt-4xl.mt-4xl{margin-top:var(--space-4xl)}.mb-4xl.mb-4xl{margin-bottom:var(--space-4xl)}.mb-5xl.mb-5xl{margin-bottom:var(--space-5xl)}.mb-6xl.mb-6xl{margin-bottom:var(--space-6xl)}

/* ---- Typographic patterns ----
   These replaced ~230 of the original 352 inline style attributes. The extra
   element qualifier raises them to (0,1,1) so component rules like ".emerge p"
   no longer beat them — something the inline styles never had to contend with. */
.lede, p.lede { font-size: var(--text-medium); line-height: var(--text-body-line); color: var(--scheme-text-muted); }
.lede.lede--lg { font-size: var(--text-large); color: var(--scheme-text); }
.lede.lede--sm { font-size: var(--text-regular); }
.lede.lede--xs { font-size: var(--text-tiny); }
.eyebrow, p.eyebrow { font-size: var(--text-tiny); font-weight: var(--font-weight-semibold); text-transform: uppercase; letter-spacing: .14em; color: var(--accent-text); }
.eyebrow.eyebrow--muted { color: var(--scheme-text-muted); }
.eyebrow.eyebrow--dim { color: var(--color-white-72); }
.subhead, h3.subhead { font-size: var(--text-h4); margin-bottom: var(--space-2xs); }
.u-measure-block { max-width: var(--measure-block); }
/* A .reveal wrapping only a section heading always cleared the same distance. */
.reveal:has(> .section-heading) { margin-bottom: var(--space-4xl); }

/* ---- Structural utilities ---- */
.btn-row { display: flex; gap: var(--space-xs); flex-wrap: wrap; }
.btn-row--center { justify-content: center; }
.img-slot { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--scheme-surface); border: 1px solid var(--scheme-border); }
.img-slot--wide { aspect-ratio: 16 / 9; }
.img-slot img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.4,0,.2,1); }
.tile:hover .img-slot img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .tile:hover .img-slot img { transform: none; } }
a.tile { display: block; }
.spec__inner--single { grid-template-columns: 1fr; }
/* Brand marks: one height and one hover treatment, nav and footer alike. */
.nav__brand img, .footer__brand img { height: 1.375rem; width: auto; }
.footer__nav { font-weight: 400; font-size: 0.75rem; }
.footer__legal { font-size: 0.6875rem; }

/* ---- Text over imagery ----
   Each scrim is set against the BRIGHTEST plausible photo, not the one that
   happens to sit in the slot today: ~72% black under body copy, ~62% under
   large display type, with a hairline shadow catching the rest. */
.industry__inner, .pcard__over, .rhero--card .rhero__content, .cta__inner { text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.btn, .btn:hover { text-shadow: none; }   /* buttons carry their own fill */
.industry__body p, .rhero--card .rhero__lede { color: var(--color-white-92); }
:root { --rhero-img-dark: 0.32; }

/* ---- Accent as TEXT ----
   Pure #ea0029 is 2.25:1 on white and 3.79:1 on #191919 — it cannot carry type.
   Text uses the darker/lighter steps of the same ramp; --accent itself stays
   pure Torch Red for every fill, rule and graphic. Dark components that carry
   no .scheme-dark class are named here too. */
:root, .scheme-light, .section.scheme-light {
  --accent-text: var(--color-torch-red-dark);      /* #bb0020 — 6.8:1 on white, still reads RED */
  --accent-text-hover: var(--color-torch-red-darker);
}
.rhero, .phero, .cta, .footer, .cases, .banner, .partners, .scheme-dark,
.industry, .pcard {
  --accent-text: var(--color-torch-red-light);
  --accent-text-hover: var(--color-torch-red-lighter);
}
/* Everything that reads as an overline, label or status takes the pair.
   The .tile/.card selectors match component specificity (0,1,1), and the .rail
   states match the (0,2,0) rules that hard-set pure red. */
.tagline, .cat-label, .eyebrow, .rail__label, .section-heading .tagline, .industry__tag, .person__role, .plat__status, .pcard__status, .quote__by, .placeholder__tag, .benefit h3, .partners__stack .card h3, .tile .cat-label, .tile .tagline, .tile .eyebrow, .tile .plat__status, .pcard .cat-label, .card .cat-label, .card .tagline, .rail__item--now .rail__label, .rail__item--next .rail__label, .rail__item--next.is-arrived .rail__label, .rail.is-open .rail__item--next .rail__label { color: var(--accent-text); }
.plat__specs dt { color: var(--color-white-62); }

/* Link colour applies to links inside PROSE only. A bare "a { color: … }" here
   repainted every whole-card anchor (.tile wraps its own heading), and "li a"
   would repaint the nav and footer menus — both are excluded deliberately.
   The base rule a { color: inherit } stays in force; components own colour. */
p a, dd a, .lede a, .desc a, .rhero__lede a, .phero__lede a,
.case2__foot a, .roster__note a, .person__line a {
  color: var(--accent-text); text-decoration: underline;
  text-underline-offset: .18em; text-decoration-thickness: 1px;
}
p a:hover, dd a:hover, .lede a:hover, .desc a:hover, .rhero__lede a:hover,
.phero__lede a:hover, .case2__foot a:hover, .roster__note a:hover,
.person__line a:hover { color: var(--accent-text-hover); }

/* ---- CTA height ----
   The band is the last thing before the footer and read cramped. Padding alone
   only moved it 363px -> 471px because the band is content-sized, so a
   min-height carries the increase at every viewport. */
.cta { padding-block: calc(var(--section-py-lg) * 1.6); min-height: 38rem; display: grid; align-items: center; }
@media (max-width: 61.9375rem) { .cta { min-height: 28rem; padding-block: calc(var(--section-py) * 1.6); } }

/* ============================================================
   Content image treatment — bottom fade.
   Top corners keep the image radius; the base dissolves into the section so
   the photo sits in the page instead of on it. One definition, applied to the
   case-study and editorial slots alike.
   ============================================================ */
.case2__media {
  overflow: hidden;
  border-radius: var(--radius-image) var(--radius-image) 0 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
}
.case2__media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* An .img-slot has a fixed 16/10 aspect ratio, so it cannot match the height of
   a copy column beside it — stretching it to fit made it tall and distorted the
   crop. Keep the ratio and align both columns from the top instead. */
.grid-2:has(> .img-slot) { align-items: start; }

/* A tile that leads with an image slot goes full-bleed: the thumb cancels the
   tile's padding so the photo meets the card edges, while the copy beneath
   keeps it. Same intent as .tile--thumb, without needing a text wrapper. */
.tile:has(> .img-slot:first-child) { overflow: hidden; }
.tile > .img-slot:first-child {
  margin: calc(var(--space-lg) * -1) calc(var(--space-lg) * -1) var(--space-lg);
  width: auto; border: 0;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  /* Same bottom fade as the case-study media, so the thumb dissolves into the
     card instead of ending on a hard line above the copy. */
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
}

/* ---- Patterns lifted from the last inline styles ---- */
/* Sticky solutions stack: one nav-height token plus a per-item step, instead of
   four literal calc() values in the markup. */
:root { --nav-h: 4.5rem; --sol-step: 1.5rem; }
.sol { top: calc(var(--nav-h) + var(--sol-i, 0) * var(--sol-step)); }
.u-center { display: flex; justify-content: center; }
.u-relative { position: relative; z-index: 1; }
.banner__line--2 { color: var(--color-torch-red-deep, #5c1c1c); }
.section--flush-top { padding-top: 0; }


/* ============================================================
   Marquee banner on phones.
   The global ".banner__line, .banner__heading { white-space: nowrap }" rule sits
   later in the file than the old phone override, so the real heading stayed on
   one line: at 360px it rendered 35px tall, exactly viewport-wide, clipped hard
   against both edges. On a phone the heading wraps and keeps a gutter; only the
   decorative marquee lines stay unwrapped.
   ============================================================ */
@media (max-width: 61.9375rem) {
  .banner { padding-block: var(--section-py); }
  .banner__stack { gap: .75rem; }
  .banner__heading {
    white-space: normal; text-wrap: balance;
    font-size: clamp(1.75rem, 7.6vw, 2.5rem); line-height: 1.08;
    padding-inline: var(--page-edge, 5%);
    max-width: 100%;
  }
  /* The decorative lines shrink with the heading so the stack keeps its
     proportions instead of the outer lines dominating. */
  .banner__line { font-size: clamp(1.25rem, 5.4vw, 2.25rem); }
}
