/* =====================================================================
   VELASTEGUI VENTURES — Unified Site Stylesheet
   ===================================================================== */

/* ---------- Shared base, layout, and components ---------- */

/* Manrope, served from this site so visitors' browsers don't contact Google.
   One variable file per subset covers weights 200-800; the ranges are
   Google Fonts'. License: fonts/OFL.txt */
@font-face {
  font-family:'Manrope';
  font-style:normal;
  font-weight:200 800;
  font-display:swap;
  src:url("../fonts/manrope-latin-ext.00e470bb0ba2.woff2") format('woff2');
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family:'Manrope';
  font-style:normal;
  font-weight:200 800;
  font-display:swap;
  src:url("../fonts/manrope-latin.756049f32875.woff2") format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Until Manrope arrives: Arial, or Liberation Sans (its metric twin on Linux),
   scaled to Manrope's width at 400 and given its line metrics (ascent 2132,
   descent 600, no line gap, per 2000 units), so the swap doesn't move text */
@font-face {
  font-family:'Manrope fallback';
  src:local('Arial'), local('Liberation Sans');
  size-adjust:103.16%;
  ascent-override:103.34%;
  descent-override:29.08%;
  line-gap-override:0%;
}

:root {
  --bg-dark:#16181d;  /* charcoal, not black: a raised shape needs a darker shade to cast */
  --bg-dark-2:#2b2b2b;
  /* The home hero's ground, a shade under --bg-dark so the graphic's points glow */
  --bg-deep:#0d0f14;
  --hairline: rgba(255,255,255,0.14);
  --paper:#ffffff;
  --paper-2:#e8edf0;
  --ink:#000000;
  --ink-soft:#434343;
  --off-white:#ffffff;
  --muted-on-dark:#c9c9c9;
  --accent:#183eeb;
  --accent-soft:#d3ebff;
  --accent-2:#6d4be9;
  --senary:#d3ebff;
  /* Lighter tints of the two accents for text on the dark sections, where the
     accents themselves fall below 4.5:1 (#8fa3ff is 7.5:1, #a995ff 7.1:1) */
  --accent-on-dark:#8fa3ff;
  --accent-2-on-dark:#a995ff;
  /* The violet accent on the grey logo strip (--muted-on-dark), where
     --accent-2 is 3.3:1: #4b2fc2 is 5.1:1 */
  --accent-2-on-grey:#4b2fc2;
  /* Small uppercase labels and tags: the smallest size functional text is set in */
  --fs-label:.75rem;
  /* The longest line body text runs to: about 90 characters. A ch is the width of
     a "0", wider than Manrope's average letter, so 66ch holds about 90 */
  --measure:66ch;
  /* Soft relief on the grey ground (--paper-2): light from the top left, so a
     raised shape has a white glow above it and a shadow below, and a sunken
     one the reverse. The shadows alone are too faint (1.4:1) to mark a control,
     so controls also get --control-edge (3.8:1 on --paper-2) or a solid fill */
  --relief-hi:#ffffff;
  --relief-lo:#c4ccd3;
  --control-edge:#6b7884;
  /* The same light on the dark ground (--bg-dark); the dark sections swap these in.
     The edge is 4.1:1 on --bg-dark */
  --relief-hi-dark:#262a32;
  --relief-lo-dark:#08090b;
  --control-edge-dark:#6f7a8a;
  --accent-fill:linear-gradient(145deg, #2a4ff5, #1536d6);  /* white text 5.9:1 and 8.3:1 */
  --accent-pressed:inset 3px 3px 7px #0f2aa8, inset -3px -3px 7px #2f57ff;
  /* The blue buttons' hover fill: a shade darker than --accent */
  --accent-hover:#1233c2;
  /* Placeholder text in the dark form fields (5.5:1 on --bg-dark) and their error
     message (6.4:1) */
  --placeholder-on-dark:#8a8f98;
  --error-on-dark:#ff6b6b;
  /* The relief on the news bar's blue ground (--accent-soft); the bar swaps these in.
     The dot and pause button's edge is 4.0:1 on it */
  --relief-hi-blue:#f4faff;
  --relief-lo-blue:#a7c2db;
  --control-edge-blue:#5e7288;
  /* The spotlight's screen frame, darker than --bg-dark so a screenshot reads as a
     window: its ground, its title bar, the bar's three dots (decorative) and the
     bar's label (6.2:1 on --frame-bar) */
  --frame-bg:#030712;
  --frame-bar:#0b101c;
  --frame-dot:#2a3142;
  --frame-label:#8a93a6;
}

.hero, .stat-bar-section, .values, .cta {
  --relief-hi:var(--relief-hi-dark);
  --relief-lo:var(--relief-lo-dark);
  --control-edge:var(--control-edge-dark);
}

/* A var() in a custom property resolves where it's declared, so the shadows are
   declared again on each dark section to pick up its relief colours */
:root, .hero, .stat-bar-section, .values, .cta {
  --raise:7px 7px 16px var(--relief-lo), -7px -7px 16px var(--relief-hi);
  --raise-sm:4px 4px 9px var(--relief-lo), -4px -4px 9px var(--relief-hi);
  --inset:inset 4px 4px 9px var(--relief-lo), inset -4px -4px 9px var(--relief-hi);
  --inset-sm:inset 2px 2px 5px var(--relief-lo), inset -2px -2px 5px var(--relief-hi);
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
}

body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Manrope','Manrope fallback',system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
}

/* Headings break into even lines and paragraphs avoid a lone last word, where the
   browser supports it */
h1, h2, h3 { text-wrap:balance; }
p, li { text-wrap:pretty; }

/* "Skip to content" (base.html): above the page until focused */
.skip-link {
  position:absolute; top:12px; left:12px; z-index:200;
  padding:10px 16px; border-radius:10px;
  background:var(--paper); color:var(--ink); font-weight:700;
  transform:translateY(-200%);
}

.skip-link:focus {
  transform:none; outline:2px solid var(--accent); outline-offset:3px;
}

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

.eyebrow {
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:var(--fs-label);
  font-weight:600;
  color:var(--accent);
}

.hero .eyebrow {
  color:var(--accent-on-dark); font-size:.8rem;
}

.wrap {
  max-width:1120px; margin:0 auto; padding:0 32px;
}

header.site-nav {
  background:var(--paper);
  border-bottom:1px solid rgba(0,0,0,0.1);
}

.nav-row {
  display:flex; align-items:center; justify-content:space-between;
  padding-block:36px; /* not `padding:36px 0` -- that zeroed .wrap's side padding */
}

.brand {
  display:flex;
  align-items:center;
  font-family:'Manrope','Manrope fallback',sans-serif;
  font-weight:800;
  font-size:1rem;
  letter-spacing:.06em;
  color:var(--ink);
  text-transform:uppercase;
}

/* The image is cropped to the logo, so its height is the logo's */
.brand img {
  height:52px;
  width:auto;
  display:block;
}

.brand span {
  color:var(--accent);
}

nav.links {
  display:flex; align-items:center; gap:34px;
}

nav.links a {
  color:var(--ink-soft); font-size:.97rem; letter-spacing:.02em; transition:color .2s ease; white-space:nowrap;
}

nav.links a:hover, nav.links a:focus-visible {
  color:var(--ink);
}

nav.links a.current {
  color:var(--ink); border-bottom:1px solid var(--accent); padding-bottom:4px;
}

.nav-dropdown {
  position:relative;
}

.nav-dropdown-trigger {
  background:none; border:none; padding:0; margin:0; cursor:pointer;
  font-family:'Manrope','Manrope fallback',sans-serif; color:var(--ink-soft); font-size:.97rem; letter-spacing:.02em;
  display:flex; align-items:center; gap:5px; transition:color .2s ease; white-space:nowrap;
}

.nav-dropdown-trigger .chevron {
  width:14px; height:9px; display:inline-flex; flex-shrink:0;
  margin-top:1px; transition:transform .2s ease;
}

.nav-dropdown-trigger .chevron svg {
  display:block; width:100%; height:100%;
}

.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown-trigger[aria-expanded="true"],
.nav-dropdown-trigger.current {
  color:var(--ink);
}

.nav-dropdown-trigger.current {
  border-bottom:1px solid var(--accent); padding-bottom:4px;
}

.nav-dropdown:hover .nav-dropdown-trigger .chevron,
.nav-dropdown-trigger[aria-expanded="true"] .chevron {
  transform:rotate(180deg); margin-top:-1px;
}

.nav-dropdown-menu {
  position:absolute; top:100%; left:50%; transform:translateX(-50%);
  padding-top:16px; width:170px;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .18s ease, visibility .18s ease;
  z-index:80;
}

/* nav.js sets aria-expanded from a click, Enter or Space; hover opens it for the mouse */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-trigger[aria-expanded="true"] + .nav-dropdown-menu {
  opacity:1; visibility:visible; pointer-events:auto;
}

.nav-dropdown-menu .panel {
  background:var(--paper-2); border-radius:16px;
  padding:10px; min-width:150px;
  box-shadow:var(--raise);
}

.nav-dropdown-menu a {
  display:block; padding:9px 12px; border-radius:10px;
  font-size:.8rem; color:var(--ink-soft); white-space:nowrap; transition:all .15s ease;
}

.nav-dropdown-menu a:hover, .nav-dropdown-menu a.current {
  box-shadow:var(--inset-sm); color:var(--accent);
}

.hamburger-btn {
  display:none;
  flex-direction:column;
  justify-content:center;
  width:32px;
  height:32px;
  cursor:pointer;
  background:none;
  border:none;
  padding:5px;
}

.hamburger-btn:focus-visible {
  outline:2px solid var(--accent); outline-offset:3px;
}

.hamburger-btn span {
  display:block;
  width:22px;
  height:2px;
  background:var(--ink);
  margin-bottom:5px;
  transition:transform .25s ease, opacity .25s ease;
}

.hamburger-btn span:last-child {
  margin-bottom:0;
}

.mobile-menu {
  display:none;
}

/* The glow and stars are layers in .hero-sky (core/includes/hero_sky.html),
   kept behind the content by the isolated stacking context */
.hero {
  position:relative;
  isolation:isolate;
  background:var(--bg-dark);
  color:var(--off-white);
  overflow:hidden;
  padding:44px 0 36px;
}

.hero::before {
  content:"";
  position:absolute; inset:0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.16) 1px, transparent 1.4px);
  background-size:34px 34px;
  opacity:.5;
  mask-image:linear-gradient(to bottom, rgba(0,0,0,.9), transparent 85%);
}

.hero-inner {
  position:relative; z-index:1; max-width:760px;
}

/* The hero sky. The grid above is the still version, for visitors who ask for
   reduced motion. With motion allowed, three star sets replace it: as many
   stars in all as the grid (one per 34px cell), half again as bright, far ones
   drifting slowest. The glow drifts and its two colours crossfade over 10 s.
   Only transform and opacity change, so the graphics card moves layers drawn
   once and nothing repaints */
.hero-sky { position:absolute; inset:0; z-index:-1; pointer-events:none; }
/* Oversized so the drift never shows an edge; the centres and radii are
   rescaled so the glow sits where the old one did */
.hero-glow {
  position:absolute; inset:-20%;
  background:
    radial-gradient(circle at 27.1% 30%, rgba(24,62,235,0.33), transparent 30%),
    radial-gradient(circle at 72.9% 70%, rgba(109,75,233,0.24), transparent 32%);
}
.hero-glow--alt {
  opacity:0;
  background:
    radial-gradient(circle at 27.1% 30%, rgba(109,75,233,0.30), transparent 30%),
    radial-gradient(circle at 72.9% 70%, rgba(24,62,235,0.30), transparent 32%);
}
.hero-stars {
  position:absolute; inset:0;
  mask-image:linear-gradient(to bottom, rgba(0,0,0,.9), transparent 85%);
}
/* Each set is one tile larger than the hero and moves one tile per loop, so
   the loop has no seam */
.star-set { display:none; position:absolute; top:0; left:0; }
.star-set--far { right:-220px; bottom:-180px; background-size:220px 180px;
  background-image:
    radial-gradient(circle at 86px 42px, rgba(255,255,255,0.24) 1.0px, transparent 1.5px),
    radial-gradient(circle at 105px 170px, rgba(255,255,255,0.24) 1.0px, transparent 1.5px),
    radial-gradient(circle at 16px 22px, rgba(255,255,255,0.24) 1.0px, transparent 1.5px),
    radial-gradient(circle at 214px 141px, rgba(255,255,255,0.24) 1.0px, transparent 1.5px),
    radial-gradient(circle at 28px 97px, rgba(255,255,255,0.24) 1.0px, transparent 1.5px),
    radial-gradient(circle at 153px 18px, rgba(255,255,255,0.24) 1.0px, transparent 1.5px),
    radial-gradient(circle at 133px 58px, rgba(255,255,255,0.24) 1.0px, transparent 1.5px),
    radial-gradient(circle at 13px 26px, rgba(255,255,255,0.24) 1.0px, transparent 1.5px),
    radial-gradient(circle at 115px 111px, rgba(255,255,255,0.24) 1.0px, transparent 1.5px),
    radial-gradient(circle at 21px 65px, rgba(255,255,255,0.24) 1.0px, transparent 1.5px),
    radial-gradient(circle at 27px 145px, rgba(255,255,255,0.24) 1.0px, transparent 1.5px),
    radial-gradient(circle at 112px 19px, rgba(255,255,255,0.24) 1.0px, transparent 1.5px),
    radial-gradient(circle at 215px 148px, rgba(255,255,255,0.24) 1.0px, transparent 1.5px),
    radial-gradient(circle at 35px 61px, rgba(255,255,255,0.24) 1.0px, transparent 1.5px),
    radial-gradient(circle at 165px 164px, rgba(255,255,255,0.24) 1.0px, transparent 1.5px),
    radial-gradient(circle at 153px 19px, rgba(255,255,255,0.24) 1.0px, transparent 1.5px),
    radial-gradient(circle at 151px 153px, rgba(255,255,255,0.24) 1.0px, transparent 1.5px),
    radial-gradient(circle at 105px 16px, rgba(255,255,255,0.24) 1.0px, transparent 1.5px),
    radial-gradient(circle at 60px 15px, rgba(255,255,255,0.24) 1.0px, transparent 1.5px); }
.star-set--mid { right:-260px; bottom:-210px; background-size:260px 210px;
  background-image:
    radial-gradient(circle at 146px 38px, rgba(214,224,255,0.5) 0.9px, transparent 1.8px),
    radial-gradient(circle at 111px 40px, rgba(255,255,255,0.5) 0.9px, transparent 1.8px),
    radial-gradient(circle at 150px 82px, rgba(255,255,255,0.5) 0.9px, transparent 1.8px),
    radial-gradient(circle at 30px 152px, rgba(255,255,255,0.5) 0.9px, transparent 1.8px),
    radial-gradient(circle at 99px 28px, rgba(255,255,255,0.5) 0.9px, transparent 1.8px),
    radial-gradient(circle at 148px 19px, rgba(255,255,255,0.5) 0.9px, transparent 1.8px),
    radial-gradient(circle at 131px 178px, rgba(201,190,255,0.5) 0.9px, transparent 1.8px),
    radial-gradient(circle at 202px 84px, rgba(201,190,255,0.5) 0.9px, transparent 1.8px),
    radial-gradient(circle at 153px 120px, rgba(214,224,255,0.5) 0.9px, transparent 1.8px),
    radial-gradient(circle at 80px 67px, rgba(255,255,255,0.5) 0.9px, transparent 1.8px),
    radial-gradient(circle at 182px 203px, rgba(255,255,255,0.5) 0.9px, transparent 1.8px),
    radial-gradient(circle at 24px 151px, rgba(214,224,255,0.5) 0.9px, transparent 1.8px),
    radial-gradient(circle at 138px 130px, rgba(214,224,255,0.5) 0.9px, transparent 1.8px),
    radial-gradient(circle at 190px 118px, rgba(214,224,255,0.5) 0.9px, transparent 1.8px); }
.star-set--near { right:-300px; bottom:-240px; background-size:300px 240px;
  background-image:
    radial-gradient(circle at 41px 34px, rgba(201,190,255,0.83) 1.0px, transparent 2.2px),
    radial-gradient(circle at 88px 197px, rgba(214,224,255,0.83) 1.0px, transparent 2.2px),
    radial-gradient(circle at 81px 129px, rgba(201,190,255,0.83) 1.0px, transparent 2.2px),
    radial-gradient(circle at 24px 175px, rgba(255,255,255,0.83) 1.0px, transparent 2.2px),
    radial-gradient(circle at 289px 150px, rgba(214,224,255,0.83) 1.0px, transparent 2.2px),
    radial-gradient(circle at 178px 181px, rgba(214,224,255,0.83) 1.0px, transparent 2.2px),
    radial-gradient(circle at 258px 152px, rgba(201,190,255,0.83) 1.0px, transparent 2.2px),
    radial-gradient(circle at 39px 219px, rgba(255,255,255,0.83) 1.0px, transparent 2.2px),
    radial-gradient(circle at 142px 125px, rgba(255,255,255,0.83) 1.0px, transparent 2.2px); }

@keyframes star-drift-far { to { transform:translate3d(-220px, -180px, 0); } }
@keyframes star-drift-mid { to { transform:translate3d(-260px, -210px, 0); } }
@keyframes star-drift-near { to { transform:translate3d(-300px, -240px, 0); } }
@keyframes star-shimmer-far { 0%, 100% { opacity:.5; } 50% { opacity:1; } }
@keyframes star-shimmer-mid { 0%, 100% { opacity:.25; } 50% { opacity:1; } }
@keyframes star-shimmer-near { 0%, 100% { opacity:.1; } 50% { opacity:1; } }
@keyframes hero-glow-drift { from { transform:translate3d(-3%, -2%, 0) scale(1); } to { transform:translate3d(3%, 2.5%, 0) scale(1.08); } }
@keyframes hero-glow-fade { from { opacity:0; } to { opacity:1; } }

@media (prefers-reduced-motion:no-preference) {
  .hero::before { display:none; }
  .star-set { display:block; will-change:transform, opacity; }
  .star-set--far { animation:star-drift-far 72s linear infinite, star-shimmer-far 1.4s ease-in-out infinite; }
  .star-set--mid { animation:star-drift-mid 52s linear infinite, star-shimmer-mid 2.2s ease-in-out -.8s infinite; }
  .star-set--near { animation:star-drift-near 40s linear infinite, star-shimmer-near 3.2s ease-in-out -1.8s infinite; }
  .hero-glow { will-change:transform; animation:hero-glow-drift 8s ease-in-out infinite alternate; }
  .hero-glow--alt { will-change:transform, opacity;
    animation:hero-glow-fade 10s ease-in-out infinite alternate, hero-glow-drift 10.4s ease-in-out infinite alternate-reverse; }
}


.hero h1 {
  font-size:clamp(2rem, 3.6vw, 2.75rem); font-weight:700; margin:16px 0 16px; line-height:1.15; color: var(--off-white);
}

.hero h1 span {
  color:var(--accent-on-dark);
}

.hero p.lede {
  font-size:1rem;
  line-height:1.65;
  color:var(--muted-on-dark);
  max-width:600px;
  margin:0;
}

/* A Wide text-only hero (HeroBlock width): longer lines, so fewer of them */
.hero-inner--wide { max-width:960px; }
.hero-inner--wide p.lede { max-width:var(--measure); }

.hero-ctas {
  display:flex; gap:14px; margin-top:28px; flex-wrap:wrap;
}

.btn-primary {
  display:inline-block;
  background:var(--accent-fill);
  color:var(--off-white);
  padding:13px 28px;
  border-radius:999px;
  font-size:.85rem;
  font-weight:700;
  letter-spacing:.02em;
  box-shadow:var(--raise-sm);
  transition:box-shadow .16s ease, transform .16s ease;
}

.btn-primary:hover {
  background:var(--accent-hover);
}

.btn-primary:active {
  box-shadow:var(--accent-pressed); transform:translateY(1px);
}

.btn-ghost {
  display:inline-block;
  border:1px solid var(--control-edge);
  color:var(--off-white);
  padding:13px 28px;
  border-radius:999px;
  font-size:.85rem;
  font-weight:700;
  letter-spacing:.02em;
  box-shadow:var(--raise-sm);
  transition:border-color .2s ease, background .2s ease, box-shadow .16s ease, transform .16s ease;
}

.btn-ghost:hover {
  border-color:var(--accent-on-dark); background:rgba(24,62,235,0.1);
}

.btn-ghost:active {
  box-shadow:var(--inset); transform:translateY(1px);
}

.stat-bar-section {
  background:var(--bg-dark);
  color:var(--off-white);
}

.stat-bar {
  position:relative; z-index:1;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  padding-block:40px; /* not `padding:40px 0` -- that zeroed .wrap's side padding */
  gap:24px;
}

.stat-bar > div {
  border-radius:18px; padding:22px 24px; box-shadow:var(--raise);
}

.stat-bar .num {
  font-family:'Manrope','Manrope fallback',sans-serif;
  font-weight:800;
  font-size:2.1rem;
  color:var(--off-white);
}

.stat-bar .label {
  margin-top:6px;
  font-size:.78rem;
  color:var(--muted-on-dark);
  line-height:1.4;
  max-width:220px;
}

.section-head {
  max-width:680px; margin-bottom:44px;
}

.section-head h2 {
  font-size:clamp(1.7rem, 3vw, 2.2rem);
  font-weight:700;
  margin:14px 0 0;
  line-height:1.25;
}

.section-head.with-link {
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:24px; flex-wrap:wrap;
}

.section-head .view-all {
  font-size:.85rem; font-weight:700; color:var(--accent);
  border-bottom:1px solid var(--accent); padding-bottom:2px; white-space:nowrap;
}

.section-head p {
  font-size:.98rem; line-height:1.7; color:var(--ink-soft); margin:0; max-width:var(--measure);
}

.disciplines {
  background:var(--paper-2); padding:88px 0;
}

/* Raised tiles on the grey ground. No grid background, so the empty slot of a
   short last row stays plain ground */
.discipline-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:24px;
}

.discipline {
  background:var(--paper-2); padding:30px 28px; border-radius:20px; box-shadow:var(--raise);
}

.discipline .idx {
  font-size:var(--fs-label); font-weight:700; color:var(--accent); letter-spacing:.05em; display:inline-block;
  padding:6px 12px; border-radius:999px; box-shadow:var(--inset-sm); margin-bottom:18px;
}

.discipline h3 {
  font-size:1.1rem; font-weight:700; margin:0 0 6px;
}

.discipline .tag {
  font-size:.78rem; font-weight:600; color:var(--accent); display:inline-block;
  padding:5px 12px; border-radius:999px; box-shadow:var(--inset-sm); margin:4px 0 14px;
}

.discipline p {
  font-size:.87rem; line-height:1.65; color:var(--ink-soft); margin:0;
}

.trusted {
  background:var(--muted-on-dark); padding:24px 0; overflow:hidden;
}

.trusted .eyebrow {
  color:var(--accent-2-on-grey); margin-bottom:24px; display:block;
}

.marquee {
  position:relative;
  width:100%;
  overflow:hidden;
  mask-image:linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image:linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display:flex;
  align-items:center;
  gap:96px;
  width:max-content;
  /* motion.js sets the duration from the track's width, for an even 28px a second */
  animation:marquee-scroll var(--marquee-duration, 32s) linear infinite;
}
/* Stops under the pointer, and with the heroes' pause button (motion.js) */
.marquee:hover .marquee-track, .motion-paused .marquee-track { animation-play-state:paused; }

.marquee-track img {
  height:80px; width:auto; max-width:200px; object-fit:contain;
  opacity:.9;
  flex-shrink:0;
}

/* Still for visitors who ask for reduced motion: one row of every logo, the
   strip's height, that scrolls sideways (motion.js lets the keyboard reach it),
   without the second copy the loop needs or the faded edges */
@media (prefers-reduced-motion:reduce) {
  .marquee { mask-image:none; -webkit-mask-image:none; overflow-x:auto; scrollbar-width:thin; }
  .marquee-track { animation:none; padding:0 max(32px, (100% - 1120px) / 2 + 32px); }
  .marquee-dup { display:none; }
}

.cta {
  background:var(--bg-dark); color:var(--off-white); text-align:center; padding:32px 32px; border-top:1px solid var(--hairline);
}

.cta h2 {
  font-size:1.5rem; font-weight:700; max-width:600px; margin:0 auto 14px; line-height:1.35;
  color:var(--off-white);
}

.cta .btn {
  display:inline-block; border:1px solid var(--control-edge); color:var(--off-white); padding:9px 22px; border-radius:999px; font-size:.78rem; letter-spacing:.03em; font-weight:600; text-decoration:none;
  box-shadow:var(--raise-sm); transition:background .2s ease, border-color .2s ease, box-shadow .16s ease, transform .16s ease;
}

.cta .btn:hover {
  background:var(--accent-fill); color:var(--off-white); border-color:transparent; text-decoration:none;
}

.cta .btn:active {
  box-shadow:var(--accent-pressed); transform:translateY(1px);
}

footer.site-footer {
  background:var(--paper); color:var(--ink-soft); padding:44px 0; border-top:1px solid rgba(0,0,0,0.1);
}

.footer-row {
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:18px;
}

.footer-nav {
  display:flex; flex-wrap:wrap; gap:22px; font-size:.8rem;
}

.footer-nav a:hover {
  color:var(--ink);
}

.footer-brand {
  display:flex; align-items:center;
  font-family:'Manrope','Manrope fallback',sans-serif; font-weight:800; letter-spacing:.03em; color:var(--ink); font-size:.95rem;
}

.footer-brand img {
  height:42px; width:auto; display:block;
}

.story {
  padding:96px 0 20px;
}

.body-text-wrap {
  max-width:var(--measure);
}

/* Rich-text headings sit closer to the text they introduce than to the text above */
.body-text-wrap h2 { margin:1.8em 0 .6em; }
.body-text-wrap h3 { margin:1.6em 0 .5em; }

.story p.body-text {
  font-size:1.02rem;
  line-height:1.8;
  color:var(--ink-soft);
  max-width:680px;
  margin:20px 0;
}

.story p.body-text strong {
  color:var(--ink); font-weight:700;
}

.values {
  background:var(--bg-dark);
  color:var(--off-white);
  padding:96px 0;
  margin-top:64px;
}

.values .eyebrow {
  color:var(--accent-2-on-dark);
}

.values .section-head h2 {
  color:var(--off-white);
}

.value-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}

/* Feature grid "2 columns" option. A class rather than an inline style, so the
   mobile rule below can still stack it to one column */
.grid--2col { grid-template-columns:repeat(2,1fr); }

.value-card {
  background:var(--bg-dark);
  padding:32px 34px;
  border-radius:20px;
  box-shadow:var(--raise);
}

.value-card .idx {
  font-size:.8rem;
  font-weight:700;
  color:var(--accent-2-on-dark);
  letter-spacing:.05em;
  display:inline-block;
  padding:5px 12px;
  border-radius:999px;
  box-shadow:var(--inset-sm);
  margin-bottom:14px;
}

.value-card h3 {
  font-size:1.15rem;
  font-weight:700;
  margin:0 0 10px;
  color:var(--off-white);
}

.value-card p {
  font-size:.92rem;
  line-height:1.7;
  color:var(--muted-on-dark);
  margin:0;
}

.serif {
  font-family:'Manrope','Manrope fallback',system-ui,sans-serif; font-weight:600;
}

.leaders {
  background:var(--paper-2);
  padding:88px 0 40px;
}

.leader {
  display:grid;
  grid-template-columns:280px 1fr;
  gap:56px;
  padding:56px 0;
  border-top:1px solid rgba(0,0,0,0.1);
}

.leader:last-of-type {
  border-bottom:1px solid rgba(0,0,0,0.1);
}

.leader-photo-col {
  display:flex; flex-direction:column; gap:18px;
}

.leader-photo {
  width:100%;
  aspect-ratio:1/1;
  border-radius:18px;
  border:6px solid var(--paper-2);  /* a mat between the photo and its raised frame */
  overflow:hidden;
  background:var(--paper-2);
  position:relative;
  box-shadow:var(--raise);
}

.leader-photo img {
  width:100%; height:100%; object-fit:cover; display:block;
}

.leader-photo .initials {
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  font-family:'Manrope','Manrope fallback',sans-serif;
  font-weight:800;
  font-size:3.4rem;
  color:var(--accent);
  background:
    radial-gradient(circle at 30% 20%, var(--accent-soft), transparent 60%),
    var(--paper-2);
}

.linkedin-btn {
  display:inline-flex; align-items:center; gap:8px;
  font-size:.78rem; font-weight:700;
  letter-spacing:.03em;
  color:var(--off-white);
  background:var(--accent-fill);
  border:0;
  border-radius:999px;
  padding:11px 21px;
  width:fit-content;
  box-shadow:var(--raise-sm);
  transition:box-shadow .16s ease, transform .16s ease;
}

.linkedin-btn:hover, .linkedin-btn:focus-visible {
  background:var(--accent-hover);
}

.linkedin-btn:active {
  box-shadow:var(--accent-pressed); transform:translateY(1px);
}

.linkedin-btn svg {
  width:14px; height:14px; flex-shrink:0;
}

.leader-body .role {
  font-family:'Manrope','Manrope fallback',sans-serif;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--accent);
  font-size:.82rem;
  margin:0 0 10px;
}

.leader-body h2 {
  font-size:1.9rem;
  font-weight:500;
  margin:0 0 16px;
}

.credentials {
  display:flex; flex-wrap:wrap; justify-content:center; gap:8px 10px;
  max-width:680px; margin:0 auto 26px;
}

.credentials span {
  font-size:.76rem; letter-spacing:.02em; color:var(--muted-on-dark);
  background:var(--bg-dark-2); border:1px solid var(--hairline);
  border-radius:999px; padding:7px 14px; white-space:nowrap;
}

.hero .credentials span {
  background:var(--bg-dark); border-color:transparent; box-shadow:var(--inset-sm);
}

.leader-body p.bio {
  font-size:.98rem;
  line-height:1.75;
  color:var(--ink-soft);
  max-width:640px;
  margin:0 0 14px;
}

.leader-body .bio {
  max-width:var(--measure);
}

/* Collapsible bios (static/js/leader-bio.js): first paragraph plus a faded
   peek of the next. A mask rather than a colour overlay, so the fade works
   on any background. */
[data-collapsible-bio] {
  transition:max-height .45s ease;
}

[data-collapsible-bio].is-collapsed {
  overflow:hidden;
  /* Black only for its alpha: the mask fades the bio's last lines out */
  -webkit-mask-image:linear-gradient(to bottom, #000 calc(100% - 4.5em), transparent);
  mask-image:linear-gradient(to bottom, #000 calc(100% - 4.5em), transparent);
}

.bio-toggle {
  display:inline-block;
  margin-top:6px;
  background:none; border:0; border-bottom:1px solid var(--accent);
  padding:0 0 2px; cursor:pointer;
  font:inherit; font-size:.82rem; font-weight:600;
  color:var(--ink);
}

.bio-toggle[hidden] { display:none; }

.bio-toggle:hover, .bio-toggle:focus-visible {
  color:var(--accent);
}

@media (prefers-reduced-motion:reduce) {
  [data-collapsible-bio] { transition:none; }
}

@media print {
  [data-collapsible-bio].is-collapsed { max-height:none !important; overflow:visible; -webkit-mask-image:none; mask-image:none; }
  .bio-toggle { display:none; }
}

.draft-note {
  margin-top:18px;
  font-size:.78rem;
  color:var(--ink-soft);
  background:var(--accent-soft);
  padding:10px 14px;
  border-radius:4px;
  line-height:1.5;
  max-width:640px;
}

.hero-grid {
  position:relative; z-index:1;
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:56px;
}

.hero-graphic {
  width:280px; flex-shrink:0;
}

.hero-graphic svg {
  width:100%; height:auto; display:block;
}

.services {
  background:var(--paper-2);
  padding:80px 0 96px;
}

.service {
  display:grid;
  grid-template-columns:340px 1fr;
  gap:56px;
  padding:56px 40px;
  margin:0 -40px 32px;
  border-radius:22px;
  box-shadow:var(--raise);
}

.service:last-of-type {
  margin-bottom:0;
}

.service-intro .icon {
  width:40px; height:40px;
  display:flex; align-items:center; justify-content:center;
  border-radius:12px;
  box-shadow:var(--inset);
  margin-bottom:18px;
  color:var(--accent);
}

.service-intro .icon svg {
  width:20px; height:20px;
}

.service-intro .idx {
  font-size:.78rem;
  font-weight:700;
  color:var(--accent);
  letter-spacing:.05em;
  display:block;
  margin-bottom:10px;
}

.service-intro h2 {
  font-size:1.7rem;
  font-weight:700;
  margin:0 0 8px;
  line-height:1.25;
}

.service-intro .tag {
  font-size:1rem;
  font-weight:600;
  color:var(--accent);
  display:block;
  margin-bottom:16px;
}

.service-intro p.for-line {
  font-size:.94rem;
  line-height:1.65;
  color:var(--ink-soft);
  margin:0;
}

.service-detail .deliverable {
  display:inline-block;
  font-size:var(--fs-label);
  font-weight:700;
  letter-spacing:.03em;
  color:var(--accent);
  border-radius:999px;
  box-shadow:var(--inset-sm);
  padding:7px 14px;
  margin-bottom:22px;
}

.service-detail ul {
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:16px;
}

/* A plain block with the dot positioned in its padding, not a flex row: in a
   flex row, bold text or a link inside a bullet became a column of its own */
.service-detail li {
  position:relative;
  padding-left:20px;
  font-size:.98rem;
  line-height:1.6;
  color:var(--ink-soft);
}

.service-detail li::before {
  content:"";
  position:absolute; left:0; top:.6em;
  width:6px; height:6px;
  border-radius:50%;
  background:var(--accent);
}

.service-detail li strong {
  color:var(--ink); font-weight:600;
}

section.block {
  background:var(--paper-2);
  padding:88px 0;
}

/* Every light section is grey now, so a hairline keeps two in a row apart */
section.block + section.block {
  border-top:1px solid rgba(0,0,0,0.08);
}

.tenet-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:rgba(0,0,0,0.08); border:1px solid rgba(0,0,0,0.08);
}

.tenet {
  background:var(--paper); padding:30px 26px;
}

.tenet .idx {
  font-size:var(--fs-label); font-weight:700; color:var(--accent); letter-spacing:.05em; display:block; margin-bottom:12px;
}

.tenet h3 {
  font-size:1.05rem; font-weight:700; margin:0 0 8px;
}

.tenet p {
  font-size:.87rem; line-height:1.6; color:var(--ink-soft); margin:0;
}

.layers {
  display:flex; flex-direction:column; gap:24px;
}

.layer {
  display:grid; grid-template-columns:220px 1fr; gap:30px; padding:32px; border-radius:20px; box-shadow:var(--raise);
}

.layer .tag {
  font-size:var(--fs-label); font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--off-white); background:var(--accent); display:inline-block; padding:4px 10px; border-radius:999px; margin-bottom:12px; box-shadow:var(--raise-sm);
}

.layer h3 {
  font-size:1.25rem; font-weight:700; margin:0 0 6px;
}

.layer .layer-desc {
  font-size:.85rem; color:var(--ink-soft); max-width:180px;
}

.chiplist {
  display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px;
}

.chip {
  font-size:.78rem; color:var(--ink); padding:6px 12px; border-radius:999px; line-height:1.3; box-shadow:var(--inset-sm);
}

.chip b {
  color:var(--accent); font-weight:700;
}

.layer-detail {
  font-size:.87rem; color:var(--ink-soft); line-height:1.65; margin:0; max-width:var(--measure);
}

.timeline {
  position:relative; padding-left:30px;
}

.timeline::before {
  content:""; position:absolute; left:4px; top:6px; bottom:6px; width:6px; border-radius:3px; box-shadow:var(--inset-sm);
}

.tl-item {
  position:relative; padding-bottom:38px;
}

.tl-item:last-child {
  padding-bottom:0;
}

.tl-item::before {
  content:""; position:absolute; left:-31px; top:2px; width:16px; height:16px; border-radius:50%; background:var(--paper-2); border:1px solid var(--control-edge); box-shadow:var(--inset-sm);
}

.tl-item.done::before {
  background:var(--accent-fill); border-color:transparent; box-shadow:var(--raise-sm);
}

.tl-head {
  display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; margin-bottom:10px;
}

.tl-phase {
  font-size:var(--fs-label); font-weight:700; letter-spacing:.05em; color:var(--accent); text-transform:uppercase;
}

.tl-title {
  font-size:1.05rem; font-weight:700;
}

.status-pill {
  font-size:var(--fs-label); font-weight:700; letter-spacing:.04em; padding:3px 9px; border-radius:10px; border:1px solid rgba(0,0,0,0.15); color:var(--ink-soft); text-transform:uppercase;
}

.status-pill.live {
  color:var(--off-white); background:var(--accent); border-color:var(--accent); box-shadow:var(--raise-sm);
}

.tl-body {
  display:grid; grid-template-columns:1fr 1fr; gap:20px;
}

.tl-col .label {
  font-size:var(--fs-label); font-weight:700; color:var(--ink-soft); letter-spacing:.08em; text-transform:uppercase; margin-bottom:4px;
}

.tl-col p {
  margin:0; font-size:.88rem; color:var(--ink); line-height:1.55;
}

.badge-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-bottom:36px;
}

.badge {
  border-radius:16px; padding:18px 14px; text-align:center; box-shadow:var(--raise-sm);
}

.badge .code {
  font-weight:700; font-size:.92rem; color:var(--accent);
}

.badge .desc {
  font-size:.76rem; color:var(--ink-soft); margin-top:6px; line-height:1.4;
}

.sov-note {
  max-width:var(--measure); padding:22px 24px; font-size:.92rem; color:var(--ink); line-height:1.65; border-radius:16px; box-shadow:var(--inset);
}

.sov-note strong {
  color:var(--accent);
}

.doc-grid {
  display:flex; flex-direction:column; gap:18px;
}

.doc-card {
  display:grid; grid-template-columns:56px 1fr auto; gap:22px; align-items:center;
  padding:22px 24px; border-radius:18px; box-shadow:var(--raise-sm);
}

.doc-icon {
  width:48px; height:48px; border-radius:12px; box-shadow:var(--inset);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}

.doc-icon svg {
  width:22px; height:22px; color:var(--accent);
}

.doc-body h3 {
  font-size:.98rem; font-weight:700; margin:0 0 6px; line-height:1.4;
}

.doc-body p {
  font-size:.86rem; line-height:1.55; color:var(--ink-soft); margin:0;
}

.doc-cta {
  display:inline-flex; align-items:center; gap:6px; flex-shrink:0;
  font-size:.78rem; font-weight:700; color:var(--accent);
  border:1px solid var(--control-edge); border-radius:999px; padding:9px 16px;
  white-space:nowrap; box-shadow:var(--raise-sm);
  transition:box-shadow .16s ease, transform .16s ease, background .2s ease, color .2s ease;
}

.doc-cta:hover {
  background:var(--accent); color:var(--off-white); border-color:var(--accent);
}

.doc-cta:active {
  box-shadow:var(--inset-sm); transform:translateY(1px);
}

.doc-cta svg {
  width:13px; height:13px;
}

.note {
  margin-top:36px; padding:18px 20px;
  background:rgba(109,75,233,0.06); border-radius:8px;
  font-size:.85rem; color:var(--ink-soft); line-height:1.6; max-width:760px;
}

/* ---------- Article body (use-case / whitepaper / brief detail pages) ---------- */
.article-body {
  padding:72px 0 96px;
}

.article-body .wrap {
  max-width:760px;
}

.article-body h2 {
  font-size:1.35rem; font-weight:700; color:var(--ink); margin:44px 0 16px;
}

.article-body h2:first-child {
  margin-top:0;
}

.article-subhead {
  font-size:1.05rem; font-weight:700; color:var(--accent); margin:32px 0 12px;
}

.article-body ul.article-list {
  list-style:none; margin:0 0 24px; padding:0;
}

.article-body ul.article-list li {
  position:relative; padding-left:22px; margin-bottom:14px;
  font-size:1.02rem; line-height:1.75; color:var(--ink-soft);
}

.article-body ul.article-list li::before {
  content:"";
  position:absolute; left:0; top:9px;
  width:7px; height:7px; border-radius:50%;
  background:var(--accent);
}

.article-body ul.article-list li strong {
  color:var(--ink); font-weight:700;
}

.article-body .body-text {
  max-width:var(--measure);
}

.article-body p.body-text {
  font-size:1.02rem; line-height:1.8; color:var(--ink-soft); margin:0 0 20px;
}

.article-body p.body-text strong {
  color:var(--ink); font-weight:700;
}

.article-example {
  margin:24px 0; padding:18px 20px;
  background:var(--accent-soft); border-radius:8px;
  font-size:.92rem; color:var(--ink); line-height:1.7;
}

.article-example p {
  max-width:var(--measure);
}

.article-example strong {
  color:var(--ink); font-weight:700;
}

/* Wide article tables scroll sideways inside their own box on narrow phones,
   instead of making the whole page scroll */
.table-scroll { overflow-x:auto; }

.article-table,
.article-body table {
  width:100%; border-collapse:collapse; margin:24px 0 32px;
  font-size:.92rem;
}

.article-table th,
.article-body table th {
  text-align:left; background:var(--paper-2); color:var(--ink);
  font-weight:700; padding:12px 16px; border:1px solid rgba(0,0,0,0.1);
}

.article-table td,
.article-body table td {
  padding:12px 16px; border:1px solid rgba(0,0,0,0.1); color:var(--ink-soft);
  line-height:1.6; vertical-align:top;
}

.article-table td strong, .article-table th strong {
  color:var(--ink);
}

.article-footnote {
  font-size:.8rem; color:var(--ink-soft); font-style:italic; margin:-8px 0 28px;
}

.article-back-link {
  display:inline-block; margin-bottom:32px; font-size:.85rem; font-weight:700;
  color:var(--accent); border-bottom:1px solid var(--accent); padding-bottom:2px;
}

section.media-list {
  background:var(--paper-2);
  padding:80px 0 96px;
}

.media-grid {
  display:flex; flex-direction:column; gap:18px;
}

.media-item {
  display:grid; grid-template-columns:140px 1fr; gap:24px;
  padding:22px 24px; border-radius:18px; box-shadow:var(--raise-sm);
}

.media-tag {
  font-size:var(--fs-label); font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  color:var(--accent); border-radius:999px; box-shadow:var(--inset-sm);
  padding:6px 12px; display:inline-block; height:fit-content; justify-self:start; white-space:nowrap;
}

.media-item h2 {
  font-size:1.02rem; font-weight:700; margin:0 0 6px; line-height:1.4;
}

.media-item p {
  font-size:.88rem; line-height:1.6; color:var(--ink-soft); margin:0; max-width:var(--measure);
}

a:hover {
  text-decoration:underline;
}

.hero-photo {
  border-radius:12px; overflow:hidden; border:1px solid var(--hairline);
}

.hero-photo img {
  width:100%; height:100%; object-fit:cover; display:block;
}

.hero-text p.eyebrow {
  margin-bottom:12px;
}

.hero-text h1 {
  font-size:clamp(2rem, 3.6vw, 2.75rem); font-weight:700; margin:0 0 16px; line-height:1.15;
}

.hero-text p {
  font-size:1rem; line-height:1.65; color:var(--muted-on-dark); margin:0 0 16px; max-width:var(--measure);
}

.hero-text p:last-child,
.hero-text p:has(+ .hero-ctas) {
  margin-bottom:0;
}

.hero-text strong {
  color:var(--off-white);
}

/* Links in the intro, not the hero buttons */
.hero-text a:not(.btn-primary, .btn-ghost) {
  color:var(--accent-soft);
}

section.engagements {
  background:var(--paper-2);
  padding:88px 0;
}

.accordion {
  display:flex; flex-direction:column; gap:16px;
}

details.event {
  padding:0 18px; border-radius:16px; box-shadow:var(--raise-sm);
}

details.event summary {
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:20px 4px;
  font-weight:700;
  font-size:.98rem;
}

details.event summary::-webkit-details-marker {
  display:none;
}

details.event summary .plus {
  flex-shrink:0;
  width:28px; height:28px;
  border-radius:50%;
  border:1px solid var(--control-edge);
  position:relative;
  box-shadow:3px 3px 6px var(--relief-lo), -3px -3px 6px var(--relief-hi);
  transition:box-shadow .16s ease;
}

details.event summary .plus::before,
  details.event summary .plus::after {
  content:""; position:absolute; background:var(--accent);
  top:50%; left:50%; transform:translate(-50%,-50%);
}

details.event summary .plus::before {
  width:10px; height:1.5px;
}

details.event summary .plus::after {
  width:1.5px; height:10px; transition:transform .2s ease;
}

details.event[open] summary .plus::after {
  transform:translate(-50%,-50%) scaleY(0);
}

details.event[open] summary .plus {
  border-color:var(--accent); box-shadow:var(--inset-sm);
}

details.event .event-body {
  padding:0 4px 24px; max-width:820px;
}

details.event .event-body p {
  font-size:.92rem; line-height:1.7; color:var(--ink-soft); margin:0 0 12px; max-width:var(--measure);
}

details.event .event-body p:last-child {
  margin-bottom:0;
}

/* Event links: accent text with an upturned arrow; the arrow is an inline
   block, so the link's underline on hover skips it */
details.event .event-link a {
  color:var(--accent); font-weight:700;
}

details.event .event-link a::after {
  content:"\2192"; content:"\2192" / "";   /* decorative: screen readers skip it */
  display:inline-block; margin-left:.4em;
  transform:rotate(-45deg); transition:transform .18s ease;
}

details.event .event-link a:hover {
  text-underline-offset:3px;
}

details.event .event-link a:hover::after {
  transform:rotate(-45deg) translateX(3px);
}

details.event .event-link a:focus-visible {
  outline:2px solid var(--accent); outline-offset:2px;
}

.contact-form {
  color-scheme:dark;   /* dark date-picker icon and pop-up */
  text-align:left;
  background:var(--bg-dark);
  border-radius:20px;
  padding:32px;
  box-shadow:var(--raise);
  max-width:720px;
  margin:0 auto;
}

.form-row {
  margin-bottom:18px;
}

.form-row label {
  display:block;
  font-size:var(--fs-label);
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--muted-on-dark);
  margin-bottom:8px;
}

.form-row input,
  .form-row textarea {
  width:100%;
  background:var(--bg-dark);
  border:1px solid var(--control-edge);
  border-radius:10px;
  padding:12px 14px;
  font-family:'Manrope','Manrope fallback',sans-serif;
  font-size:.95rem;
  color:var(--off-white);
  box-shadow:var(--inset-sm);
  transition:border-color .2s ease;
}

.form-row textarea {
  resize:vertical; min-height:110px;
}

.form-row input:focus,
  .form-row textarea:focus {
  outline:2px solid var(--accent-on-dark); outline-offset:2px;
  border-color:var(--accent-on-dark);
}

.form-row input::placeholder,
  .form-row textarea::placeholder {
  color:var(--placeholder-on-dark);
}

.form-error {
  color:var(--error-on-dark); font-size:.8rem; margin-top:6px;
}

/* Spam trap -- kept off-screen (not display:none, which some bots skip) */
.form-honeypot {
  position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden;
}

.form-submit {
  width:100%;
  background:var(--accent-fill);
  color:var(--off-white);
  border:none;
  border-radius:10px;
  padding:14px;
  font-family:'Manrope','Manrope fallback',sans-serif;
  font-size:.9rem;
  font-weight:700;
  letter-spacing:.02em;
  cursor:pointer;
  box-shadow:var(--raise-sm);
  transition:box-shadow .16s ease, transform .16s ease;
}

.form-submit:hover {
  background:var(--accent-hover);
}

.form-submit:active {
  box-shadow:var(--accent-pressed); transform:translateY(1px);
}

.alt-contact {
  margin-top:36px;
  font-size:.88rem;
  color:var(--muted-on-dark);
}

.alt-contact a {
  color:var(--off-white);
  border-bottom:1px solid var(--accent);
  padding-bottom:1px;
  font-weight:600;
}

.alt-contact a:hover {
  color:var(--accent-soft);
}

.profile-photo {
  width:168px; height:168px; border-radius:50%; overflow:hidden;
  margin:0 auto 24px; border:2px solid var(--hairline);
  display:flex; align-items:center; justify-content:center;
  background: radial-gradient(circle at 30% 20%, var(--accent-soft), transparent 60%), var(--bg-dark-2);
}

.profile-photo img {
  width:100%; height:100%; object-fit:cover; display:block;
}

.hero .role {
  font-size:.95rem; color:var(--accent-on-dark); font-weight:700; margin-bottom:22px;
}

.bio-section {
  padding:88px 0 96px;
}

.bio-section .wrap {
  max-width:760px;
}

.bio-section p {
  font-size:1.02rem; line-height:1.85; color:var(--ink-soft); margin:0 0 24px; max-width:var(--measure);
}

.bio-section p:last-child {
  margin-bottom:0;
}

.back-link {
  display:inline-block; margin-bottom:32px; font-size:.85rem; font-weight:700;
  color:var(--accent); border-bottom:1px solid var(--accent); padding-bottom:2px;
}

.profile-photo .initials {
  font-family:'Manrope','Manrope fallback',sans-serif; font-weight:800; font-size:3rem; color:var(--accent);
}

/* ---------- Status pages (404, 500) and search ---------- */
.hero.hero--status { padding:72px 0 64px; }
.hero--status .hero-ctas { justify-content:center; }

.visually-hidden {
  position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap;
}

.search-form {
  display:flex; gap:10px; width:100%; max-width:520px; margin-top:28px;
}

.search-form input {
  flex:1; min-width:0;
  background:var(--bg-dark);
  border:1px solid var(--control-edge);
  box-shadow:var(--inset-sm);
  border-radius:999px;
  padding:12px 20px;
  font-family:'Manrope','Manrope fallback',sans-serif;
  font-size:.95rem;
  color:var(--off-white);
  transition:border-color .2s ease;
}

.search-form input:focus { outline:2px solid var(--accent-on-dark); outline-offset:2px; border-color:var(--accent-on-dark); }
.search-form input::placeholder { color:var(--placeholder-on-dark); }
.search-form button { border:none; cursor:pointer; font-family:'Manrope','Manrope fallback',sans-serif; }

.search-count {
  font-size:.78rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color:var(--ink-soft); margin:0 0 18px;
}

.search-results { list-style:none; margin:0; padding:0; max-width:820px; }

.search-result { border-top:1px solid rgba(0,0,0,0.1); }
.search-result:last-child { border-bottom:1px solid rgba(0,0,0,0.1); }

.search-result a {
  display:block; padding:22px 0; color:inherit;
}

.search-result h2 {
  font-size:1.1rem; font-weight:700; margin:0 0 6px; transition:color .2s ease;
}

.search-result a:hover h2 { color:var(--accent); }

.search-result p {
  font-size:.92rem; line-height:1.65; color:var(--ink-soft); margin:0 0 6px;
}

.search-result-url { font-size:.78rem; color:var(--accent); overflow-wrap:anywhere; }

.search-pagination {
  display:flex; justify-content:space-between; max-width:820px; margin-top:28px;
}

.search-empty h2 { font-size:1.4rem; font-weight:700; margin:0 0 10px; }
.search-empty p { font-size:.98rem; line-height:1.7; color:var(--ink-soft); margin:0; }
.search-empty a { color:var(--accent); font-weight:700; }

@media screen and (max-width:820px) {
  .hero.hero--status { padding:48px 0 44px; }
  .search-form { flex-direction:column; }
  .search-form button { width:100%; }
}

/* ---------- News bar block (static/js/news-bar.js) ---------- */

.news-bar { --relief-hi:var(--relief-hi-blue); --relief-lo:var(--relief-lo-blue); background:var(--accent-soft); color:var(--ink); }
.news-bar-row { display:flex; align-items:center; gap:18px; padding-block:12px; min-height:56px; }
.news-label {
  flex-shrink:0; padding:4px 10px; border-radius:999px;
  background:var(--accent); color:var(--off-white);
  box-shadow:3px 3px 7px var(--relief-lo), -3px -3px 7px var(--relief-hi);
  font-size:var(--fs-label); font-weight:700; letter-spacing:.16em; text-transform:uppercase;
}
.news-items { flex:1; min-width:0; margin:0; padding:0; list-style:none; display:flex; align-items:center; }
.news-item { font-size:.92rem; line-height:1.5; }
.news-item:not([hidden]) { animation:news-in .35s ease; }
.news-item a { margin-left:6px; font-weight:700; color:var(--accent); white-space:nowrap; }
.news-item a:hover { text-decoration:underline; text-underline-offset:3px; }
.news-controls { flex-shrink:0; display:flex; align-items:center; gap:4px; }
.news-controls[hidden] { display:none; }
.news-dot {
  width:22px; height:22px; padding:0; border:0; background:none; cursor:pointer;
  display:grid; place-items:center; color:var(--ink);
}
.news-dot::before { content:""; width:9px; height:9px; border-radius:50%; border:1px solid var(--control-edge-blue); box-sizing:border-box; box-shadow:inset 2px 2px 3px var(--relief-lo), inset -2px -2px 3px var(--relief-hi); }
.news-dot[aria-current="true"]::before { background:var(--accent); border-color:var(--accent); box-shadow:2px 2px 4px var(--relief-lo), -2px -2px 4px var(--relief-hi); }
.news-pause {
  width:30px; height:30px; margin-left:6px; padding:0; border-radius:50%; cursor:pointer;
  display:grid; place-items:center;
  background:transparent; color:var(--accent); border:1px solid var(--control-edge-blue);  /* 4.0:1 on the bar */
  box-shadow:3px 3px 7px var(--relief-lo), -3px -3px 7px var(--relief-hi);
  transition:box-shadow .16s ease;
}
.news-pause[aria-pressed="true"] { box-shadow:inset 3px 3px 6px var(--relief-lo), inset -3px -3px 6px var(--relief-hi); }
.news-pause svg { width:10px; height:10px; fill:currentColor; }
.news-pause .news-icon-play, .news-pause[aria-pressed="true"] .news-icon-pause { display:none; }
.news-pause[aria-pressed="true"] .news-icon-play { display:block; }
.news-dot:focus-visible, .news-pause:focus-visible, .news-item a:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

@keyframes news-in { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }

@media (prefers-reduced-motion:reduce) {
  .news-item:not([hidden]) { animation:none; }
  .news-pause { transition:none; }
}

@media screen and (max-width:820px) {
  .news-bar-row { flex-wrap:wrap; gap:8px 12px; }
  .news-items { flex-basis:100%; order:3; align-items:flex-start; }
  .news-controls { margin-left:auto; }
}

/* ---------- Screenshot spotlight block (static/js/spotlight.js) ---------- */

/* The slides share one grid cell, so the stage is as tall as a screen; the ones
   beside the front screen are moved by a share of their own width */
.spotlight {
  --w:min(760px, 72%); --side-x:46%; --side-s:.78; --side-o:.55;
  background:var(--paper-2); padding:56px 0; overflow-x:clip;
}
.spotlight-stage { display:grid; justify-items:center; touch-action:pan-y; }
.spotlight-slide {
  grid-area:1 / 1; width:var(--w); cursor:pointer;
  background:var(--frame-bg); border-radius:14px; overflow:hidden; border:1px solid rgba(255,255,255,0.10);
  box-shadow:0 20px 40px rgba(5,8,20,0.35);
  transition:transform .6s cubic-bezier(.2,.7,.2,1), opacity .6s ease, filter .6s ease;
}
.spotlight-slide[data-pos="0"] { z-index:3; cursor:default; box-shadow:0 34px 70px rgba(5,8,20,0.45), 0 0 0 1px rgba(143,163,255,0.10); }
.spotlight-slide[data-pos="-1"], .spotlight-slide[data-pos="1"] { z-index:2; opacity:var(--side-o); filter:saturate(.6) brightness(.85); }
.spotlight-slide[data-pos="-1"] { transform:translateX(calc(-1 * var(--side-x))) scale(var(--side-s)); }
.spotlight-slide[data-pos="1"] { transform:translateX(var(--side-x)) scale(var(--side-s)); }
.spotlight-slide[data-pos="hidden"] { z-index:1; opacity:0; transform:scale(.6); pointer-events:none; }
.spotlight-bar { display:flex; align-items:center; gap:7px; padding:11px 14px; background:var(--frame-bar); border-bottom:1px solid rgba(255,255,255,0.07); }
.spotlight-bar i { width:9px; height:9px; border-radius:50%; background:var(--frame-dot); }
.spotlight-bar span { margin-left:10px; font-size:var(--fs-label); font-weight:600; letter-spacing:.06em; text-transform:lowercase; color:var(--frame-label); }
.spotlight-frame { aspect-ratio:16 / 10.4; }
.spotlight-frame img { display:block; width:100%; height:100%; object-fit:contain; user-select:none; }

/* Right after a hero, the screens can rise into it: the hero grows at the
   bottom and the spotlight moves up over it, clear at the top */
.hero:has(+ .spotlight--rise) { padding-bottom:170px; }
.spotlight--rise {
  position:relative; margin-top:-150px; padding-top:0;
  background:linear-gradient(transparent 150px, var(--paper-2) 150px);
}

.spotlight-captions { max-width:560px; min-height:5em; margin:24px auto 0; text-align:center; }
.spotlight-caption p { margin:0; }
.spotlight-caption .spotlight-title { font-size:1.1rem; font-weight:700; margin-bottom:6px; }
.spotlight-text { line-height:1.6; color:var(--ink-soft); }

.spotlight-controls { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:16px 28px; margin-top:18px; }
.spotlight-controls[hidden] { display:none; }
.spotlight-segs { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0, 1fr); gap:10px; width:min(620px, 100%); }
.spotlight-seg {
  display:flex; flex-direction:column; gap:8px; padding:8px 0 4px;
  border:0; background:transparent; cursor:pointer; text-align:left; font:inherit;
}
.spotlight-seg-label { font-size:var(--fs-label); font-weight:700; letter-spacing:.04em; color:var(--ink-soft); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.spotlight-seg[aria-current="true"] .spotlight-seg-label { color:var(--ink); }
.spotlight-seg:hover .spotlight-seg-label { color:var(--accent); }
.spotlight-seg-track { position:relative; display:block; height:3px; border-radius:3px; background:var(--control-edge); overflow:hidden; }
.spotlight-seg-track i { position:absolute; inset:0 auto 0 0; width:0; background:var(--accent); }
.spotlight-buttons { display:flex; align-items:center; gap:12px; }
.spotlight-arrow, .spotlight-pause {
  height:44px; border-radius:999px; cursor:pointer;
  background:var(--paper-2); color:var(--ink); border:1px solid var(--control-edge); box-shadow:var(--raise-sm);
  transition:border-color .2s ease, transform .16s ease;
}
.spotlight-arrow { width:44px; padding:0; display:grid; place-items:center; }
.spotlight-pause { display:inline-flex; align-items:center; gap:8px; padding:0 18px; font:inherit; font-size:.8rem; font-weight:700; letter-spacing:.02em; }
.spotlight-pause[hidden] { display:none; }
.spotlight-arrow:hover, .spotlight-pause:hover { border-color:var(--accent); }
.spotlight-arrow:active, .spotlight-pause:active { box-shadow:var(--inset); transform:translateY(1px); }
.spotlight-arrow svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.spotlight-pause svg { width:14px; height:14px; fill:currentColor; }
.spotlight-pause .spotlight-icon-play, .spotlight-pause.is-stopped .spotlight-icon-pause { display:none; }
.spotlight-pause.is-stopped .spotlight-icon-play { display:block; }
.spotlight-seg:focus-visible, .spotlight-arrow:focus-visible, .spotlight-pause:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }

@media (prefers-reduced-motion:reduce) {
  .spotlight-slide, .spotlight-arrow, .spotlight-pause { transition:none; }
}

@media screen and (max-width:820px) {
  .spotlight { --w:100%; padding:40px 0; }
  .spotlight-slide[data-pos="-1"], .spotlight-slide[data-pos="1"] { opacity:0; pointer-events:none; }
  .hero:has(+ .spotlight--rise) { padding-bottom:110px; }
  .spotlight--rise { margin-top:-90px; padding-top:0; background:linear-gradient(transparent 90px, var(--paper-2) 90px); }
  .spotlight-seg-label { display:none; }
  .spotlight-seg { padding-block:12px; }
}

/* ---------- Checklist block (static/js/checklist.js) ---------- */

section.block.checklist { padding-top:64px; }
.checklist-toolbar {
  display:flex; flex-wrap:wrap; align-items:center; gap:12px 24px;
  max-width:820px; margin-bottom:40px; padding:18px 22px;
  border-radius:18px; box-shadow:var(--raise-sm);
}
.checklist-toolbar[hidden] { display:none; }
.checklist-progress { margin:0; font-size:.95rem; color:var(--ink-soft); }
.checklist-progress strong { color:var(--ink); font-size:1.15rem; }
.checklist-actions { display:flex; flex-wrap:wrap; gap:10px; margin-left:auto; }
.checklist-btn {
  font:inherit; font-size:.82rem; font-weight:700; letter-spacing:.02em;
  padding:10px 20px; border-radius:999px; cursor:pointer;
  background:var(--accent-fill); color:var(--off-white); border:1px solid transparent;
  box-shadow:5px 5px 12px var(--relief-lo), -5px -5px 12px var(--relief-hi);
  transition:box-shadow .16s ease, transform .16s ease;
}
.checklist-btn:hover { background:var(--accent-hover); }
.checklist-btn:active { box-shadow:var(--accent-pressed); transform:translateY(1px); }
.checklist-btn--quiet { background:var(--paper-2); color:var(--ink); border-color:var(--control-edge); box-shadow:var(--raise-sm); }
.checklist-btn--quiet:hover { background:var(--paper-2); color:var(--accent); }
.checklist-btn--quiet:active { box-shadow:var(--inset); }
.checklist-btn:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.checklist-note { flex-basis:100%; margin:0; font-size:.78rem; color:var(--ink-soft); }

.checklist-group { max-width:820px; margin-bottom:44px; }
.checklist-group-title {
  display:flex; align-items:baseline; justify-content:space-between; gap:16px;
  font-size:1.2rem; font-weight:700; line-height:1.35;
  margin:0 0 14px; padding-bottom:10px; border-bottom:2px solid var(--ink);
}
.checklist-count { font-size:.8rem; font-weight:600; color:var(--ink-soft); white-space:nowrap; }
.checklist-items { list-style:none; margin:0; padding:0; }
.checklist-item {
  display:grid; grid-template-columns:22px 1fr; gap:14px;
  padding:16px 0; border-bottom:1px solid rgba(0,0,0,0.1);
}
/* A socket with an edge when empty; ticked, it pops out in blue with a white tick */
.checklist-item input {
  appearance:none; -webkit-appearance:none;
  width:22px; height:22px; margin:1px 0 0; cursor:pointer;
  display:grid; place-items:center;
  border:1px solid var(--control-edge); border-radius:7px;
  background:var(--paper-2); box-shadow:var(--inset-sm);
  transition:box-shadow .16s ease;
}
.checklist-item input::after {
  content:""; width:6px; height:11px; margin-top:-2px;
  border:solid var(--off-white); border-width:0 2.5px 2.5px 0;
  transform:rotate(45deg); opacity:0;
}
.checklist-item input:checked {
  background:var(--accent-fill); border-color:transparent;
  box-shadow:3px 3px 6px var(--relief-lo), -3px -3px 6px var(--relief-hi);
}
.checklist-item input:checked::after { opacity:1; }
.checklist-item input:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.checklist-item label { font-size:1rem; font-weight:600; line-height:1.5; cursor:pointer; }
.checklist-item input:checked + .checklist-text label { color:var(--ink-soft); }
.checklist-priority {
  display:inline-block; margin-left:8px; padding:2px 9px; vertical-align:2px;
  font-size:var(--fs-label); font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  border-radius:999px; border:1px solid currentColor;
}
.checklist-priority--essential { color:var(--accent); border-color:transparent; box-shadow:var(--inset-sm); }
.checklist-priority--recommended { color:var(--ink-soft); }
.checklist-detail { margin-top:6px; font-size:.92rem; line-height:1.65; color:var(--ink-soft); }
.checklist-detail p { margin:0 0 8px; }
.checklist-detail ul { margin:6px 0 8px; padding-left:20px; }
.checklist-detail a { color:var(--accent); text-decoration:underline; }

@media (prefers-reduced-motion:reduce) {
  .linkedin-btn, .doc-cta, .checklist-btn, .checklist-item input, details.event summary .plus,
  details.event .event-link a::after, .btn-primary, .btn-ghost, .cta .btn, .form-submit { transition:none; }
}

@media screen and (max-width:820px) {
  .checklist-actions { margin-left:0; }
  .checklist-group-title { flex-direction:column; gap:4px; }
}

/* ---------- Keyframe animations ---------- */

@keyframes marquee-scroll{
    from{transform:translateX(0);}
    to{transform:translateX(-50%);}
  }

/* ---------- Shared responsive rules ---------- */

@media screen and (max-width:820px) {
  .stat-bar { grid-template-columns:1fr; gap:20px; text-align:center; }
  .stat-bar .label { margin-inline:auto; }
  .discipline-grid { grid-template-columns:1fr; gap:18px; }
  .marquee-track { gap:64px; }
  .discipline { padding:26px 22px; border-radius:18px; box-shadow:var(--raise-sm); }
  nav.links { display:none; }
  .footer-row { flex-direction:column; align-items:flex-start; }
  .value-grid { grid-template-columns:1fr; }
  .grid--2col { grid-template-columns:1fr; }
  .leader { grid-template-columns:1fr; gap:24px; }
  .leader > * { min-width:0; }
  .credentials span { white-space:normal; } /* long credentials overflowed narrow phones */
  .leader-photo-col { flex-direction:row; align-items:center; }
  .leader-photo { width:120px; height:120px; flex-shrink:0; }
  .hero-grid { grid-template-columns:1fr; }
  .hero-graphic { width:200px; margin-top:32px; }
  .service { grid-template-columns:1fr; gap:24px; padding:32px 22px; margin:0 0 24px; }
  .tenet-grid { grid-template-columns:1fr; }
  .layer { grid-template-columns:1fr; gap:14px; padding:24px 22px; }
  .tl-body { grid-template-columns:1fr; }
  .badge-grid { grid-template-columns:repeat(2,1fr); }
  .doc-card { grid-template-columns:1fr; gap:12px; padding:20px; }
  .doc-icon { display:none; }
  .doc-cta { width:fit-content; }
  .media-item { grid-template-columns:1fr; gap:10px; padding:20px; }
  .hero-photo { max-width:220px; }

  .hamburger-btn { display:flex; }

  .hamburger-btn[aria-expanded="true"] span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
  .hamburger-btn[aria-expanded="true"] span:nth-child(2) { opacity:0; }
  .hamburger-btn[aria-expanded="true"] span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

  .site-nav:has(.hamburger-btn[aria-expanded="true"]) .mobile-menu { display:flex; }

  .mobile-menu {
    display:none;
    flex-direction:column;
    background:var(--paper);
    border-top:1px solid rgba(0,0,0,0.1);
    padding:8px 24px 20px;
  }

  .mobile-menu > a {
    color:var(--ink-soft);
    font-size:.9rem;
    padding:14px 0;
    border-bottom:1px solid rgba(0,0,0,0.1);
  }

  .mobile-menu > a.current { color:var(--accent); }

  .mobile-menu details { border-bottom:1px solid rgba(0,0,0,0.1); }

  .mobile-menu details summary {
    color:var(--ink-soft);
    font-size:.9rem;
    padding:14px 0;
    cursor:pointer;
    list-style:none;
    display:flex;
    align-items:center;
    justify-content:space-between;
  }

  .mobile-menu details summary::-webkit-details-marker { display:none; }

  .mobile-menu details summary::after {
    content:"";
    width:7px; height:7px;
    border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor;
    transform:rotate(45deg);
    transition:transform .2s ease;
  }

  .mobile-menu details[open] summary::after { transform:rotate(225deg); }
  .mobile-menu details[open] summary { color:var(--ink); }

  .mobile-menu details a {
    display:block;
    color:var(--ink-soft);
    font-size:.85rem;
    padding:10px 0 10px 16px;
  }

  .mobile-menu details a.current { color:var(--accent); }
  .mobile-menu > a:last-child { border-bottom:none; }
}

@media screen and (max-width:900px) {
  .hero-grid { grid-template-columns:1fr; }
  /* The hero's side graphic (HeroBlock.side_html) only reads well beside the text */
  .hero-side { display:none; }
}

/* Between the hamburger breakpoint and full desktop width, the full nav
   (logo + six items) doesn't fit at its normal spacing -- tighten it */
@media screen and (min-width:821px) and (max-width:1100px) {
  nav.links { gap:18px; }
  nav.links a, .nav-dropdown-trigger { font-size:.9rem; }
  .nav-row { padding-block:33px; }
  .brand img { height:42px; }
}

/* .service bleeds 40px past the content column, so its text lines up with
   the heading, but .wrap only has 32px of side padding -- below ~1200px that
   pushed the cards 8px past the viewport and made the Services page scroll
   sideways */
@media screen and (min-width:821px) and (max-width:1200px) {
  .service { padding-inline:32px; margin-inline:-32px; }
}

/* Centered radial fade + padding variant for centered-hero pages (Contact, bio pages) */
.hero.hero--centered::before,
.hero.hero--centered .hero-stars {
  mask-image:radial-gradient(circle at center, rgba(0,0,0,.9), transparent 72%);
}

.hero.hero--centered {
  text-align:center;
  padding:44px 0 20px;
}

.hero.hero--centered .hero-inner {
  display:flex; flex-direction:column; align-items:center;
  max-width:760px; margin:0 auto;
}

/* Home hero special-case: stat bar supplies its own bottom padding */
.hero.hero--home { padding:44px 0 0; }

/* ---------- Home page ---------- */
/* The hero and its figures sit on one deep ground with the Resolving Wave
   (home.js): a wave sweeps across a grid of drifting points, which snap to the
   grid behind it. The overlay darkens the words' side, and on a phone the whole
   hero, so the text keeps AA contrast. The star sky is hidden here; other pages
   keep it. */
.home-hero { position:relative; isolation:isolate; overflow:hidden; background:var(--bg-deep); color:var(--off-white); }
.home-hero canvas { position:absolute; inset:0; width:100%; height:100%; z-index:-2; }
.home-hero::after {
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:
    linear-gradient(90deg, rgba(13,15,20,.94) 0%, rgba(13,15,20,.78) 38%, rgba(13,15,20,0) 70%),
    linear-gradient(0deg, rgba(13,15,20,.95) 0%, rgba(13,15,20,0) 32%);
}
.home-hero .hero-sky, .home-hero .hero::before { display:none; }
.home-hero .hero, .home-hero .stat-bar-section { background:none; isolation:auto; }
.home-hero .hero { padding:84px 0 56px; }
.home-hero .hero h1 {
  font-size:clamp(2.4rem, 5vw, 4.2rem); font-weight:800; line-height:1.04; letter-spacing:-.025em;
  max-width:15ch; margin:16px 0 0;
}
.home-hero .hero h1 br { display:none; }
.home-hero .hero h1 span { display:block; }
.home-hero .hero p.lede { font-size:1.08rem; line-height:1.7; max-width:52ch; margin-top:24px; }
.home-hero .hero-ctas { margin-top:34px; }
/* The browser's ring and the accent are under 3:1 on the deep ground; the on-dark accent is 8.1:1 */
.home-hero :focus-visible { outline:2px solid var(--accent-on-dark); outline-offset:3px; }

/* Pausing the motion (motion.js): no visible control; like a skip link, it shows
   only when a keyboard user tabs to it. Reduced motion has nothing to pause */
.motion-toggle {
  position:absolute; z-index:2; top:12px; left:max(16px, (100% - 1120px) / 2 + 32px);
  padding:8px 16px; border-radius:999px; cursor:pointer;
  border:1px solid var(--control-edge); background:var(--bg-deep); color:var(--off-white);
  font:700 .85rem/1.2 'Manrope','Manrope fallback',system-ui,sans-serif;
}
.motion-toggle:not(:focus-visible) {
  clip-path:inset(50%); width:1px; height:1px; padding:0; border:0; overflow:hidden; white-space:nowrap;
}
.still .motion-toggle { display:none; }

/* The figures: a glass strip across the foot of the graphic, each figure a tile
   in the bento's radius family, with its inner light and soft drop, quieter and still */
.home-hero .stat-bar-section {
  position:relative;
  background:rgba(13,15,20,.55); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
}
.home-hero .stat-bar { padding-block:20px 24px; gap:18px; }
.home-hero .stat-bar > div {
  padding:20px 24px 22px; border-radius:16px;
  display:flex; flex-direction:column; gap:6px;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  box-shadow:0 1px 0 rgba(255,255,255,.08) inset, 0 0 0 1px rgba(255,255,255,.06) inset, 0 18px 40px -28px rgba(0,0,0,.7);
}
.home-hero .stat-bar .num {
  font-size:clamp(1.7rem, 2.8vw, 2.3rem); letter-spacing:-.02em; line-height:1.2;
  white-space:nowrap; font-variant-numeric:tabular-nums;
}
.home-hero .stat-bar .label { margin-top:0; font-size:.86rem; line-height:1.45; max-width:30ch; }

/* The disciplines as a bento, when there are exactly five: the first is the
   large dark tile, the last runs the full width. Any other count keeps the
   shared three-column grid. The numbers are left out: the tiles aren't steps */
.home .disciplines { padding:112px 0 120px; }
.home .disciplines .section-head h2 { font-size:clamp(1.8rem, 3.2vw, 2.6rem); font-weight:800; letter-spacing:-.015em; line-height:1.12; }
.home .discipline-grid:has(> :nth-child(5):last-child) {
  grid-template-columns:.85fr .85fr 1.15fr 1.15fr;
  grid-template-areas:"a a b b" "a a c d" "e e e e";
  gap:18px; perspective:1200px;
}
.home .discipline-grid:has(> :nth-child(5):last-child) > .discipline {
  --mx:50%; --my:50%; --rx:0deg; --ry:0deg;
  position:relative; overflow:hidden; isolation:isolate;
  background:var(--paper); border-radius:20px; padding:30px;
  box-shadow:0 1px 0 rgba(255,255,255,.8) inset, 0 18px 40px -24px rgba(22,24,29,.35);
  transform:rotateX(var(--rx)) rotateY(var(--ry));
  transition:transform .5s cubic-bezier(.16,1,.3,1), box-shadow .3s;
}
/* The glow under the pointer (home.js moves --mx and --my) */
.home .discipline-grid:has(> :nth-child(5):last-child) > .discipline::before {
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; opacity:0; transition:opacity .3s;
  background:radial-gradient(360px circle at var(--mx) var(--my), rgba(24,62,235,.12), transparent 60%);
}
.home .discipline-grid:has(> :nth-child(5):last-child) > .discipline:hover::before { opacity:1; }
.home .discipline-grid:has(> :nth-child(5):last-child) > .discipline:hover {
  box-shadow:0 1px 0 rgba(255,255,255,.8) inset, 0 28px 50px -24px rgba(22,24,29,.45);
}
.home .discipline-grid:has(> :nth-child(5):last-child) .idx { display:none; }
.home .discipline-grid:has(> :nth-child(5):last-child) h3 { font-size:1.3rem; letter-spacing:-.01em; }
.home .discipline-grid:has(> :nth-child(5):last-child) .tag {
  display:block; padding:0; box-shadow:none; margin:8px 0 14px; font-size:.84rem; font-weight:700;
}
.home .discipline-grid:has(> :nth-child(5):last-child) p { font-size:.94rem; max-width:48ch; }
.home .discipline-grid:has(> :nth-child(5):last-child) > :nth-child(1) {
  grid-area:a; min-height:420px; display:flex; flex-direction:column; justify-content:flex-end;
  background:var(--bg-dark); color:var(--off-white);
}
/* Three rings in the corner of the large tile */
.home .discipline-grid:has(> :nth-child(5):last-child) > :nth-child(1)::after {
  content:""; position:absolute; z-index:-1; right:-80px; top:-80px; width:340px; height:340px; border-radius:50%;
  border:1px solid rgba(143,163,255,.25);
  background:
    radial-gradient(circle, rgba(24,62,235,.5) 0 30px, transparent 60px),
    radial-gradient(circle, transparent 59px, rgba(143,163,255,.4) 59px 60px, transparent 61px),
    radial-gradient(circle, transparent 119px, rgba(143,163,255,.18) 119px 120px, transparent 121px);
}
.home .discipline-grid:has(> :nth-child(5):last-child) > :nth-child(1)::before {
  background:radial-gradient(420px circle at var(--mx) var(--my), rgba(143,163,255,.18), transparent 60%);
}
.home .discipline-grid:has(> :nth-child(5):last-child) > :nth-child(1) h3 { font-size:clamp(1.8rem, 2.8vw, 2.4rem); color:var(--off-white); }
.home .discipline-grid:has(> :nth-child(5):last-child) > :nth-child(1) .tag { color:var(--accent-on-dark); }
.home .discipline-grid:has(> :nth-child(5):last-child) > :nth-child(1) p { color:var(--muted-on-dark); font-size:1.05rem; }
.home .discipline-grid:has(> :nth-child(5):last-child) > :nth-child(2) { grid-area:b; }
.home .discipline-grid:has(> :nth-child(5):last-child) > :nth-child(3) { grid-area:c; padding:26px; }
.home .discipline-grid:has(> :nth-child(5):last-child) > :nth-child(4) { grid-area:d; padding:26px; }
.home .discipline-grid:has(> :nth-child(5):last-child) > :nth-child(3) h3,
.home .discipline-grid:has(> :nth-child(5):last-child) > :nth-child(4) h3 { font-size:1.12rem; }
/* The wide tile: words on the left, a dot lattice fading in on the right */
.home .discipline-grid:has(> :nth-child(5):last-child) > :nth-child(5) {
  grid-area:e; padding-right:calc(50% + 15px);
  background:linear-gradient(120deg, var(--paper) 40%, var(--accent-soft));
}
.home .discipline-grid:has(> :nth-child(5):last-child) > :nth-child(5)::after {
  content:""; position:absolute; z-index:-1; right:30px; top:50%; width:calc(50% - 45px); height:150px; translate:0 -50%;
  border-radius:14px; opacity:.55;
  background:radial-gradient(var(--accent) 1.4px, transparent 1.8px) 0 0/16px 16px;
  mask-image:linear-gradient(90deg, transparent, black 35%, black 75%, transparent);
  -webkit-mask-image:linear-gradient(90deg, transparent, black 35%, black 75%, transparent);
}

/* The closing band: the line on the left, the button on the right, over a dot field */
.home .cta {
  position:relative; overflow:hidden; isolation:isolate; text-align:left;
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:24px 48px;
  padding:64px max(32px, (100% - 1120px) / 2 + 32px);
}
.home .cta::before {
  content:""; position:absolute; z-index:-1; right:-10%; top:-40%; width:60%; height:180%; opacity:.6;
  background:radial-gradient(rgba(143,163,255,.55) 1.2px, transparent 1.6px) 0 0/18px 18px;
  mask-image:radial-gradient(closest-side, black, transparent);
  -webkit-mask-image:radial-gradient(closest-side, black, transparent);
}
.home .cta h2 {
  margin:0; max-width:22ch; font-size:clamp(1.6rem, 3vw, 2.4rem); font-weight:800; line-height:1.12; letter-spacing:-.02em;
}
.home .cta .btn {
  background:var(--accent-fill); border-color:transparent; padding:13px 28px; font-size:.85rem; font-weight:700; letter-spacing:0;
}
.home .cta .btn:hover { background:var(--accent-hover); }

@media screen and (max-width:960px) {
  .home .discipline-grid:has(> :nth-child(5):last-child) {
    grid-template-columns:1fr 1fr; grid-template-areas:"a a" "b b" "c d" "e e";
  }
  .home .discipline-grid:has(> :nth-child(5):last-child) > :nth-child(1) { min-height:340px; }
  .home .discipline-grid:has(> :nth-child(5):last-child) > :nth-child(5) { padding-right:30px; padding-bottom:126px; }
  .home .discipline-grid:has(> :nth-child(5):last-child) > :nth-child(5)::after {
    top:auto; bottom:24px; left:30px; width:auto; height:90px; translate:none;
  }
}
@media screen and (max-width:820px) {
  .home-hero .hero { padding:72px 0 48px; }
  .home-hero .stat-bar { text-align:left; gap:10px; }
  .home-hero .stat-bar > div {
    padding:14px 18px; border-radius:14px; display:grid; grid-template-columns:7.5rem 1fr; gap:14px; align-items:baseline;
  }
  .home-hero .stat-bar .label { margin-inline:0; }
  .home .disciplines { padding:72px 0 80px; }
  .home .cta { padding-block:48px; }
}
@media screen and (max-width:620px) {
  .home-hero::after { background:linear-gradient(0deg, rgba(13,15,20,.95) 15%, rgba(13,15,20,.6) 55%, rgba(13,15,20,.2)); }
  .home .discipline-grid:has(> :nth-child(5):last-child) { grid-template-columns:1fr; grid-template-areas:"a" "b" "c" "d" "e"; }
  .home .discipline-grid:has(> :nth-child(5):last-child) > .discipline { padding:24px; }
  .home .discipline-grid:has(> :nth-child(5):last-child) > :nth-child(1) { min-height:0; padding-top:150px; }
  .home .discipline-grid:has(> :nth-child(5):last-child) > :nth-child(1)::after { width:220px; height:220px; right:-60px; top:-70px; }
  .home .discipline-grid:has(> :nth-child(5):last-child) > :nth-child(5) { padding-bottom:126px; }
}
@media (prefers-reduced-motion:reduce) {
  .home .discipline-grid:has(> :nth-child(5):last-child) > .discipline { transition:none; }
}

/* ---------- Print ---------- */
/* Pages print in their desktop layout (the narrow-screen rules above are
   screen-only, and a printed page is only about 720px wide), black on white,
   without the menu, footer, news bar, buttons or other controls. Cards and
   checklist items aren't split across pages, and links in text print their
   address. Checklists print with the boxes as ticked. */
@media print {
  @page { margin:14mm 12mm; }
  html { font-size:13px; }
  *, *::before, *::after {
    background:transparent !important; color:#000 !important;
    box-shadow:none !important; text-shadow:none !important;
    animation:none !important; transition:none !important;
  }

  header.site-nav, footer.site-footer, wagtail-userbar, .cta, .news-bar, .trusted,
  .hero-ctas, .hero-side, .hero::before, .hero::after, .hero-sky, .home-hero canvas, .home-hero::after, .btn, .btn-primary, .btn-ghost,
  .doc-cta, .view-all, .linkedin-btn, .bio-toggle, .article-back-link, .search-form, .pagination,
  .checklist-toolbar, .checklist-count, .spotlight-controls { display:none !important; }

  .wrap { max-width:none; padding-inline:0; }
  section, .hero, .hero.hero--home, .hero.hero--status { padding-block:10px 14px !important; margin:0 !important; }
  .hero h1 { font-size:2rem; }
  .section-head { margin-bottom:14px; }
  .section-head h2 { font-size:1.5rem; }

  /* Grids drew their dividers with a coloured gap; with no backgrounds, use borders */
  .discipline-grid, .tenet-grid, .value-grid, .badge-grid { gap:0; border:1px solid #999; }
  .discipline, .tenet, .value-card, .badge { border:1px solid #999; padding:12px 14px; }
  .stat-bar { padding-block:8px; }
  .service { padding:16px 0; margin:0; }
  .media-tag, .checklist-priority { border:1px solid #000; }
  /* The reset above removes the raised shapes' shadows; cards get a rule instead */
  .layer, .doc-card, .media-item, details.event { padding-inline:0; border-radius:0; border-bottom:1px solid #999; }
  /* and a ticked box's blue fill, so the boxes print as the browser's own */
  .checklist-item input { appearance:auto; -webkit-appearance:checkbox; border:0; }
  .checklist-item input::after { display:none; }
  .service-detail li::before, .article-body ul.article-list li::before { background:#000 !important; }  /* bullet dots, which the reset above removes */

  h1, h2, h3, h4, .checklist-group-title { break-after:avoid; }
  .discipline, .tenet, .value-card, .badge, .service, .layer, .leader, .media-item, .doc-card,
  .stat-bar > *, .checklist-item, figure, img { break-inside:avoid; }
  .checklist-group { margin-bottom:18px; }
  .checklist-item { padding:8px 0; }

  p a[href^="http"]::after, li a[href^="http"]::after {
    content:" (" attr(href) ")"; font-size:.8em; word-break:break-all;
  }
  img { max-width:100% !important; }
}
