/* ============================================================================
   AIS @ Baylor: Design System (institutional skin, 2026-08)
   ----------------------------------------------------------------------------
   Register borrowed from baylor.tech: flat surfaces, 1px borders, small radii,
   bold Figtree headings with a gold underline bar, gold hover highlight on
   directory links, solid two-tier header (brand bar + charcoal nav), dark
   brand footer with a gold hairline.

   THE PALETTE LIVES IN ONE PLACE: the three BRAND HUES below, sampled from the
   official AIS triangle mark (periwinkle A, teal i, gold S). Every other color
   derives from those three ramps. To re-skin the site when the logo changes,
   edit the hues + ramps here and nothing else.
   Previous liquid-glass skin: see git history before 2026-08-18.
   ============================================================================ */

/* ----------------------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* ==== BRAND HUES (sampled from the mark; change the palette HERE) ==== */
  --perry-logo: #646FB4;   /* the A */
  --teal-logo:  #1C9488;   /* the i + dot */
  --gold-logo:  #E4B257;   /* the S */

  /* Institutional green ramp (PRIMARY; derived from the logo teal, playing
     the role Baylor green plays on baylor.tech) */
  --grn-950: #0A312C;
  --grn-900: #0D3F38;               /* footer, og backgrounds */
  --grn-800: #125349;               /* header brand bar, banner band */
  --grn-700: #17685C;               /* PRIMARY: headings, buttons, chips */
  --grn-600: #1E7A6C;               /* hover for brand fills */
  --grn-500: var(--teal-logo);
  --grn-300: #7FC2B8;
  --grn-200: #ABD8D1;
  --grn-100: #CFEAE5;
  --grn-050: #E9F5F3;

  /* Periwinkle (SECONDARY: the A's hue; pillar coding + small accents only) */
  --perry-700: #454B8C;
  --perry-500: var(--perry-logo);
  --perry-300: #A2A8D6;

  /* Teal aliases (pillar coding + info notes) */
  --teal-700: #1E7265;
  --teal-500: var(--teal-logo);
  --teal-300: #7FC2B8;

  /* Gold ramp (the accent: bars, highlights, CTAs) */
  --gold-600: #C69536;
  --gold-500: var(--gold-logo);
  --gold-300: #EFCF93;
  --gold-050: #FBF3E0;
  --gold-text: #7A5B14;             /* dark gold usable as text on light */

  /* Charcoal nav bar (baylor.tech's #383838 role, barely green-warmed) */
  --charcoal: #383A38;
  --charcoal-hover: #474A47;

  /* Brand ink: near-black (green undertone) for the surfaces the logo sits on
     (header brand bar, homepage banner, footer). Dark enough that the logo's
     periwinkle / gold / white all read clearly. Same in light and dark mode. */
  --brand-ink: #0B1C17;

  /* Neutrals (light): warm paper grays, baylor.tech family */
  --ink:        #222522;
  --ink-soft:   #3A3F3A;
  --muted:      #5F665F;
  --muted-2:    #8A908A;
  --line:       #DEDFD9;
  --line-strong:#C6C7C0;
  --surface-2:  #F3F3F1;            /* alt band bg */
  --surface-1:  #FFFFFF;            /* cards */
  --bg:         #FFFFFF;

  /* Semantic */
  --error:   #A5432C;
  --success: #2E7D4F;
  --info:    var(--grn-600);

  /* Role aliases (these are what components actually reference) */
  --brand:        var(--grn-700);
  --brand-strong: var(--grn-800);
  --brand-soft:   var(--grn-050);
  --link:         #1E7265;
  --link-hover:   var(--grn-800);
  --on-brand:     #FFFFFF;
  --accent:       var(--gold-500);
  --on-accent:    var(--ink);
  --shadow-tint:  20, 52, 48;

  /* Legacy aliases (older content markup references these names inline) */
  --green-900: var(--grn-950);
  --green-200: var(--grn-200);

  /* Typography: Figtree everywhere (baylor.tech register), serif for quotes */
  --font-display: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans:  "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:  "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: Charter, Georgia, "Times New Roman", serif;
  --font-mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.0625rem;   /* 17px body */
  --fs-lg:   1.2rem;
  --fs-h4:   1.25rem;
  --fs-h3:   1.55rem;
  --fs-h2:   clamp(1.8rem, 1.45rem + 1.6vw, 2.4rem);
  --fs-h1:   clamp(2.3rem, 1.8rem + 2.6vw, 3.3rem);

  --lh-tight: 1.15;
  --lh-snug:  1.3;
  --lh-body:  1.58;

  --s-1: 0.25rem; --s-2: 0.5rem;  --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 3rem;    --s-8: 4rem;
  --s-9: 6rem;    --s-10: 8rem;

  --radius-sm: 5px;
  --radius:    8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --shell: 1200px;
  --shell-wide: 1320px;
  --prose: 68ch;
  --nav-h: 46px;                    /* the sticky charcoal nav bar */
  --fy-w: clamp(300px, 24vw, 420px); /* For You rail width */

  --sh-1: 0 1px 2px rgba(var(--shadow-tint), 0.07);
  --sh-2: 0 2px 10px rgba(var(--shadow-tint), 0.10);
  --sh-3: 0 14px 40px rgba(var(--shadow-tint), 0.16);

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 140ms;
  --t: 220ms;
  --t-slow: 420ms;

  color-scheme: light;
}

/* Dark mode: opt-in via [data-theme] (set by site.js, respects OS default) */
[data-theme="dark"] {
  --ink:        #EDEEE9;
  --ink-soft:   #CDD2CB;
  --muted:      #9AA398;
  --muted-2:    #6F776E;
  --line:       #2E332D;
  --line-strong:#454B43;
  --surface-2:  #232823;
  --surface-1:  #1C201D;
  --bg:         #141715;

  --brand:        #E9EDE9;          /* headings go light, not green */
  --brand-strong: #C8E4DC;
  --brand-soft:   #1B332E;
  --link:         #6CC8B6;
  --link-hover:   #93DECF;
  --gold-text:    #E8BC5F;
  --shadow-tint:  0, 0, 0;

  --sh-1: 0 1px 2px rgba(0,0,0,0.4);
  --sh-2: 0 2px 10px rgba(0,0,0,0.5);
  --sh-3: 0 16px 44px rgba(0,0,0,0.6);
  color-scheme: dark;
}

/* ----------------------------------------------------------------------------
   2. PRIMITIVES
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
a:hover { color: var(--link-hover); }
ul, ol { padding-left: 1.2em; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection { background: color-mix(in srgb, var(--gold-500) 45%, transparent); }

/* Typography: bold sans headings in brand color (the baylor.tech signature) */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  color: var(--brand);
  text-wrap: balance;
}
h1, h2 { font-weight: 800; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p { text-wrap: pretty; }

.serif { font-family: var(--font-serif); font-weight: 400; }
.mono  { font-family: var(--font-mono); }
.num   { font-variant-numeric: tabular-nums lining-nums; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow.is-centered { justify-content: center; }

.lead {
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--muted);
  max-width: var(--prose);
  font-weight: 400;
}

/* Layout helpers */
.shell { width: min(100% - 2.4rem, var(--shell)); margin-inline: auto; }
.shell-wide { width: min(100% - 2.4rem, var(--shell-wide)); margin-inline: auto; }
.section { padding-block: clamp(3.2rem, 6.5vw, 5.5rem); }
.section-tight { padding-block: clamp(2.4rem, 5vw, 3.6rem); }
.surface-alt { background: var(--surface-2); }
.center { text-align: center; }
.measure { max-width: var(--prose); }
.stack > * + * { margin-top: var(--s-4); }
.section-head { max-width: 62ch; margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.section-head.is-centered { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: var(--s-4); }
.divider { height: 1px; background: var(--line); border: 0; }

/* Signature heading treatment: gold bar under section titles */
.section-head h2 {
  position: relative; padding-bottom: 12px;
}
.section-head h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 64px; height: 4px; background: var(--accent);
}
.section-head.is-centered h2::after { left: 50%; transform: translateX(-50%); }

/* Buttons: institutional register (uppercase, letterspaced, square-ish) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: var(--font-display);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-height: 46px;
  padding: 0 1.5em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  background: var(--grn-700);
  color: #fff;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--grn-600); color: #fff; }
.btn:active { background: var(--grn-800); }
.btn .ico { width: 1.05em; height: 1.05em; transition: transform var(--t) var(--ease); }
.btn:hover .ico { transform: translateX(3px); }

.btn-ghost {
  background: transparent; color: var(--grn-700); border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand); border-color: var(--grn-700); }
[data-theme="dark"] .btn-ghost { color: var(--ink); }
[data-theme="dark"] .btn-ghost:hover { color: var(--ink); border-color: var(--line-strong); }

.btn-gold { background: var(--gold-500); color: var(--grn-950); }
.btn-gold:hover { background: var(--gold-300); color: var(--grn-950); }
.btn-gold:active { background: var(--gold-600); }
.btn-gold:focus-visible { outline-color: var(--grn-700); }

.btn-lg { font-size: 0.9rem; min-height: 52px; padding: 0 1.9em; }
.btn-sm { font-size: 0.72rem; min-height: 38px; padding: 0 1.1em; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* Inline arrow link */
.arrow-link {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-family: var(--font-sans); font-weight: 700; font-size: var(--fs-sm);
  color: var(--link);
}
.arrow-link .ico { width: 1em; height: 1em; transition: transform var(--t) var(--ease); }
.arrow-link:hover .ico { transform: translateX(4px); }

/* Pills / tags: small, square, uppercase (baylor.tech badge register) */
.tag {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--font-sans); font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.35em 0.75em; border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--line);
}
.tag-gold { background: var(--gold-500); color: var(--grn-950); border-color: var(--gold-500); }
[data-theme="dark"] .tag-gold { color: #0A312C; }
.tag-dot::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-live { color: #fff; background: var(--success); border-color: var(--success); }
.tag-live::before { background: #fff; animation: pulse 2.4s var(--ease) infinite; }
.tag-soon { color: var(--gold-text); background: var(--gold-050); border-color: color-mix(in srgb, var(--gold-500) 45%, transparent); }
[data-theme="dark"] .tag-soon { background: color-mix(in srgb, var(--gold-500) 14%, transparent); }
.tag-soon::before { background: var(--gold-500); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.5); }
  70% { box-shadow: 0 0 0 6px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* Pillar accents: the three brand hues, one per pillar */
.pillar-edu    { --pc: var(--teal-700);  --pc-soft: color-mix(in srgb, var(--teal-500) 18%, transparent); }
.pillar-tech   { --pc: var(--perry-700); --pc-soft: color-mix(in srgb, var(--perry-500) 16%, transparent); }
.pillar-impact { --pc: var(--gold-600);  --pc-soft: color-mix(in srgb, var(--gold-500) 22%, transparent); }
[data-theme="dark"] .pillar-edu    { --pc: var(--teal-300); }
[data-theme="dark"] .pillar-tech   { --pc: var(--perry-300); }
[data-theme="dark"] .pillar-impact { --pc: var(--gold-300); }
.tag.is-pillar { background: var(--pc-soft); color: var(--pc); border-color: color-mix(in srgb, var(--pc) 32%, transparent); }
.feature.is-pillar { border-top: 3px solid var(--pc); }
.feature.is-pillar .pill-num { color: var(--pc); }

.spark { color: var(--gold-500); }

/* ----------------------------------------------------------------------------
   3. COMPONENTS
   ------------------------------------------------------------------------- */

/* Skip link */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--grn-700); color: #fff;
  padding: 0.6em 1em; border-radius: var(--radius-sm);
  transition: top var(--t) var(--ease);
}
.skip:focus { top: 12px; color: #fff; }

/* ---- HEADER: two-tier (brand bar + charcoal nav), baylor.tech structure ---- */
.site-header { position: relative; z-index: 100; }

.hdr-brand { background: var(--brand-ink); }
.hdr-brand-in {
  width: min(100% - 2.4rem, var(--shell-wide)); margin-inline: auto;
  display: flex; align-items: center; gap: var(--s-5);
  padding: 12px 0;
}

.brand-lockup { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.brand-lockup:hover { color: inherit; }
.brand-lockup .mark { display: flex; align-items: center; flex-shrink: 0; }
.brand-lockup .mark img { width: 36px; height: auto; display: block; }
.brand-lockup .wordmark { display: flex; flex-direction: column; line-height: 1; }
.brand-lockup .wm-main { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: 0.01em; color: #fff; }
/* wordmark colours pulled straight from the logo: AI = periwinkle, Society = gold, at Baylor = white */
.brand-lockup .wm-ai  { color: var(--perry-500); }
.brand-lockup .wm-soc { color: var(--gold-500); }
.brand-lockup .wm-sub { font-family: var(--font-sans); font-weight: 700; font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; color: #fff; margin-top: 3px; }

.header-actions { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }

/* controls on the brand bar: quiet outlined chips on periwinkle */
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.35);
  background: transparent; color: #fff;
  transition: background var(--t-fast) var(--ease);
}
.icon-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .moon { display: none; }
[data-theme="dark"] .icon-btn .sun { display: none; }
[data-theme="dark"] .icon-btn .moon { display: block; }

.cmdk-trigger {
  display: inline-flex; align-items: center; gap: 0.55em;
  height: 38px; padding: 0 0.8em;
  border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.35);
  background: transparent; color: #fff;
  font-size: var(--fs-sm);
  transition: background var(--t-fast) var(--ease);
}
.cmdk-trigger:hover { background: rgba(255,255,255,0.12); }
.cmdk-trigger svg { width: 15px; height: 15px; }
.cmdk-trigger kbd {
  font-family: var(--font-mono); font-size: 0.7rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 4px; padding: 0.1em 0.4em; color: rgba(255,255,255,0.85);
}
.cmdk-trigger .label { font-family: var(--font-sans); }

/* charcoal nav bar: sticky, gold underline marks the current page */
.hdr-nav { background: var(--charcoal); position: sticky; top: 0; z-index: 90; }
.hdr-nav-in {
  width: min(100% - 2.4rem, var(--shell-wide)); margin-inline: auto;
  display: flex; align-items: stretch; gap: 4px; min-height: var(--nav-h);
}
.main-nav { display: flex; align-items: stretch; gap: 4px; }
.main-nav a {
  display: inline-flex; align-items: center;
  font-family: var(--font-sans); font-weight: 500; font-size: 0.94rem;
  color: #fff; padding: 0 16px; position: relative; border-radius: 0;
}
.main-nav a:hover { color: #fff; background: var(--charcoal-hover); }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold-500); }
.hnav-note {
  margin-left: auto; align-self: center;
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); white-space: nowrap; padding-left: 12px;
}

/* ---- Hero (homepage, below the front door) ---- */
.hero { position: relative; padding-block: clamp(3.4rem, 7vw, 6rem); }
.hero-bg, .hero-mesh { display: none; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero h1 { margin-bottom: var(--s-5); position: relative; padding-bottom: 16px; }
.hero h1::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 64px; height: 4px; background: var(--accent);
}
.hero h1 .grad { color: inherit; }
.hero .lead { margin-bottom: var(--s-6); max-width: 52ch; }
.hero-cta { margin-bottom: var(--s-6); }
.hero-meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); color: var(--muted); font-size: var(--fs-sm); }
.hero-meta span { display: inline-flex; align-items: center; gap: 0.45em; }
.hero-meta svg { width: 15px; height: 15px; color: var(--grn-600); }
[data-theme="dark"] .hero-meta svg { color: var(--grn-300); }

.hero-aside {
  position: relative;
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s-6);
  box-shadow: var(--sh-2);
}
.hero-aside .aside-label { font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-family: var(--font-sans); font-weight: 700; }
.hero-aside .net { margin: var(--s-4) 0; }
.het-mini { display: block; margin: var(--s-4) 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.het-mini img { width: 100%; height: auto; display: block; background: #f1efe8; }
.het-mini:hover { box-shadow: var(--sh-2); border-color: var(--line-strong); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); margin-top: var(--s-4); }
.hero-stats .stat .n { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--brand); letter-spacing: -0.02em; line-height: 1; }
.hero-stats .stat .l { font-size: var(--fs-xs); color: var(--muted); margin-top: 0.3em; }

/* ---- Pathways strip ---- */
.pathways { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.pathway {
  position: relative;
  display: flex; flex-direction: column; gap: var(--s-2);
  padding: var(--s-5); border-radius: var(--radius);
  background: var(--surface-1); border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.pathway::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--accent); transition: width var(--t-slow) var(--ease);
}
.pathway:hover { box-shadow: var(--sh-2); border-color: var(--line-strong); color: inherit; }
.pathway:hover::before { width: 100%; }
.pathway .ph-ico { width: 30px; height: 30px; color: var(--grn-700); }
[data-theme="dark"] .pathway .ph-ico { color: var(--grn-300); }
.pathway h3 { font-size: var(--fs-base); }
.pathway p { font-size: var(--fs-sm); color: var(--muted); }
.pathway .arrow-link { margin-top: auto; padding-top: var(--s-2); }

/* ---- Directory grid ---- */
.cat-block + .cat-block { margin-top: clamp(2.5rem, 5vw, 4rem); }
.cat-head {
  display: flex; align-items: baseline; gap: var(--s-4); flex-wrap: wrap;
  margin-bottom: var(--s-5);
}
.cat-head h2 { font-size: var(--fs-h3); }
.cat-head p { color: var(--muted); font-size: var(--fs-sm); }

.directory {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
}

/* Cards: flat, bordered; gold top bar grows on hover (baylor.tech gcard) */
.card {
  position: relative; display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-5); border-radius: var(--radius);
  background: var(--surface-1); border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  min-width: 0; overflow: hidden;
  transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--accent);
  transition: width var(--t-slow) var(--ease);
}
.card:hover { box-shadow: var(--sh-2); border-color: var(--line-strong); color: inherit; }
.card:hover::before { width: 100%; }
.card:focus-within { border-color: var(--grn-500); }
.card .card-ico {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: var(--radius-sm); background: var(--grn-700); color: var(--grn-100);
  flex-shrink: 0;
}
.card .card-ico svg { width: 21px; height: 21px; }
.card h3 { font-size: var(--fs-h4); display: flex; align-items: center; gap: 0.5em; }
.card h3 .ext { width: 14px; height: 14px; color: var(--muted); opacity: 0; transform: translate(-3px,3px); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
.card:hover h3 .ext { opacity: 1; transform: none; }
.card p { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }
.card .card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-2); }
.card .stretch { position: absolute; inset: 0; }

/* ---- Bento (flagship destinations) ---- */
.bento {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(170px, auto);
}
.bento .card { gap: var(--s-2); }
.bento .b-feature { grid-column: span 2; grid-row: span 2; justify-content: space-between; }
.bento .b-feature h3 { font-size: var(--fs-h3); }
.bento .b-feature p { font-size: var(--fs-base); }
.bento .b-wide { grid-column: span 2; }
.bento .b-feature { border-top: 3px solid var(--grn-700); }
.bento .b-feature::before { top: -3px; }

/* ---- Generic feature grid (pillars, values) ---- */
.feature-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); }
.feature {
  padding: var(--s-6); border-radius: var(--radius);
  background: var(--surface-1); border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.feature:hover { box-shadow: var(--sh-2); border-color: var(--line-strong); }
.feature .pill-num {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 800;
  color: var(--brand); line-height: 1; margin-bottom: var(--s-3);
}
.feature h3 { font-size: var(--fs-h4); margin-bottom: var(--s-3); }
.feature p { color: var(--muted); font-size: var(--fs-base); }
.feature ul { margin-top: var(--s-3); color: var(--ink-soft); font-size: var(--fs-sm); }
.feature ul li { margin-top: 0.3em; }

/* ---- Officer / team cards ---- */
.team-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.person {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-5); border-radius: var(--radius);
  background: var(--surface-1); border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.person:hover { box-shadow: var(--sh-2); border-color: var(--line-strong); }
.avatar {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-sans); font-weight: 700; font-size: 1.2rem;
  color: #fff; letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--grn-600), var(--grn-800));
}
.person.is-tbd .avatar { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--line-strong); }
.person .role { font-family: var(--font-sans); font-weight: 700; font-size: var(--fs-base); color: var(--brand); }
.person .name { color: var(--ink-soft); font-size: var(--fs-sm); }
.person .name.tbd { color: var(--muted); font-style: italic; }
.person .pillar-tag { margin-top: auto; }

/* ---- Project cards ---- */
.project {
  display: grid; grid-template-columns: 1fr; gap: var(--s-4);
  padding: var(--s-6); border-radius: var(--radius);
  background: var(--surface-1); border: 1px solid var(--line);
  border-left: 4px solid var(--grn-700);
  box-shadow: var(--sh-1);
  transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.project:hover { box-shadow: var(--sh-2); }
.project .p-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.project h3 { font-size: var(--fs-h3); }
.project .p-meta { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.project .p-tech { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.project .chip { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.25em 0.7em; }

/* ---- Steps / timeline ---- */
.steps { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(16rem,100%),1fr)); counter-reset: step; }
.step {
  position: relative; padding: var(--s-5); padding-top: var(--s-7);
  background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--sh-1);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: var(--s-4); left: var(--s-5);
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  font-family: var(--font-sans); font-weight: 800; font-size: 0.95rem;
  background: var(--grn-700); color: var(--grn-100);
}
.step h3 { font-size: var(--fs-base); margin-bottom: var(--s-2); }
.step p { font-size: var(--fs-sm); color: var(--muted); }

/* ---- CTA band ---- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius);
  border-top: 4px solid var(--gold-500);
  padding: clamp(2.5rem, 6vw, 4rem);
  background: linear-gradient(135deg, var(--grn-900), var(--grn-800) 55%, var(--grn-700));
  color: #fff; text-align: center;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.35;
  background: radial-gradient(50% 80% at 80% 0%, color-mix(in srgb, var(--gold-500) 30%, transparent), transparent 60%);
}
.cta-band h2 { color: #fff; }
.cta-band .eyebrow { color: var(--grn-200); }
.cta-band p { color: var(--grn-200); max-width: 54ch; margin: var(--s-4) auto var(--s-6); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.85); }

/* ---- Callout / note ---- */
.note {
  display: flex; gap: var(--s-3); padding: var(--s-4) var(--s-5);
  border-radius: var(--radius-sm); background: var(--surface-2);
  border-left: 4px solid var(--gold-500);
  font-size: var(--fs-sm); color: var(--ink-soft);
}
.note svg { width: 20px; height: 20px; color: var(--grn-600); flex-shrink: 0; margin-top: 2px; }
[data-theme="dark"] .note svg { color: var(--grn-300); }
.note.is-info { border-left-color: var(--teal-500); }
.note.is-info svg { color: var(--teal-700); }
[data-theme="dark"] .note.is-info svg { color: var(--teal-300); }

/* ---- Mission / Vision / Purpose ---- */
.mvp { display: grid; gap: var(--s-4); }
.mvp-card {
  display: grid; grid-template-columns: 132px 1fr; gap: var(--s-5); align-items: start;
  padding: var(--s-6); background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--radius); border-left: 4px solid var(--pc, var(--grn-700));
  box-shadow: var(--sh-1);
  transition: box-shadow var(--t) var(--ease);
}
.mvp-card:hover { box-shadow: var(--sh-2); }
.mvp-text { font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.45; color: var(--ink); font-style: italic; }
@media (max-width: 680px) { .mvp-card { grid-template-columns: 1fr; gap: var(--s-3); } }

/* ---- Heterarchy figure ---- */
.het-figure { margin: var(--s-6) 0 0; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4); box-shadow: var(--sh-1); }
.het-figure img { width: 100%; height: auto; border-radius: var(--radius-sm); display: block; background: #f1efe8; }
.het-legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); justify-content: center; margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--muted); font-family: var(--font-sans); }
.het-legend span { display: inline-flex; align-items: center; gap: 0.5em; }
.het-legend .ln { width: 26px; border-top: 3px solid; }
.het-legend .ln-tight { border-color: var(--perry-500); }
.het-legend .ln-work  { border-top-width: 2px; border-color: var(--muted); }
.het-legend .ln-conv  { border-top-width: 2px; border-top-style: dashed; border-color: var(--muted); }
.het-figure figcaption { text-align: center; color: var(--muted); font-size: var(--fs-sm); margin-top: var(--s-3); font-style: italic; }

/* ---- Prose (long-form pages) ---- */
.prose { max-width: var(--prose); }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-7); font-size: var(--fs-h3); }
.prose h3 { margin-top: var(--s-6); font-size: var(--fs-h4); }
.prose p, .prose li { color: var(--ink-soft); }
.prose blockquote {
  border-left: 4px solid var(--gold-500); padding: var(--s-2) 0 var(--s-2) var(--s-5);
  font-family: var(--font-serif); font-size: var(--fs-lg); font-style: italic; color: var(--ink);
}

/* ---- Page hero (interior pages) ---- */
.page-hero { position: relative; padding-block: clamp(2.6rem, 6vw, 4rem) clamp(1.6rem, 4vw, 2.6rem); }
.breadcrumb { font-size: var(--fs-xs); color: var(--muted); margin-bottom: var(--s-4); font-family: var(--font-sans); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--link); }
.page-hero h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 2.8rem); position: relative; padding-bottom: 14px; }
.page-hero h1::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 64px; height: 4px; background: var(--accent);
}
.page-hero .lead { margin-top: var(--s-4); }

/* ---- Footer: dark brand band with a gold hairline (baylor.tech .ftr) ---- */
.site-footer {
  background: var(--brand-ink); color: var(--grn-200);
  border-top: 4px solid var(--gold-500);
  padding-block: clamp(3rem, 6vw, 4.2rem) var(--s-6);
  margin-top: var(--s-9);
}
.footer-grid {
  display: grid; gap: var(--s-6);
  grid-template-columns: 1.6fr repeat(3, 1fr);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .wm-main { color: #fff; }
.footer-brand .wm-sub { color: #fff; }
.footer-brand p { color: var(--grn-200); font-size: var(--fs-sm); margin-top: var(--s-4); max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--s-4); }
.footer-col a { display: block; color: var(--grn-200); font-size: var(--fs-sm); padding: 0.32em 0.4em; margin-inline: -0.4em; border-radius: 3px; }
.footer-col a:hover { background: var(--gold-500); color: var(--grn-950); }
.footer-social { display: flex; gap: var(--s-2); margin-top: var(--s-4); }
.footer-social a {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.25); color: var(--grn-200);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.footer-social a:hover { background: var(--gold-500); color: var(--grn-950); border-color: var(--gold-500); }
.footer-social svg { width: 18px; height: 18px; }
.footer-legal {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding-top: var(--s-5); color: var(--grn-300); font-size: var(--fs-xs);
}
.footer-legal a { color: var(--grn-300); }
.footer-legal a:hover { color: var(--gold-300); }
.footer-legal .legal-links { display: flex; gap: var(--s-4); flex-wrap: wrap; }

/* ---- Command palette ---- */
.cmdk-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(19,20,32,0.55);
  display: none; align-items: flex-start; justify-content: center;
  padding-top: 12vh; opacity: 0; transition: opacity var(--t) var(--ease);
}
.cmdk-overlay.open { display: flex; opacity: 1; }
.cmdk {
  width: min(100% - 2rem, 580px);
  background: var(--surface-1); border: 1px solid var(--line-strong);
  border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  overflow: hidden; transform: translateY(-10px); transition: transform var(--t) var(--ease-out);
}
.cmdk-overlay.open .cmdk { transform: none; }
.cmdk-input-wrap { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.cmdk-input-wrap svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.cmdk-input { flex: 1; border: 0; background: transparent; font-size: var(--fs-lg); font-family: var(--font-sans); color: var(--ink); outline: none; }
.cmdk-list { max-height: 50vh; overflow-y: auto; padding: var(--s-2); }
.cmdk-group-label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); padding: var(--s-3) var(--s-3) var(--s-1); font-family: var(--font-sans); font-weight: 700; }
.cmdk-item {
  display: flex; align-items: center; gap: var(--s-3); width: 100%; text-align: left;
  padding: 0.7em var(--s-3); border-radius: var(--radius-sm); border: 0; background: transparent;
  color: var(--ink); font-size: var(--fs-sm);
}
.cmdk-item .ci-ico { width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--grn-700); color: var(--grn-100); display: grid; place-items: center; flex-shrink: 0; }
.cmdk-item .ci-ico svg { width: 16px; height: 16px; }
.cmdk-item .ci-text { display: flex; flex-direction: column; }
.cmdk-item .ci-text small { color: var(--muted); font-size: var(--fs-xs); }
.cmdk-item.active, .cmdk-item:hover { background: var(--gold-500); color: var(--grn-950); }
.cmdk-item.active .ci-text small, .cmdk-item:hover .ci-text small { color: var(--grn-900); }
[data-theme="dark"] .cmdk-item.active, [data-theme="dark"] .cmdk-item:hover { color: #0A312C; }
[data-theme="dark"] .cmdk-item.active .ci-text small, [data-theme="dark"] .cmdk-item:hover .ci-text small { color: #0D3F38; }
.cmdk-empty { padding: var(--s-6); text-align: center; color: var(--muted); font-size: var(--fs-sm); }
.cmdk-foot { display: flex; gap: var(--s-4); padding: var(--s-3) var(--s-5); border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); }
.cmdk-foot kbd { font-family: var(--font-mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 0.05em 0.4em; }

/* ---- FAQ accordion ---- */
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-1); padding: 0 var(--s-5); margin-top: var(--s-3);
  transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.faq-item[open] { box-shadow: var(--sh-1); border-color: var(--line-strong); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  font-family: var(--font-sans); font-weight: 700; font-size: var(--fs-base);
  color: var(--ink); padding: var(--s-4) 2rem var(--s-4) 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-65%) rotate(45deg); transition: transform var(--t) var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item summary:hover { color: var(--link); }
.faq-item p { color: var(--muted); font-size: var(--fs-sm); padding-bottom: var(--s-4); }

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 60ms; }
.reveal[data-delay="2"] { transition-delay: 120ms; }
.reveal[data-delay="3"] { transition-delay: 180ms; }
.reveal[data-delay="4"] { transition-delay: 240ms; }

/* Scroll progress bar: thin gold hairline */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 101;
  background: var(--gold-500);
  width: 0%; transform-origin: 0 50%;
}
@supports (animation-timeline: scroll()) {
  .scroll-progress { width: 100%; transform: scaleX(0); animation: progress linear; animation-timeline: scroll(root); }
}
@keyframes progress { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .tag-live::before { animation: none; }
  .card, .feature, .pathway, .person, .project, .btn { transition: none; }
  .scroll-progress { display: none; }
}

/* ============================================================
   FRONT DOOR (banner band + directory + For You rail)
   The banner is a solid brand band, baylor.tech ask-hero register.
   The rail overlaps it on the right; the directory's bottom edge
   stays flush with the rail's bottom edge (flex stretch).
   ============================================================ */
.front {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 78vh;
}
.front-grid {
  display: flex; flex-direction: column;
  flex: 1;
  gap: var(--s-5);
  margin-top: var(--s-5);
  width: auto;
  margin-left: max(1.2rem, calc((100% - var(--shell-wide)) / 2));
  margin-right: calc(var(--fy-w) + var(--s-5) + 16px);
}
.front-main { display: flex; flex-direction: column; gap: var(--s-5); min-width: 0; flex: 1; }
.front-main .front-dir { flex: 1; align-content: start; }

.front-banner {
  position: relative; overflow: hidden;
  width: 100%; border-radius: 0; border: 0;
  padding: var(--s-7) 0;
  background: linear-gradient(120deg, var(--brand-ink), #12271F 65%, #16342B);
  box-shadow: none;
}
.front-banner::before { display: none; }
.front-banner::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 170% at 88% 120%, color-mix(in srgb, var(--gold-500) 14%, transparent), transparent 64%);
  pointer-events: none;
}
.fb-inner {
  display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: var(--s-5);
  width: auto;
  margin-left: max(1.2rem, calc((100% - var(--shell-wide)) / 2));
  margin-right: calc(var(--fy-w) + var(--s-5) + 1.2rem + 16px);
  position: relative; z-index: 1;
}
.front-banner .eyebrow { color: rgba(255,255,255,0.72); }
.front-banner .fb-title {
  font-family: var(--font-display); font-weight: 800; line-height: 1.05;
  font-size: clamp(2rem, 4.2vw, 3rem); color: #fff; letter-spacing: -.01em;
  margin-top: var(--s-2);
}
.front-banner .fb-title .wm-ai  { color: var(--perry-500); }
.front-banner .fb-title .wm-soc { color: var(--gold-500); }
.front-banner .fb-title em { font-style: normal; font-weight: 700; color: #fff; }
.front-banner .fb-line { color: rgba(255,255,255,0.82); margin-top: var(--s-2); font-size: var(--fs-md); }
.fb-tile { flex: none; display: grid; place-items: center; width: clamp(110px, 11vw, 150px); }
.fb-mark { width: 100%; height: auto; filter: drop-shadow(0 4px 16px rgba(0,0,0,0.3)); }

/* directory card: footer-style columns; gold highlight on hover */
.front-dir {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5) var(--s-6);
  padding: var(--s-6) var(--s-7);
}
.fd-col { display: flex; flex-direction: column; }
.fd-col a {
  color: var(--ink-soft); font-family: var(--font-sans); font-weight: 500;
  font-size: var(--fs-sm); padding: .34rem .5rem; margin-inline: -.5rem;
  border-radius: 3px;
}
.fd-col a:hover { background: var(--gold-500); color: var(--grn-950); text-decoration: none; }
.fd-col a.fd-head {
  font-family: var(--font-display); font-weight: 700; color: var(--brand);
  font-size: var(--fs-h4); padding: 0 0 var(--s-2) 0; margin: 0 0 var(--s-2) 0;
  border-bottom: 2px solid var(--grn-700); border-radius: 0;
}
[data-theme="dark"] .fd-col a.fd-head { border-bottom-color: var(--line-strong); }
.fd-col a.fd-head:hover { background: transparent; color: var(--link); }

/* For You rail: reserved, deliberately blank */
.front-fy {
  position: absolute; top: 0; right: 16px; z-index: 5;
  width: var(--fy-w);
  display: flex; flex-direction: column; padding: var(--s-6);
  min-height: 78vh;
}
.fy-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h4); color: var(--brand);
  padding-bottom: var(--s-2); border-bottom: 2px solid var(--grn-700);
}
[data-theme="dark"] .fy-head { border-bottom-color: var(--line-strong); }
.fy-blank { display: flex; flex-direction: column; gap: var(--s-4); margin: var(--s-6) 0; flex: 1; }
.fy-blank span {
  display: block; height: 42px; border-radius: var(--radius-sm);
  border: 1.5px dashed var(--line-strong); opacity: .6;
}
.front-fy .fy-note { font-size: var(--fs-xs); color: var(--muted); }

/* smooth pop-up preview on hover */
.dir-pop {
  position: fixed; z-index: 140; width: min(320px, 82vw);
  padding: var(--s-4) var(--s-5);
  border-left: 4px solid var(--grn-700);
  box-shadow: var(--sh-2);
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.dir-pop.is-on { opacity: 1; transform: none; }
.dir-pop::before { display: none; }
.dir-pop strong { display: block; font-family: var(--font-sans); font-weight: 700; font-size: var(--fs-sm); color: var(--brand); }
.dir-pop span { display: block; font-size: var(--fs-xs); color: var(--muted); margin-top: .25rem; line-height: 1.5; }
@media (hover: none), (pointer: coarse) { .dir-pop { display: none; } }
@media (prefers-reduced-motion: reduce) { .dir-pop { transition: none; } }

/* sign-in (stub until AIS accounts exist); lives on the brand bar */
.signin-wrap { position: relative; }
.signin-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  height: 38px; padding: 0 .85rem; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.35); color: #fff;
  font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-sm);
  background: transparent; cursor: pointer;
  transition: background .15s ease;
}
.signin-btn:hover { background: rgba(255,255,255,0.12); }
.signin-btn svg { width: 16px; height: 16px; color: rgba(255,255,255,0.8); }
.signin-pop {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 130;
  width: 280px; padding: var(--s-5); display: none; text-align: left;
}
.signin-pop.is-open { display: block; }
.signin-pop h3 { font-size: var(--fs-base); font-weight: 700; margin: 0; }
.signin-pop.card p { font-size: var(--fs-sm); color: var(--muted); margin: var(--s-2) 0 0; }
.signin-pop .soon-btn {
  display: flex; justify-content: center; margin-top: var(--s-4);
  padding: .55rem 1rem; border-radius: var(--radius-sm);
  border: 2px solid var(--line-strong); color: var(--ink-soft);
  font-family: var(--font-sans); font-weight: 700; font-size: var(--fs-sm); cursor: default;
}
.signin-pop .soon-note { display: block; text-align: center; font-size: var(--fs-xs); color: var(--muted); margin-top: var(--s-2); }

/* ----------------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------------- */
@media (max-width: 1060px) {
  .front { min-height: 0; }
  .front-grid {
    flex: none;
    width: min(100% - 2.4rem, var(--shell-wide));
    margin-inline: auto;
  }
  .front-main .front-dir { flex: none; }
  .fb-inner { width: min(100% - 2.4rem, var(--shell-wide)); margin-inline: auto; }
  .front-fy { position: static; width: auto; min-height: 0; }
  .front-fy { flex-direction: row; align-items: center; gap: var(--s-5); padding: var(--s-5) var(--s-6); }
  .fy-head { flex: none; border-bottom: 0; padding-bottom: 0; }
  .fy-blank { flex-direction: row; margin: 0; }
  .fy-blank span { width: 42px; flex: none; }
  .front-fy .fy-note { margin-left: auto; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-aside { max-width: 460px; }
  .pathways { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .b-feature { grid-column: span 2; grid-row: auto; }
  .bento .b-wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --fs-md: 1rem; }
  .hdr-brand-in { padding: 10px 0; gap: var(--s-3); }
  .brand-lockup .mark img { width: 30px; }
  .cmdk-trigger .label, .cmdk-trigger kbd { display: none; }
  .cmdk-trigger { width: 38px; padding: 0; justify-content: center; }
  .hdr-nav-in { width: 100%; padding: 0 10px; overflow-x: auto; scrollbar-width: none; }
  .hdr-nav-in::-webkit-scrollbar { display: none; }
  .main-nav a { padding: 0 12px; font-size: 0.88rem; white-space: nowrap; }
  .hnav-note { display: none; }
  .pathways { grid-template-columns: 1fr; }
  .cta-band { text-align: left; }
  .cta-band p { margin-inline: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 700px) {
  .front-banner { padding: var(--s-5) 0; }
  .fb-inner { flex-direction: column; align-items: flex-start; }
  .fb-tile { order: -1; width: 84px; }
  .front-dir { grid-template-columns: 1fr; padding: var(--s-5) var(--s-6); }
  .signin-btn .label { display: none; }
  .signin-btn { width: 38px; padding: 0; justify-content: center; }
  .fy-blank span:nth-child(n+3) { display: none; }
}

@media (max-width: 460px) {
  .bento { grid-template-columns: 1fr; }
  .bento .b-feature, .bento .b-wide { grid-column: auto; }
  .header-actions .btn-gold { display: none; }
}

/* ----------------------------------------------------------------------------
   ACCESSIBILITY + PRINT
   ------------------------------------------------------------------------- */
@media (prefers-contrast: more) {
  :root { --line: #8B8FA0; --muted: #3D4050; }
}
@media (forced-colors: active) {
  .card, .feature, .person, .project, .step, .mvp-card, .het-figure, .faq-item,
  .cmdk, .hero-aside, .pathway, .btn, .icon-btn, .cmdk-trigger {
    background: Canvas; border: 1px solid CanvasText; box-shadow: none;
  }
}
@media print {
  .site-header, .site-footer, .scroll-progress, .cmdk-overlay, .dir-pop, .signin-pop { display: none; }
  .card, .feature, .person, .project, .step, .mvp-card, .het-figure, .faq-item,
  .hero-aside, .pathway { background: #fff; box-shadow: none; }
}

/* ============================================================
   NEWS / The AIS Brief
   ============================================================ */
.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; }
.news-sub { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: center; padding: var(--s-7); }
.news-sub-copy h2 { margin-top: var(--s-2); }
.news-sub-copy .lead { margin-top: var(--s-3); }
.news-sub-form { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.news-sub-form input {
  flex: 1; min-width: 12rem; min-height: 48px; padding: 0 1rem;
  border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--surface-1); color: var(--ink); font: inherit;
}
.news-sub-form input:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 1px; }
.news-sub-form .btn { min-height: 48px; }
.news-sub-msg { margin-top: var(--s-3); font-size: var(--fs-sm); min-height: 1.2em; }
.news-sub-msg.is-err { color: var(--error); }
.news-sub-msg.is-ok { color: var(--success); font-weight: 600; }
.news-sub-alt { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--muted); }
.news-issue { max-width: 46rem; }
.news-issue.is-soon { border-style: dashed; }
.news-issue h3 { font-size: var(--fs-h3); margin: var(--s-3) 0 var(--s-2); }
.news-issue p { color: var(--muted); }
@media (max-width: 680px) { .news-sub { grid-template-columns: 1fr; } }
