/* Zenext redesign — Zenext brand on Zeta foundations.
   Brand (official logo kit): navy #152878 + gold gradient #905e26 → #f5ec9b → #905e26, "Your safety. Our priority."
   Zeta (Zebra's open design system, MIT): IBM Plex Sans, 4px spacing grid, 4/8/16px radii, components + icons.
   Dark navy is the default theme; light is available from the footer. */

:root {
  /* Surfaces */
  --bg: #ffffff;
  --bg-alt: #f6f5f1;
  --surface: #ffffff;
  --dark: #152878;          /* brand navy for feature sections */
  --dark-2: #1c3290;

  /* Text */
  --ink: #141a33;
  --ink-2: #4d5470;
  --ink-on-dark: #f5f6fb;
  --ink-2-on-dark: #c3c9e3;

  /* Actions: brand navy on light, gold on navy */
  --accent: #152878;
  --accent-hover: #0e1c5a;
  --accent-on-dark: #e6c977;
  --accent-on-dark-hover: #f5ec9b;
  --accent-subtle: #eef1fb;
  --btn-bg: #152878; --btn-ink: #ffffff; --btn-hover: #0e1c5a; --btn-active: #0a1446;

  /* Brand gold: identity moments — labels, numbers, icons, waveform */
  --brand: #8a6414;
  --brand-subtle: #f8f1e1;
  --brand-on-dark: #e6c977;
  --gold-gradient: linear-gradient(90deg, #905e26 0%, #f5ec9b 50%, #905e26 100%);
  --device-bg: radial-gradient(120% 120% at 20% 0%, #24399c 0%, #152878 50%, #0c1850 100%);
  --bubble-user: #2a44b8;

  /* Lines + states */
  --line: #e1e3ec;
  --line-strong: #c9cddc;
  --line-dark: rgba(255, 255, 255, 0.16);
  --focus: #2a44b8;
  --positive: #00864f;
  --negative: #d70015;
  --tbd-bg: #fff7d4;
  --tbd-line: #8d7400;

  /* Type: Zeta scale */
  --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --fs-display: clamp(40px, 6vw, 64px);
  --fs-h1: clamp(36px, 4.4vw, 52px);
  --fs-h2: clamp(28px, 3vw, 32px);
  --fs-h3: clamp(20px, 2vw, 24px);
  --fs-lead: 20px;
  --fs-body: 16px;
  --fs-caption: 14px;
  --fs-foot: 13px;

  /* Space: 4px grid */
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 48px; --s-6: 64px;
  --section: clamp(64px, 9vw, 120px);
  --radius: 8px;        /* radius-rounded */
  --radius-sm: 4px;     /* radius-minimal */
  --radius-lg: 16px;    /* radius-large */
  --nav-h: 60px;

  --material: rgba(255, 255, 255, 0.96);
  --shadow: 0 1px 3px rgba(20, 26, 51, 0.12), 0 1px 2px rgba(20, 26, 51, 0.06);
  --shadow-hover: 0 4px 12px rgba(20, 26, 51, 0.12);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1236; --bg-alt: #0e1942; --surface: #142152;
    --dark: #060c27; --dark-2: #111d4c;
    --ink: #f5f6fb; --ink-2: #b9c0de;
    --accent: #e6c977; --accent-hover: #f5ec9b; --accent-subtle: rgba(230, 201, 119, 0.10);
    --btn-bg: #e0c068; --btn-ink: #0a1236; --btn-hover: #f5ec9b; --btn-active: #c9a64e;
    --brand: #e6c977; --brand-subtle: rgba(230, 201, 119, 0.12);
    --device-bg: radial-gradient(120% 120% at 20% 0%, #24399c 0%, #16246a 55%, #0d1745 100%);
    --line: #1f2c66; --line-strong: #364591; --line-dark: #1f2c66;
    --focus: #f5ec9b;
    --positive: #67b796; --negative: #f36170;
    --tbd-bg: #1d1a0a; --tbd-line: #c9a800;
    --material: rgba(10, 18, 54, 0.94);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1236; --bg-alt: #0e1942; --surface: #142152;
  --dark: #060c27; --dark-2: #111d4c;
  --ink: #f5f6fb; --ink-2: #b9c0de;
  --accent: #e6c977; --accent-hover: #f5ec9b; --accent-subtle: rgba(230, 201, 119, 0.10);
  --btn-bg: #e0c068; --btn-ink: #0a1236; --btn-hover: #f5ec9b; --btn-active: #c9a64e;
  --brand: #e6c977; --brand-subtle: rgba(230, 201, 119, 0.12);
  --device-bg: radial-gradient(120% 120% at 20% 0%, #24399c 0%, #16246a 55%, #0d1745 100%);
  --line: #1f2c66; --line-strong: #364591; --line-dark: #1f2c66;
  --focus: #f5ec9b;
  --positive: #67b796; --negative: #f36170;
  --tbd-bg: #1d1a0a; --tbd-line: #c9a800;
  --material: rgba(10, 18, 54, 0.94);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

/* Base */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 56px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 12px 16px; border-radius: 8px; }
.skip:focus { left: 16px; }

/* Type scale */
.display { font-size: var(--fs-display); line-height: 1.06; font-weight: 500; letter-spacing: -0.02em; }
.h1 { font-size: var(--fs-h1); line-height: 1.1; font-weight: 400; letter-spacing: -0.015em; }
.h2 { font-size: var(--fs-h2); line-height: 1.25; font-weight: 500; }
.h3 { font-size: var(--fs-h3); line-height: 1.33; font-weight: 500; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); }
.caption { font-size: var(--fs-caption); line-height: 1.43; color: var(--ink-2); }
.eyebrow { font-size: var(--fs-foot); line-height: 1.33; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }
.muted { color: var(--ink-2); }
sup a { font-size: 0.7em; font-weight: 500; text-decoration: none; padding: 0 2px; }

/* Layout */
.wrap { width: min(980px, 100% - 32px); margin-inline: auto; }
.wrap-wide { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding-block: var(--section); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: var(--ink-on-dark); --ink-2: var(--ink-2-on-dark); --line: var(--line-dark); --accent: var(--accent-on-dark); --accent-hover: var(--accent-on-dark-hover);  --brand: var(--brand-on-dark); --brand-subtle: rgba(224, 191, 106, .12);  --btn-bg: #e0c068; --btn-ink: #0a1236; --btn-hover: #f5ec9b; --btn-active: #c9a64e; --focus: #f5ec9b; }
.center { text-align: center; }
.stack > * + * { margin-top: var(--s-2); }
.stack-lg > * + * { margin-top: var(--s-3); }
.section-head { max-width: 720px; margin-bottom: var(--s-6); }
.section-head.center { margin-inline: auto; }
.grid { display: grid; gap: var(--s-3); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Buttons + links */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.center .actions, .actions.center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 20px; border-radius: var(--radius); border: 0; font: inherit; font-size: var(--fs-body);
  font-weight: 500; line-height: 1.5; cursor: pointer; transition: background-color .15s ease;
  background: var(--btn-bg); color: var(--btn-ink);
}
.btn:hover { text-decoration: none; color: var(--btn-ink); background: var(--btn-hover); }
.btn:active { background: var(--btn-active); }
.btn-outline { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-outline:hover { background: var(--accent-subtle); color: var(--accent); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: var(--fs-caption); }
.more { display: inline-block; padding-block: 10px; line-height: 24px; font-weight: 500; }
.more::after { content: "›"; display: inline-block; margin-left: 6px; font-size: 1.2em; line-height: 1; transition: transform .2s ease; }
.more:hover::after { transform: translateX(3px); }

/* Global nav */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: var(--material); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: var(--s-3); }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 19px; color: var(--ink); min-height: 44px; letter-spacing: -0.01em; }
.logo:hover { color: var(--ink); text-decoration: none; }
.logo-mark { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, var(--accent-on-dark), #0061c2); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); font-size: var(--fs-caption); }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--accent); text-decoration: none; box-shadow: inset 0 -2px 0 var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-cta .link-contact { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); font-size: var(--fs-caption); }
.nav-cta .link-contact:hover { color: var(--accent); text-decoration: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer; margin-left: auto; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 1.5px; background: currentColor; margin: auto; position: relative; transition: transform .2s ease; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav[data-open] .nav-toggle span { background: transparent; }
.nav[data-open] .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav[data-open] .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links, .nav-cta .link-contact { display: none; }
  .nav-cta { margin-left: 0; }
  .nav[data-open] .nav-links {
    display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 24px; gap: 0;
  }
  .nav[data-open] .nav-links a { font-size: var(--fs-lead); min-height: 52px; border-bottom: 1px solid var(--line); }
}

/* Local (product) nav */
.local-nav { position: sticky; top: var(--nav-h); z-index: 40; background: var(--material); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.local-nav .wrap-wide { display: flex; align-items: center; gap: var(--s-3); min-height: 52px; }
.local-title { font-weight: 500; font-size: 19px; margin-right: auto; }
.local-links { display: flex; gap: 4px; }
.local-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink-2); font-size: var(--fs-caption); }
.local-links a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 700px) {
  .local-nav .wrap-wide { flex-wrap: wrap; gap: 0; padding-top: 8px; }
  .local-links { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; margin-inline: -4px; padding-bottom: 4px; }
  .local-links::-webkit-scrollbar { display: none; }
  .local-links a { white-space: nowrap; min-height: 40px; }
}

/* Hero */
.hero { padding-top: clamp(56px, 9vw, 112px); padding-bottom: var(--s-6); text-align: center; }
.hero .lead { max-width: 640px; margin: var(--s-3) auto 0; }
.hero .actions { justify-content: center; margin-top: var(--s-4); }
.hero-left { text-align: left; }
.hero-left .lead { margin-left: 0; }
.hero-left .actions { justify-content: flex-start; }

/* Voice moment (product UI concept) */
.stage { margin-top: var(--s-6); }
.device {
  position: relative; margin-inline: auto; max-width: 880px; border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 40px);
  background: var(--device-bg);
  color: #f3f6fa; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 80px rgba(6, 12, 39, .28), 0 0 120px rgba(230, 201, 119, .10); overflow: hidden; border: 1px solid rgba(255, 255, 255, .14);
}
.device-bar { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-caption); color: #bbc1cb; margin-bottom: var(--s-4); }
.live { display: inline-flex; align-items: center; gap: 8px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #67b796; box-shadow: 0 0 0 4px rgba(103, 183, 150, .18); }
.concept-tag { font-size: var(--fs-foot); font-weight: 500; letter-spacing: .02em; color: var(--brand-on-dark); }
.convo { display: grid; gap: var(--s-2); text-align: left; min-height: 300px; }
.bubble { max-width: 78%; padding: 14px 18px; border-radius: 20px; font-size: var(--fs-body); line-height: 1.4; transition: opacity .5s ease, transform .5s ease; }
.js .bubble { opacity: 0; transform: translateY(8px); }
.js .bubble.show { opacity: 1; transform: none; }
.bubble-user { justify-self: end; background: var(--bubble-user); border-bottom-right-radius: 6px; }
.bubble-ai { justify-self: start; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-bottom-left-radius: 6px; }
.bubble-label { display: block; font-size: var(--fs-foot); font-weight: 500; color: #bbc1cb; margin-bottom: 4px; }
.units { display: grid; gap: 6px; margin-top: 10px; font-size: var(--fs-caption); }
.units li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,0.05); }
.units .eta { color: var(--accent-on-dark); font-weight: 500; }
.confirm-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: var(--fs-caption); font-weight: 500; background: rgba(255,255,255,0.08); color: #f3f6fa; border: 1px solid rgba(255,255,255,0.14); }
.chip-primary { background: var(--accent-on-dark); color: #0a1236; border-color: transparent; }
.status { justify-self: center; font-size: var(--fs-caption); color: #67b796; font-weight: 500; }
.wave { display: flex; gap: 4px; align-items: center; height: 28px; justify-content: center; margin-top: var(--s-3); }
.wave i { width: 4px; border-radius: 2px; background: var(--brand-on-dark); height: 30%; animation: wave 1.2s ease-in-out infinite; }
.wave i:nth-child(2n) { animation-delay: .15s; } .wave i:nth-child(3n) { animation-delay: .3s; } .wave i:nth-child(5n) { animation-delay: .45s; }
@keyframes wave { 0%, 100% { height: 25%; } 50% { height: 100%; } }

/* Proof row */
.proof { padding-block: var(--s-5); border-block: 1px solid var(--line); }
.proof-list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2) var(--s-5); }
.proof-list a { display: grid; text-align: center; color: var(--ink); min-height: 44px; }
.proof-list a:hover { text-decoration: none; }
.proof-list strong { font-weight: 500; font-size: var(--fs-body); }
.proof-list span { font-size: var(--fs-caption); color: var(--ink-2); }

/* Cards */
.card { background: var(--surface); border-radius: var(--radius); padding: var(--s-4); border: 1px solid var(--line); box-shadow: none; transition: box-shadow .2s ease, border-color .2s ease; display: flex; flex-direction: column; gap: var(--s-2); }
.section-dark .card { background: var(--dark-2); box-shadow: none; border: 1px solid var(--line-dark); }
.card:has(.more):hover { box-shadow: var(--shadow-hover); border-color: var(--line-strong); }
.section-dark .card:has(.more):hover { box-shadow: none; border-color: #364591; }
.card .more { margin-top: auto; }
.card-media { border-radius: var(--radius-sm); aspect-ratio: 16 / 10; background: var(--bg-alt); overflow: hidden; display: grid; place-items: center; }
.pillar-num { font-size: var(--fs-caption); font-weight: 500; color: var(--brand); }
.badge { align-self: flex-start; display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: var(--radius-sm); font-size: var(--fs-foot); font-weight: 500; border: 1px solid var(--line); color: var(--ink-2); }

/* Mission cards with tinted media */
.mission { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--s-4); color: #f3f6fa; }
.mission::before { content: ""; position: absolute; inset: 0; background: var(--img) center / cover no-repeat; transition: transform .6s ease; }
.mission::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,12,39,0) 30%, rgba(6,12,39,.85) 100%); }
.mission > * { position: relative; z-index: 1; }
.mission:hover::before { transform: scale(1.03); }
.mission a { color: var(--accent-on-dark); }
.m-law { --img: linear-gradient(135deg, #004d99, #002c58); }
.m-fire { --img: linear-gradient(135deg, #b50012, #220f11); }
.m-city { --img: linear-gradient(135deg, #017474, #0a1616); }

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.compare > div { border-radius: var(--radius); padding: var(--s-4); }
.compare .before { border: 1px solid var(--line); }
.compare .after { background: rgba(0, 115, 230, 0.1); border: 1px solid rgba(0, 115, 230, 0.35); }
.compare li { padding: 12px 0; border-top: 1px solid var(--line); }
.compare li:first-child { border-top: 0; }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }

/* Big numbers */
.stat { font-size: var(--fs-h1); font-weight: 300; letter-spacing: -0.01em; line-height: 1; color: var(--brand); }

/* Steps / walkthrough */
.steps { counter-reset: step; display: grid; gap: var(--s-4); }
.step { display: grid; grid-template-columns: 56px 1fr; gap: var(--s-3); align-items: start; }
.step::before { counter-increment: step; content: counter(step); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 500; border: 1.5px solid var(--brand); color: var(--brand); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: var(--s-5); } }

/* Spec table */
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; vertical-align: top; padding: 18px 0; border-top: 1px solid var(--line); }
.specs th { width: 32%; font-weight: 500; padding-right: var(--s-3); }
.specs td { color: var(--ink-2); }

/* Pricing table */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); background: var(--surface); }
.plan.featured { border: 2px solid var(--accent); }
.plan dl { margin: 0; display: grid; gap: 14px; }
.plan dt { font-size: var(--fs-caption); color: var(--ink-2); }
.plan dd { margin: 2px 0 0; }
.plan .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); min-height: 64px; font-weight: 500; font-size: var(--fs-lead); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 28px; color: var(--brand); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: var(--s-3); color: var(--ink-2); max-width: 720px; }

/* Forms */
.form { display: grid; gap: var(--s-3); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: var(--fs-caption); }
.field .hint { font-size: var(--fs-foot); color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--fs-body); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 12px; min-height: 48px; width: 100%;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.field [aria-invalid="true"] { border-color: var(--negative); }
.error { color: var(--negative); font-size: var(--fs-caption); }
.error:empty { display: block; height: 0; margin-top: -6px; }
.confirm-panel { text-align: center; padding: var(--s-5) var(--s-3); }
.check { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto var(--s-3); display: grid; place-items: center; background: rgba(0, 134, 79, .12); color: var(--positive); font-size: 32px; }

/* Placeholders for content awaiting stakeholder input */
.tbd { background: var(--tbd-bg); outline: 1px dashed var(--tbd-line); outline-offset: 2px; border-radius: 4px; padding: 0 4px; }
.photo-credit .tbd, .gallery figcaption .tbd, .section-dark .tbd { background: rgba(201, 168, 0, .28); outline-color: #c9a800; color: inherit; }
.tbd-note { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-caption); color: var(--ink-2); background: var(--tbd-bg); border: 1px dashed var(--tbd-line); border-radius: var(--radius-sm); padding: 12px 16px; }

/* Quote */
.quote { font-size: var(--fs-h3); line-height: 1.3; font-weight: 400; max-width: 820px; margin-inline: auto; }
.quote-by { margin-top: var(--s-3); }

/* Footnotes + footer */
.footnotes { padding-block: var(--s-5); border-top: 1px solid var(--line); }
.footnotes ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: var(--fs-foot); color: var(--ink-2); line-height: 1.5; }
.footer { background: var(--bg-alt); padding-block: var(--s-5) var(--s-4); font-size: var(--fs-caption); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--s-4); }
.footer h4 { font-size: var(--fs-caption); font-weight: 500; margin-bottom: 12px; }
.footer li a { display: inline-flex; min-height: 32px; align-items: center; color: var(--ink-2); }
.footer li a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); margin-top: var(--s-5); padding-top: var(--s-3); border-top: 1px solid var(--line); color: var(--ink-2); }
.theme-btn { font: inherit; font-size: var(--fs-caption); min-height: 44px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: none; color: var(--ink-2); cursor: pointer; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .bubble { opacity: 1; transform: none; }
}

/* ---- R&D additions ---- */
.logo { gap: 10px; }
.logo .logo-shield { width: 30px; height: 32px; flex: none; }
.logo .logo-word { height: 15px; width: auto; }
.logo .logo-word-white { display: none; }
:root[data-theme="dark"] .logo .logo-word-navy { display: none; }
:root[data-theme="dark"] .logo .logo-word-white { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .logo .logo-word-navy { display: none; }
  :root:not([data-theme]) .logo .logo-word-white { display: block; }
}
.footer .logo .logo-shield { width: 38px; height: 40px; }
.footer .logo .logo-word { height: 18px; }
.brand-tagline { font-size: var(--fs-foot); font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--brand); }
/* Gold rule under the nav, from the logo's gradient */
.nav { border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line); }
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold-gradient); opacity: .9; }

/* Status labels: honest maturity on every program */
.status-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 8px; border-radius: var(--radius-sm); font-size: var(--fs-foot); font-weight: 500; line-height: 1.33; background: var(--bg-alt); color: var(--ink-2); }
.status-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-prototype { color: #2a44b8; background: #eef1fb; }
.st-research { color: #965802; background: #fef2e2; }
.st-field { color: #006d3f; background: #ecfff7; }
:root[data-theme="dark"] .st-prototype, .section-dark .st-prototype { color: #aebcff; background: rgba(42, 68, 184, .25); }
:root[data-theme="dark"] .st-research, .section-dark .st-research { color: #f0a848; background: #1e1100; }
:root[data-theme="dark"] .st-field, .section-dark .st-field { color: #84dab6; background: #081711; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .st-prototype { color: #aebcff; background: rgba(42, 68, 184, .25); }
  :root:not([data-theme="light"]) .st-research { color: #f0a848; background: #1e1100; }
  :root:not([data-theme="light"]) .st-field { color: #84dab6; background: #081711; }
}

/* Vertical timeline */
.timeline-v { position: relative; display: grid; gap: var(--s-5); padding-left: 32px; }
.timeline-v::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: var(--s-3); }
.tl-item::before { content: ""; position: absolute; left: -32px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--brand); }
.tl-year { font-weight: 500; font-size: var(--fs-lead); color: var(--brand); }
.tl-item ul { display: grid; gap: 6px; }
.tl-item li { color: var(--ink-2); }
.tl-item li strong { color: var(--ink); font-weight: 500; }
@media (max-width: 600px) { .tl-item { grid-template-columns: 1fr; gap: 4px; } }

/* Field quotes */
.quotes { columns: 2 320px; column-gap: var(--s-3); }
.fq { break-inside: avoid; margin: 0 0 var(--s-3); padding: var(--s-4); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.section-dark .fq { background: var(--dark-2); box-shadow: none; border: 1px solid var(--line-dark); }
.fq p { font-size: var(--fs-lead); line-height: 1.4; }
.fq footer { margin-top: var(--s-2); font-size: var(--fs-caption); color: var(--ink-2); }

/* People */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s-4) var(--s-3); }
.person img, .person .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: var(--radius); background: var(--bg-alt); }
.person .ph { display: grid; place-items: center; font-size: 40px; font-weight: 500; color: var(--ink-2); }
.person h3 { font-size: var(--fs-body); font-weight: 500; margin-top: 12px; }
.person p { font-size: var(--fs-caption); color: var(--ink-2); }

/* Publications */
.pubs li { display: grid; grid-template-columns: 72px 1fr auto; gap: var(--s-3); align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line); }
.pubs li:last-child { border-bottom: 1px solid var(--line); }
.pubs .yr { font-weight: 500; color: var(--brand); }
.pubs h3 { font-size: var(--fs-body); font-weight: 500; }
.pubs p { font-size: var(--fs-caption); color: var(--ink-2); margin-top: 4px; }
@media (max-width: 600px) { .pubs li { grid-template-columns: 1fr; gap: 4px; } }

/* Feature list */
.ticks { display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 500; }

/* Architecture strip */
.arch { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: arch; }
.arch > div { position: relative; padding: var(--s-3); border-radius: var(--radius-sm); border: 1px solid var(--line); }
.arch > div::before { counter-increment: arch; content: counter(arch); display: block; font-size: var(--fs-caption); font-weight: 500; color: var(--brand); margin-bottom: 8px; }
@media (max-width: 800px) { .arch { grid-template-columns: 1fr 1fr; } }

/* Role chooser */
.roles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.role { display: grid; gap: 4px; padding: 20px; min-height: 96px; border-radius: var(--radius); border: 1px solid var(--line); color: var(--ink); transition: border-color .2s ease, background-color .2s ease; }
.role:hover { text-decoration: none; border-color: var(--accent); background: var(--accent-subtle); color: var(--ink); }
.role strong { font-size: var(--fs-body); font-weight: 500; }
.role strong::after { content: " ›"; color: var(--accent); }
.role span { font-size: var(--fs-caption); color: var(--ink-2); }
@media (max-width: 900px) { .roles { grid-template-columns: 1fr 1fr; } }

/* Say it */
.says { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.say { padding: 24px; border-radius: var(--radius); background: var(--dark-2); border: 1px solid var(--line-dark); }
.say p { font-size: var(--fs-lead); font-weight: 500; line-height: 1.35; }
.say span { display: block; margin-top: 12px; font-size: var(--fs-caption); color: var(--accent-on-dark); }
@media (max-width: 900px) { .says { grid-template-columns: 1fr; } }

/* Newsletter */
.newsletter { margin-top: var(--s-5); display: grid; gap: 8px; max-width: 480px; }
.nl-row { display: flex; gap: 8px; }
.nl-row input { flex: 1; font: inherit; min-height: 48px; padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
.nl-row .btn { min-height: 48px; }
.nl-msg { font-size: var(--fs-caption); min-height: 1.2em; }

/* ---- Realistic visuals ---- */
/* Full-bleed photo hero */
.photo-hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; overflow: hidden; color: #f3f6fa; background: #060c27; }
.photo-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; animation: slowzoom 24s ease-out both; }
.photo-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,12,39,.25) 0%, rgba(6,12,39,.35) 40%, rgba(6,12,39,.92) 100%); }
.photo-hero .wrap-wide { position: relative; z-index: 1; padding-block: clamp(96px, 14vw, 160px) clamp(48px, 7vw, 88px); }
.photo-hero .eyebrow { color: var(--accent-on-dark); }
.photo-hero .lead { color: #e0e3e9; max-width: 640px; margin-top: 24px; }
.photo-hero .more { color: var(--accent-on-dark); }
.photo-credit { position: absolute; right: 16px; bottom: 12px; z-index: 1; font-size: var(--fs-foot); color: rgba(243,246,250,.7); }
@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Real product: phones + device */
.showcase { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-6); align-items: center; }
.phones { display: flex; gap: 20px; justify-content: center; align-items: flex-end; }
.phone { width: min(30%, 210px); border-radius: 30px; border: 8px solid #0a1236; background: #0a1236; box-shadow: 0 30px 60px rgba(6,12,39,.22); overflow: hidden; }
.phone img { width: 100%; display: block; }
.phone:nth-child(2) { transform: translateY(-28px); }
.device-shot { display: flex; gap: 12px; justify-content: center; align-items: flex-end; }
.device-shot img { width: 46%; max-width: 220px; border-radius: 18px; }
.shot-caption { margin-top: 20px; text-align: center; font-size: var(--fs-caption); color: var(--ink-2); }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; } }

/* Field gallery */
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.gallery figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); min-height: 220px; }
.gallery figure:first-child { grid-row: span 2; min-height: 460px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 16px 14px; font-size: var(--fs-caption); color: #f3f6fa; background: linear-gradient(180deg, transparent, rgba(6,12,39,.85)); }
@media (max-width: 800px) { .gallery { grid-template-columns: 1fr; grid-template-rows: none; } .gallery figure:first-child { grid-row: auto; min-height: 280px; } }

/* Award photos */
.award-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: var(--s-5); }
.award-row figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-alt); aspect-ratio: 4 / 3; }
.award-row img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .award-row { grid-template-columns: 1fr; } }
/* Legibility + phone refinements */
.photo-hero::after { background: linear-gradient(90deg, rgba(6,12,39,.88) 0%, rgba(6,12,39,.55) 50%, rgba(6,12,39,.15) 100%), linear-gradient(180deg, rgba(6,12,39,0) 45%, rgba(6,12,39,.9) 100%); }
.photo-hero h1, .photo-hero .lead { text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.phone img { aspect-ratio: 1 / 2; object-fit: cover; object-position: top; }
@media (max-width: 600px) {
  .photo-hero::after { background: linear-gradient(180deg, rgba(6,12,39,.35) 0%, rgba(6,12,39,.75) 45%, rgba(6,12,39,.95) 100%); }
  .phones { gap: 10px; }
  .phone { width: 31%; border-width: 5px; border-radius: 20px; }
  .phone:nth-child(2) { transform: translateY(-14px); }
}

/* ---- Styles moved from merged pages ---- */
/* from field work */
.hero-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 8; margin-top: 64px; background: var(--dark); }
  .hero-photo img { width: 100%; height: 100%; object-fit: cover; }
  .photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-alt); }
  .photo img { width: 100%; height: 100%; object-fit: cover; }
  .cities { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
  .cities > div { border-top: 2px solid var(--brand); padding-top: var(--s-2); }
  @media (max-width: 800px) { .cities { grid-template-columns: 1fr 1fr; } .hero-photo { aspect-ratio: 4 / 3; } }
/* from areas */
.area { display: flex; flex-direction: column; gap: 12px; }
  .area .q { font-size: var(--fs-caption); color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; }
  .area .q strong { color: var(--ink); font-weight: 500; }
  .countries { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
  @media (max-width: 860px) { .countries { grid-template-columns: 1fr; } }
/* from pilots */
.phases { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px; }
  .phases > div { padding: 24px 24px 0 0; border-top: 3px solid var(--line); }
  .phases > div:first-child { border-color: var(--brand); }
  @media (max-width: 800px) { .phases { grid-template-columns: 1fr; } .phases > div { padding: 20px 0; } }
/* from principles */
.principle { display: grid; grid-template-columns: 80px 1fr; gap: var(--s-4); padding: var(--s-5) 0; border-top: 1px solid var(--line); }
  .principle:last-child { border-bottom: 1px solid var(--line); }
  .pnum { font-size: var(--fs-h2); font-weight: 300; color: var(--brand); line-height: 1; }
  .principle .practice { margin-top: var(--s-2); font-size: var(--fs-caption); color: var(--ink-2); }
  .principle .practice strong { color: var(--ink); font-weight: 500; }
  @media (max-width: 600px) { .principle { grid-template-columns: 1fr; gap: 8px; } }
/* from news */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-5); }
  .filters button { font: inherit; font-size: var(--fs-caption); font-weight: 500; min-height: 44px; padding: 0 18px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: none; color: var(--ink-2); cursor: pointer; }
  .filters button[aria-pressed="true"] { background: var(--accent-subtle); color: var(--accent); border-color: var(--accent); }
  .posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
  .post { display: flex; flex-direction: column; gap: 12px; }
  .post time { font-size: var(--fs-caption); color: var(--ink-2); }
  .post.featured { grid-column: span 2; }
  .post.featured h2 { font-size: var(--fs-h2); }
  .post[hidden] { display: none; }
  .post-media { margin: calc(var(--s-4) * -1) calc(var(--s-4) * -1) 4px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--bg-alt); }
  .post-media img { width: 100%; height: 100%; object-fit: cover; }
  .post.featured .post-media { aspect-ratio: 21 / 9; }
  .post .caption a { font-weight: 500; }
  @media (max-width: 900px) { .posts { grid-template-columns: 1fr; } .post.featured { grid-column: auto; } }
/* Gallery: fixed row heights so large photos can't stretch it */
.gallery { grid-template-rows: 240px 240px; }
.gallery figure, .gallery figure:first-child { min-height: 0; }
@media (max-width: 800px) { .gallery { grid-template-rows: none; grid-auto-rows: 260px; } }

/* ---- Product-led homepage ---- */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: center; padding-block: clamp(48px, 7vw, 96px) var(--s-6); }
.hero-split .lead { margin-top: var(--s-3); }
.hero-split .actions { margin-top: var(--s-4); }
.hero-split .device { max-width: none; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: var(--s-4); font-size: var(--fs-caption); color: var(--ink-2); }
.hero-meta span::before { content: "✓"; color: var(--positive); font-weight: 500; margin-right: 6px; }
@media (max-width: 960px) { .hero-split { grid-template-columns: 1fr; gap: var(--s-5); } }

.usecases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
.usecase { display: flex; flex-direction: column; gap: 12px; padding: var(--s-4) var(--s-3); border-top: 3px solid var(--brand); background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); }
.usecase ul { display: grid; gap: 8px; font-size: var(--fs-caption); color: var(--ink-2); }
.usecase li { padding-left: 16px; position: relative; }
.usecase li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.usecase .more { margin-top: auto; }
@media (max-width: 1000px) { .usecases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .usecases { grid-template-columns: 1fr; } }

.feature-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-6); align-items: center; }
.feature-split + .feature-split { margin-top: var(--s-6); }
.feature-split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .feature-split { grid-template-columns: 1fr; gap: var(--s-4); } .feature-split.flip > :first-child { order: 0; } }

.capabilities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.capability { padding: var(--s-4) var(--s-3) var(--s-4) 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.capability h3 { font-size: var(--fs-body); font-weight: 500; }
.capability p { font-size: var(--fs-caption); color: var(--ink-2); }
@media (max-width: 860px) { .capabilities { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .capabilities { grid-template-columns: 1fr; } }

.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.stats-band .stat { font-size: clamp(32px, 4vw, 44px); }
@media (max-width: 800px) { .stats-band { grid-template-columns: 1fr 1fr; } }

.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-2) var(--s-5); }
.logo-row span { font-weight: 500; color: var(--ink-2); font-size: var(--fs-body); letter-spacing: .02em; }

.more-pubs summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 48px; margin-top: var(--s-3); font-weight: 500; color: var(--accent); }
.more-pubs summary::-webkit-details-marker { display: none; }
.more-pubs summary::after { content: "+"; margin-left: 8px; font-size: 1.2em; }
.more-pubs[open] summary::after { content: "−"; }
figure.say { padding: var(--s-4); color: #f3f6fa; }
figure.say p { font-size: var(--fs-h3); font-weight: 400; line-height: 1.35; }
figure.say span { color: var(--accent-on-dark); }

/* ---- Design director pass ---- */

/* Icons (Zeta Icons, inlined sprite) */
.icon { width: 24px; height: 24px; fill: currentColor; flex: none; }
.icon-tile { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); background: var(--brand-subtle); color: var(--brand); }
.icon-tile .icon { width: 22px; height: 22px; }
.capability .icon-tile, .usecase .icon-tile { margin-bottom: 4px; }
.ticks.icons li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding-left: 0; }
.ticks.icons li::before { content: none; }

/* Team: one consistent treatment across mismatched source photos */
.people-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); max-width: 840px; }
@media (max-width: 760px) { .people-3 { grid-template-columns: 1fr 1fr; } }
.person img { filter: grayscale(1) contrast(1.04); transition: filter .4s ease; background: var(--bg-alt); }
.person:hover img { filter: none; }

/* Editorial photo band */
.photo-band { position: relative; min-height: clamp(420px, 56vw, 640px); display: flex; align-items: flex-end; overflow: hidden; color: #f3f6fa; background: #060c27; }
.photo-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.photo-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,12,39,.7) 0%, rgba(6,12,39,.2) 60%, rgba(6,12,39,0) 100%), linear-gradient(180deg, rgba(6,12,39,0) 35%, rgba(6,12,39,.9) 100%); }
.photo-band .h1 { text-shadow: 0 2px 24px rgba(0,0,0,.4); }
.photo-band .wrap-wide { position: relative; z-index: 1; padding-block: var(--s-6); }
.photo-band .eyebrow { color: var(--brand-on-dark); }
.photo-band .h1 { max-width: 760px; margin-top: 12px; }
.photo-band .more { color: var(--accent-on-dark); }
.photo-band .photo-credit { right: 16px; bottom: 12px; }

/* Bigger, sharper product phones */
.feature-split .phone { width: min(32%, 240px); }

/* Mobile hero: keep the voice moment short so the CTA stays near the top */
@media (max-width: 600px) {
  .hero-split .convo { min-height: 0; }
  .hero-split .convo > :nth-child(n+3), .hero-split .wave { display: none; }
  .hero-split .device { padding: 20px; }
}

/* Waveform reacts while someone is speaking in the demo */
.wave i { animation-play-state: paused; opacity: .45; transition: opacity .3s ease; }
.wave.speaking i { animation-play-state: running; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .wave i { opacity: 1; } }

.photo-band { --btn-bg: #e0c068; --btn-ink: #0a1236; --btn-hover: #f5ec9b; }

/* Campus security operations dashboard (concept, HTML) */
.ops { background: var(--device-bg); color: #f5f6fb; border-radius: var(--radius-lg); padding: 24px; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 80px rgba(6,12,39,.28); }
.ops-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: var(--fs-caption); }
.ops-head span { color: var(--brand-on-dark); font-size: var(--fs-foot); font-weight: 500; }
.ops-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.ops-tile { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 14px; }
.ops-tile b { display: block; font-size: 28px; font-weight: 500; line-height: 1.1; }
.ops-tile span { font-size: var(--fs-foot); color: #c3c9e3; }
.ops-alert { border-color: rgba(243,97,112,.6); background: rgba(243,97,112,.14); }
.ops-alert b { color: #ffb3bb; }
.ops-bar { height: 6px; margin-top: 8px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.ops-bar i { display: block; width: 88%; height: 100%; background: var(--gold-gradient); }
.ops-feed { margin-top: 16px; font-size: var(--fs-foot); }
.ops-feed li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.1); color: #dfe3f3; }
.ops-feed li span:last-child { color: #c3c9e3; font-variant-numeric: tabular-nums; }

/* UX pass */
.demo-toggle { font: inherit; font-size: var(--fs-foot); font-weight: 500; color: #dfe3f3; background: transparent; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; min-height: 28px; padding: 0 12px; cursor: pointer; }
.demo-toggle:hover { border-color: var(--brand-on-dark); color: #fff; }
.device-bar { gap: 12px; flex-wrap: wrap; }
.nav-theme { display: none; }
@media (max-width: 860px) { .nav[data-open] .nav-links .nav-theme { display: inline-flex; align-self: flex-start; margin-top: 16px; } }
@media (max-width: 700px) { .local-nav .local-title, .local-nav .btn { display: none; } .local-nav .wrap-wide { padding-top: 0; } }
abbr[title] { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.capability .badge { margin-left: 6px; }

/* Proof from the field */
.stories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
.story { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4); }
.story .post-media { margin: calc(var(--s-4) * -1) calc(var(--s-4) * -1) 4px; }
.story-org { font-size: var(--fs-foot); font-weight: 500; letter-spacing: .04em; color: var(--brand); }
.story dl { display: grid; gap: 10px; margin: 4px 0 0; font-size: var(--fs-caption); }
.story dt { font-weight: 500; color: var(--ink); }
.story dd { margin: 2px 0 0; color: var(--ink-2); }
.story-invite { background: var(--device-bg); color: #f5f6fb; border-color: rgba(255,255,255,.14); justify-content: center; --btn-bg: #e0c068; --btn-ink: #0a1236; --btn-hover: #f5ec9b; }
.story-invite .story-org { color: var(--brand-on-dark); }
.story-invite p { color: #c3c9e3; }
.story-invite .btn { align-self: flex-start; margin-top: 8px; }
@media (max-width: 1100px) { .stories { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .stories { grid-template-columns: 1fr; } }

/* Next steps (closing) */
.next-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); margin-top: var(--s-5); text-align: left; }
.next-step { display: flex; flex-direction: column; gap: 12px; padding: var(--s-4); border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(255,255,255,.03); }
.next-step .btn, .next-step .more { margin-top: auto; align-self: flex-start; }
@media (max-width: 860px) { .next-steps { grid-template-columns: 1fr; } }

/* Video dialog */
.video-dialog { width: min(960px, 100% - 32px); padding: 0; border: 0; border-radius: var(--radius-lg); background: #000; overflow: visible; }
.video-dialog::backdrop { background: rgba(6, 12, 39, .82); }
.video-frame { aspect-ratio: 16 / 9; }
.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: 0; border-radius: var(--radius-lg); display: block; }
.video-close { position: absolute; top: -44px; right: 0; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 24px; cursor: pointer; }

/* Buyer's guide */
.guide-body { display: grid; gap: var(--s-5); padding-bottom: var(--section); }
.guide-body > * { max-width: 760px; }
.guide-body section > * + * { margin-top: var(--s-2); }
.guide-steps { padding-left: 20px; display: grid; gap: 10px; }
.guide-checklist { padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.guide-checklist ol { padding-left: 20px; display: grid; gap: 10px; }
.guide-note { margin-top: 0; }

@media print {
  :root, :root[data-theme="dark"] { --bg: #fff; --bg-alt: #fff; --surface: #fff; --ink: #000; --ink-2: #333; --brand: #6b4d0f; --line: #ccc; --accent: #152878; color-scheme: light; }
  [data-nav], .nav, .local-nav, .footer, .skip, .no-print, .video-open { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .hero { padding-top: 0; }
  .guide-body section { break-inside: avoid; }
  abbr[title] { text-decoration: none; }
}

/* ---- Global nav: dropdowns + utility bar ---- */
.utility { background: var(--dark); font-size: var(--fs-foot); }
.utility .wrap-wide { display: flex; justify-content: flex-end; gap: var(--s-3); min-height: 32px; align-items: center; }
.utility a { color: var(--ink-2-on-dark); }
.utility a:hover { color: #fff; }
.menu { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.menu-item { position: relative; display: flex; align-items: center; }
.nav-links .menu-top { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px 0 10px; color: var(--ink); font-size: var(--fs-caption); }
.nav-links .menu-top:hover { color: var(--accent); text-decoration: none; }
.nav-links .menu-top[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.menu-toggle { width: 24px; height: 44px; border: 0; background: none; color: var(--ink-2); cursor: pointer; padding: 0; }
.menu-toggle::before { content: ""; display: block; width: 7px; height: 7px; margin: 0 auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.menu-item.open .menu-toggle::before { transform: translateY(1px) rotate(-135deg); }
.menu-panel { position: absolute; top: 100%; left: 0; z-index: 60; min-width: 320px; padding-top: 8px; display: none; }
.menu-panel ul { margin: 0; padding: 8px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(6,12,39,.35); }
.menu-panel a { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); }
.menu-panel a:hover, .menu-panel a:focus-visible { background: var(--accent-subtle); text-decoration: none; }
.menu-panel strong { font-weight: 500; font-size: var(--fs-caption); }
.menu-panel span { font-size: var(--fs-foot); color: var(--ink-2); }
.menu-extra { display: none; }
@media (min-width: 901px) {
  .menu-item:hover .menu-panel, .menu-item:focus-within .menu-panel, .menu-item.open .menu-panel { display: block; }
  .menu-item:nth-last-child(3) .menu-panel, .menu-item:nth-last-child(4) .menu-panel { left: auto; right: 0; }
}
@media (max-width: 900px) {
  .utility { display: none; }
  .nav-toggle { display: block; }
  .nav-links { display: none; }
  .nav-cta { margin-left: 0; }
  .nav[data-open] .nav-links { display: block; position: absolute; top: var(--nav-h); left: 0; right: 0; max-height: calc(100vh - var(--nav-h)); overflow-y: auto; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 24px; }
  .nav[data-open] .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .nav[data-open] .menu-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav[data-open] .menu-top { flex: 1; font-size: var(--fs-lead); min-height: 52px; padding-left: 0; box-shadow: none; }
  .nav[data-open] .menu-toggle { width: 48px; height: 52px; }
  .nav[data-open] .menu-panel { position: static; width: 100%; min-width: 0; padding: 0 0 12px; }
  .nav[data-open] .menu-item.open .menu-panel { display: block; }
  .nav[data-open] .menu-panel ul { border: 0; box-shadow: none; background: none; padding: 0; }
  .nav[data-open] .menu-panel a { padding: 10px 0; }
  .nav[data-open] .menu-extra { display: block; border-bottom: 1px solid var(--line); }
  .nav[data-open] .menu-extra a { display: flex; align-items: center; min-height: 52px; color: var(--ink); font-size: var(--fs-lead); }
  .nav[data-open] .nav-links .nav-theme { display: inline-flex; margin-top: 16px; }
}

/* Breadcrumbs */
.breadcrumb { padding-top: var(--s-3); font-size: var(--fs-foot); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--ink-2); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--ink-2); }
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--ink); }

/* Research landing cards */
.research-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-2); }
@media (max-width: 1100px) { .research-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .research-cards { grid-template-columns: 1fr; } }
.research-card { padding: var(--s-3); }
.research-card .post-media { margin: calc(var(--s-3) * -1) calc(var(--s-3) * -1) 4px; }
.research-card { color: var(--ink); }
.research-card:hover { text-decoration: none; color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-hover); }
.research-card .more { margin-top: auto; }
@media (max-width: 900px) {
  .nav[data-open] .nav-links .menu-panel a { font-size: inherit; min-height: 0; border-bottom: 0; }
  .nav[data-open] .nav-links .menu-top { border-bottom: 0; }
}

/* Pages with breadcrumbs: hero sits closer to content */
.breadcrumb + .hero { padding-bottom: 0; }

/* Research landing: intake, offer, themes, people */
.intake { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-4); padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-left: 0; border-radius: var(--radius); background: var(--brand-subtle); max-width: 860px; }
.intake p { max-width: 560px; }
.offer-list { counter-reset: offer; display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.offer-list li { counter-increment: offer; position: relative; padding-left: 64px; color: var(--ink-2); }
.offer-list li::before { content: counter(offer, decimal-leading-zero); position: absolute; left: 0; top: -4px; font-size: var(--fs-h3); font-weight: 300; color: var(--brand); line-height: 1.1; }
.offer-list strong { color: var(--ink); font-weight: 500; }
.theme-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.theme-chips li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: var(--fs-caption); }
.people-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .people-4 { grid-template-columns: 1fr 1fr; } }
.person .ph { aspect-ratio: 4 / 5; }
.student-band { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-5); padding: var(--s-4); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.student-band > div { max-width: 640px; }

/* Four-item nav: menu sits at the right edge without a CTA button */
.nav-links { margin-left: auto; }
@media (max-width: 900px) { .nav[data-open] .nav-links .menu-extra a { padding-left: 0; } }

/* NIST pass: grouped menus, policy pages, theme links, what's new, feedback */
.menu-panel .menu-group { padding: 12px 12px 4px; font-size: var(--fs-foot); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.menu-panel .menu-group:first-child { padding-top: 4px; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.footer-legal a { color: var(--ink-2); }
.footer-legal a:hover { color: var(--ink); }
.policy-body { display: grid; gap: var(--s-5); padding-bottom: var(--section); }
.policy-body > * { max-width: 760px; }
.policy-body section > * + * { margin-top: var(--s-2); }
.policy-draft { display: inline-block; margin-top: var(--s-3); padding: 8px 12px; border-radius: var(--radius-sm); background: var(--tbd-bg); outline: 1px dashed var(--tbd-line); font-size: var(--fs-caption); font-weight: 500; }
.theme-chips a { display: inline-block; color: var(--ink); }
.theme-chips li:has(a) { padding: 0; }
.theme-chips li a { padding: 8px 14px; border-radius: 999px; }
.theme-chips li:has(a):hover { border-color: var(--accent); background: var(--accent-subtle); }
.theme-chips a:hover { text-decoration: none; color: var(--accent); }
.pub-count { min-height: 1.4em; margin-bottom: var(--s-2); }
.pubs li[hidden] { display: none; }
.whats-new { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.whats-new li { display: grid; grid-template-columns: 120px auto 1fr; gap: var(--s-3); align-items: center; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.whats-new time { font-size: var(--fs-caption); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.whats-new a { color: var(--ink); font-weight: 500; }
.whats-new a:hover { color: var(--accent); }
@media (max-width: 700px) { .whats-new li { grid-template-columns: 1fr; gap: 6px; } .whats-new .status-tag { justify-self: start; } }
.newsletter-lg { max-width: none; margin-top: 0; }
.page-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: var(--s-4); border-top: 1px solid var(--line); }
.pf-actions { display: flex; gap: 8px; }
.pf-msg:empty { display: none; }

.policy .breadcrumb + .hero { padding-bottom: var(--s-5); }

/* ---- Visual mega menus ---- */
.nav-inner { position: relative; }
@media (min-width: 901px) {
  .menu-item { position: static; }
  .menu-panel.mega { left: auto; right: 0; width: min(880px, calc(100vw - 32px)); min-width: 0; }
}
.mega-inner { display: grid; grid-template-columns: 1fr 200px; gap: var(--s-3); padding: var(--s-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(6,12,39,.45); }
.menu-panel.mega ul { margin: 0; padding: 0; list-style: none; background: none; border: 0; box-shadow: none; }
.mega-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.menu-panel .mega-cards a { display: grid; gap: 4px; padding: 0; border-radius: var(--radius); color: var(--ink); }
.menu-panel .mega-cards a:hover { background: none; }
.mega-cards img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); margin-bottom: 6px; transition: transform .3s ease, opacity .3s ease; }
.mega-cards a:hover img, .mega-cards a:focus-visible img { opacity: .85; }
.mega-cards strong { font-size: var(--fs-body); font-weight: 500; }
.mega-cards a:hover strong { color: var(--accent); }
.mega-cards span { font-size: var(--fs-foot); color: var(--ink-2); }
.mega-links { display: grid; align-content: start; gap: 2px; padding-left: var(--s-3); border-left: 1px solid var(--line); }
.menu-panel .mega-links a { display: block; padding: 8px 0; font-size: var(--fs-caption); font-weight: 500; color: var(--ink); }
.menu-panel .mega-links a::after { content: " ›"; color: var(--accent); }
.menu-panel .mega-links a:hover { background: none; color: var(--accent); }
@media (max-width: 900px) {
  .nav[data-open] .mega-inner { display: block; padding: 0 0 12px; background: none; border: 0; box-shadow: none; }
  .nav[data-open] .mega-cards { grid-template-columns: 1fr; gap: 0; }
  .nav[data-open] .mega-cards img { display: none; }
  .nav[data-open] .menu-panel .mega-cards a { padding: 10px 0; }
  .nav[data-open] .mega-links { border-left: 0; padding-left: 0; margin-top: 4px; }
}

/* ---- Visual redesign: heroes, cards, gallery ---- */
.home-hero, .page-hero { position: relative; overflow: hidden; color: #f5f6fb; background: #060c27; }
.home-hero > img, .page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero::after, .page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,12,39,.92) 0%, rgba(6,12,39,.72) 45%, rgba(6,12,39,.25) 100%), linear-gradient(180deg, rgba(6,12,39,0) 55%, rgba(6,12,39,.85) 100%); }
.home-hero { min-height: min(90vh, 820px); display: flex; align-items: center; }
.home-hero-inner, .page-hero-inner { position: relative; z-index: 1; }
.home-hero-inner { padding-block: clamp(64px, 10vw, 120px); }
.home-hero h1 { max-width: 820px; margin-top: 12px; }
.home-hero .lead, .page-hero .lead { color: #dfe3f3; max-width: 640px; margin-top: var(--s-3); }
.home-hero .actions, .page-hero .actions { margin-top: var(--s-4); }
.home-hero .eyebrow, .page-hero .eyebrow { color: var(--brand-on-dark); }
.home-hero .more, .page-hero .more { color: var(--accent-on-dark); }
.home-hero, .page-hero { --btn-bg: #e0c068; --btn-ink: #0a1236; --btn-hover: #f5ec9b; --focus: #f5ec9b; }
.path-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: var(--s-5); }
.path-chips span { font-size: var(--fs-caption); color: #c3c9e3; margin-right: 4px; }
.path-chips a { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(6,12,39,.45); color: #f5f6fb; font-size: var(--fs-caption); backdrop-filter: blur(6px); }
.path-chips a:hover { border-color: var(--brand-on-dark); color: #fff; text-decoration: none; background: rgba(224,192,104,.16); }
.home-hero .photo-credit, .page-hero .photo-credit { position: absolute; right: 16px; bottom: 12px; z-index: 1; }
.page-hero { min-height: 420px; display: flex; align-items: flex-end; }
.page-hero-inner { padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); }
.page-hero h1 { max-width: 760px; margin-top: 12px; }
.page-hero .breadcrumb { padding-top: 0; margin-bottom: var(--s-4); }
.page-hero .breadcrumb ol, .page-hero .breadcrumb a, .page-hero .breadcrumb li + li::before { color: #c3c9e3; }
.page-hero .breadcrumb [aria-current] { color: #fff; }
.page-hero + section { position: relative; }

.impact-band { border-bottom: 1px solid var(--line); background: var(--bg); }
.impact-band .wrap-wide { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-3); padding-block: var(--s-4); }
.impact-band strong { display: block; font-size: clamp(28px, 3.4vw, 40px); font-weight: 300; line-height: 1.1; color: var(--brand); }
.impact-band span { font-size: var(--fs-caption); color: var(--ink-2); }
@media (max-width: 800px) { .impact-band .wrap-wide { grid-template-columns: 1fr 1fr; } }

.head-row { display: flex; justify-content: space-between; align-items: end; gap: var(--s-3); flex-wrap: wrap; max-width: none; }
.photo-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
.photo-card { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; color: #fff; background: #060c27; }
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,12,39,0) 35%, rgba(6,12,39,.92) 100%); }
.photo-card:hover img { transform: scale(1.04); }
.photo-card:hover { text-decoration: none; color: #fff; }
.photo-card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: 6px; padding: var(--s-3); }
.photo-card-body strong { font-size: var(--fs-h3); font-weight: 500; line-height: 1.2; }
.photo-card-body span { font-size: var(--fs-caption); color: #dfe3f3; }
.photo-card-body strong::after { content: " ›"; color: var(--brand-on-dark); }
@media (max-width: 1000px) { .photo-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .photo-cards { grid-template-columns: 1fr; } .photo-card { aspect-ratio: 4 / 3; } }

.method { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.method li { display: grid; gap: 10px; align-content: start; padding: var(--s-4) var(--s-3); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 900px) { .method { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .method { grid-template-columns: 1fr; } }

.audience-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
.audience-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: border-color .2s ease, transform .2s ease; }
.audience-card:hover { text-decoration: none; color: var(--ink); border-color: var(--brand); transform: translateY(-2px); }
.audience-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.audience-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: var(--s-3); }
.audience-body strong { font-size: var(--fs-h3); font-weight: 500; line-height: 1.25; }
.audience-body > span:not(.more) { color: var(--ink-2); font-size: var(--fs-caption); }
.audience-body .more { margin-top: auto; color: var(--accent); }
@media (max-width: 1000px) { .audience-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .audience-cards { grid-template-columns: 1fr; } }

.field-gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 12px; }
.field-gallery figure { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt); }
.field-gallery .fg-wide { grid-column: span 2; }
.field-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.field-gallery figure:hover img { transform: scale(1.03); }
.field-gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 16px 12px; font-size: var(--fs-caption); color: #f5f6fb; background: linear-gradient(180deg, transparent, rgba(6,12,39,.88)); }
@media (max-width: 800px) { .field-gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; } .field-gallery .fg-wide { grid-column: auto; } }

.news-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.news-card { display: grid; gap: 10px; align-content: start; color: var(--ink); }
.news-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); transition: opacity .3s ease; }
.news-card span { font-size: var(--fs-foot); color: var(--brand); font-weight: 500; letter-spacing: .02em; }
.news-card strong { font-size: var(--fs-h3); font-weight: 500; line-height: 1.3; }
.news-card:hover { text-decoration: none; color: var(--accent); }
.news-card:hover img { opacity: .85; }
@media (max-width: 860px) { .news-cards { grid-template-columns: 1fr; } }

.chooser-wrap { padding-top: var(--s-5); }
.chooser { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: var(--s-3); }
.chooser a { display: grid; gap: 6px; align-content: start; padding: var(--s-3); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.chooser a strong { font-weight: 500; }
.chooser a > span:last-child { font-size: var(--fs-foot); color: var(--ink-2); }
.chooser a:hover, .chooser a[aria-current] { text-decoration: none; color: var(--ink); border-color: var(--brand); background: var(--brand-subtle); }
@media (max-width: 1000px) { .chooser { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .home-hero::after, .page-hero::after { background: linear-gradient(180deg, rgba(6,12,39,.78) 0%, rgba(6,12,39,.9) 60%, rgba(6,12,39,.96) 100%); }
  .home-hero .photo-credit { position: static; padding: 0 16px 16px; }
  .home-hero { flex-direction: column; align-items: stretch; }
}

/* Audit pass */
.page-hero + .local-nav { top: var(--nav-h); }
.demo-stage { padding-block: var(--s-6) var(--s-4); }
.story-line { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.story-line li { display: grid; gap: 8px; align-content: start; padding-top: var(--s-2); border-top: 2px solid var(--brand); }
.story-line b { font-size: var(--fs-h3); font-weight: 500; color: var(--brand); }
.story-line span { font-size: var(--fs-caption); color: var(--ink-2); }
@media (max-width: 1000px) { .story-line { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 600px) { .story-line { grid-template-columns: 1fr; } }
.field[hidden], [data-for][hidden] { display: none !important; }
@media print { .page-hero { color: #000; background: none; min-height: 0; } .page-hero > img, .page-hero::after { display: none; } .page-hero .lead, .page-hero .eyebrow { color: #333; } }

/* Researcher pass */
.pubs .authors { margin-top: 6px; font-size: var(--fs-caption); color: var(--ink-2); }
.pubs .authors b { color: var(--ink); font-weight: 500; }
.pub-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 8px; }
.aff-tag { font-size: var(--fs-foot); padding: 2px 8px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); color: var(--ink-2); }
.aff-zenext { border-color: var(--brand); color: var(--brand); }
.cite summary { cursor: pointer; font-size: var(--fs-foot); font-weight: 500; color: var(--accent); list-style: none; }
.cite summary::-webkit-details-marker { display: none; }
.cite pre { margin: 8px 0 0; padding: 12px; max-width: 100%; overflow-x: auto; font-size: 12px; line-height: 1.5; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); white-space: pre; }
.table-scroll { overflow-x: auto; }
.study-table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: var(--fs-caption); }
.study-table th, .study-table td { text-align: left; vertical-align: top; padding: 14px 12px 14px 0; border-top: 1px solid var(--line); }
.study-table thead th { font-weight: 500; color: var(--ink-2); border-top: 0; }
.study-table tbody th { font-weight: 500; color: var(--ink); width: 22%; }
.study-table td { color: var(--ink-2); }
.profile-links { font-size: var(--fs-foot); margin-top: 4px; }
.funding { margin-top: var(--s-4); padding: var(--s-4); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.funding p { margin-top: 8px; }

/* Social links */
.social { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.social a, .social-pending { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink-2); transition: color .2s ease, border-color .2s ease, background .2s ease; }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.social a:hover, .social a:focus-visible { color: var(--brand); border-color: var(--brand); background: var(--brand-subtle); text-decoration: none; }
.social-pending { border-style: dashed; border-color: var(--tbd-line); opacity: .75; cursor: help; }
.social-lg a, .social-lg .social-pending { width: 44px; height: 44px; }
.social-lg svg { width: 20px; height: 20px; }
.footer-social { margin-top: var(--s-3); }
.footer-follow { font-size: var(--fs-foot); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.follow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: var(--s-3); }
.section-dark .social a, .section-dark .social-pending { color: var(--ink-2-on-dark); border-color: rgba(255,255,255,.25); }
.next-step .social { margin-bottom: 4px; }
.grid-4-contact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
@media (max-width: 900px) { .grid-4-contact { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .grid-4-contact { grid-template-columns: 1fr; } }

/* ---- Design director pass 2 ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Section bars: sticky only on long pages */
.local-nav, .page-hero + .local-nav { position: relative; top: auto; }
.local-nav.is-sticky, .page-hero + .local-nav.is-sticky { position: sticky; top: var(--nav-h); }

/* Event ribbon + modal */
.event-ribbon { background: linear-gradient(90deg, #152878, #0e1c5a); color: #f5f6fb; border-bottom: 1px solid rgba(224,192,104,.35); }
.event-ribbon .wrap-wide { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 48px; padding-block: 8px; font-size: var(--fs-caption); }
.event-ribbon p { flex: 1; min-width: 240px; color: #dfe3f3; }
.event-ribbon a { font-weight: 500; color: var(--brand-on-dark); white-space: nowrap; }
.event-ribbon a::after { content: " ›"; }
.ribbon-tag { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: rgba(224,192,104,.18); color: #f5ec9b; font-size: var(--fs-foot); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.event-modal { width: min(760px, 100% - 32px); padding: 0; border: 1px solid rgba(224,192,104,.4); border-radius: var(--radius-lg); background: var(--device-bg); color: #f5f6fb; box-shadow: 0 40px 100px rgba(0,0,0,.55); --btn-bg: #e0c068; --btn-ink: #0a1236; --btn-hover: #f5ec9b; --focus: #f5ec9b; }
.event-modal::backdrop { background: rgba(6,12,39,.75); backdrop-filter: blur(4px); }
.event-body { display: grid; grid-template-columns: 1fr 220px; gap: var(--s-4); padding: var(--s-5) var(--s-4) var(--s-4); align-items: center; }
.event-copy { display: grid; gap: var(--s-2); }
.event-copy p { color: #dfe3f3; }
.event-when { padding: 12px 14px; border-left: 3px solid var(--brand-on-dark); background: rgba(255,255,255,.05); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.event-copy .caption { color: #b9c0de; }
.event-copy .more { color: var(--accent-on-dark); background: none; border: 0; font: inherit; cursor: pointer; }
.event-qr { margin: 0; padding: 16px; border-radius: var(--radius); background: #fff; text-align: center; }
.event-qr img { width: 100%; height: auto; }
.event-qr figcaption { margin-top: 8px; color: #0a1236; font-size: var(--fs-caption); font-weight: 500; }
.event-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 24px; cursor: pointer; }
.event-close:hover { background: rgba(255,255,255,.2); }
@media (max-width: 640px) { .event-body { grid-template-columns: 1fr; padding: var(--s-5) var(--s-3) var(--s-3); } .event-qr { max-width: 180px; justify-self: center; } }
@media (prefers-reduced-motion: no-preference) { .event-modal[open] { animation: pop .3s ease; } @keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } } }

/* Ask Zenext assistant */
.ask-fab { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: #e0c068; color: #0a1236; font: inherit; font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,.35); cursor: pointer; }
.ask-fab svg { width: 22px; height: 22px; }
.ask-fab:hover { background: #f5ec9b; }
.ask-fab[hidden] { display: none; }
.ask-panel { position: fixed; right: 20px; bottom: 20px; z-index: 81; width: min(380px, calc(100vw - 32px)); max-height: min(620px, calc(100vh - 100px)); display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 24px 60px rgba(0,0,0,.45); overflow: hidden; }
.ask-panel[hidden] { display: none; }
.ask-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--dark); color: #f5f6fb; }
.ask-close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 20px; cursor: pointer; }
.ask-log { flex: 1; overflow-y: auto; padding: 16px; display: grid; gap: 10px; align-content: start; }
.ask-msg { max-width: 88%; padding: 10px 12px; border-radius: 14px; font-size: var(--fs-caption); line-height: 1.5; }
.ask-msg.bot { background: var(--bg-alt); color: var(--ink); border-bottom-left-radius: 4px; }
.ask-msg.me { justify-self: end; background: var(--bubble-user); color: #fff; border-bottom-right-radius: 4px; }
.ask-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ask-links a { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: var(--fs-foot); font-weight: 500; }
.ask-suggest { display: flex; flex-wrap: wrap; gap: 6px; }
.ask-suggest button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--brand); background: var(--brand-subtle); color: var(--ink); font: inherit; font-size: var(--fs-foot); cursor: pointer; }
.ask-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.ask-form input { flex: 1; min-height: 40px; padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font: inherit; font-size: var(--fs-caption); }
.ask-note { padding: 0 12px 10px; font-size: 12px; color: var(--ink-2); }
@media print { .ask-fab, .ask-panel, .event-ribbon { display: none !important; } }

.event-copy .ribbon-tag { justify-self: start; }

.ask-msg.typing .dots { display: inline-flex; gap: 4px; }
.ask-msg.typing .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); animation: dot 1s infinite ease-in-out; }
.ask-msg.typing .dots i:nth-child(2) { animation-delay: .15s; } .ask-msg.typing .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ask-msg.typing .dots i { animation: none; } }
