/* Collective Intelligence Group — site styles
   White pages, electric-blue and navy bands, square corners, hairline grids. */

:root {
  color-scheme: light;
  --ground: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F1F5FF;
  --ink: #000F2E;
  --ink-2: #1E3246;
  --muted: #797E88;
  --line: rgba(0, 15, 46, 0.12);
  --line-strong: rgba(0, 15, 46, 0.28);
  --blue: #0043CA;
  --blue-deep: #002E8A;
  --navy: #000F2E;
  --on-blue: #FFFFFF;
  --on-blue-muted: #B9BFCB;
  --line-on-blue: rgba(255, 255, 255, 0.18);
  --dot: rgba(0, 15, 46, 0.22);
  --dot-on-blue: rgba(255, 255, 255, 0.28);
  --focus: #0043CA;

  --font-display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --measure: 60ch;
  --gutter: clamp(16px, 5.5vw, 80px);
  --section-y: clamp(3.5rem, 9vw, 7.5rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #060B18;
    --surface: #0B1226;
    --surface-2: #0F1A36;
    --ink: #EEF2FA;
    --ink-2: #C6CFE0;
    --muted: #8B95A8;
    --line: rgba(238, 242, 250, 0.14);
    --line-strong: rgba(238, 242, 250, 0.32);
    --blue: #1F5EE8;
    --blue-deep: #143E9C;
    --navy: #000A1F;
    --dot: rgba(238, 242, 250, 0.22);
    --focus: #6E9BFF;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #060B18;
  --surface: #0B1226;
  --surface-2: #0F1A36;
  --ink: #EEF2FA;
  --ink-2: #C6CFE0;
  --muted: #8B95A8;
  --line: rgba(238, 242, 250, 0.14);
  --line-strong: rgba(238, 242, 250, 0.32);
  --blue: #1F5EE8;
  --blue-deep: #143E9C;
  --navy: #000A1F;
  --dot: rgba(238, 242, 250, 0.22);
  --focus: #6E9BFF;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.wrap { max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }

/* Bracketed mono labels */
.eyebrow { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.eyebrow::before { content: "[ "; }
.eyebrow::after { content: " ]"; }
.eyebrow-onblue { color: var(--on-blue); }

/* Dotted texture block (Captain-style divider) */
.dots { height: 44px; max-width: 46rem; margin-top: 1.6rem;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 8px 8px; }

.visually-hidden, .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--surface); color: var(--ink); padding: 0.5rem 0.9rem; border: 1px solid var(--line-strong); }

/* ---------- Buttons (square, with icon cell) ---------- */
.btn { display: inline-flex; align-items: stretch; font-family: var(--font-body); font-weight: 500; font-size: 0.95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 1.2; }
.btn > :not(.btn-ic), .btn { padding: 0; }
.btn { padding-left: 1.1rem; }
.btn { min-height: 46px; align-items: center; }
.btn:not(:has(.btn-ic)) { padding-right: 1.1rem; }
.btn-ic { display: inline-flex; align-items: center; justify-content: center; align-self: stretch; width: 32px; margin-left: 1.1rem; font-family: var(--font-mono); font-size: 0.85rem; border-left: 1px solid rgba(255,255,255,0.25); }
.btn-primary { background: var(--blue); color: #FFFFFF; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #FFFFFF; }
.btn-primary .btn-ic { background: var(--blue-deep); }
.btn-dark { background: var(--navy); color: #FFFFFF; border-color: var(--navy); }
.btn-dark:hover { background: #001a4d; color: #FFFFFF; }
.btn-light { background: #FFFFFF; color: var(--navy); border-color: #FFFFFF; }
.btn-light:hover { background: #F1F5FF; color: var(--navy); }
.btn-light .btn-ic { background: var(--blue); color: #FFFFFF; border-left: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); padding-right: 1.1rem; }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--ground); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: baseline; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand-wm { font-family: var(--font-display); font-weight: 500; font-size: 1.55rem; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.brand-wm span { color: var(--blue); }
.brand-name { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; letter-spacing: 0; white-space: nowrap; color: var(--ink-2); }
.brand-name span { color: var(--muted); font-weight: 400; }
.nav { display: flex; align-items: center; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 1.6rem; }
.nav-list a { color: var(--ink); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.nav-list a:hover { color: var(--blue); }
.nav-cta { background: var(--blue); color: #FFFFFF !important; padding: 0.6rem 1rem; }
.nav-cta:hover { background: var(--blue-deep); }
.nav-toggle { display: none; font: inherit; font-weight: 500; font-size: 0.9rem; background: var(--ground); color: var(--ink); border: 1px solid var(--line-strong); padding: 0.5rem 0.85rem; cursor: pointer; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .nav-list { display: none; position: absolute; top: 100%; right: 0; left: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ground); border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter) 1rem; }
  .nav-list.open { display: flex; }
  .nav-list li a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 0.75rem; padding: 0.85rem 1rem !important; border-bottom: none !important; }
}

/* ---------- Hero (electric blue band) ---------- */
.hero { background: var(--blue); color: var(--on-blue); padding-top: clamp(3rem, 7vw, 6rem); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; position: relative; z-index: 1; }
.hero-copy { display: grid; gap: 1.2rem; }
.hero h1 { color: #FFFFFF; }
.hero-side { display: grid; gap: 1.6rem; padding-top: clamp(0.5rem, 2vw, 2.2rem); }
.hero-sub { font-size: 1.2rem; line-height: 1.45; color: rgba(255,255,255,0.78); }
.hero-sub strong { color: #FFFFFF; font-weight: 500; display: block; margin-bottom: 0.4rem; font-size: 1.3rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-spacer { height: clamp(120px, 16vw, 220px); }
.hero-field { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-field canvas { display: block; width: 100%; height: 100%; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Results strip ---------- */
.results { border-bottom: 1px solid var(--line); }
.results .wrap { padding-block: 1.5rem 0; }
.results-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 1rem; border-top: 1px solid var(--line); }
.results-grid li { padding: 1.4rem 1.25rem 1.6rem 0; border-right: 1px solid var(--line); display: grid; gap: 0.35rem; align-content: start; }
.results-grid li + li { padding-left: 1.25rem; }
.results-grid li:last-child { border-right: none; }
.results-n { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1; color: var(--blue); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.results-l { font-size: 0.92rem; line-height: 1.4; color: var(--muted); }
@media (max-width: 800px) { .results-grid { grid-template-columns: 1fr 1fr; } .results-grid li:nth-child(2n) { border-right: none; padding-right: 0; } .results-grid li:nth-child(2n+1) { padding-left: 0; } .results-grid li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 440px) { .results-grid { grid-template-columns: 1fr; } .results-grid li { border-right: none; padding-inline: 0; } .results-grid li + li { border-top: 1px solid var(--line); } }

/* ---------- Trusted by ---------- */
.trusted { border-bottom: 1px solid var(--line); }
.trusted-inner { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 3rem; align-items: center; padding-block: 1.6rem; }
.trusted-k { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.trusted-k::before { content: "[ "; } .trusted-k::after { content: " ]"; }
.logo-row { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.logo-row li { display: flex; align-items: center; }
.logo { display: block; width: auto; filter: grayscale(1); opacity: 0.75; }
.logo.sm { height: 14px; } .logo.md { height: 20px; } .logo.lg { height: 28px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo { filter: grayscale(1) invert(1) brightness(1.4); } }
:root[data-theme="dark"] .logo { filter: grayscale(1) invert(1) brightness(1.4); }
.logo-more { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) { .trusted-inner { grid-template-columns: 1fr; gap: 1rem; } .logo-row { justify-content: flex-start; gap: 1rem 1.75rem; } }

/* ---------- Sections and two-column heads ---------- */
.section { padding-block: var(--section-y); border-bottom: 1px solid var(--line); }
.section-alt { background: var(--ground); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 5vw, 5rem); align-items: start; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head-tight { margin-bottom: 0; }
.section-head-side { display: grid; gap: 1.4rem; padding-top: 0.35rem; }
.section-head-side .eyebrow { color: var(--muted); }
.section-lede { color: var(--ink-2); font-size: 1.08rem; line-height: 1.5; max-width: 40ch; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 1rem; } .section-head-side { display: contents; } .section-head-side .eyebrow { order: -1; } .section-head-main { order: 0; } .section-head-side .section-lede { order: 1; max-width: var(--measure); } }

/* ---------- Why now (navy band) ---------- */
.whynow { background: var(--navy); color: #FFFFFF; padding-block: var(--section-y); border-bottom: none; }
.whynow h2 { color: #FFFFFF; }
.whynow .dots { background-image: radial-gradient(var(--dot-on-blue) 1px, transparent 1.2px); }
.whynow .eyebrow { color: var(--on-blue-muted); }
.whynow-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 5rem); align-items: start; }
.whynow-copy { display: grid; gap: 1rem; color: var(--on-blue-muted); font-size: 1.05rem; max-width: 44ch; padding-top: 0.35rem; }
.whynow-copy .eyebrow { margin-bottom: 0.4rem; }
.whynow-copy p:nth-child(2) { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.35; color: #FFFFFF; }
@media (max-width: 900px) { .whynow-grid { grid-template-columns: 1fr; } }

/* ---------- What we build (hairline rows) ---------- */
.fn-list { display: grid; border-top: 1px solid var(--line); }
.fn { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr); gap: 1.5rem 3rem; padding-block: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.fn-head { display: grid; gap: 0.7rem; align-content: start; }
.fn-no { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.fn-no::before { content: "[ "; } .fn-no::after { content: " ]"; }
.fn-head h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.fn-sub { color: var(--ink-2); font-size: 1.02rem; }
.fn-fit { font-size: 0.92rem; color: var(--muted); margin-top: 0.4rem; padding-top: 0.8rem; border-top: 1px solid var(--line); max-width: 40ch; }
.fn-fit span { display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }
.fn-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; border: 1px solid var(--line); }
.case { padding: clamp(1.1rem, 2.5vw, 1.6rem); display: grid; gap: 0.7rem; align-content: start; color: var(--ink-2); font-size: 0.95rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-right: -1px; margin-bottom: -1px; }
.case-featured { background: var(--surface-2); }
.case h4 { font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.case .ctx { color: var(--muted); }
.impact { font-family: var(--font-mono); font-size: 0.76rem; line-height: 1.55; color: var(--ink); padding-top: 0.7rem; border-top: 1px solid var(--line); }
.impact b { font-weight: 500; color: var(--blue); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .fn { grid-template-columns: 1fr; } }

/* ---------- Method diagram ---------- */
.method-item:last-child { border-right: none; }
.method-item h3 { font-size: 1.2rem; color: var(--ink); }

/* ---------- How we work ---------- */
.phases { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.phase { display: grid; grid-template-rows: auto 1fr; gap: 1rem; padding: 1.6rem 1.4rem; border-right: 1px solid var(--line); }
.phase:last-child { border-right: none; }
.phase-num { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--blue); }
.phase-num::before { content: "[ 0"; } .phase-num::after { content: " ]"; }
.phase-body { display: grid; gap: 0.7rem; align-content: start; color: var(--ink-2); font-size: 0.96rem; }
.phase-body h3 { color: var(--ink); font-size: 1.5rem; }
.phase-when { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--muted); }
.phase-out { font-size: 0.92rem; color: var(--ink); padding-top: 0.7rem; border-top: 1px solid var(--line); }
.phase-out span { display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }
@media (max-width: 860px) { .phases { grid-template-columns: 1fr; } .phase { border-right: none; border-bottom: 1px solid var(--line); } .phase:last-child { border-bottom: none; } }
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.principle { display: grid; gap: 0.5rem; color: var(--ink-2); font-size: 0.95rem; align-content: start; }
.principle h3 { font-size: 1.15rem; }
@media (max-width: 960px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Who we serve ---------- */
.client-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); }
.client { padding: clamp(1.25rem, 3vw, 1.9rem); display: grid; gap: 0.6rem; color: var(--ink-2); font-size: 0.95rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); align-content: start; }
.client:nth-child(2n) { border-right: none; }
.client-wide { grid-column: 1 / -1; border-right: none; border-bottom: none; background: var(--surface-2); }
.client h3 { font-size: 1.3rem; color: var(--ink); }
@media (max-width: 720px) { .client-grid { grid-template-columns: 1fr; } .client { border-right: none; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about-copy { display: grid; gap: 1rem; color: var(--ink-2); font-size: 1.02rem; padding-top: 0.35rem; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: 0.75rem; border: 1px solid var(--line); }
.about-facts div { display: grid; gap: 0.25rem; padding: 1rem 1.1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-facts div:nth-child(2n) { border-right: none; }
.about-facts div:nth-last-child(-n+2) { border-bottom: none; }
.fact-k { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.fact-v { color: var(--ink); font-weight: 500; font-size: 0.95rem; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-grid .section-head { margin-bottom: 1.25rem; } }
@media (max-width: 480px) { .about-facts { grid-template-columns: 1fr; } .about-facts div { border-right: none; } .about-facts div:nth-last-child(2) { border-bottom: 1px solid var(--line); } }

/* ---------- Contact (electric blue band) ---------- */
.contact { background: var(--blue); color: #FFFFFF; border-bottom: none; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-copy { display: grid; gap: 1.2rem; }
.contact-copy h2 { color: #FFFFFF; font-size: clamp(2.2rem, 5vw, 4rem); }
.contact-lede { font-size: 1.2rem; color: rgba(255,255,255,0.8); max-width: 34ch; }
.contact-copy > p:not(.contact-lede):not(.eyebrow) { color: rgba(255,255,255,0.8); max-width: 44ch; }
.contact-details { display: grid; gap: 0.9rem; margin-top: 0.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line-on-blue); }
.contact-details dt { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 0.2rem; }
.contact-details dd { margin: 0; color: #FFFFFF; overflow-wrap: anywhere; }
.contact-details a { color: #FFFFFF; }
.contact-form { background: #FFFFFF; color: var(--navy); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea { font: inherit; font-size: 0.96rem; color: var(--navy); background: #FFFFFF; border: 1px solid rgba(0,15,46,0.28); border-radius: 0; padding: 0.7rem 0.85rem; width: 100%; }
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field .error { border-color: #C62828; }
.contact-form .btn { justify-self: start; }
.form-status { font-size: 0.9rem; color: var(--muted); min-height: 1.4em; }
.form-status.ok { color: var(--navy); }
.form-status.err { color: #C62828; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-blue-muted); padding-block: 2.5rem 1.5rem; font-size: 0.9rem; }
.site-footer .brand { color: #FFFFFF; }
.site-footer .brand-wm { color: #FFFFFF; }
.site-footer .brand-wm span { color: #2F6BFF; }
.site-footer .brand-name { color: rgba(255,255,255,0.78); }
.site-footer .brand-name span { color: var(--on-blue-muted); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.footer-tag { margin-top: 0.8rem; max-width: 34rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.footer-nav a { color: #FFFFFF; text-decoration: none; font-weight: 500; }
.footer-nav a:hover { color: var(--on-blue-muted); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line-on-blue); font-family: var(--font-mono); font-size: 0.74rem; }

/* ---------- Showcase (expanding case carousel) ---------- */
.showcase { padding-block: clamp(3rem, 7vw, 5.5rem); border-bottom: 1px solid var(--line); }
.showcase-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.showcase-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.showcase-link { font-family: var(--font-body); font-weight: 500; color: var(--ink); text-decoration: none; font-size: 0.95rem; padding-bottom: 0.3rem; }
.showcase-link:hover { color: var(--blue); }

.carousel { display: flex; gap: 8px; height: clamp(380px, 38vw, 520px); }
.ccard { flex: 1 1 0; min-width: 0; position: relative; overflow: hidden; cursor: pointer; color: #FFFFFF; background: var(--navy);
  background-image: radial-gradient(rgba(255,255,255,0.16) 1px, transparent 1.2px); background-size: 10px 10px;
  padding: 1.25rem 1.25rem 1.4rem; display: flex; flex-direction: column; justify-content: space-between;
  transition: flex-grow 520ms cubic-bezier(.22,1,.36,1), background-color 300ms ease; border: 1px solid transparent; }
.ccard[hidden] { display: none; }
.ccard.active { flex-grow: 4.2; background-color: var(--blue); cursor: default; }
.ccard:hover:not(.active) { background-color: #06173f; }
.ccard:focus-visible { outline: 2px solid #FFFFFF; outline-offset: -4px; }
.ccard-tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.75); white-space: nowrap; }
.ccard-tag::before { content: "[ "; } .ccard-tag::after { content: " ]"; }
.ccard-n { font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 3.6rem); line-height: 1; letter-spacing: -0.03em; margin-top: auto; white-space: nowrap; }
.ccard-l { font-size: 0.86rem; line-height: 1.35; color: rgba(255,255,255,0.8); margin-top: 0.4rem; max-width: 22ch; }
.ccard-body { display: grid; gap: 0.8rem; margin-top: 1.2rem; max-width: 46ch; opacity: 0; transform: translateY(8px); transition: opacity 320ms ease 180ms, transform 320ms ease 180ms; }
.ccard.active .ccard-body { opacity: 1; transform: none; }
.ccard:not(.active) .ccard-body { display: none; }
.ccard-q { font-family: var(--font-display); font-size: clamp(1rem, 1.35vw, 1.3rem); line-height: 1.35; color: #FFFFFF; }
.ccard-meta { font-family: var(--font-mono); font-size: 0.72rem; line-height: 1.5; color: rgba(255,255,255,0.75); }
.ccard.active .ccard-l { max-width: none; font-size: 0.95rem; }
.carousel-hint { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); margin-top: 0.9rem; }
@media (max-width: 860px) {
  .carousel { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; }
  .ccard { flex: 0 0 82vw; max-width: 420px; min-height: 380px; scroll-snap-align: start; }
  .ccard.active { flex-grow: 0; }
  .ccard-body, .ccard:not(.active) .ccard-body { display: grid; opacity: 1; transform: none; }
  .ccard-n { margin-top: 1.5rem; }
}
.ccard.active { flex-grow: 5.9; }
.ccard:not(.active) .ccard-n { font-size: clamp(1.4rem, 2.3vw, 2.3rem); }
.ccard:not(.active) .ccard-l { font-size: 0.8rem; }
.ccard-tag { overflow: hidden; text-overflow: ellipsis; }

/* ---------- Revisions: flip chip, four-card showcase, function grid, serve grid ---------- */
.showcase-link { background: none; border: none; cursor: pointer; }
.serve-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.serve-item { padding: clamp(1.25rem, 2.5vw, 1.75rem); display: grid; gap: 0.6rem; align-content: start; color: var(--ink-2); font-size: 0.96rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-right: -1px; margin-bottom: -1px; }
.serve-item h3 { font-size: 1.35rem; color: var(--ink); }
@media (max-width: 960px) { .serve-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .serve-grid { grid-template-columns: 1fr; } }
.client-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.client:nth-child(2n) { border-right: 1px solid var(--line); }
.client:nth-child(3n) { border-right: none; }
@media (max-width: 720px) { .client-grid { grid-template-columns: 1fr; } .client, .client:nth-child(2n) { border-right: none; } }

.section-lede strong { color: var(--ink); font-weight: 600; }
.subhead { display: grid; gap: 0.6rem; max-width: 46rem; margin: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; scroll-margin-top: 80px; }
.subhead h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.subhead-lede { color: var(--ink-2); font-size: 1.02rem; }
.subhead .eyebrow { color: var(--muted); }

/* ---------- Rolling word pill (Level AI style): the words scroll vertically inside a grey pill whose width follows the word ---------- */
.flip { display: inline-block; vertical-align: -0.3em; overflow: hidden; background: var(--blue); color: #FFFFFF; border-radius: 8px; padding: 0.06em 0.36em; box-sizing: content-box; height: 1.15em; line-height: 1.15; white-space: nowrap; transition: width 600ms cubic-bezier(.3,1.25,.55,1); }
.flip-track { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35em; transition: transform 600ms cubic-bezier(.25,1,.35,1); will-change: transform; }
.flip-track > span { display: block; width: max-content; height: 1.15em; line-height: 1.15; }
.flip.no-anim, .flip.no-anim .flip-track { transition: none; }
@media (prefers-reduced-motion: reduce) { .flip, .flip-track { transition: none; } }

/* ---------- Method: interactive operating-system diagram ---------- */
.mx { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; border: 1px solid var(--line); }
.mx-left { padding: clamp(1.25rem, 2.5vw, 2rem); display: grid; gap: 1.5rem; align-content: start; }
.mtabs { display: grid; gap: 0.15rem; }
.mtab { font: inherit; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; text-align: left; color: var(--muted); background: none; border: none; border-left: 2px solid transparent; padding: 0.42rem 0 0.42rem 0.75rem; cursor: pointer; transition: color 200ms ease, border-color 200ms ease; }
.mtab:hover { color: var(--ink); }
.mtab.on { color: var(--blue); border-left-color: var(--blue); }
.mtab::before { content: "[ "; } .mtab::after { content: " ]"; }
.mpanels { position: relative; min-height: 15rem; }
.mpanel { position: absolute; inset: 0; opacity: 0; transform: translateY(10px); transition: opacity 380ms ease, transform 480ms cubic-bezier(.22,1,.36,1); pointer-events: none; }
.mpanel.on { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.mpanel h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.15; margin: 0.7rem 0 0.9rem; letter-spacing: -0.02em; }
.mpanel p { color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
.mpanel .steps-tags { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mx-right { border-left: 1px solid var(--line); padding: clamp(1rem, 2vw, 1.5rem); background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 8px 8px; }
.mdg { display: block; width: 100%; height: auto; background: var(--ground); border: 1px solid var(--line); }
.method-caption { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); line-height: 1.6; max-width: none; margin-top: 1rem; }
.m-layer-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; fill: var(--muted); }
.m-app rect { fill: var(--ground); stroke: var(--line-strong); stroke-width: 1; }
.m-app-accent rect { fill: var(--navy); stroke: var(--navy); }
.m-app-accent .m-app-t, .m-app-accent .m-app-s { fill: #FFFFFF; }
.m-app-t { font-family: var(--font-display); font-size: 13.5px; font-weight: 500; fill: var(--ink); }
.m-app-s { font-family: var(--font-mono); font-size: 9px; fill: var(--muted); }
.m-hub-bg { fill: var(--ground); stroke: var(--ink); stroke-width: 1.2; }
.m-hub-k { font-family: var(--font-display); font-size: 15px; font-weight: 500; fill: var(--ink); }
.m-band-bg { fill: var(--surface-2); stroke: var(--line); transition: fill 400ms ease, stroke 400ms ease; }
.m-band-k { font-family: var(--font-display); font-size: 12.5px; font-weight: 500; fill: var(--blue); }
.m-band-s { font-family: var(--font-mono); font-size: 9px; fill: var(--muted); }
.m-links line { stroke: var(--line-strong); stroke-width: 1.2; }
.m-node rect { fill: var(--ground); stroke: var(--ink); stroke-width: 1; }
.m-node text { font-family: var(--font-body); font-size: 9.5px; font-weight: 600; fill: var(--ink); }
.m-node-accent rect { fill: var(--blue); stroke: var(--blue); }
.m-node-accent text { fill: #FFFFFF; }
.m-chip rect { fill: var(--ground); stroke: var(--line-strong); }
.m-chip text { font-family: var(--font-body); font-size: 10.5px; font-weight: 600; fill: var(--ink); }
.m-cell rect { fill: var(--ground); stroke: var(--line-strong); }
.m-cell-t { font-family: var(--font-body); font-size: 10.5px; font-weight: 600; fill: var(--ink); }
.m-cell-s { font-family: var(--font-mono); font-size: 8.5px; fill: var(--muted); }
.m-src rect { fill: var(--ground); stroke: var(--line-strong); }
.m-src text { font-family: var(--font-mono); font-size: 10px; fill: var(--ink-2); }
.m-flow path { fill: none; stroke: var(--blue); stroke-width: 1.4; }
.m-flow-back { stroke-dasharray: 3 4; }
.m-flow-t { font-family: var(--font-mono); font-size: 9.5px; fill: var(--blue); letter-spacing: 0.06em; }
.mdg-arrowhead { fill: var(--blue); }
.m-pulse circle { fill: var(--blue); opacity: 0; transition: opacity 300ms ease; }
.m-gov rect { fill: var(--surface-2); stroke: var(--line-strong); transition: fill 400ms ease, stroke 400ms ease; }
.m-gov-k { font-family: var(--font-body); font-size: 11.5px; font-weight: 600; fill: var(--ink); }
.m-gov-t { font-family: var(--font-mono); font-size: 9px; fill: var(--muted); }
/* Highlight: everything dims except the active layer. */
.mdg [data-layer] { transition: opacity 400ms ease; }
.mdg[data-on] [data-layer] { opacity: 0.38; }
.mdg[data-on="systems"] [data-layer="systems"], .mdg[data-on="meaning"] [data-layer="meaning"], .mdg[data-on="motion"] [data-layer="motion"], .mdg[data-on="judgment"] [data-layer="judgment"], .mdg[data-on="governance"] [data-layer="governance"],
.mdg[data-on="loop"] [data-layer="operators"], .mdg[data-on="loop"] [data-layer="flows"], .mdg[data-on="systems"] [data-layer="flows"] { opacity: 1; }
.mdg[data-on="meaning"] [data-layer="meaning"] .m-band-bg, .mdg[data-on="motion"] [data-layer="motion"] .m-band-bg, .mdg[data-on="judgment"] [data-layer="judgment"] .m-band-bg { fill: #E3EBFF; stroke: var(--blue); }
.mdg[data-on="systems"] .m-src rect { stroke: var(--blue); fill: #E3EBFF; }
.mdg[data-on="governance"] .m-gov rect { fill: var(--navy); stroke: var(--navy); }
.mdg[data-on="governance"] .m-gov-k, .mdg[data-on="governance"] .m-gov-t { fill: #FFFFFF; }
.mdg[data-on="loop"] .m-pulse circle, .mdg[data-on="systems"] .m-pulse circle { opacity: 1; }
.mdg[data-on="loop"] .m-flow path, .mdg[data-on="systems"] .m-flow path { stroke-width: 2; }
@media (prefers-reduced-motion: reduce) { .m-pulse { display: none; } }
@media (max-width: 900px) {
  .mx { grid-template-columns: 1fr; }
  .mtabs { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; }
  .mtab { border-left: none; border-bottom: 2px solid transparent; padding: 0.35rem 0; }
  .mtab.on { border-bottom-color: var(--blue); }
  .mx-right { border-left: none; border-top: 1px solid var(--line); }
}

/* ---------- Careers page ---------- */
.careers-hero .hero-grid { padding-bottom: 0; }
.careers-spacer { height: clamp(48px, 7vw, 96px); }
.roles { border: 1px solid var(--line); }
.role { border-bottom: 1px solid var(--line); background: var(--ground); }
.role:last-child { border-bottom: none; }
.role summary { list-style: none; display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto auto; gap: 1rem 1.5rem; align-items: baseline; padding: 1.25rem clamp(1rem, 2.5vw, 1.75rem); cursor: pointer; }
.role summary::-webkit-details-marker { display: none; }
.role summary:hover .role-title { color: var(--blue); }
.role-team { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.role-team::before { content: "[ "; } .role-team::after { content: " ]"; }
.role-title { font-family: var(--font-display); font-size: clamp(1.15rem, 1.8vw, 1.5rem); color: var(--ink); letter-spacing: -0.01em; transition: color 200ms ease; }
.role-loc { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.role-open { font-family: var(--font-mono); font-size: 1.2rem; color: var(--ink); width: 1.5rem; text-align: center; transition: transform 250ms ease; }
.role[open] .role-open { transform: rotate(45deg); }
.role[open] summary { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.role-body { padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 2.5vw, 1.75rem) clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 1.5rem; }
.role-intro { font-size: 1.05rem; line-height: 1.55; color: var(--ink-2); max-width: 70ch; }
.role-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.role-cols h3 { font-size: 0.72rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; }
.role-cols h3::before { content: "[ "; } .role-cols h3::after { content: " ]"; }
.role-cols ul { list-style: none; display: grid; gap: 0.6rem; color: var(--ink-2); font-size: 0.95rem; line-height: 1.5; }
.role-cols li { padding-left: 1rem; position: relative; }
.role-cols li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; background: var(--blue); }
.role-cols li strong { color: var(--ink); font-weight: 600; }
.role-meta { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); }
.role-body .btn { justify-self: start; }
.form-note { font-size: 0.82rem; color: var(--muted); }
@media (max-width: 860px) {
  .role summary { grid-template-columns: minmax(0, 1fr) auto; }
  .role-team { grid-column: 1 / -1; }
  .role-loc { grid-column: 1 / -1; white-space: normal; }
  .role-open { grid-row: 2; grid-column: 2; }
  .role-cols { grid-template-columns: 1fr; }
}

/* ---------- About: "Built by experts from" row ---------- */
.logo.xs { height: 15px; } .logo.xl { height: 32px; }
@media (max-width: 760px) { .experts { grid-template-columns: 1fr; gap: 1rem; } .experts .logo-row { justify-content: flex-start; gap: 1rem 1.75rem; } }

/* ---------- Showcase cards: background photographs ---------- */
.ccard { background-image: none; }
.ccard::before { content: ""; position: absolute; inset: 0; background-image: var(--photo); background-size: cover; background-position: center; opacity: 0.5; transform: scale(1.06); transition: opacity 450ms ease, transform 900ms cubic-bezier(.22,1,.36,1); }
.ccard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,15,46,0.25) 0%, rgba(0,15,46,0.6) 50%, rgba(0,15,46,0.94) 100%); transition: background 300ms ease; }
.ccard.active::before { opacity: 0.7; transform: scale(1); }
.ccard.active::after { background: linear-gradient(180deg, rgba(0,67,202,0.2) 0%, rgba(0,67,202,0.55) 45%, rgba(0,30,110,0.96) 100%); }
.ccard:hover:not(.active)::before { opacity: 0.65; }
.ccard > * { position: relative; z-index: 1; }

/* ---------- About: three columns and a full-width "experts" band ---------- */
.about { padding-bottom: 0; }
.about-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.about-col { padding: clamp(1.4rem, 2.6vw, 2rem); border-right: 1px solid var(--line); color: var(--ink-2); font-size: 1rem; line-height: 1.55; display: grid; gap: 0.9rem; align-content: start; }
.about-col:last-child { border-right: none; }
.about-k { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.about-k::before { content: "[ "; } .about-k::after { content: " ]"; }
.experts-band { margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); padding: 2rem var(--gutter) 2.4rem; display: grid; gap: 1.4rem; justify-items: center; }
.experts-band .logo-row { width: 100%; justify-content: space-between; gap: 1.25rem 2rem; }
.experts-band .logo { opacity: 0.7; }
.experts-band .logo:hover { opacity: 1; filter: none; }
@media (max-width: 900px) { .about-cols { grid-template-columns: 1fr; } .about-col { border-right: none; border-bottom: 1px solid var(--line); } .about-col:last-child { border-bottom: none; } .experts-band .logo-row { justify-content: center; gap: 1.25rem 2.25rem; } }

/* ---------- Multi-page: page heroes and the home CTA band ---------- */
.page-hero .hero-sub { font-size: 1.15rem; max-width: 44ch; }
.cta-band { background: var(--blue); color: #FFFFFF; border-bottom: none; }
.cta-band h2 { color: #FFFFFF; font-size: clamp(2rem, 4.2vw, 3.4rem); margin-top: 0.6rem; max-width: 16ch; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.cta-actions { display: grid; gap: 1.4rem; color: rgba(255,255,255,0.82); font-size: 1.05rem; line-height: 1.5; max-width: 44ch; }
.cta-actions .btn { justify-self: start; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faqs { border: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq:last-child { border-bottom: none; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem clamp(1rem, 2.5vw, 1.5rem); cursor: pointer; font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue); }
.faq[open] summary { background: var(--surface-2); }
.faq[open] .role-open { transform: rotate(45deg); }
.faq-a { padding: 0.25rem clamp(1rem, 2.5vw, 1.5rem) 1.3rem; color: var(--ink-2); line-height: 1.6; max-width: 70ch; }

/* ---------- Clients: deployment steps ---------- */

#security .method-caption { margin-top: 1.25rem; max-width: none; }


/* ---------- Solutions: six-function grid ---------- */
.fn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.fn-grid .fn { display: grid; grid-template-columns: 1fr; gap: 0; padding: clamp(1.25rem, 2.5vw, 1.75rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-right: -1px; margin-bottom: -1px; }
.fn-grid .fn-head h3 { font-size: 1.5rem; }
.fn-grid .fn-fit { max-width: none; }
@media (max-width: 960px) { .fn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .fn-grid { grid-template-columns: 1fr; } }

/* ---------- Full-screen heroes and page rhythm ---------- */
.hero { padding-top: 0; display: flex; flex-direction: column; }
.hero .hero-grid { flex: 1; width: 100%; align-content: center; padding-block: clamp(3rem, 8vh, 6rem); }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); max-width: 14ch; }
.page-hero .hero-side { align-self: start; padding-top: 2.4rem; }
.contact { display: flex; flex-direction: column; justify-content: center; }
.contact > .wrap { width: 100%; }
@media (min-width: 861px) and (min-height: 620px) {
  .hero:not(.page-hero) { min-height: calc(100vh - 64px); }
  .contact { min-height: calc(100vh - 64px); }
}
.contact-copy h1 { color: #FFFFFF; font-size: clamp(2.2rem, 5vw, 4rem); }

/* ---------- Compact page heroes (subpages): a title band, not a full screen ---------- */
.page-hero { min-height: 0; }
.page-hero .hero-grid { grid-template-columns: 1fr; align-items: start; align-content: start; padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2.75rem, 5vw, 4rem); gap: 2rem clamp(2rem, 5vw, 5rem); }
.page-hero .hero-copy { gap: 1.1rem; }
.page-hero .eyebrow-onblue { margin-bottom: 0.2rem; }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); line-height: 1.05; max-width: none; }
.page-hero .hero-sub { font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.4; color: #FFFFFF; max-width: none; margin-top: 0.4rem; }
.page-hero .hero-sub strong { display: inline; font-size: inherit; margin: 0; }
.page-hero .hero-actions { margin-top: 0.8rem; }

/* ---------- Showcase heading on phones: keep the pill on its own line ---------- */
.nowrap { white-space: nowrap; }
@media (max-width: 520px) { .showcase-head h2 { font-size: clamp(1.5rem, 7.2vw, 2rem); line-height: 1.2; } .flip { vertical-align: -0.28em; } }

/* ---------- Experts band: two rows ---------- */
.experts-band { gap: 1.75rem; }
.experts-row { width: 100%; display: grid; gap: 1rem; justify-items: center; }
.experts-row .logo-row { justify-content: center; gap: 1.25rem 3rem; }
.experts-note { font-size: 0.92rem; color: var(--ink-2); max-width: 60ch; text-align: center; line-height: 1.5; }
/* ---------- Insights ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.post-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.25rem; }
.post-grid-3 { margin-top: 1.25rem; }
.post-card { display: grid; gap: 0.7rem; align-content: start; padding: clamp(1.25rem, 2.5vw, 1.75rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-right: -1px; margin-bottom: -1px; text-decoration: none; color: var(--ink-2); transition: background 200ms ease; }
.post-card:hover { background: var(--surface-2); }
.post-card h3 { font-size: 1.3rem; line-height: 1.2; color: var(--ink); }
.post-card p { font-size: 0.95rem; line-height: 1.5; }
.post-tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.post-tag::before { content: "[ "; } .post-tag::after { content: " ]"; }
.post-more { color: var(--blue); font-weight: 500; margin-top: 0.3rem; }
.post-meta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-blue-muted); margin-top: 0.6rem; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.post-body { max-width: 68ch; color: var(--ink-2); font-size: 1.08rem; line-height: 1.65; }
.post-body p { margin-bottom: 1.2rem; }
.post-body h2 { font-size: 1.5rem; line-height: 1.2; color: var(--ink); margin: 2.2rem 0 0.9rem; }
.post-body ul { padding-left: 1.2rem; margin-bottom: 1.2rem; display: grid; gap: 0.5rem; }
.post-body strong { color: var(--ink); font-weight: 600; }
.post-body a { color: var(--blue); }
.post-aside { position: sticky; top: 88px; border: 1px solid var(--line); padding: 1.4rem; display: grid; gap: 0.9rem; font-size: 0.95rem; color: var(--ink-2); line-height: 1.5; }
.post-aside .btn { justify-self: start; }
.legal-body { max-width: 72ch; font-size: 1rem; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .post-layout { grid-template-columns: 1fr; } .post-aside { position: static; } }
@media (max-width: 600px) { .post-grid, .post-grid-2 { grid-template-columns: 1fr; } }
/* ---------- Contact alternatives + footer links ---------- */
.contact-alt { display: grid; gap: 0.9rem; margin-top: 0.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line-on-blue); }
.contact-alt p { color: rgba(255,255,255,0.85); max-width: 40ch; }
.contact-alt .btn { justify-self: start; }
.contact-response { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--on-blue-muted) !important; }
.footer-links a { color: #FFFFFF; text-decoration: none; }
.footer-links a:hover { color: var(--on-blue-muted); }

/* ---------- Polish: nav active state, solution lead metrics ---------- */
.nav-list a[aria-current="page"]:not(.nav-cta) { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); padding-bottom: 0.15rem; }
.nav-menu li a[aria-current="page"] { box-shadow: none; }
.fn-lead { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; letter-spacing: -0.02em; color: var(--blue); margin: 0.35rem 0 0.6rem; }
.fn-lead::first-letter { }

/* ---------- Why now and Our stance: wider copy column, less height ---------- */
.whynow-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.whynow-copy { max-width: none; }
.whynow-copy p:nth-child(2) { font-size: 1.2rem; }
#stance .section-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
#stance .section-lede { max-width: none; }

/* ---------- Ways to collaborate ---------- */
.ways-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); border: 1px solid var(--line); }
.way { padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 0.9rem; align-content: start; color: var(--ink-2); font-size: 1rem; line-height: 1.55; border-right: 1px solid var(--line); }
.way:last-child { border-right: none; }
.way h3 { font-size: clamp(1.3rem, 1.9vw, 1.7rem); line-height: 1.15; color: var(--ink); letter-spacing: -0.01em; }
.way-accent { background: var(--navy); color: rgba(255,255,255,0.82); }
.way-accent h3 { color: #FFFFFF; }
.way-accent .about-k { color: #7FA6FF; }
.way-note { font-family: var(--font-mono); font-size: 0.74rem; line-height: 1.5; color: var(--on-blue-muted); padding-top: 0.9rem; border-top: 1px solid var(--line-on-blue); }
@media (max-width: 860px) { .ways-grid { grid-template-columns: 1fr; } .way { border-right: none; border-bottom: 1px solid var(--line); } .way:last-child { border-bottom: none; } }

/* ---------- Home: simplified operating-system stack ---------- */
.section-head-side .btn { justify-self: end; margin-top: 0.25rem; }
.om-stack { list-style: none; display: grid; gap: 6px; }
.om-layer { display: grid; grid-template-columns: 3rem 11rem minmax(0, 1fr); gap: 1rem 1.5rem; align-items: center; padding: 1rem clamp(1rem, 2.5vw, 1.75rem); border: 1px solid var(--line); background: var(--ground); transition: transform 300ms ease, box-shadow 300ms ease; }
.om-layer:hover { transform: translateX(6px); box-shadow: -6px 0 0 var(--blue); }
.om-no { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--muted); }
.om-name { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.om-desc { font-size: 0.95rem; color: var(--ink-2); line-height: 1.5; }
.om-core { background: var(--surface-2); margin-inline: clamp(0.5rem, 3vw, 2.5rem); border-color: rgba(0,67,202,0.3); }
.om-core .om-name { color: var(--blue); }
.om-top, .om-base { background: var(--navy); border-color: var(--navy); }
.om-top .om-name, .om-base .om-name { color: #FFFFFF; }
.om-top .om-desc, .om-base .om-desc { color: rgba(255,255,255,0.8); }
.om-top .om-no, .om-base .om-no { color: var(--on-blue-muted); }
@media (max-width: 760px) { .om-layer { grid-template-columns: 3rem minmax(0, 1fr); } .om-desc { grid-column: 1 / -1; } .om-core { margin-inline: 0; } }

/* ---------- Case studies grid (Clients) and home link ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.case { padding: clamp(1.25rem, 2.5vw, 1.75rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-right: -1px; margin-bottom: -1px; display: grid; gap: 0.7rem; align-content: start; background: var(--ground); }
.case h3 { font-size: 1.2rem; line-height: 1.2; color: var(--ink); }
.case-n { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; letter-spacing: -0.03em; color: var(--blue); }
.case-n span { display: block; font-family: var(--font-body); font-size: 0.86rem; letter-spacing: 0; color: var(--muted); margin-top: 0.3rem; }
.case-q { font-size: 0.95rem; line-height: 1.55; color: var(--ink-2); }
.case-meta { font-family: var(--font-mono); font-size: 0.7rem; line-height: 1.5; color: var(--muted); padding-top: 0.7rem; border-top: 1px solid var(--line); }
.showcase-more { margin-top: 1.25rem; display: flex; justify-content: flex-end; }
@media (max-width: 960px) { .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .case-grid { grid-template-columns: 1fr; } }


/* ==========================================================================
   Design review: rhythm, measure, focus, mobile, and page-specific polish
   ========================================================================== */

/* Section heads: a stacked variant so consecutive sections do not all share one layout */
.section-head--stack { grid-template-columns: 1fr; gap: 0.9rem; max-width: 64rem; }
.section-head--stack .section-head-side { display: contents; }
.section-head--stack .section-head-side .eyebrow { order: -1; }
.section-head--stack .section-head-main { order: 0; }
.section-head--stack .section-head-side .section-lede { order: 1; max-width: 64ch; font-size: 1.12rem; }
.section-head--stack .section-head-side .section-note { order: 2; }
.section-head--stack .section-head-side .btn { order: 3; justify-self: start; }
.section-head--stack .dots { display: none; }
.section-note { font-family: var(--font-mono); font-size: 0.76rem; line-height: 1.6; color: var(--muted); max-width: 80ch; }
.section-head-tight.section-head--stack { margin-bottom: 1.5rem; }

/* Measure */
.page-hero .hero-sub { max-width: 64ch; }
.whynow-copy p { max-width: 64ch; }

/* Focus rings on cards and disclosure rows */
.post-card:focus-visible, .faq summary:focus-visible, .role summary:focus-visible, .om-layer:focus-visible { outline: 2px solid var(--focus); outline-offset: -3px; }
.nav-list a:focus-visible { outline-offset: 4px; }

/* Mobile: fewer dividers, tighter rhythm, full-width buttons, nav backdrop */
@media (max-width: 700px) {
  :root { --section-y: clamp(2.75rem, 9vw, 4rem); }
  .section-head { margin-bottom: 1.5rem; }
  .dots { display: none; }
  .btn { width: 100%; }
  .btn .btn-ic { margin-left: auto; }
  .contact-form .btn, .role-body .btn, .cta-actions .btn, .post-aside .btn, .contact-alt .btn, .section-head-side .btn { justify-self: stretch; }
}
body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 15, 46, 0.45); z-index: 40; }
@media (min-width: 961px) { body.nav-open::after { display: none; } }
.nav-toggle[aria-expanded="true"] { background: var(--navy); color: #FFFFFF; border-color: var(--navy); }

/* Home: the hero fills the screen below the 64px header, and a larger headline */
.hero:not(.page-hero) { min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); }
.hero:not(.page-hero) h1 { font-size: clamp(3rem, 6.6vw, 5.4rem); }
@media (min-width: 700px) { .showcase-head h2 { white-space: nowrap; text-wrap: nowrap; } }

/* Home: operating system as one horizontal strip, 01 to 05 */
.om-stack { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.om-layer { grid-template-columns: 1fr; gap: 0.45rem; align-content: start; align-items: start; padding: 1.1rem 1.1rem 1.3rem; min-height: 100%; }
.om-layer:hover { transform: translateY(-4px); box-shadow: 0 4px 0 var(--blue); }
.om-core { margin-inline: 0; }
.om-name { font-size: 1.2rem; }
.om-desc { font-size: 0.9rem; }
@media (max-width: 960px) { .om-stack { grid-template-columns: 1fr; } .om-layer { grid-template-columns: 3rem 11rem minmax(0, 1fr); align-items: center; } .om-layer:hover { transform: translateX(6px); box-shadow: -6px 0 0 var(--blue); } }
@media (max-width: 760px) { .om-layer { grid-template-columns: 3rem minmax(0, 1fr); } .om-desc { grid-column: 1 / -1; } }

/* Home: Why now gets a pull quote on the left; paragraphs read evenly */
.whynow-pull { font-family: var(--font-display); font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.3; color: #FFFFFF; max-width: 24ch; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line-on-blue); text-wrap: balance; }
.whynow-copy p:nth-child(2) { font-family: var(--font-body); font-size: 1.05rem; line-height: 1.55; color: var(--on-blue-muted); }

/* Solutions: sticky in-page subnav */
.subnav { position: sticky; top: 64px; z-index: 40; background: var(--ground); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 1.75rem; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 0.9rem 0; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a:hover { color: var(--ink); }
.subnav a.on { color: var(--blue); border-bottom-color: var(--blue); }
.has-subnav .section { scroll-margin-top: 108px; }

/* Solutions: tabs read as labels with an indicator bar, not as decoration */
.mtab { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -0.01em; text-transform: none; color: var(--muted); padding: 0.55rem 0 0.55rem 0.9rem; border-left-width: 3px; display: flex; gap: 0.7rem; align-items: baseline; }
.mtab::before { content: attr(data-n); font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--muted); min-width: 1.4em; }
.mtab::after { content: none; }
.mtab.on { color: var(--ink); font-weight: 500; border-left-color: var(--blue); }
.mtab.on::before { color: var(--blue); }
@media (max-width: 900px) { .mtab { border-left: none; padding-left: 0; padding-right: 0.25rem; } }

/* Solutions: numbered customised-solution items, a rail through the three delivery steps */
.serve-no { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--blue); }
.serve-no::before { content: "[ "; } .serve-no::after { content: " ]"; }
.steps { border: none; gap: clamp(1.25rem, 3vw, 2.5rem); }
.steps .about-col { border-right: none; position: relative; padding: 1.7rem 0 0; }
.steps .about-col::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-strong); }
.steps .about-col::after { content: ""; position: absolute; left: 0; top: -4px; width: 9px; height: 9px; background: var(--blue); }
@media (max-width: 900px) { .steps .about-col { border-bottom: none; } }

/* Solutions CTA: what happens next */
.cta-steps { list-style: none; display: grid; gap: 0.55rem; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; color: #FFFFFF; padding-top: 1rem; border-top: 1px solid var(--line-on-blue); }
.cta-steps span { color: rgba(255,255,255,0.6); margin-right: 0.7rem; }

/* Clients: case cards with the result high and the meta pinned to the bottom; PE block in navy; balanced ways */
.case { grid-template-rows: auto auto auto 1fr auto; }
.case-n { font-size: 2.4rem; }
.client-wide { background: var(--navy); color: rgba(255,255,255,0.82); border-color: var(--navy); }
.client-wide h3 { color: #FFFFFF; }
.way:not(.way-accent) { background: var(--surface-2); }
.principles-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 4vw, 4rem); border: none; border-top: 1px solid var(--line); }
.principles-list .serve-item { grid-template-columns: 11rem minmax(0, 1fr); gap: 0.5rem 1.5rem; padding: 1.4rem 0; margin: 0; border-right: none; border-bottom: 1px solid var(--line); align-items: start; }
.principles-list .serve-item h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; line-height: 1.35; }
.principles-list .serve-item p { font-size: 0.95rem; }
@media (max-width: 720px) { .principles-list { grid-template-columns: 1fr; } .principles-list .serve-item { grid-template-columns: 1fr; gap: 0.35rem; } }

/* Why us: numbered reasons, larger logos with left-aligned labels, grouped FAQ */
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 4vw, 4rem); border-top: 1px solid var(--line); }
.reason { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0.5rem 0; padding: 1.5rem 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 0.96rem; align-content: start; }
.reason-no { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--blue); padding-top: 0.45rem; grid-row: 1 / span 2; }
.reason h3 { font-size: 1.3rem; color: var(--ink); }
.reason p { grid-column: 2; }
@media (max-width: 720px) { .reasons { grid-template-columns: 1fr; } }
.experts-band { justify-items: stretch; gap: 0; padding-block: 0.25rem 0.75rem; }
.experts-row { grid-template-columns: 11rem minmax(0, 1fr); align-items: center; justify-items: start; gap: 1rem 2rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.experts-row:last-child { border-bottom: none; }
.experts-row .logo-row { justify-content: space-between; width: 100%; gap: 1.25rem 2.5rem; }
.experts-band .logo.xs { height: 22px; } .experts-band .logo.md { height: 28px; } .experts-band .logo.lg { height: 36px; } .experts-band .logo.xl { height: 40px; }
@media (max-width: 760px) { .experts-row { grid-template-columns: 1fr; } .experts-row .logo-row { justify-content: flex-start; gap: 1rem 1.75rem; } .experts-band .logo.xl { height: 30px; } .experts-band .logo.lg { height: 26px; } .experts-band .logo.md { height: 22px; } .experts-band .logo.xs { height: 18px; } }
.faq-groups { display: grid; gap: 2.5rem; }
.faq-group { display: grid; gap: 0.9rem; }
.faq summary { padding: 1.3rem clamp(1rem, 2.5vw, 1.5rem); font-size: 1.15rem; }
.hb { display: none; }
@media (min-width: 800px) { .hb { display: inline; } #why-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); } }

/* Insights: category-only tags, read time in the meta line, a featured first post, a contents list beside posts */
.post-more { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.post-time { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.post-featured { grid-column: span 2; background: var(--surface-2); padding: clamp(1.75rem, 3.5vw, 2.75rem); gap: 1rem; align-content: end; }
.post-featured h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); max-width: 22ch; }
.post-featured p:not(.post-tag):not(.post-more) { font-size: 1.08rem; max-width: 60ch; }
@media (max-width: 600px) { .post-featured { grid-column: auto; } }
.post-body h2 { font-size: 1.75rem; margin-top: 2.6rem; }
.post-body h3 { font-size: 1.2rem; margin: 1.6rem 0 0.6rem; color: var(--ink); }
.post-end { height: 1px; background: var(--line); margin-top: 3rem; }
.post-toc { display: grid; gap: 0.45rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.post-toc .trusted-k { margin-bottom: 0.3rem; }
.post-toc a { color: var(--ink-2); text-decoration: none; font-size: 0.92rem; line-height: 1.4; }
.post-toc a:hover, .post-toc a.on { color: var(--blue); }

/* Careers: grouped application form */
.form-k { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 0.75rem; border-top: 1px solid var(--line); }
.form-k:first-child { border-top: none; padding-top: 0; }
.form-k::before { content: "[ "; } .form-k::after { content: " ]"; }

/* Contact: booking is the primary path, the form is the alternative, reply time sits beside Send */
.contact-alt { border-top: none; padding-top: 0.4rem; gap: 0.7rem; }
.contact-alt .trusted-k { color: rgba(255,255,255,0.7); }
.contact-alt .btn { margin-top: 0.4rem; }
.contact-form .trusted-k { margin-bottom: -0.2rem; }
.form-foot { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.form-foot .form-note { color: var(--muted); font-size: 0.85rem; }
@media (max-width: 700px) { .form-foot { flex-direction: column; align-items: stretch; } }
.post-cta { grid-column: span 2; background: var(--navy); color: rgba(255,255,255,0.82); align-content: end; }
.post-cta:hover { background: #001a4d; }
.post-cta h3 { color: #FFFFFF; max-width: 24ch; }
.post-cta .post-tag { color: #7FA6FF; }
.post-cta .post-more { color: #FFFFFF; }
@media (max-width: 960px) { .post-cta { grid-column: auto; } }
@media (max-width: 900px) { .whynow-grid, #stance .section-head { grid-template-columns: 1fr; } .whynow-pull { max-width: none; } }

/* ---------- Clients: photographs behind the "who we serve" panels ---------- */
.client-photo { position: relative; overflow: hidden; color: rgba(255,255,255,0.86); background: var(--navy); border-color: rgba(255,255,255,0.14); }
.client-photo::before { content: ""; position: absolute; inset: 0; background: var(--photo) center / cover no-repeat; opacity: 0.75; transform: scale(1.04); transition: opacity 400ms ease, transform 900ms cubic-bezier(.22,1,.36,1); }
.client-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,15,46,0.92) 0%, rgba(0,15,46,0.6) 50%, rgba(0,15,46,0.2) 100%); }
.client-photo:hover::before { opacity: 0.9; transform: scale(1); }
.client-photo > * { position: relative; z-index: 1; }
.client-photo h3 { color: #FFFFFF; }
.client-photo { min-height: 260px; align-content: start; }
.client-wide.client-photo { min-height: 200px; }
.client-grid { gap: 8px; border: none; }
.client-grid .client { border: none; }
@media (prefers-reduced-motion: reduce) { .client-photo::before { transition: none; } }

/* ---------- Careers: the athlete mindset ---------- */
.season .about-col h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.15; color: var(--ink); }
.season-list { list-style: none; display: grid; gap: 0.75rem; color: var(--ink-2); font-size: 0.95rem; line-height: 1.5; margin-top: 0.25rem; }
.season-list li { padding-left: 1rem; position: relative; }
.season-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; background: var(--blue); }
.season-photos { border: none; gap: 8px; }
.season-photos .about-col { position: relative; overflow: hidden; border: none; padding: clamp(1.5rem, 2.6vw, 2rem) clamp(1.25rem, 2.2vw, 1.75rem) clamp(1.75rem, 3vw, 2.5rem); background: var(--navy); color: rgba(255,255,255,0.88); min-height: 600px; }
.season-photos .about-col::before { content: ""; position: absolute; inset: 0; background: var(--photo) var(--pos, center) / cover no-repeat; opacity: 0.7; transform: scale(1.04); transition: opacity 400ms ease, transform 900ms cubic-bezier(.22,1,.36,1); }
.season-photos .about-col::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,15,46,0.94) 0%, rgba(0,15,46,0.8) 45%, rgba(0,15,46,0.12) 100%); }
.season-photos .about-col:hover::before { opacity: 0.9; transform: scale(1); }
.season-photos .about-col > * { position: relative; z-index: 1; }
.season-photos .about-col h3 { color: #FFFFFF; }
.season-photos .about-k { color: #7FA6FF; }
.season-photos .season-list { color: rgba(255,255,255,0.88); }
.season-photos .season-list li::before { background: #FFFFFF; }
@media (max-width: 900px) { .season-photos .about-col { border-bottom: none; min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .season-photos .about-col::before { transition: none; } }

/* ---------- Clients: case cards share row tracks so numbers and lines align across the row ---------- */
.case-grid { grid-auto-rows: auto; }
.case { grid-row: span 5; grid-template-rows: subgrid; align-content: stretch; }
.case h3 { min-height: 2.4em; }
.case-n span { min-height: 2.6em; }
.case-meta { align-self: start; }
@supports (grid-template-rows: subgrid) { .case h3, .case-n span { min-height: 0; } }

/* ---------- Solutions: layer tabs live inside the diagram ---------- */
.mtabs { display: none; }
.mx-left { padding-top: clamp(1.25rem, 2.5vw, 2rem); }
.m-hit { fill: transparent; cursor: pointer; }
.m-tab { cursor: pointer; }
.m-tab rect { fill: var(--ground); stroke: var(--line-strong); stroke-width: 1; transition: fill 250ms ease, stroke 250ms ease; }
.m-tab text { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em; fill: var(--ink-2); transition: fill 250ms ease; }
.m-tab:hover rect { stroke: var(--ink); }
.m-tab.on rect { fill: var(--blue); stroke: var(--blue); }
.m-tab.on text { fill: #FFFFFF; }
.m-tab:focus-visible { outline: none; }
.m-tab:focus-visible rect { stroke: var(--focus); stroke-width: 2; }
.mdg[data-on] .m-tabs { opacity: 1; }
@media (max-width: 900px) { .mtabs { display: flex; } }

/* ---------- Measure audit: paragraphs fill the column they sit in ---------- */
.page-hero .hero-sub, .section-head-side .section-lede, .section-head--stack .section-head-side .section-lede, .section-note,
.contact-lede, .contact-copy > p:not(.contact-lede):not(.eyebrow), .contact-alt p, .cta-actions, .whynow-copy p, .whynow-pull,
.faq-a, .role-intro, .post-body, .legal-body, .post-featured h3, .post-cta h3, .post-featured p:not(.post-tag):not(.post-more), .subhead { max-width: none; }
.section-head--stack { max-width: none; }
.has-subnav [id] { scroll-margin-top: 108px; }

/* ---------- Solutions diagram: dotted layer outlines ---------- */
.m-layer-box { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 4; }
.m-band-bg { stroke: var(--line-strong); stroke-dasharray: 3 4; }
.m-gov rect { stroke-dasharray: 3 4; }
.mdg[data-on="meaning"] [data-layer="meaning"] .m-band-bg, .mdg[data-on="motion"] [data-layer="motion"] .m-band-bg, .mdg[data-on="judgment"] [data-layer="judgment"] .m-band-bg { stroke-dasharray: none; }
.mdg[data-on="loop"] [data-layer="operators"] .m-layer-box, .mdg[data-on="systems"] [data-layer="systems"] .m-layer-box { stroke: var(--blue); stroke-dasharray: none; }
.mdg[data-on="governance"] .m-gov rect { stroke-dasharray: none; }


/* ---------- Solutions diagram: larger type, icons, wider column ---------- */
.mx { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.m-layer-k { font-size: 13px; letter-spacing: 0.08em; fill: var(--ink-2); }
.m-app-t { font-size: 17px; } .m-app-s { font-size: 10.5px; }
.m-hub-k { font-size: 18px; }
.m-band-k { font-size: 16px; } .m-band-s { font-size: 11.5px; }
.m-node text { font-size: 12.5px; }
.m-chip text { font-size: 13px; }
.m-cell-t { font-size: 14px; } .m-cell-s { font-size: 10.5px; }
.m-src text { font-size: 13px; }
.m-flow-t { font-size: 11.5px; }
.m-gov-k { font-size: 15px; } .m-gov-t { font-size: 11.5px; }
.m-tab text { font-size: 11.5px; }
.m-ico { fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.m-layer-box { stroke-width: 1.2; }
.m-band-bg { stroke-width: 1.2; }
.m-app rect { stroke-width: 1.2; }

/* ---------- Solutions: representative cases under each pattern ---------- */
.serve-eg { margin-top: 0.4rem; padding-top: 0.7rem; border-top: 1px solid var(--line); font-size: 0.86rem; line-height: 1.5; color: var(--muted); }
.serve-eg span { display: block; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem; }
.serve-eg span::before { content: "[ "; } .serve-eg span::after { content: " ]"; }

/* ---------- Solutions: the explorer pins while you scroll through the layers ---------- */
@media (min-width: 901px) and (min-height: 760px) {
  .mx-pin { height: 360vh; }
  .mx-pin .mx { position: sticky; top: 112px; }
  .mx-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); }
  .mx-progress i { display: block; height: 100%; width: 0; background: var(--blue); transition: width 200ms ease; }
  .mx { position: relative; }
  .mx-hint { position: absolute; left: clamp(1.25rem, 2.5vw, 2rem); bottom: 1.1rem; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
  .mx-hint::before { content: "[ "; } .mx-hint::after { content: " ]"; }
}
.mx-progress, .mx-hint { display: none; }
@media (min-width: 901px) and (min-height: 760px) { .mx-progress, .mx-hint { display: block; } }
#patterns .serve-grid { grid-auto-rows: auto; }
#patterns .serve-item { grid-row: span 4; grid-template-rows: subgrid; align-content: stretch; }
#patterns .serve-eg { align-self: start; }

/* ---------- FAQ answers: short paragraphs and lists ---------- */
.faq-a { display: grid; gap: 0.7rem; }
.faq-a ul { list-style: none; display: grid; gap: 0.5rem; padding: 0; }
.faq-a li { padding-left: 1rem; position: relative; }
.faq-a li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; background: var(--blue); }
.faq-a strong { color: var(--ink); font-weight: 600; }
/* ---------- Home: governance bar under the five layers ---------- */
.om-gov { grid-column: 1 / -1; grid-template-columns: 3rem 14rem minmax(0, 1fr); align-items: center; gap: 1rem 1.5rem; background: var(--surface-2); border-color: rgba(0,67,202,0.3); border-style: dashed; min-height: 0; padding: 0.9rem clamp(1rem, 2.5vw, 1.75rem); }
.om-gov .om-name { color: var(--blue); font-size: 1.05rem; }
.om-gov .om-no { color: var(--blue); }
@media (max-width: 760px) { .om-gov { grid-template-columns: 3rem minmax(0, 1fr); } }

/* ---------- Case study pages ---------- */
.case-p { max-width: 68ch; color: var(--ink-2); font-size: 1.05rem; line-height: 1.65; margin-bottom: 1.1rem; }
.case-pull { font-family: var(--font-display); font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.3; color: var(--ink); max-width: 30ch; border-left: 3px solid var(--blue); padding: 0.4rem 0 0.4rem 1.25rem; margin: 2rem 0; text-wrap: balance; }
.case-items { margin: 1.5rem 0 2rem; }
.case-items-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case-items .serve-item h3 { font-size: 1.15rem; }
@media (max-width: 720px) { .case-items-2 { grid-template-columns: 1fr; } }
.case-quote { border: 1px solid var(--line); background: var(--surface-2); padding: 1.25rem 1.5rem; margin: 1.5rem 0; display: grid; gap: 0.6rem; color: var(--ink-2); max-width: 68ch; }
.case-quote-k { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.case-quote-k::before { content: "[ "; } .case-quote-k::after { content: " ]"; }
.case-quote strong { color: var(--ink); font-weight: 600; }
.case-steps { list-style: none; display: grid; border-top: 1px solid var(--line); margin: 1.5rem 0; max-width: 72ch; }
.case-steps li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.case-step-n { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--blue); padding-top: 0.4rem; }
.case-steps h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.case-steps p { color: var(--ink-2); font-size: 0.98rem; line-height: 1.55; }
.case-cycle { list-style: none; border: 1px solid var(--line); margin-top: 1.25rem; }
.case-cycle li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem; padding: 1rem 1.25rem; border-top: 1px solid var(--line); font-size: 0.98rem; line-height: 1.55; color: var(--ink-2); }
.case-cycle li:first-child { border-top: none; }
.case-cycle b { font-family: var(--font-display); font-weight: 400; color: var(--ink); font-size: 1.05rem; }
@media (max-width: 640px) { .case-cycle li { grid-template-columns: 1fr; gap: 0.3rem; } }
.case-tablewrap { overflow-x: auto; border: 1px solid var(--line); margin: 1.5rem 0 2rem; }
.case-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.case-table th, .case-table td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.case-table thead th { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--surface-2); }
.case-table tbody tr:last-child td { border-bottom: none; }
.case-table td.before { color: var(--muted); font-variant-numeric: tabular-nums; }
.case-table td.after { color: var(--blue); font-weight: 600; font-variant-numeric: tabular-nums; }
.case-note { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); margin-top: 1.5rem; }
.case-back { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.case-deep { margin-top: 2rem; border: 1px solid var(--line); background: var(--navy); color: rgba(255,255,255,0.85); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; padding: clamp(1.25rem, 3vw, 2rem); text-decoration: none; }
.case-deep:hover { background: #001a4d; }
.case-deep .trusted-k { color: #7FA6FF; }
.case-deep h3 { color: #FFFFFF; font-size: clamp(1.2rem, 1.8vw, 1.5rem); margin: 0.4rem 0 0.4rem; }
.case-deep p { font-size: 0.98rem; }
.case-deep .btn { white-space: nowrap; }
@media (max-width: 720px) { .case-deep { grid-template-columns: 1fr; } }
.ccard-more a { color: #FFFFFF; font-weight: 500; font-size: 0.9rem; text-decoration: underline; text-underline-offset: 0.2em; }

/* Second case study page and a two-card "full case study" grid on Clients */
.results-grid.results-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 800px) { .results-grid.results-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .results-grid.results-grid-3 { grid-template-columns: 1fr; } }
.case-p strong { color: var(--ink); font-weight: 600; }
.case-deep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.case-deep-grid .case-deep { margin-top: 0; grid-template-columns: 1fr; grid-template-rows: subgrid; grid-row: span 2; align-items: start; }
.case-deep-grid .case-deep .btn { justify-self: start; }
@media (max-width: 800px) { .case-deep-grid { grid-template-columns: 1fr; } .case-deep-grid .case-deep { grid-row: auto; grid-template-rows: none; } }

/* Showcase: six cards, folded ones narrower with a vertical function tag; also used on Clients */
.ccard.active { flex-grow: 12; }
@media (min-width: 861px) {
  .ccard:not(.active) { padding: 0.9rem 0.65rem 1.1rem; }
  .ccard:not(.active) .ccard-l { display: none; }
  .ccard:not(.active) .ccard-n { font-size: clamp(1rem, 1.3vw, 1.25rem); }
  .ccard:not(.active) .ccard-tag { writing-mode: vertical-rl; transform: rotate(180deg); align-self: flex-end; margin-bottom: auto; }
}
.ccard.active .ccard-tag { margin-bottom: auto; }

/* ---------- Title-only page heroes: no sub-line, so a shorter band ---------- */
.page-hero--title .hero-grid { padding-block: clamp(2rem, 3.5vw, 3rem) clamp(2.25rem, 3.5vw, 3.25rem); }
.page-hero--title .hero-copy { gap: 0.8rem; }

/* Why us: let the headline wrap into even lines instead of a staircase */
#why-hero h1 { text-wrap: balance; }

/* Stat tiles stacked on phones: no left indent on the second and later tiles */
@media (max-width: 440px) { .results-grid li + li, .results-grid.results-grid-3 li + li { padding-left: 0; } }
