/* Gridstock Procurement website
   Brand source: Gridstock brand one-pager v0.1 (color, type, mark geometry). */

:root {
  --navy: #001844;
  --navy-2: #0a2a63;
  --navy-3: #0f3a86;
  --azure: #1a9bd7;
  --azure-deep: #106b99;
  --azure-soft: #8fcdea;
  --steel: #0a2a63;        /* page ground */
  --blue-2: #0d3178;       /* raised sections */
  --panel: #072155;        /* sunk sections */
  --graphite: #e9eef6;     /* body text on blue */
  --muted: rgba(255,255,255,.68);
  --hairline: rgba(255,255,255,.14);
  --card: rgba(255,255,255,.05);
  --tint: rgba(26,155,215,.14);
  --white: #ffffff;
  --action-blue: #106b99;
  --action-hover: #0b5780;

  --font-display: "Archivo", "Arial", sans-serif;
  --font-body: "IBM Plex Sans", "Arial", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 6px;
  --header-h: 84px;
  /* Type scale (clamped for phones). Display is the home headline only. */
  --fs-display: clamp(44px, 6vw, 72px);
  --fs-h1: clamp(34px, 4.2vw, 52px);
  --fs-h2: clamp(26px, 3vw, 36px);
  --fs-h3: 22px;
  --fs-lead: 18px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-label: 13px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--graphite);
  background: var(--steel);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--white); margin: 0; line-height: 1.1; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--azure-soft); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--action-blue); color: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--azure-soft);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--azure); }
.on-dark .eyebrow { color: var(--azure-soft); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}
.site-header.scrolled { background: rgba(0, 24, 68, .96); box-shadow: 0 1px 0 rgba(255,255,255,.08); --header-h: 70px; height: calc(70px + env(safe-area-inset-top, 0px)); backdrop-filter: blur(8px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-word { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 23px; letter-spacing: .04em; text-transform: uppercase; }
.brand-desc { font-family: var(--font-display); font-weight: 500; font-size: 8.5px; letter-spacing: .62em; text-transform: uppercase; color: var(--azure); margin-top: 6px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  text-decoration: none; color: rgba(255,255,255,.86);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-small); letter-spacing: .1em; text-transform: uppercase;
  position: relative; padding: 6px 0;
}
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--azure); transition: right .25s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav .btn { padding: 10px 22px; }
.nav .btn::after { display: none; }

.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--white); margin: 6px 0; transition: transform .25s, opacity .25s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-small); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border-radius: 999px; padding: 14px 28px; border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  cursor: pointer;
}
.btn-primary { background: var(--azure); color: var(--white) !important; }
.btn-primary:hover { background: #2aaae6; transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-navy { background: var(--azure); color: var(--white); }
.btn-navy:hover { background: #2aaae6; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

.link-arrow {
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-small); letter-spacing: .14em; text-transform: uppercase;
  color: var(--azure-soft); text-decoration: none; display: inline-flex; gap: 10px; align-items: center;
}
.link-arrow:hover .arrow { transform: translateX(4px); }
.link-arrow .arrow { transition: transform .2s; }
.on-dark .link-arrow { color: var(--azure-soft); }

/* ---------- Dark surfaces + grid texture ---------- */
.on-dark { color: rgba(255,255,255,.82); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }
.dark-surface {
  background:
    radial-gradient(1200px 600px at 85% 10%, rgba(26,155,215,.22), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
  position: relative; overflow: hidden;
}
.grid-texture::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(110deg, transparent 20%, #000 75%);
  -webkit-mask-image: linear-gradient(110deg, transparent 20%, #000 75%);
}

/* ---------- Home hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 48px) 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero-title {
  font-weight: 800; font-stretch: 108%; text-transform: uppercase; letter-spacing: .01em;
  font-size: var(--fs-display); line-height: .98; margin: 22px 0 30px;
}
.hero-title span { display: block; }
.hero-title .l2 { color: var(--azure); }
.hero-title .l3 { color: transparent; -webkit-text-stroke: 1.5px var(--azure-soft); }
.hero-sub { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lead); line-height: 1.35; color: var(--white); max-width: 34ch; margin-bottom: 18px; }
.hero-copy { font-size: var(--fs-lead); max-width: 54ch; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.stage { width: 118%; max-width: 660px; justify-self: end; position: relative; margin: -6% -16% 0 0; }
.stage canvas { width: 100%; aspect-ratio: 1 / 1; height: auto; display: block; }
.stage .mono { font-family: var(--font-mono); letter-spacing: .18em; text-transform: uppercase; font-size: var(--fs-label); color: var(--azure-soft); }
.hud-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: -10% 16% 0 6%; font-family: var(--font-mono); }
.hud-line b { font-weight: 500; font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--white); }
.hud-line .tags { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.hud-line .tags span { font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hud-line .tags span.now { color: var(--azure-soft); }
.hud-line .tags span.done { color: rgba(255,255,255,.75); }
.hud-line .tags span.done::before { content: "✓ "; }
.nogl { position: absolute; inset: 0; display: none; place-items: center; text-align: center; padding: 24px; color: rgba(255,255,255,.7); font-size: var(--fs-small); }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 1; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .3em; color: rgba(255,255,255,.55); text-transform: uppercase; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-cue::after { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--azure), transparent); }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: calc(var(--header-h) + 88px) 0 88px; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-weight: 800; font-size: var(--fs-h1); line-height: 1.04; margin: 20px 0 22px; max-width: 18ch; }
.page-hero p { font-size: var(--fs-lead); max-width: 62ch; }
.page-hero .corner { position: absolute; right: 0; bottom: 0; width: 96px; height: 96px; background: var(--azure); }
.crumbs { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.crumbs a { text-decoration: none; color: rgba(255,255,255,.75); }
.crumbs a:hover { color: var(--white); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-white { background: var(--blue-2); }
.section-panel { background: var(--panel); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: start; margin-bottom: 56px; }
.section-head > p, .section-head > div:last-child:not(:first-child) { padding-top: 34px; }
.section-head h2 { font-weight: 800; font-size: var(--fs-h2); margin-top: 18px; }
.section-head p { font-size: var(--fs-lead); color: var(--muted); }
.on-dark .section-head p { color: rgba(255,255,255,.75); }
.section-head.stack { grid-template-columns: 1fr; max-width: 820px; }

/* ---------- Accountability chain ---------- */
.chain-banner {
  background: var(--azure); color: var(--white); border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: var(--fs-small);
  padding: 16px 24px; text-align: center; margin-bottom: 14px;
}
.chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; counter-reset: step; }
.chain li {
  counter-increment: step;
  background: var(--navy); border: 1px solid rgba(255,255,255,.1); color: var(--white); border-radius: var(--radius);
  padding: 18px 14px 20px; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-body); line-height: 1.25;
  position: relative; min-height: 104px; display: flex; flex-direction: column; justify-content: space-between;
  transition: background .2s, transform .2s;
}
.chain li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-weight: 400; font-size: var(--fs-label); letter-spacing: .14em; color: var(--azure-soft); }
.chain li:hover { background: var(--navy-3); transform: translateY(-3px); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.18); }
.stat { padding: 40px 32px 8px 0; border-right: 1px solid rgba(255,255,255,.18); }
.stat + .stat { padding-left: 32px; }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-stretch: 108%; font-size: var(--fs-h1); line-height: 1; color: var(--white); }
.stat .num em { font-style: normal; color: var(--azure); }
.stat p { margin-top: 16px; max-width: 30ch; }
.statement { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2); line-height: 1.18; color: var(--white); max-width: 22ch; margin: 18px 0 64px; }
.statement em { font-style: normal; color: var(--azure); }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 22px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column; gap: 16px; position: relative;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(0,0,0,.6); border-color: rgba(255,255,255,.28); }
.card::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--azure); transition: width .35s ease; border-radius: var(--radius) var(--radius) 0 0; }
.card:hover::after { width: 100%; }
.card .idx { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .2em; color: var(--azure-soft); }
.card h3 { font-weight: 700; font-size: var(--fs-h3); line-height: 1.2; }
.card p { color: var(--muted); font-size: var(--fs-body); }
.card .icon { width: 52px; height: 52px; border-radius: 50%; background: var(--azure); color: var(--white); display: grid; place-items: center; }
.card .icon svg { width: 24px; height: 24px; }
.metrics { margin-top: auto; background: var(--tint); border-radius: var(--radius); padding: 16px 18px; }
.metrics h4 { font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; color: var(--azure-soft); margin-bottom: 8px; }
.metrics ul { margin: 0; padding: 0; list-style: none; }
.metrics li { font-weight: 600; font-size: var(--fs-small); color: var(--white); padding-left: 16px; position: relative; line-height: 1.45; margin: 4px 0; }
.metrics li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; background: var(--azure); }

.card-dark { background: var(--navy); border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }
.card-dark h3 { color: var(--white); }
.card-dark p { color: rgba(255,255,255,.75); }
.card-dark .icon { background: var(--azure); }
.card-dark .idx { color: var(--azure-soft); }

/* ---------- Phase panels ---------- */
.phases { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.phase { border-radius: var(--radius); padding: 44px 40px; display: flex; flex-direction: column; gap: 18px; }
.phase-1 { background: var(--tint); border: 1px solid rgba(143,205,234,.3); }
.phase-2 { background: var(--navy); color: rgba(255,255,255,.8); }
.phase-2 h3 { color: var(--white); }
.phase .badge { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h3); color: var(--white); background: var(--azure); }
.phase-2 .badge { background: var(--azure); }
.phase .kicker { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; color: var(--azure-soft); }
.phase-2 .kicker { color: var(--azure-soft); }
.phase h3 { font-size: var(--fs-h2); font-weight: 800; }
.phase .lead { font-size: var(--fs-lead); }
.phase dl { margin: 6px 0 0; border-top: 1px solid rgba(255,255,255,.16); }
.phase-2 dl { border-color: rgba(255,255,255,.16); }
.phase dl div { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.phase-2 dl div { border-color: rgba(255,255,255,.1); }
.phase dt { font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: var(--fs-body); }
.phase-2 dt { color: var(--white); }
.phase dd { margin: 4px 0 0; font-size: var(--fs-body); }
.phase-1 dd { color: var(--muted); }

/* ---------- Glow frame panel ---------- */
.glow-frame { position: relative; padding: clamp(40px, 6vw, 80px); border-radius: 10px; background: rgba(255,255,255,.03); }
.glow-frame::before, .glow-frame::after { content: ""; position: absolute; pointer-events: none; border-radius: 10px; }
.glow-frame::before { left: 0; top: 0; width: 62%; height: 70%; border-top: 2px solid; border-left: 2px solid; border-image: linear-gradient(90deg, var(--azure-soft), transparent) 1; }
.glow-frame::after { right: 0; bottom: 0; width: 62%; height: 70%; border-bottom: 2px solid; border-right: 2px solid; border-image: linear-gradient(270deg, var(--azure-soft), transparent) 1; }
.glow-frame blockquote { margin: 0; font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: var(--fs-h2); line-height: 1.3; color: var(--white); max-width: 30ch; }
.glow-frame blockquote strong { font-style: normal; font-weight: 800; color: var(--azure); }
.glow-frame .attr { margin-top: 26px; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; color: var(--azure-soft); }
.glow-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; }
.mini-mark { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(100%, 220px); justify-self: center; }
.mini-mark i { aspect-ratio: 1; border-radius: 4px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); }
.mini-mark i:nth-child(2) { background: var(--azure); border: 0; clip-path: polygon(0 0, 79% 0, 100% 21%, 100% 100%, 0 100%); }

/* ---------- Scope chips ---------- */
.scope-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.scope-col { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 36px 32px; }
.scope-col header { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.scope-col header .icon { width: 52px; height: 52px; border-radius: 50%; background: var(--azure); color: var(--white); display: grid; place-items: center; flex: none; }
.scope-col header .icon svg { width: 24px; height: 24px; }
.scope-col h3 { font-size: var(--fs-h3); font-weight: 800; }
.scope-col .count { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .14em; color: var(--muted); margin-left: auto; }
.chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips li {
  border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 12px 14px; font-size: var(--fs-body); font-weight: 500; color: var(--white);
  background: rgba(255,255,255,.05); display: flex; align-items: center; gap: 10px; transition: border-color .2s, background .2s;
}
.chips li::before { content: ""; width: 7px; height: 7px; background: var(--azure); flex: none; }
.chips li:hover { border-color: var(--azure); background: var(--tint); }
.note { margin-top: 18px; font-size: var(--fs-small); color: var(--muted); }

/* ---------- Gate framework ---------- */
.framework { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 32px; }
.framework + .framework { margin-top: 0; }
.framework .kicker { font-family: var(--font-display); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: var(--fs-small); color: var(--azure-soft); margin-bottom: 18px; }
.flow { display: flex; align-items: stretch; gap: 0; }
.flow .step { flex: 1; background: rgba(255,255,255,.08); border-radius: var(--radius); padding: 22px 18px; display: grid; place-items: center; text-align: center; font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: var(--fs-body); line-height: 1.3; }
.flow .gate { flex: none; width: 64px; display: grid; place-items: center; position: relative; }
.flow .gate span {
  width: 46px; height: 46px; background: var(--azure); color: var(--white); transform: rotate(45deg); border-radius: 6px;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-body);
}
.flow .gate span b { transform: rotate(-45deg); display: block; text-align: center; line-height: 1; }
.flow .gate span small { display: block; font-size: 8px; letter-spacing: .1em; font-weight: 600; text-transform: uppercase; margin-top: 2px; }
.flow-dark .step { background: var(--navy); color: var(--white); }
.flow-dark .step + .step { margin-left: 10px; }
.flow .handoff { flex: none; width: 3px; background: var(--azure-deep); margin: 0 18px; border-radius: 2px; }
.flow .step.outside { background: transparent; border: 2px dashed rgba(255,255,255,.3); color: var(--muted); font-weight: 500; }
.po-divider { display: flex; align-items: center; gap: 16px; margin: 22px 0; }
.po-divider::before, .po-divider::after { content: ""; flex: 1; border-top: 3px dotted rgba(255,255,255,.5); }
.po-divider span { background: var(--white); color: var(--navy); border-radius: 999px; padding: 8px 20px; font-family: var(--font-display); font-weight: 600; font-style: italic; font-size: var(--fs-small); white-space: nowrap; }
.demarc { margin-top: 14px; text-align: right; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-small); color: var(--azure-soft); }
.gates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.gates div { background: var(--tint); border-left: 4px solid var(--azure); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 20px; color: var(--white); font-size: var(--fs-body); }
.gates b { color: var(--azure-soft); font-family: var(--font-display); }

/* Numbered steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.steps .card { padding-top: 34px; }
.steps .num { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h2); line-height: 1; color: var(--white); }
.steps .gate-note { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(143,205,234,.4); font-family: var(--font-display); font-weight: 600; font-style: italic; font-size: var(--fs-small); color: var(--azure-soft); }
.steps .card-top { display: flex; justify-content: space-between; align-items: flex-start; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
table.matrix { width: 100%; border-collapse: collapse; background: var(--card); font-size: var(--fs-body); min-width: 760px; }
.matrix th, .matrix td { padding: 14px 16px; border-bottom: 1px solid var(--hairline); text-align: center; vertical-align: middle; }
.matrix thead th { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-small); letter-spacing: .06em; color: var(--muted); border-bottom: 2px solid rgba(255,255,255,.5); }
.matrix th[scope="row"], .matrix td.activity { text-align: left; font-weight: 500; color: var(--graphite); }
.matrix .ours { background: var(--tint); }
.matrix thead .ours { color: var(--azure-soft); font-size: var(--fs-body); }
.matrix .group td { background: rgba(255,255,255,.04); font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .2em; color: var(--muted); text-align: left; padding: 10px 16px; text-transform: uppercase; }
.matrix .group.handoff td { border-top: 3px solid var(--azure-deep); }
.dot { display: inline-block; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5); vertical-align: middle; }
.dot.partial { background: rgba(143,205,234,.45); border-color: rgba(143,205,234,.8); }
.dot.full { background: var(--white); border-color: var(--white); }
.ours .dot.full { background: var(--azure); border-color: var(--azure); }
.raci { display: inline-grid; place-items: center; min-width: 40px; height: 26px; border-radius: 5px; font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-label); }
.raci.L { background: var(--azure); color: var(--white); }
.raci.S { border: 1.5px solid rgba(255,255,255,.8); color: var(--white); background: transparent; }
.raci.C { background: rgba(143,205,234,.22); color: var(--white); }
.raci.N { color: rgba(255,255,255,.35); }
.legend { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 18px; font-size: var(--fs-small); color: var(--muted); align-items: center; }
.legend span { display: inline-flex; gap: 8px; align-items: center; }

/* Responsibility split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.split .panel { border-radius: var(--radius); padding: 26px 30px; }
.split .ours-panel { background: var(--navy); border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.85); }
.split .theirs-panel { background: var(--card); border: 1px solid var(--hairline); color: var(--muted); }
.split h3 { font-size: var(--fs-h3); font-weight: 800; margin-bottom: 12px; display: flex; gap: 14px; align-items: center; }
.split .ours-panel h3 { color: var(--white); }
.split ul { margin: 0; padding: 0; list-style: none; }
.split li { padding: 7px 0 7px 22px; border-top: 1px solid rgba(255,255,255,.1); position: relative; font-size: var(--fs-small); }
.split .ours-panel li { border-color: rgba(255,255,255,.12); }
.split li::before { content: ""; position: absolute; left: 0; top: 1.25em; width: 7px; height: 7px; background: var(--azure); }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(80px, 10vw, 128px) 0; }
.cta-band .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr .6fr; gap: 40px; align-items: end; }
.cta-band h2 { font-weight: 800; font-size: var(--fs-h2); line-height: 1.05; }
.cta-band p { margin-top: 20px; font-size: var(--fs-lead); max-width: 58ch; }
.cta-band .actions { display: flex; justify-content: flex-end; }
.cta-band .sq { position: absolute; width: 96px; height: 96px; background: var(--azure); }
.cta-band .sq.a { left: 0; top: 0; }
.cta-band .sq.b { right: 0; bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.people { display: grid; gap: 16px; margin-top: 32px; }
.person { display: flex; gap: 16px; align-items: center; padding: 18px 20px; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); }
.person .av { width: 48px; height: 48px; border-radius: 50%; background: var(--azure); color: var(--white); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; letter-spacing: .04em; flex: none; }
.person b { display: block; color: var(--white); font-family: var(--font-display); font-size: var(--fs-lead); }
.person span { font-size: var(--fs-small); color: var(--muted); }
form.contact { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
form.contact .full { grid-column: 1 / -1; }
form.contact label { display: grid; gap: 7px; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
form.contact input, form.contact select, form.contact textarea {
  font: inherit; font-family: var(--font-body); font-size: var(--fs-body); letter-spacing: 0; text-transform: none; color: var(--graphite);
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); padding: 13px 14px; background: rgba(0,24,68,.55); width: 100%;
}
form.contact input:focus, form.contact select:focus, form.contact textarea:focus { outline: none; border-color: var(--azure); background: rgba(0,24,68,.8); box-shadow: 0 0 0 3px rgba(26,155,215,.18); }
form.contact textarea { min-height: 140px; resize: vertical; }
.form-status { grid-column: 1 / -1; font-size: var(--fs-small); color: var(--azure-soft); min-height: 1.4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 80px 0 32px; font-size: var(--fs-body); }
.foot-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.12); }
.foot-top p { margin-top: 20px; max-width: 36ch; }
.site-footer h4 { font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-label); letter-spacing: .24em; text-transform: uppercase; color: var(--azure-soft); margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: rgba(255,255,255,.82); }
.site-footer a:hover { color: var(--white); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 26px; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.5); }

/* ---------- Reveal ---------- */
/* Content stays visible at rest; below-the-fold blocks only slide up slightly as they enter. */
.js .reveal { transform: translateY(18px); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .chain { grid-template-columns: repeat(4, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 70px 0 auto 0; background: var(--navy); flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 28px; border-top: 1px solid rgba(255,255,255,.1);
    transform: translateY(-120%); transition: transform .3s ease; z-index: -1; max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .menu-open .nav { transform: none; }
  .menu-open .site-header { background: var(--navy); }
  .nav a { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: var(--fs-small); }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 20px; justify-content: center; border-bottom: 0; }
  .hero .wrap { grid-template-columns: 1fr; }
  .stage, .scroll-cue { display: none; }
  .hero { min-height: 0; }
  .section-head, .phases, .scope-cols, .split, .glow-grid, .contact-grid, .cta-band .wrap { grid-template-columns: 1fr; }
  .cta-band .actions { justify-content: flex-start; }
  .cards-3, .steps, .gates { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat, .stat + .stat { padding: 20px 0 0; border-right: 0; border-bottom: 0; }
  .stat .num { font-size: 32px; }
  .stat p { font-size: var(--fs-label); margin-top: 8px; }
  .flow { flex-direction: column; }
  .flow .gate { width: auto; height: 64px; }
  .flow-dark .step + .step { margin-left: 0; margin-top: 10px; }
  .flow .handoff { width: auto; height: 3px; margin: 18px 0; }
  .demarc { text-align: left; }
  .mini-mark { display: none; }
  .page-hero .corner { width: 56px; height: 56px; }
  .cta-band .sq { width: 48px; height: 48px; }
}
@media (max-width: 600px) {
  .chain { grid-template-columns: 1fr 1fr; }
  .chain li { min-height: 88px; }
  .cards-4, .cards-2, .chips, .foot-top { grid-template-columns: 1fr; }
  form.contact { grid-template-columns: 1fr; }
  .phase, .split .panel, .scope-col { padding: 28px 22px; }
  .framework { padding: 22px 18px; }
  .po-divider span { white-space: normal; text-align: center; }
  .brand-word { font-size: 20px; }
  .brand svg { width: 34px; height: 34px; }
}

/* ---------- Light stats band (Home, under Who we are) ---------- */
.stats-light { border-top-color: var(--hairline); margin-top: 8px; }
.stats-light .stat { border-color: var(--hairline); }
.stats-light .stat p { color: var(--muted); }
@media (max-width: 900px) { .stats-light .stat, .stats-light .stat + .stat { border-bottom-color: var(--hairline); } }

/* ---------- Delivery journey ----------
   Static by default: track + every step stacked. site.js adds .is-live on wide,
   motion-OK screens, which pins the section and shows one step at a time. */
.journey { overflow: clip; padding: clamp(72px, 10vw, 120px) 0; }
.journey .wrap { position: relative; z-index: 1; }
.j-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: 40px; }
.j-head h2 { font-weight: 800; font-size: var(--fs-h2); margin-top: 16px; max-width: 22ch; text-wrap: balance; }

.j-track { display: grid; grid-template-columns: 1fr 170px; gap: 0; margin-bottom: 32px; }
.j-rail { min-width: 0; }
.j-phases { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 14px; }
.j-phases span { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; color: var(--azure-soft); padding: 0 0 8px 2px; border-bottom: 1px solid rgba(143,205,234,.3); margin-right: 12px; }
.j-phases .p1 { grid-column: 1 / 4; }
.j-phases .p2 { grid-column: 4 / 8; margin-right: 0; }
.j-nodes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); position: relative; }
/* Line runs node 1 center to node 7 center; the dashed tail runs on to the delivery marker. */
.j-line { position: absolute; left: calc(100% / 14); right: calc(100% / 14); top: 9px; height: 2px; background: rgba(255,255,255,.16); pointer-events: none; }
.j-line::after { content: ""; position: absolute; left: 100%; top: 0; width: calc(100% / 12); border-top: 2px dashed rgba(255,255,255,.3); }
.j-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--azure); box-shadow: 0 0 12px rgba(26,155,215,.7); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.j-po-mk { position: absolute; left: calc(100% * 5 / 12); transform: translateX(-50%); top: -24px; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .16em; color: var(--azure-soft); }
.j-node { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; text-align: center; position: relative; z-index: 1; padding-bottom: 4px; }
.j-node .dot { width: 20px; height: 20px; border-radius: 50%; background: var(--navy); border: 2px solid rgba(143,205,234,.55); transition: background .3s, border-color .3s, transform .3s, box-shadow .3s; }
.j-node .lbl { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-small); line-height: 1.25; color: rgba(255,255,255,.62); transition: color .3s; padding: 0 6px; }
.j-node:hover .lbl, .j-node:focus-visible .lbl { color: var(--white); }
.j-node:focus-visible .dot { outline: 2px solid var(--azure); outline-offset: 4px; }
.j-node.done .dot { background: var(--azure); border-color: var(--azure); }
.j-node.active .dot { background: var(--azure); border-color: var(--white); transform: scale(1.25); box-shadow: 0 0 0 6px rgba(26,155,215,.25); }
.j-node.active .lbl { color: var(--white); }
.gates-mk { display: flex; gap: 6px; }
.gd { width: 20px; height: 20px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: var(--azure); display: inline-grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-label); color: var(--white); flex: none; }
.j-end { border-left: 3px solid var(--azure); padding: 0 0 0 14px; margin-top: 22px; display: flex; flex-direction: column; gap: 4px; align-self: start; }
.j-end b { font-family: var(--font-display); font-size: var(--fs-small); color: var(--white); }
.j-end span { font-size: var(--fs-small); color: rgba(255,255,255,.55); }

.j-body { display: grid; gap: 18px; }
.j-stage { display: none; }
.j-panels { display: grid; gap: 18px; }
.j-step {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px 48px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
  padding: clamp(24px, 3vw, 36px); scroll-margin-top: calc(var(--header-h) + 24px);
}
.j-main, .j-side { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.j-kicker { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; color: var(--azure-soft); display: flex; gap: 14px; flex-wrap: wrap; }
.j-kicker span { color: var(--muted); }
.j-step h3 { font-size: var(--fs-h3); font-weight: 800; }
.j-step p { font-size: var(--fs-body); color: rgba(255,255,255,.8); max-width: 58ch; }
.j-gate { display: flex; align-items: center; gap: 14px; font-size: var(--fs-body); color: rgba(255,255,255,.85); }
.j-gate .gd { width: 26px; height: 26px; font-size: var(--fs-label); }
.j-gate b { color: var(--azure-soft); font-family: var(--font-display); }
.j-label { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; color: var(--azure-soft); margin-bottom: 8px; }
.j-roles { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.j-roles th, .j-roles td { padding: 8px 6px; border-bottom: 1px solid rgba(255,255,255,.1); text-align: center; }
.j-roles thead th { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-label); color: rgba(255,255,255,.6); }
.j-roles thead th:nth-child(2) { color: var(--azure-soft); }
.j-roles th[scope="row"] { text-align: left; font-weight: 500; color: rgba(255,255,255,.85); padding-left: 0; }
.j-roles td:nth-child(2) { background: rgba(26,155,215,.12); }
.journey .raci { min-width: 30px; height: 24px; font-size: var(--fs-label); }
.journey .raci.L { background: var(--azure); color: var(--white); }
.journey .raci.S { background: transparent; border: 1.5px solid rgba(255,255,255,.8); color: var(--white); }
.journey .raci.C { background: rgba(143,205,234,.22); color: var(--white); }
.journey .raci.N { color: rgba(255,255,255,.35); }
.j-po { display: inline-block; background: var(--white); color: var(--navy); border-radius: 999px; padding: 8px 18px; font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: var(--fs-small); }
.j-why { border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; margin-top: auto; }
.j-why p { font-size: var(--fs-body); }
.j-hint { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Live (pinned) mode */
/* Live mode is sized to fit one desktop screen: heading, track, scene and panel together. */
.journey.is-live { padding: 32px 0 32px; }
.journey.is-live .j-head { margin-bottom: 14px; gap: 12px 32px; }
.journey.is-live .j-head h2 { max-width: 34ch; margin-top: 8px; }
.journey.is-live .j-track { margin-bottom: 10px; }
.journey.is-live .j-phases { margin-bottom: 8px; }
.journey.is-live .j-node .lbl { font-size: var(--fs-label); }
.journey.is-live .j-node .dot { width: 16px; height: 16px; }
.journey.is-live .j-end { margin-top: 14px; }
.journey.is-live .j-body { grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.journey.is-live .j-stage { display: block; position: relative; height: min(36vh, 360px); margin-left: -8%; }
.journey.is-live .j-stage canvas { width: 100%; height: 100%; display: block; }
.journey.is-live .j-step { grid-template-columns: 1fr; gap: 8px; padding: 16px 20px; }
.journey.is-live .j-main, .journey.is-live .j-side { gap: 8px; }
.journey.is-live .j-kicker { font-size: var(--fs-label); }
.journey.is-live .j-step h3 { font-size: var(--fs-h3); }
.journey.is-live .j-step p { font-size: var(--fs-small); }
.journey.is-live .j-gate { font-size: var(--fs-small); gap: 10px; }
.journey.is-live .j-gate .gd { width: 20px; height: 20px; font-size: var(--fs-label); }
.journey.is-live .j-label { font-size: var(--fs-label); margin-bottom: 4px; }
.journey.is-live .j-roles { font-size: var(--fs-label); }
.journey.is-live .j-roles th, .journey.is-live .j-roles td { padding: 5px 4px; }
.journey.is-live .raci { min-width: 26px; height: 20px; font-size: var(--fs-label); }
.journey.is-live .j-why { padding-top: 8px; }
.journey.is-live .j-why p { font-size: var(--fs-small); }
.journey.is-live .j-panels { gap: 0; }
.journey.is-live .j-step { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .45s ease, transform .45s cubic-bezier(.2,.7,.2,1), visibility 0s linear .45s; }
.journey.is-live .j-step.active { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease, transform .45s cubic-bezier(.2,.7,.2,1), visibility 0s; }

@media (max-width: 900px) {
  .j-track { display: none; }
  .j-step { grid-template-columns: 1fr; }
  .j-roles { font-size: var(--fs-small); }
}

/* ---------- Scope of Supply: explorable site ---------- */
.scope-grid { display: grid; grid-template-columns: .62fr 1.3fr .62fr; gap: 20px; align-items: start; }
.scope-list { height: min(44vh, 390px); overflow: auto; display: grid; gap: 12px; align-content: start; padding-right: 4px; }
.scope-list h4 { font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; color: var(--azure-soft); margin: 0 0 8px; display: flex; justify-content: space-between; }
.scope-list h4 span { color: var(--muted); }
.chips-compact { grid-template-columns: 1fr 1fr; gap: 5px; }
.chips-compact li { border-radius: 4px; font-size: var(--fs-label); }
.chips-compact li button { padding: 6px 8px; gap: 7px; line-height: 1.25; }
.chips-compact li button::before { width: 5px; height: 5px; }
.scope-list .note { margin-top: 4px; font-size: var(--fs-label); }
.scope-stage { position: relative; min-width: 0; }
.scope-stage canvas { width: 100%; height: min(44vh, 390px); display: block; cursor: grab; }
.scope-stage canvas.hot { cursor: pointer; }
.scope-hud { position: absolute; left: 0; bottom: 0; display: flex; gap: 14px; align-items: center; }
.scope-hud .mono { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; color: var(--azure-soft); }
.btn-mini { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--white); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.btn-mini:hover { border-color: var(--azure); }
.scope-panel { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; align-content: start; height: min(44vh, 390px); overflow: auto; }
.scope-panel h3 { font-size: var(--fs-h3); font-weight: 800; line-height: 1.15; }
.scope-panel p { color: var(--muted); font-size: var(--fs-small); }
.scope-panel .sp-empty, .scope-panel .sp-item { display: grid; gap: 14px; }
.scope-panel dl { margin: 4px 0 0; border-top: 1px solid var(--hairline); }
.scope-panel dl div { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.scope-panel dt { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; color: var(--azure-soft); }
.scope-panel dd { margin: 4px 0 0; font-size: var(--fs-label); line-height: 1.5; color: var(--graphite); }
.chips li { padding: 0; }
.chips li button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; cursor: pointer; }
.chips li button::before { content: ""; width: 7px; height: 7px; background: var(--azure); flex: none; }
.chips li::before { display: none; }
.chips li.active { border-color: var(--azure); background: var(--tint); }
.chips li button:focus-visible { outline: 2px solid var(--azure); outline-offset: 2px; }
@media (max-width: 900px) {
  .scope-grid { grid-template-columns: 1fr; }
  .scope-stage { display: none; }
  .scope-panel { order: -1; height: auto; overflow: visible; }
  .scope-list { height: auto; overflow: visible; }
  .chips-compact { grid-template-columns: 1fr; }
}

/* ---------- Demarcation scene (How We Work) and interior banners ---------- */
.demarc-stage { display: none; }
.demarc-cap .mono { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; color: var(--azure-soft); }
.page-hero { position: relative; overflow: hidden; }
.page-hero .banner-gl { display: none; }
@media (min-width: 901px) {
  .demarc-stage { display: block; position: relative; margin: 0 0 20px; }
  .demarc-stage canvas { width: 100%; height: min(27vh, 250px); display: block; }
  .demarc-cap { position: absolute; left: 0; bottom: 0; }
  .page-hero .banner-gl { display: block; position: absolute; right: -4%; top: 0; height: 100%; width: 54%; pointer-events: none; opacity: .95;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 35%); mask-image: linear-gradient(90deg, transparent 0, #000 35%); }
  .page-hero .wrap { position: relative; z-index: 1; }
  .page-hero h1, .page-hero p { max-width: 24ch; }
  .page-hero p { max-width: 52ch; }
}

/* Sections that hold a graphic are sized to fit one desktop screen */
@media (min-width: 901px) {
  .section-fit { padding: 40px 0 44px; }
  .section-fit .section-head { margin-bottom: 22px; }
  .section-fit .section-head p { font-size: var(--fs-small); }
}

/* ---------- Review corrections: reading controls and progressive enhancement ---------- */
.btn-primary, .btn-navy, .raci.L, .journey .raci.L, .gd, .flow .gate span, .person .av {
  background: var(--action-blue); color: var(--white);
}
.btn-primary:hover, .btn-navy:hover { background: var(--action-hover); }
.raci.N, .journey .raci.N { color: var(--azure-soft); }
.btn:disabled, .btn-mini:disabled { cursor: default; opacity: .65; transform: none; }
.btn-mini { min-height: 44px; }
.table-scroll-hint, .table-note, .scope-technical-note, .scope-selection-hint {
  color: var(--azure-soft); font-size: var(--fs-small); line-height: 1.55;
}
.table-scroll-hint { margin-bottom: 12px; }
.table-note, .scope-technical-note { margin-top: 20px; }
.table-scroll { overscroll-behavior-x: contain; scrollbar-color: var(--azure-soft) var(--navy); }
.matrix th[scope="row"], .matrix thead th:first-child {
  position: sticky; left: 0; z-index: 2; background: var(--panel);
}
.matrix thead th:first-child { z-index: 3; }
.j-step { display: block; }
.j-step-content { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px 48px; }
.j-details > summary { display: none; }
.journey.is-live .j-step-content { grid-template-columns: 1fr; gap: 8px; }
.journey-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.journey-controls .j-hint { display: block; color: var(--azure-soft); font-size: var(--fs-small); }
.journey .j-hint { display: block; color: var(--azure-soft); font-size: var(--fs-small); margin-top: 12px; }
html:not(.js) [data-scene-toggle], html:not(.js) [data-journey-toggle] { display: none; }
.scene-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
[data-scene-fallback] { color: var(--azure-soft); font-size: var(--fs-small); padding: 18px; border: 1px solid var(--hairline); border-radius: var(--radius); }
#nogl:not([hidden]) { display: grid !important; }
.demarc-cap { position: static; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; }
.scope-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.scope-scroll-cue { color: var(--azure-soft); font-size: var(--fs-label); }
.scope-list { scrollbar-color: var(--azure-soft) var(--navy); scrollbar-gutter: stable; }
.chips li { display: block; }
.chips li button:disabled { cursor: default; }
.scope-category-detail { padding: 14px; border-top: 1px solid var(--hairline); }
.scope-category-detail h3 { font-size: var(--fs-lead); margin-bottom: 10px; }
.scope-description, .scope-placement { color: var(--graphite); font-size: var(--fs-small); line-height: 1.6; }
.scope-placement { margin-top: 10px; }
.scope-category-detail dl { margin-top: 14px; }
.scope-category-detail dt { color: var(--azure-soft); font-size: var(--fs-label); }
.scope-category-detail dd { margin-left: 0; }
.scope-close { margin-top: 14px; }
.scope-grid:not(.scope-enhanced) { grid-template-columns: 1fr; }
.scope-grid:not(.scope-enhanced) .scope-list { height: auto; overflow: visible; }
.scope-grid:not(.scope-enhanced) .scope-stage,
.scope-grid:not(.scope-enhanced) .scope-panel { display: none; }
.section-follow-link { margin-top: 32px; }
.cta-title, .contact-title { margin-top: 18px; }
.contact-title { font-weight: 800; font-size: var(--fs-h2); }
.contact-intro { margin-top: 18px; color: var(--muted); font-size: var(--fs-lead); }
.contact-notice { grid-column: 1 / -1; padding: 18px; background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--radius); font-size: var(--fs-body); }
.contact-notice p + p { margin-top: 8px; }
form.contact .contact-fields { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; border: 0; margin: 0; padding: 0; min-width: 0; }
form.contact .contact-fields:disabled { opacity: .6; }
.privacy-copy { max-width: 74ch; }
.privacy-copy h2 { font-size: var(--fs-h3); margin: 28px 0 12px; }
.privacy-copy p + p, .privacy-copy ul { margin-top: 16px; }

@media (max-width: 900px) {
  .js .nav { visibility: hidden; pointer-events: none; }
  .js .menu-open .nav { visibility: visible; pointer-events: auto; }
  html:not(.js) .site-header { position: static; height: auto; padding: 20px 0; background: var(--navy); }
  html:not(.js) .site-header .wrap { flex-wrap: wrap; }
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .nav { position: static; width: 100%; transform: none; visibility: visible; z-index: auto; max-height: none; padding: 0; overflow: visible; }
  html:not(.js) .hero, html:not(.js) .page-hero { padding-top: 48px; }
  table.matrix { table-layout: fixed; }
  .matrix thead th:first-child { width: min(220px, 45vw); }
  .matrix th, .matrix td { padding: 12px 10px; overflow-wrap: anywhere; }
  .j-step { padding: 0; }
  .j-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; color: var(--white); font-family: var(--font-display); font-size: var(--fs-lead); font-weight: 700; cursor: pointer; list-style: none; min-height: 60px; }
  .j-details > summary::-webkit-details-marker { display: none; }
  .j-details > summary::after { content: "+"; color: var(--azure-soft); font-size: 24px; }
  .j-details[open] > summary::after { content: "−"; }
  .j-step-content { grid-template-columns: 1fr; gap: 20px; padding: 0 20px 22px; }
  .journey-controls { margin-bottom: 18px; }
  .scope-grid.scope-enhanced .scope-panel { display: none; }
  .scope-panel { order: initial; }
  .scope-scroll-cue { display: none; }
  .scope-hud { position: static; }
  form.contact .contact-fields { grid-template-columns: 1fr; }
  .contact-grid { gap: 28px; }
  .journey { padding: 56px 0; }
}

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

.follow-copy { margin-top: 18px; }
.card-link { text-decoration: none; }
.activity-heading { text-align: left !important; }
.comparison-value { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: var(--fs-small); }
.comparison-value .dot { flex: none; }
.table-hint, .role-key, .form-privacy { color: var(--azure-soft); font-size: var(--fs-small); line-height: 1.55; }
.table-hint { margin-bottom: 12px; }
.role-key { margin-top: 16px; }
.role-key > summary { cursor: pointer; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; }
.role-key > p { margin-top: 8px; }
.scene-toggle, [data-journey-toggle] {
  min-height: 44px; padding: 8px 12px; color: var(--azure-soft); background: transparent;
  border-color: transparent; font-weight: 500; letter-spacing: .04em; text-transform: none;
}
.scene-toggle:hover, [data-journey-toggle]:hover { color: var(--white); border-color: var(--hairline); background: rgba(255,255,255,.04); }
.stage .scene-toggle { display: flex; width: max-content; max-width: 100%; margin: 8px 16px 0 auto; }
.scene-controls { position: relative; z-index: 2; justify-content: flex-end; }
.journey-controls { margin-left: auto; justify-content: flex-end; }
.journey.is-live .j-head > div:first-child { flex: 1 1 520px; min-width: 0; }
.demarc-caption { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 0 0 20px; color: var(--azure-soft); font-family: var(--font-mono); font-size: var(--fs-label); }
.scene-fallback { color: var(--azure-soft); }
.contact-heading { font-size: var(--fs-h2); font-weight: 800; margin-top: 18px; }
.form-notice { grid-column: 1 / -1; padding: 16px; background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--radius); }
.form-notice p + p { margin-top: 8px; }
.form-privacy { grid-column: 1 / -1; }
.scope-tools { display: none; }
.scope-interactive .scope-tools { display: flex; }
.scope-interactive .scope-scroll-cue { display: block; }
.chips .scope-category-detail .scope-close {
  display: inline-flex; align-items: center; width: auto; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--hairline); border-radius: 999px; color: var(--white); background: var(--navy);
  font-family: var(--font-display); font-size: var(--fs-small); font-weight: 700; cursor: pointer;
}
.chips .scope-category-detail .scope-close::before { display: none; }
@media (max-width: 900px) {
  .scope-interactive .scope-scroll-cue { display: none; }
  .scope-list .chips > li { scroll-margin-top: calc(var(--header-h) + 16px); }
  .comparison-value { flex-direction: column; gap: 4px; }
  .scene-toggle { display: none; }
}

/* ---------- Phone layouts: tables become labelled cards, no sideways scrolling ---------- */
@media (max-width: 900px) {
  .table-hint { display: none; }
  .table-scroll { overflow: visible; }
  table.matrix, table.j-roles { min-width: 0; display: block; background: transparent; }
  .matrix thead, .j-roles thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .matrix tbody, .matrix tr, .matrix th, .matrix td, .j-roles tbody, .j-roles tr, .j-roles th, .j-roles td { display: block; border: 0; text-align: left; }
  .matrix tbody tr, .j-roles tbody tr { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 12px 14px 8px; margin-bottom: 10px; }
  .matrix tr.group { background: none; border: 0; padding: 0; margin: 18px 0 8px; }
  .matrix tr.group td { display: block; width: auto; background: none; padding: 0; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; color: var(--azure-soft); }
  .matrix tr.group.handoff td { border-top: 3px solid var(--azure-deep); padding-top: 10px; }
  .matrix th[scope="row"], .j-roles th[scope="row"] { position: static; padding: 0 0 8px; font-weight: 600; color: var(--white); background: none; }
  .matrix td, .j-roles td { display: inline-flex; align-items: center; gap: 8px; width: 50%; padding: 4px 8px 6px 0; background: none !important; }
  .matrix td::before, .j-roles td::before { content: attr(data-col); font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .12em; text-transform: uppercase; color: var(--azure-soft); flex: none; width: 6.5em; }
  .comparison-matrix td { width: 100%; }
  .comparison-matrix td::before { flex: none; width: 9.5em; }
  .comparison-matrix .comparison-value { flex-direction: row; justify-content: flex-start; gap: 8px; width: auto; }
  .journey .j-roles-wrap { overflow: visible; }
}

/* ---------- Scope of Supply on phones: native expand/collapse per category, no script needed ---------- */
.scope-acc { display: none; }
@media (max-width: 900px) {
  .chips li.scope-category > button { display: none; }
  .scope-acc { display: block; }
  .scope-acc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: var(--fs-small); font-weight: 500; color: var(--white); }
  .scope-acc > summary::-webkit-details-marker { display: none; }
  .scope-acc > summary::before { content: ""; width: 7px; height: 7px; background: var(--azure); flex: none; }
  .scope-acc > summary::after { content: "+"; margin-left: auto; color: var(--azure-soft); font-size: 20px; line-height: 1; }
  .scope-acc[open] > summary::after { content: "\2212"; }
  .scope-acc[open] { background: var(--tint); }
  .scope-acc .scope-category-detail { display: block; }
  .scope-tools, .scope-selection-hint { display: none !important; }
}

/* Phone tidy-ups: no caption for a hidden scene, less empty space under the hero */
@media (max-width: 900px) {
  .demarc-caption, .demarc-cap { display: none; }
  .hero { padding-bottom: 48px; }
}

/* Role letters sit centered in their boxes; the hidden label text never shifts them */
.raci { display: inline-flex; align-items: center; justify-content: center; text-align: center; position: relative; line-height: 1; }
.raci > .sr { position: absolute; left: 0; top: 0; }
/* On phones the legend comes before the cards it explains */
@media (max-width: 900px) {
  .wrap:has(> .table-scroll) { display: flex; flex-direction: column; }
  .wrap:has(> .table-scroll) > .section-head { order: -3; }
  .wrap:has(> .table-scroll) > .legend { order: -2; margin: 0 0 18px; }
  .wrap:has(> .table-scroll) > .role-key { order: -1; margin: 0 0 18px; }
}

/* ---------- Phone plan-view map for Scope of Supply (no script; the open category lights its zone) ---------- */
.scope-map { display: none; }
@media (max-width: 900px) {
  .scope-map { display: block; margin: 0 0 18px; }
  .scope-map svg { width: 100%; height: auto; display: block; font-family: var(--font-mono); }
  .scope-map .site { fill: rgba(255,255,255,.03); stroke: rgba(143,205,234,.35); stroke-width: 1; }
  .scope-map .building { fill: none; stroke: var(--white); stroke-width: 1.2; stroke-dasharray: 3 3; }
  .scope-map [data-zone] rect { fill: rgba(255,255,255,.06); stroke: rgba(143,205,234,.5); stroke-width: 1; transition: fill .3s; }
  .scope-map [data-zone] text { fill: var(--azure-soft); font-size: 10px; letter-spacing: .08em; text-anchor: middle; text-transform: uppercase; }
  .scope-map [data-zone] text.small { font-size: 8px; fill: rgba(255,255,255,.55); text-transform: none; }
  .scope-map [data-zone] text.v { writing-mode: tb; }
  .scope-map figcaption { margin-top: 8px; font-size: var(--fs-label); color: var(--muted); }
  .scope-grid:has(details[data-zone="utility"][open]) .scope-map [data-zone="utility"] rect,
  .scope-grid:has(details[data-zone="generator"][open]) .scope-map [data-zone="generator"] rect,
  .scope-grid:has(details[data-zone="bess"][open]) .scope-map [data-zone="bess"] rect,
  .scope-grid:has(details[data-zone="mechanical"][open]) .scope-map [data-zone="mechanical"] rect,
  .scope-grid:has(details[data-zone="electrical"][open]) .scope-map [data-zone="electrical"] rect,
  .scope-grid:has(details[data-zone="hall"][open]) .scope-map [data-zone="hall"] rect { fill: rgba(26,155,215,.55); stroke: var(--white); }
  .scope-grid:has(details[open]) .scope-map [data-zone] text { fill: rgba(255,255,255,.6); }
  .scope-grid:has(details[data-zone="utility"][open]) .scope-map [data-zone="utility"] text,
  .scope-grid:has(details[data-zone="generator"][open]) .scope-map [data-zone="generator"] text,
  .scope-grid:has(details[data-zone="bess"][open]) .scope-map [data-zone="bess"] text,
  .scope-grid:has(details[data-zone="mechanical"][open]) .scope-map [data-zone="mechanical"] text,
  .scope-grid:has(details[data-zone="electrical"][open]) .scope-map [data-zone="electrical"] text,
  .scope-grid:has(details[data-zone="hall"][open]) .scope-map [data-zone="hall"] text { fill: var(--white); }
}

/* ---------- Light sections (Srini 10/13 "too blue"; Greg: more white, keep the blue and white mix) ----------
   Hero, journey, 3D scenes, comparison/roles tables and CTA bands stay blue. A .light section re-points the
   text and surface tokens, then fixes the components that hard-code white-on-blue values. */
.light {
  --graphite: #24324d; --muted: #4b5a74; --hairline: rgba(0, 24, 68, .14); --card: #f4f7fb;
  --tint: rgba(26, 155, 215, .10); --azure-soft: #106b99;
  background: #ffffff; color: var(--graphite); color-scheme: light;
}
.light-alt { background: #f4f7fb; --card: #ffffff; }
.light h1, .light h2, .light h3, .light h4 { color: var(--navy); }
.light .card:hover { border-color: rgba(0, 24, 68, .3); box-shadow: 0 18px 40px -24px rgba(0, 24, 68, .35); }
.light .metrics li { color: var(--navy); }
.light .card-dark h3 { color: var(--white); }
.light .card-dark .idx { color: #8fcdea; }
.light .flow .step { background: var(--card); border: 1px solid var(--hairline); color: var(--navy); }
.light .flow-dark .step { background: var(--navy); border-color: var(--navy); color: var(--white); }
.light .flow .step.outside { background: transparent; border: 2px dashed rgba(0, 24, 68, .3); color: var(--muted); }
.light .po-divider::before, .light .po-divider::after { border-top-color: rgba(0, 24, 68, .35); }
.light .po-divider span { background: var(--navy); color: var(--white); }
.light .gates div { color: var(--graphite); }
.light .btn-ghost { border-color: rgba(0, 24, 68, .4); color: var(--navy); }
.light .btn-mini { color: var(--navy); background: #ffffff; border-color: rgba(0, 24, 68, .25); }
.light .person b { color: var(--navy); }
.light form.contact input, .light form.contact select, .light form.contact textarea { background: #ffffff; border-color: rgba(0, 24, 68, .25); color: var(--graphite); }
.light form.contact input:focus, .light form.contact select:focus, .light form.contact textarea:focus { background: #ffffff; }
.light .contact-notice, .light .form-notice { background: #eef3f9; }
.light .vendor-block { margin-top: 28px; padding: 20px; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); }
.vendor-block h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.vendor-block .note { margin-top: 10px; }
.scope-boundary { margin-top: 28px; padding: 18px 20px; border-left: 4px solid var(--azure); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; }
.scope-boundary b { color: var(--white); }
.light .scope-boundary b { color: var(--navy); }
.light .scope-boundary { background: #eef3f9; }

/* ---------- Primary navigation: subsection drop-downs (Srini 10/13) ---------- */
.nav-item { position: relative; display: flex; align-items: center; gap: 2px; }
.sub-toggle { all: unset; box-sizing: border-box; cursor: pointer; width: 28px; height: 44px; display: grid; place-items: center; color: rgba(255,255,255,.86); }
.sub-toggle::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.sub-toggle:hover { color: var(--white); }
.sub-toggle:focus-visible { outline: 3px solid var(--azure-soft); outline-offset: -4px; border-radius: 4px; }
.nav-item.open .sub-toggle::before { transform: translateY(2px) rotate(225deg); }
.sub {
  list-style: none; margin: 0; padding: 10px 0; position: absolute; top: calc(100% + 6px); left: -18px; min-width: 260px; z-index: 5;
  background: var(--navy); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); box-shadow: 0 18px 40px -20px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s; /* closes at once: no visible, focusable list after aria-expanded="false" */
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-item.open .sub { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
.nav .sub a { display: block; padding: 10px 18px; text-transform: none; letter-spacing: .02em; font-weight: 500; font-size: var(--fs-small); color: rgba(255,255,255,.86); }
.nav .sub a::after { display: none; }
.nav .sub a:hover, .nav .sub a:focus-visible { color: var(--white); background: rgba(255,255,255,.06); }
@media (max-width: 900px) {
  .nav-item { display: block; }
  .sub-toggle { display: none; }
  .sub { position: static; min-width: 0; opacity: 1; visibility: visible; transform: none; transition: none; background: none; border: 0; box-shadow: none; padding: 0 0 8px 16px; }
  .sub::before { display: none; }
  .nav .sub a { padding: 10px 0; border-bottom: 0; color: rgba(255,255,255,.7); }
  .nav-item > a { display: block; }
}

/* ---------- Scope of Supply: discipline drop-downs (Srini 10/13) ---------- */
.scope-group { border-bottom: 1px solid var(--hairline); padding-bottom: 10px; }
.scope-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 44px; }
.scope-group > summary::-webkit-details-marker { display: none; }
.scope-group > summary h4 { flex: 1; margin: 0; }
.scope-group > summary::after { content: "+"; color: var(--azure-soft); font-size: 20px; line-height: 1; }
.scope-group[open] > summary::after { content: "\2212"; }
.scope-group > summary:focus-visible { outline: 2px solid var(--azure); outline-offset: 2px; }

/* ---------- Home hero: landing option 3 (Srini 10/13: permanent landing page, capability first) ----------
   Type-led, no 3D. Figures and the accountability chain sit on the first screen at desktop size. */
.gs-hero { padding: calc(var(--header-h) + clamp(28px, 6vh, 64px)) 0 0; }
.gs-hero > * { position: relative; z-index: 1; }
.gs-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: start; padding-bottom: clamp(28px, 5vh, 48px); }
.gs-title { margin-top: 16px; font-weight: 800; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.05; max-width: 20ch; }
.gs-lede { font-size: clamp(16px, 1.3vw, 18px); color: rgba(255,255,255,.72); max-width: 60ch; }
/* Greg 10/30: "Who we are" sits on the same line as the paragraph's first line (block, one lede line tall) */
.gs-intro .eyebrow { display: flex; height: calc(clamp(16px, 1.3vw, 18px) * 1.6); }
.gs-figures-band { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.gs-figures { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); }
.gs-fig { padding: clamp(24px, 4vh, 44px) clamp(16px, 2.5vw, 36px); border-left: 1px solid var(--hairline); }
.gs-fig:first-child { border-left: 0; padding-left: 0; }
.gs-fig:nth-child(2) { background: rgba(10, 42, 99, .65); }
.gs-label { display: block; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; color: var(--azure-soft); margin-bottom: 18px; }
.gs-num { display: block; font-family: var(--font-display); font-weight: 900; font-stretch: 78%; font-size: clamp(60px, 8vw, 132px); line-height: .86; letter-spacing: -.02em; color: var(--white); white-space: nowrap; }
.gs-num em { font-style: normal; color: var(--azure); }
.gs-fig p { margin-top: 20px; max-width: 28ch; color: rgba(255,255,255,.72); }
.gs-chain { background: var(--azure); color: var(--navy); }
.gs-chain .wrap { padding-top: 14px; padding-bottom: 16px; }
.gs-chain-head { font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 8px; }
.gs-chain ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; counter-reset: gs; }
.gs-chain li { counter-increment: gs; display: flex; align-items: center; }
.gs-chain li:not(:last-child)::after { content: ""; width: 8px; height: 8px; background: var(--navy); margin: 0 clamp(10px, 1vw, 16px); flex: none; }
.gs-chain a, .gs-chain .gs-step { font-family: var(--font-display); font-weight: 800; font-size: clamp(15px, 1.1vw, 16px); line-height: 1.2; color: var(--navy); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; }
.gs-chain a:hover { border-bottom-color: var(--navy); }
.gs-chain a:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
@media (max-width: 900px) {
  .gs-intro { grid-template-columns: 1fr; gap: 16px; }
  .gs-title { max-width: none; }
  /* Phones: each figure is one compact row, number beside its description, so all three fit near the top. */
  .gs-figures { grid-template-columns: 1fr; }
  .gs-fig { display: grid; grid-template-columns: 140px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 18px 0; border-left: 0; border-top: 1px solid var(--hairline); }
  .gs-fig:first-child { border-top: 0; padding-left: 0; }
  .gs-fig:nth-child(2) { background: none; }
  .gs-label { grid-column: 2; margin-bottom: 4px; align-self: end; }
  .gs-num { grid-row: 1 / span 2; grid-column: 1; font-size: 46px; }
  .gs-fig p { grid-column: 2; margin-top: 0; font-size: var(--fs-small); line-height: 1.45; align-self: start; }
  .gs-chain ol { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; counter-reset: gs; }
  .gs-chain li:not(:last-child)::after { display: none; }
  .gs-chain a, .gs-chain .gs-step { font-size: 16px; }
  .gs-chain a::before, .gs-chain .gs-step::before { content: counter(gs, decimal-leading-zero); font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-label); margin-right: 8px; }
}
.gs-standalone-foot { background: var(--navy); color: rgba(255,255,255,.72); padding: 32px 0 48px; font-size: var(--fs-small); }

/* How we compare: fixed-width value box, dot at its left edge, so dots line up down each column (Greg 10/13). */
@media (min-width: 901px) {
  .comparison-matrix .comparison-value { width: 6.2em; justify-content: flex-start; text-align: left; }
}
/* One color for "Full" everywhere: white, in the Gridstock column, the other columns and the legend (Greg 10/13). */
.dot.full, .ours .dot.full { background: var(--white); border-color: var(--white); }

/* ---------- UI/UX review fixes, 2026-10-13 (docs/Reviews/2026-10-09-Gridstock-Website/2026-10-13-UI-UX-Design-Review.md) ---------- */
/* 1. Call to action on the opening screen */
.gs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 28px; }
/* 3. Notes stay at a readable line length */
.scope-boundary { max-width: 78ch; }
.journey .j-hint, .scope-technical-note, .table-note { max-width: 72ch; }
/* 7. The problem section is short, so its padding is too */
.section-compact { padding: clamp(56px, 7vw, 88px) 0; }
.section-compact .section-head { margin-bottom: 0; }
/* 8. Breadcrumb links are full-size targets; disabled animation toggles are hidden instead of reading as errors */
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.scene-toggle:disabled, [data-journey-toggle]:disabled { display: none !important; }
/* 5. Labels: 13px base; letter-spaced uppercase mono kept for eyebrows and table group rows. Breadcrumbs, footer headings and category chips use the text face. */
.crumbs { font-family: var(--font-body); font-size: var(--fs-small); letter-spacing: .02em; text-transform: none; }
.site-footer h4 { font-family: var(--font-body); font-weight: 600; font-size: var(--fs-small); letter-spacing: .02em; text-transform: none; }
.chips-compact li { font-size: var(--fs-label); }
.scope-list h4, .j-label, .metrics h4 { letter-spacing: .14em; }
/* 2. Light surfaces for How We Work Phase 1 and the Scope site section */
.light .steps .num { color: var(--navy); }
.light .chips li { color: var(--navy); border-color: var(--hairline); background: #ffffff; }
.light .chips li:hover, .light .chips li.active { border-color: var(--azure); background: #e8f4fb; }
.light .scope-acc > summary { color: var(--navy); }
.light .scope-acc[open] { background: #e8f4fb; }
.light .scope-map .site { fill: #ffffff; stroke: rgba(0, 24, 68, .25); }
.light .scope-map .building { stroke: var(--navy); }
.light .scope-map [data-zone] rect { fill: #eef3f9; stroke: rgba(16, 107, 153, .45); }
.light .scope-map [data-zone] text.small { fill: var(--muted); }
.light .scope-grid:has(details[open]) .scope-map [data-zone] text { fill: var(--muted); }
.light .scope-list { scrollbar-color: var(--azure-soft) #e3eaf3; }
.light .scope-category-detail .scope-close { color: var(--white); }
/* 4. Scope: the list grows with the open discipline instead of scrolling inside a box, so both discipline headings stay visible */
@media (min-width: 901px) {
  .scope-grid.scope-enhanced .scope-list { height: auto; max-height: none; overflow: visible; }
  .scope-interactive .scope-scroll-cue { display: none; }
  .scope-stage canvas { height: min(52vh, 460px); }
  .scope-panel { height: auto; min-height: min(44vh, 390px); }
}
@media (min-width: 901px) {
  .scope-grid { grid-template-columns: .85fr 1.2fr .6fr; }
}
@media (min-width: 901px) {
  .chips-compact li.scope-category { display: flex; }
  .chips-compact li.scope-category > button { flex: 1; align-items: center; }
}
@media (min-width: 901px) {
  .light .scope-stage canvas { background: #e9eff7; border: 1px solid var(--hairline); border-radius: var(--radius); }
  .scope-hud { position: static; margin-top: 10px; }
}
/* 6. Phone length: metrics collapse behind a tap; cards and sections are tighter */
.metrics > summary { list-style: none; }
.metrics > summary::-webkit-details-marker { display: none; }
@media (min-width: 901px) { .metrics > summary { pointer-events: none; } }
@media (max-width: 900px) {
  .metrics > summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; cursor: pointer; }
  .metrics > summary h4 { margin-bottom: 0; }
  .metrics > summary::after { content: "+"; color: var(--azure-soft); font-size: 20px; line-height: 1; }
  .metrics[open] > summary::after { content: "\2212"; }
  .metrics { padding: 4px 16px; }
  .metrics[open] { padding-bottom: 12px; }
  .card { padding: 22px 20px; gap: 12px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; gap: 16px; }
  .section-head > p, .section-head > div:last-child:not(:first-child) { padding-top: 0; }
}
.role-key > p { max-width: 72ch; }

/* ---------- Team page (placeholder, 10/13): photo, name, title, bio, email per person ---------- */
.leaders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.leader-card { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.leader-photo { aspect-ratio: 4 / 3; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%); }
.leader-photo span { font-family: var(--font-display); font-weight: 800; font-size: 56px; letter-spacing: .04em; color: rgba(255,255,255,.9); }
.leader-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.leader-body h3 { font-size: var(--fs-h3); font-weight: 800; }
.leader-title { font-family: var(--font-display); font-weight: 600; color: var(--azure-soft); }
.leader-bio { color: var(--muted); }
.leader-mail { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: var(--fs-small); }
.leader-mail svg { width: 22px; height: 22px; flex: none; }
.placeholder-text { font-style: italic; }
.placeholder-note { margin-bottom: 28px; padding: 12px 16px; border: 1px dashed var(--hairline); border-radius: var(--radius); color: var(--muted); font-size: var(--fs-small); max-width: 72ch; }
@media (max-width: 900px) {
  .leaders { grid-template-columns: 1fr; gap: 16px; }
  .leader-card { flex-direction: row; }
  .leader-photo { aspect-ratio: auto; width: 96px; flex: none; }
  .leader-photo span { font-size: 28px; }
  .leader-body { padding: 16px 18px; }
}
/* Header with five menu items: labels never wrap; compact spacing on small laptops */
.nav > a, .nav-item > a { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1180px) {
  .nav { gap: 16px; }
  .nav > a, .nav-item > a { font-size: 13px; letter-spacing: .06em; }
  .nav .btn { padding: 10px 16px; }
  .sub-toggle { width: 22px; }
  .brand-word { font-size: 20px; }
  .brand svg { width: 34px; height: 34px; }
}

/* ---------- Supplier registration (Contact, 10/13) ---------- */
.supplier-steps { margin-bottom: 28px; }
.supplier-cta { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px 56px; align-items: center; padding: 28px 32px; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); }
.supplier-cta h3 { font-size: var(--fs-h3); margin-bottom: 12px; }
.supplier-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.supplier-list li { position: relative; padding-left: 20px; }
.supplier-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; background: var(--azure); }
.supplier-action { display: grid; gap: 12px; justify-items: start; }
@media (max-width: 900px) { .supplier-cta { grid-template-columns: 1fr; padding: 22px 20px; } }
/* Contact drop-down: two reasons to contact (program inquiries, supplier registration) */
.nav-contact .sub { left: auto; right: 0; min-width: 230px; }
@media (max-width: 900px) {
  .nav-contact { margin-top: 20px; }
  .nav-contact > .btn { margin-top: 0; width: 100%; }
  .nav-contact .sub { padding: 8px 0 0 16px; }
}
@media (min-width: 901px) and (max-width: 1040px) {
  .nav { gap: 11px; }
  .nav > a, .nav-item > a { font-size: 12.5px; letter-spacing: .04em; }
  .nav .btn { padding: 10px 14px; }
  .site-header .wrap { gap: 12px; }
}
@media (max-width: 900px) { .nav-contact > .btn { justify-content: center; } }
@media (max-width: 900px) { .nav .nav-contact > .btn { display: flex; justify-content: center; text-align: center; } }

/* ---------- Scope descriptions without the interaction script (Codex review 10/13, finding 3) ----------
   Default at every width: each category is a native expandable description. Desktop switches to the
   selection buttons only once scope-scene.js has initialized and added .scope-enhanced. */
.scope-acc { display: block; }
.chips li.scope-category > button { display: none; }
.scope-acc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 14px; font-size: var(--fs-small); font-weight: 500; color: var(--white); }
.light .scope-acc > summary { color: var(--navy); }
.scope-acc > summary::-webkit-details-marker { display: none; }
.scope-acc > summary::before { content: ""; width: 7px; height: 7px; background: var(--azure); flex: none; }
.scope-acc > summary::after { content: "+"; margin-left: auto; color: var(--azure-soft); font-size: 20px; line-height: 1; }
.scope-acc[open] > summary::after { content: "\2212"; }
.scope-acc .scope-category-detail { display: block; }
.scope-grid:not(.scope-enhanced) .chips-compact li.scope-category { display: block; }
@media (min-width: 901px) {
  .scope-grid:not(.scope-enhanced) .chips-compact { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .scope-enhanced .scope-acc { display: none; }
  .scope-enhanced .chips li.scope-category > button { display: flex; }
}
.journey .role-key + .j-track, .journey .j-track { margin-top: 14px; }

/* ---------- 10/24 round: Srini team email and Kenzie notes (docs/Plans/2026-10-24-Gridstock-Srini-Team-Feedback-Plan.md) ---------- */
/* Decision rights: the program owner keeps every procurement decision (How We Work, Home, Contact) */
.term-note { margin: 0 0 28px; max-width: 78ch; font-size: var(--fs-small); color: var(--muted); }
.term-note b { color: var(--navy); font-weight: 600; }
.on-dark .term-note b { color: var(--white); }
.authority { margin-top: 36px; padding: 24px 28px; border-left: 4px solid var(--azure); border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(90deg, rgba(26,155,215,.12), rgba(26,155,215,.02)); }
.authority-line { font-size: var(--fs-lead); color: var(--graphite); max-width: 80ch; }
.authority-line b { font-family: var(--font-display); font-weight: 800; color: var(--navy); margin-right: 6px; }
.authority-line .link-arrow { margin-left: 8px; white-space: nowrap; }
.authority .term-note { margin: 10px 0 0; }
@media (min-width: 901px) { table.decision-matrix { min-width: 680px; } }
.decision-matrix th, .decision-matrix td { text-align: left; vertical-align: top; }
.decision-matrix thead th { color: var(--navy); }
.decision-matrix td:nth-child(2) { font-weight: 600; color: var(--navy); }
.decision-matrix td.ours { color: var(--graphite); }
@media (min-width: 901px) {
  .light .decision-matrix th[scope="row"], .light .decision-matrix thead th:first-child { background: #ffffff; color: var(--navy); font-weight: 600; }
  .light table.decision-matrix { background: #ffffff; border: 1px solid var(--hairline); }
}
@media (max-width: 900px) { .light .decision-matrix th[scope="row"] { color: var(--navy); } }
.supplier-terms { margin: -24px 0 28px; max-width: 78ch; padding: 14px 18px; border-left: 4px solid var(--azure); background: #ffffff; border-radius: 0 var(--radius) var(--radius) 0; color: var(--graphite); font-size: var(--fs-small); }
.supplier-terms b { color: var(--navy); }
@media (max-width: 900px) {
  .authority { padding: 18px 18px; }
  .authority-line .link-arrow { display: flex; margin: 10px 0 0; }
  .decision-matrix td { width: 100% !important; display: flex !important; flex-direction: column; align-items: flex-start !important; }
  .decision-matrix td::before { width: auto !important; }
  .supplier-terms { margin-top: -8px; }
}

/* Journey key: the role letters are explained beside the tables (Srini team) */
.j-legend { margin: 14px 0 0; color: rgba(255,255,255,.78); }
.journey .j-legend .raci { min-width: 26px; height: 22px; }

/* Journey readability and a larger scene (Kenzie): bigger text on an opaque panel, taller stage */
.journey.is-live .j-body { grid-template-columns: 1.25fr .85fr; }
.journey.is-live .j-stage { height: min(44vh, 440px); }
.journey.is-live .j-step { background: linear-gradient(160deg, rgba(0,24,68,.92), rgba(10,42,99,.88)); border-color: rgba(143,205,234,.28);
  box-shadow: 0 24px 48px -28px rgba(0,0,0,.75); padding: 20px 24px; }
.journey.is-live .j-step p, .journey.is-live .j-why p, .journey.is-live .j-gate { font-size: var(--fs-body); color: rgba(255,255,255,.92); line-height: 1.55; }
.journey.is-live .j-roles { font-size: var(--fs-small); }
.journey.is-live .j-roles th[scope="row"] { color: var(--white); }

/* Depth (Kenzie): gradients on surfaces and cards, shadows that lift on hover */
.light { background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%); }
.light-alt { background: linear-gradient(180deg, #f4f7fb 0%, #e9eff7 100%); }
.light .card { background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%); box-shadow: 0 1px 2px rgba(0,24,68,.06), 0 10px 24px -18px rgba(0,24,68,.28); }
.light-alt .card { background: linear-gradient(180deg, #ffffff 0%, #f8fafd 100%); }
.light .card:hover { box-shadow: 0 2px 4px rgba(0,24,68,.08), 0 26px 48px -24px rgba(0,24,68,.42); }
.card-dark { background: linear-gradient(160deg, var(--navy-3) 0%, var(--navy) 70%); }
.gs-chain { background: linear-gradient(90deg, #1a9bd7 0%, #3fb2e6 55%, #1a9bd7 100%); }
.gs-fig:nth-child(2) { background: linear-gradient(180deg, rgba(15,58,134,.7), rgba(10,42,99,.35)); }
.btn-primary, .btn-navy { background: linear-gradient(180deg, #1580b8 0%, var(--action-blue) 100%); }
.btn-primary:hover, .btn-navy:hover { background: linear-gradient(180deg, #116f9f 0%, var(--action-hover) 100%); }

/* How We Work Phase 2: drop shadow on the execution cards (Kenzie) */
#phase-2 .card-dark { box-shadow: 0 2px 6px rgba(0,24,68,.18), 0 22px 44px -22px rgba(0,24,68,.65); }
#phase-2 .card-dark:hover { box-shadow: 0 4px 10px rgba(0,24,68,.22), 0 32px 60px -26px rgba(0,24,68,.75); }

/* Icons (Kenzie, "too cartoony"): flat round bubbles become squared technical tiles with a fine stroke */
.card .icon, .scope-col header .icon { width: 48px; height: 48px; border-radius: 4px; color: var(--azure);
  background: linear-gradient(145deg, var(--navy-3) 0%, var(--navy) 100%); box-shadow: inset 0 0 0 1px rgba(143,205,234,.35); }
.card .icon svg, .scope-col header .icon svg { width: 24px; height: 24px; stroke-width: 1.4; }
.card-dark .icon { background: linear-gradient(145deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.03) 100%); }

/* Home stats: count up once on first view (site.js); static when motion is reduced */
.gs-num { transition: opacity .6s ease; }
.gs-fig { position: relative; }
.gs-fig::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--azure); transition: width 1.4s cubic-bezier(.2,.7,.2,1); }
.gs-fig:not(:first-child)::after { left: clamp(16px, 2.5vw, 36px); }
.gs-figures.counted .gs-fig::after { width: 40%; }
@media (prefers-reduced-motion: reduce) { .gs-figures .gs-fig::after { width: 40%; transition: none; } }

/* Explore the site (Kenzie): four click-through cards above the closing call to action */
.explore-card { gap: 14px; }
.explore-card p { color: var(--graphite); font-size: var(--fs-body); }
.explore-card .link-arrow { margin-top: auto; }
.explore-card:hover .arrow { transform: translateX(4px); }
.light .card-dark { background: linear-gradient(160deg, var(--navy-3) 0%, var(--navy) 70%); }

/* Section links land on the section's heading, not on its top padding or a strip of the section above (Kenzie: drop-downs) */
.section[id] { scroll-margin-top: calc(70px + 32px - clamp(72px, 10vw, 128px)); }
@media (min-width: 901px) { .section-fit[id] { scroll-margin-top: 70px; } }
@media (max-width: 900px) { .section[id] { scroll-margin-top: calc(70px + 20px - 56px); } }
.decision-matrix thead th, .matrix.decision-matrix thead .ours { font-size: var(--fs-small); color: var(--navy); }
.matrix.decision-matrix thead th.ours { color: var(--azure-soft); }
@media (min-width: 901px) {
  .decision-matrix th[scope="row"], .decision-matrix thead th:first-child { width: 22%; }
  .decision-matrix td:nth-child(2), .decision-matrix thead th:nth-child(2) { width: 34%; }
}
.explore-card .link-arrow { align-self: flex-start; }
.card-dark .icon { color: var(--azure-soft); }
.card .icon, .scope-col header .icon { color: #8fcdea; }
/* SEO heading order (10/24): footer and leader headings are h2 for structure, styled as before */
.site-footer h2.foot-h { font-family: var(--font-body); font-weight: 600; font-size: var(--fs-small); letter-spacing: .02em; text-transform: none; color: var(--azure-soft); margin-bottom: 18px; line-height: 1.1; }
.leader-body h2.leader-name { font-size: var(--fs-h3); font-weight: 800; }
.term-after { margin: 24px 0 0; }
/* Approach review (10/24): Explore becomes a slim cue under the hero; journey stage trimmed back toward its old size */
.explore-cue { background: #ffffff; border-bottom: 1px solid rgba(0,24,68,.1); }
.explore-cue .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 28px; padding-top: 14px; padding-bottom: 14px; }
.explore-label { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; color: #106b99; }
.explore-cue ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.explore-cue a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-small); color: var(--navy); text-decoration: none; border-bottom: 2px solid transparent; }
.explore-cue a:hover { border-bottom-color: var(--azure); }
.explore-cue a:hover .arrow { transform: translateX(3px); }
.explore-cue .arrow { color: var(--azure); transition: transform .2s; }
.explore-cue a:focus-visible { outline: 3px solid var(--azure); outline-offset: 2px; }
@media (max-width: 900px) { .explore-cue ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; width: 100%; } }
.journey.is-live .j-stage { height: min(40vh, 400px); }
.journey.is-live .j-body { grid-template-columns: 1.15fr .85fr; }
.card .icon, .scope-col header .icon { width: 52px; height: 52px; } .card .icon svg, .scope-col header .icon svg { width: 30px; height: 30px; }
