/* =========================================================
   Susan Lindsey for SUSD Governing Board
   Colors: Safford Bulldogs royal blue, white & silver (see saffordusd.com).
   ========================================================= */
:root {
  --navy: #13288f;
  --navy-deep: #0a1766;
  --navy-ink: #060d42;
  --blue: #1f3fbf;
  --royal: #1f3fbf;        /* accent on light backgrounds */
  --royal-bright: #2f56e0; /* accent fills on dark backgrounds */
  --sky: #b3c8ff;          /* accent text on dark backgrounds */
  --silver: #e4e9f2;
  --silver-deep: #b7c1d6;
  --ink: #141b2d;
  --muted: #4f5870;
  --paper: #ffffff;
  --paper-alt: #f1f4fa;
  --line: #dde3ef;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(10, 26, 71, .08);
  --shadow-md: 0 14px 34px rgba(10, 26, 71, .14);
  --shadow-lg: 0 28px 60px rgba(10, 26, 71, .24);
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", system-ui, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --z-header: 40;
  --z-progress: 50;
  --z-modal: 100;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
main { overflow-x: clip; }
a { color: var(--blue); }
button { font: inherit; }
:focus-visible { outline: 3px solid #5b85ff; outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: #fff; color: var(--navy-deep); padding: 10px 16px; border-radius: 8px; font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }
.i { width: 20px; height: 20px; flex: none; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: var(--z-progress); pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #fff, var(--sky), #fff);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  background: linear-gradient(180deg, rgba(7,18,47,.9), rgba(7,18,47,.55));
  backdrop-filter: blur(6px);
  transition: background .35s ease, box-shadow .35s ease, transform .4s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(7, 18, 47, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; flex-direction: column; line-height: .9; text-decoration: none; color: #fff; }
.brand-kicker { font-family: var(--head); font-weight: 700; font-size: .85rem; letter-spacing: .3em; text-transform: uppercase; color: var(--sky); }
.brand-name { font-family: var(--head); font-weight: 800; font-size: 1.7rem; text-transform: uppercase; letter-spacing: .02em; }
.brand-name b { color: var(--sky); }

.main-nav { display: flex; gap: 6px; align-items: center; }
.main-nav a {
  position: relative; color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 10px 12px;
}
.main-nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: #fff; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out);
}
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.main-nav a.is-active { color: var(--sky); }

.menu-btn { display: none; background: none; border: 0; color: #fff; width: 48px; height: 48px; cursor: pointer; border-radius: 10px; }
.menu-bars { display: grid; gap: 6px; width: 26px; margin: auto; }
.menu-bars i { display: block; height: 2.5px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; }
.menu-btn[aria-expanded="true"] .menu-bars i:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bars i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-bars i:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; text-decoration: none; font-size: 1.05rem; overflow: hidden; isolation: isolate;
  transition: transform .3s var(--ease-spring), box-shadow .3s, background .2s, color .2s;
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease-out);
}
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: scale(.97); }
.btn-white { background: #fff; color: var(--navy-ink); box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.btn-white:hover { background: var(--sky); box-shadow: 0 12px 30px rgba(120,160,255,.4); }
.btn-ghost { background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 2px rgba(255,255,255,.8); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy-deep); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(20,48,122,.3); }
.btn-navy:hover { background: var(--navy-deep); }
.btn-block { width: 100%; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(ellipse at 20% 10%, #1b3b8f 0%, var(--navy-deep) 55%, var(--navy-ink) 100%);
  padding-top: 72px;
  min-height: min(100vh, 920px);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-slash {
  position: absolute; top: -10%; bottom: -10%; right: -8%; width: 52%;
  background: linear-gradient(160deg, var(--royal-bright) 0%, var(--navy) 100%);
  transform: skewX(-14deg) translateX(110%);
  animation: slashIn 1.2s var(--ease-out) .1s forwards;
}
.hero-slash--thin {
  right: 46%; width: 18px; background: rgba(255,255,255,.35);
  animation-delay: .35s;
}
@keyframes slashIn { to { transform: skewX(-14deg) translateX(0); } }
.hero-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 60%);
  animation: gridDrift 40s linear infinite;
}
@keyframes gridDrift { to { background-position: 260px 520px; } }

.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: end;
  padding-top: 48px;
}
.hero-text { padding-bottom: 120px; }
.hero-bulldog {
  position: relative; isolation: isolate; display: inline-block; width: 190px; margin: 0 0 14px -10px;
}
/* soft light pooled behind the bulldog so it melts into the blue */
.hero-bulldog::before {
  content: ""; position: absolute; inset: -30% -35%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(170,195,255,.38), rgba(90,130,255,.12) 55%, transparent 100%);
  animation: glowBreath 5s ease-in-out infinite;
}
@keyframes glowBreath { 0%,100% { opacity: .75; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.05); } }
.hero-bulldog img { filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)) drop-shadow(0 0 1px rgba(255,255,255,.6)); }
.hero-bulldog img { width: 100%; height: auto; transform-origin: 50% 90%; animation: bulldogBob 4s ease-in-out 1.2s infinite; }
.hero-bulldog:hover img { animation: bulldogWiggle .6s ease-in-out; }
@keyframes bulldogBob { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-2deg); } }
@keyframes bulldogWiggle { 25% { transform: rotate(-6deg) scale(1.05); } 50% { transform: rotate(5deg) scale(1.08); } 75% { transform: rotate(-3deg) scale(1.05); } }
.hero-title {
  font-family: var(--head); font-weight: 800; text-transform: uppercase;
  font-size: clamp(3.6rem, 10vw, 8rem); line-height: .86; margin: 0 0 24px; letter-spacing: -.005em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
.hero-title .line--big > span {
  background: linear-gradient(100deg, #fff 0%, var(--silver-deep) 35%, #fff 55%, var(--sky) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: lineUp 1s var(--ease-out) forwards, shimmer 5s ease-in-out 1.5s infinite;
  animation-delay: var(--d, 0s), 1.5s;
}
@keyframes lineUp { to { transform: translateY(0); } }
@keyframes shimmer { 0%,100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.hero-title .line--for { font-size: .3em; letter-spacing: .1em; color: var(--sky); line-height: 1.15; margin-top: .45em; }
.hero-title .line--big { font-size: 1.45em; line-height: .82; margin-left: -.03em; }

.lede { font-size: clamp(1.15rem, 2vw, 1.4rem); margin: 0 0 30px; max-width: 40ch; color: #e8ecf7; }
.lede strong { color: #fff; font-weight: 700; letter-spacing: .03em; }
.lede-line { display: block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.voice-valley-link {
  display: inline-flex; align-items: center; gap: 6px; margin: -20px 0 34px; color: var(--sky);
  font-weight: 700; font-size: .95rem; letter-spacing: .02em; text-decoration: none;
  border-bottom: 1px solid rgba(179,200,255,.4); padding-bottom: 2px; transition: color .2s, border-color .2s;
}
.voice-valley-link:hover, .voice-valley-link:focus-visible { color: #fff; border-color: #fff; }
.voice-valley-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.voice-valley-link img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.6); }

.load-in { opacity: 0; transform: translateY(24px); animation: loadIn .9s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
@keyframes loadIn { to { opacity: 1; transform: none; } }

/* Countdown */
.countdown-label { margin: 0 0 10px; font-weight: 600; color: var(--sky); font-size: .95rem; letter-spacing: .04em; }
.countdown-units {
  display: inline-flex; align-items: center; gap: 14px; padding: 12px 22px 12px 18px; border-radius: 14px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(4px);
}
.countdown-units b { font-family: var(--head); font-weight: 800; font-size: 3.4rem; line-height: .9; font-variant-numeric: tabular-nums; min-width: 2ch; text-align: center; }
.countdown-units span { font-family: var(--head); font-weight: 700; font-size: 1.15rem; line-height: 1.05; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
.countdown-units[hidden] { display: none; }

/* Hero photo */
.hero-photo { position: relative; align-self: end; justify-self: center; width: min(100%, 440px); }
.arch {
  position: relative; border-radius: 240px 240px 0 0; overflow: hidden;
  border: 6px solid #fff; border-bottom: 0;
  box-shadow: 0 -10px 60px rgba(0,0,0,.35);
  transform-style: preserve-3d;
}
.arch img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; object-position: 0% 50%; transition: transform 1.2s var(--ease-out); }
.arch:hover img { transform: scale(1.06); }
.hero-ring {
  position: absolute; left: 50%; top: -26px; width: 118%; aspect-ratio: 1; translate: -50% 0;
  border-radius: 50%; border: 2px dashed rgba(255,255,255,.45);
  animation: spin 60s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }
.float-badge {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 14px; background: #fff; color: var(--navy-deep);
  box-shadow: var(--shadow-lg); animation: bob 5s ease-in-out infinite;
}
.float-badge b { font-family: var(--head); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--navy); }
.float-badge span { font-weight: 700; font-size: .8rem; line-height: 1.15; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fb-1 { left: -34px; top: 9%; }
.fb-2 { right: -22px; top: auto; bottom: 62px; animation-delay: -2.5s; background: var(--navy); }
.fb-2 b { color: #fff; }
.fb-2 span { color: #dbe2f5; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }

/* ---------- Shine / tilt (shared) ---------- */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease-out), box-shadow .4s; will-change: transform; }
.tilt.is-tilting { transition: transform .08s linear, box-shadow .4s; }
.shine {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.35), transparent 45%);
  mix-blend-mode: soft-light;
}
.tilt:hover .shine { opacity: 1; }

/* ---------- Quick links ---------- */
.quick {
  position: relative; z-index: 2; margin-top: -30px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.quick-card {
  position: relative; display: grid; gap: 2px; padding: 24px 26px; text-decoration: none; color: var(--ink);
  border-left: 1px solid var(--line); isolation: isolate; overflow: hidden;
  transition: color .35s;
}
.quick-card:first-child { border-left: 0; }
.quick-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy);
  transform: translateY(101%); transition: transform .45s var(--ease-out);
}
.quick-card::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--royal-bright); transform: scaleY(0); transition: transform .35s var(--ease-out); }
.quick-card:hover::before, .quick-card:focus-visible::before { transform: translateY(0); }
.quick-card:hover::after { transform: scaleY(1); }
.quick-card:hover { color: #fff; }
.quick-title { font-family: var(--head); font-weight: 800; font-size: 1.45rem; text-transform: uppercase; color: var(--navy); transition: color .35s; }
.quick-card:hover .quick-title { color: #fff; }
.quick-sub { font-size: .98rem; color: var(--muted); transition: color .35s; }
.quick-card:hover .quick-sub { color: #dbe2f5; }
.quick-arrow { position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; fill: none; stroke: var(--royal); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; translate: -8px -50%; opacity: 0; transition: translate .35s var(--ease-out), opacity .35s; }
.quick-card:hover .quick-arrow { translate: 0 -50%; opacity: 1; stroke: #fff; }

/* ---------- Stats ---------- */
.stats { padding-block: 72px 24px; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--paper-alt);
  border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease-spring), box-shadow .35s;
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stat::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 4px; background: var(--royal); border-radius: 4px 4px 0 0; transform: scaleX(.25); transform-origin: left; transition: transform .6s var(--ease-out); }
.stat:hover::after { transform: scaleX(1); }
.stat-num { display: flex; align-items: baseline; gap: 6px; font-family: var(--head); font-weight: 800; font-size: clamp(3rem, 6vw, 4.4rem); line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat-num small { font-size: .38em; color: var(--royal); text-transform: uppercase; }
.stat-label { display: block; margin-top: 8px; font-weight: 600; font-size: 1rem; color: var(--muted); line-height: 1.35; }
.stat--accent { background: var(--navy); border-color: var(--navy); }
.stat--accent .stat-num { color: #fff; }
.stat--accent .stat-num small { color: var(--sky); }
.stat--accent .stat-label { color: #dbe2f5; }
.stat--accent::after { background: #fff; }   /* the blue bar was invisible on the navy box */
.stat--accent { transition: transform .35s var(--ease-spring), box-shadow .35s, background .35s; }
.stat--accent:hover { background: var(--royal); }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: 100px; }
.section-alt { background: var(--paper-alt); }
.section-head { margin-bottom: 44px; }
.section-head--center { text-align: center; }
.section-head--center .section-title::after { margin-inline: auto; }
.kicker { margin: 0 0 10px; font-weight: 700; font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--royal); }
.kicker--light { color: var(--sky); }
.section-title {
  font-family: var(--head); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem); line-height: .95; color: var(--navy); margin: 0;
  text-wrap: balance;
}
.section-title::after {
  content: ""; display: block; width: 80px; height: 5px; background: var(--royal); margin-top: 16px; border-radius: 3px;
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out) .3s;
}
.is-in.section-title::after, .is-in .section-title::after { transform: scaleX(1); }
.section-title--light { color: #fff; }
.section-title--light::after { background: #fff; }
.section-sub { max-width: 56ch; margin: 18px auto 0; color: var(--muted); }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal="up"] { transform: translateY(40px); }
[data-reveal="left"] { transform: translateX(60px); }
[data-reveal="right"] { transform: translateX(-60px); }
[data-reveal="zoom"] { transform: scale(.88); }
[data-reveal].is-in { opacity: 1; transform: none; }
/* tilt elements keep their own transform after reveal */
.tilt[data-reveal].is-in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.tilt[data-reveal].is-in.revealed { transition: transform .5s var(--ease-out), box-shadow .4s, opacity .9s; transition-delay: 0s; }
.tilt[data-reveal].is-in.revealed.is-tilting { transition: transform .08s linear, box-shadow .4s; }

/* ---------- Intro ---------- */
.intro { padding-block: 80px 110px; }
.intro-inner { max-width: 980px; }
.display {
  font-family: var(--head); font-weight: 800; text-transform: uppercase; color: var(--navy);
  font-size: clamp(2.3rem, 5.6vw, 4.4rem); line-height: .98; margin: 0 0 28px; text-wrap: balance;
}
.display em { font-style: normal; color: var(--royal); }
.hl { background: linear-gradient(transparent 62%, rgba(47,86,224,.2) 62%) no-repeat; background-size: 0% 100%; transition: background-size 1.2s var(--ease-out) .6s; }
.is-in .hl, .is-in.display .hl { background-size: 100% 100%; }
.intro-copy { font-size: 1.25rem; max-width: 64ch; color: var(--muted); margin: 0; }
.intro-copy + .intro-copy { margin-top: 18px; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px 32px;
  box-shadow: var(--shadow-sm);
}
.pillar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  clip-path: circle(0% at 100% 0%); transition: clip-path .7s var(--ease-out);
}
.pillar:hover::before { clip-path: circle(150% at 100% 0%); }
.pillar:hover { box-shadow: var(--shadow-lg); }
.pillar-num { position: absolute; right: 18px; top: 10px; font-family: var(--head); font-weight: 800; font-size: 3.6rem; color: rgba(20,48,122,.08); line-height: 1; transition: color .5s, transform .6s var(--ease-spring); }
.pillar:hover .pillar-num { color: rgba(255,255,255,.14); transform: scale(1.15) rotate(-6deg); }
.pillar-icon {
  width: 56px; height: 56px; padding: 11px; margin-bottom: 18px; border-radius: 14px;
  background: var(--paper-alt); fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .6s var(--ease-spring), background .4s, stroke .4s;
}
.pillar:hover .pillar-icon { transform: rotate(-8deg) scale(1.1); background: #fff; stroke: var(--navy-deep); }
.pillar h3 { font-family: var(--head); font-size: 1.75rem; font-weight: 800; text-transform: uppercase; color: var(--navy); margin: 0 0 10px; line-height: 1; transition: color .4s; }
.pillar p { margin: 0; color: var(--muted); font-size: 1.03rem; transition: color .4s; }
.pillar:hover h3 { color: #fff; }
.pillar:hover p { color: #dbe2f5; }

/* ---------- Videos ---------- */
.videos { color: #fff; background: var(--navy-ink); overflow: hidden; }
.videos-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(35,80,184,.55), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(140,175,255,.2), transparent 45%);
  animation: glow 14s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: scale(1.15) translate(-3%, 2%); } }
.videos .wrap { position: relative; }
.video-grid { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 20px; min-height: 680px; }
.video-card:not(.video-card--feature) img { object-position: 50% 45%; }
.video-card:not(.video-card--feature) .play { left: auto; right: 22px; top: 50%; translate: 0 -50%; }
.video-card:not(.video-card--feature) .video-meta { right: 96px; }
.video-card {
  position: relative; overflow: hidden; border: 0; padding: 0; border-radius: var(--radius); cursor: pointer;
  background: var(--navy); color: #fff; text-align: left; box-shadow: var(--shadow-lg); min-height: 240px;
}
.video-card--feature { grid-row: 1 / -1; }
.video-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform 1.2s var(--ease-out), filter .6s; }
.video-card:hover img { transform: scale(1.1); filter: saturate(1.15); }
.video-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,18,47,.1) 20%, rgba(7,18,47,.88) 100%); transition: background .5s; }
.video-card:hover .video-overlay { background: linear-gradient(180deg, rgba(7,18,47,0) 10%, rgba(7,18,47,.8) 100%); }
.play {
  position: absolute; left: 50%; top: 45%; translate: -50% -50%;
  display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%;
  background: #fff; color: var(--navy); box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform .5s var(--ease-spring);
}
.video-card:not(.video-card--feature) .play { width: 58px; height: 58px; }
.play::before, .play::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #fff;
  animation: pulse 2.4s var(--ease-out) infinite;
}
.play::after { animation-delay: 1.2s; }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.play svg { width: 42%; height: 42%; margin-left: 6%; fill: currentColor; }
.video-card:hover .play { transform: scale(1.18); }
.video-meta { position: absolute; left: 24px; right: 24px; bottom: 22px; display: grid; gap: 4px; transform: translateY(8px); transition: transform .5s var(--ease-out); }
.video-card:hover .video-meta { transform: none; }
.video-tag { justify-self: start; font-size: .78rem; font-weight: 700; letter-spacing: .12em; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); padding: 4px 10px; border-radius: 999px; }
.video-title { font-family: var(--head); font-weight: 800; font-size: 1.7rem; text-transform: uppercase; line-height: 1; }
.video-card--feature .video-title { font-size: clamp(2rem, 4vw, 2.8rem); }
.video-sub { color: #dbe2f5; font-size: 1.02rem; }

/* ---------- Story timeline ---------- */
.story-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.story-intro .section-title { margin-bottom: 26px; }
.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 44px; }
.tl-line { position: absolute; left: 11px; top: 8px; bottom: 8px; width: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.tl-line span { position: absolute; inset: 0; background: linear-gradient(180deg, var(--royal-bright), var(--navy)); transform-origin: top; transform: scaleY(var(--p, 0)); }
.tl-item { position: relative; padding: 0 0 44px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -44px; top: 6px; width: 25px; height: 25px; border-radius: 50%;
  background: #fff; border: 4px solid var(--line); transition: border-color .5s, transform .5s var(--ease-spring), background .5s;
}
.tl-item.is-in .tl-dot { border-color: var(--royal); transform: scale(1.1); }
.tl-when { margin: 0 0 2px; font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--royal); }
.tl-item h3 { font-family: var(--head); font-weight: 800; font-size: 1.9rem; line-height: 1; text-transform: uppercase; color: var(--navy); margin: 0 0 10px; }
.tl-item p { margin: 0 0 10px; color: var(--muted); }

/* ---------- Tech center: text and photo side by side, thumbnails span full width below ---------- */
.tech { position: relative; overflow: hidden; background: var(--navy-ink); padding-block: 56px; }
.tech-inner { display: grid; gap: 28px; grid-template-areas: "text" "media" "thumbs"; }
@media (min-width: 901px) {
  .tech-inner { grid-template-columns: minmax(0, 1fr) 420px; grid-template-areas: "text media" "thumbs thumbs"; align-items: center; gap: 32px 56px; }
}
.tech-text { grid-area: text; }
.tech-media { grid-area: media; position: relative; width: 100%; max-width: 420px; margin: 0 auto; }
.tech-photo { aspect-ratio: 1199 / 1400; max-height: 46vh; }
.tech-img { position: absolute; inset: 0; }
.tech-img img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.tech-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 70%, rgba(6,13,66,.55)); }

/* "What You Can Count On" now lives under the 38 Years quote in the story section */
.tech-card { width: min(560px, 100%); background: #fff; border-radius: var(--radius); padding: 44px 40px; box-shadow: var(--shadow-lg); border-top: 6px solid var(--royal); margin-top: 36px; }
.tech-card .section-title { margin-bottom: 26px; }

.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { position: relative; padding-left: 40px; margin-bottom: 14px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--royal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17 19 7'/%3E%3C/svg%3E") center / 15px no-repeat;
  transform: scale(0) rotate(-90deg); transition: transform .6s var(--ease-spring); transition-delay: calc(var(--d, 0s) + .25s);
}
.checks li.is-in::before { transform: none; }
.checks--light li { color: #dbe2f5; }
.roots-list { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
.roots-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.roots-text { margin: 0; }
.legacy-photo { width: 100%; height: 220px; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); object-fit: cover; }
@media (min-width: 640px) {
  .roots-list { grid-template-columns: 1fr 220px; gap: 24px; align-items: stretch; }
  .legacy-photo { height: 100%; }
}
.checks--light li strong { color: #fff; }

/* ---------- Beyond (bento) ---------- */
.bento--trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento-item { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--navy); box-shadow: var(--shadow-md); aspect-ratio: 4 / 5; }
.bento-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out), filter .6s; }
.bento-item:hover img { transform: scale(1.12) rotate(1deg); filter: saturate(1.2); }
.bento-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 20px; color: #fff;
  background: linear-gradient(transparent, rgba(7,18,47,.9)); display: grid; gap: 2px;
}
.bento-item figcaption b { font-family: var(--head); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; line-height: 1; }
.bento-item figcaption span { font-size: .98rem; color: #dbe2f5; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease-out), opacity .5s; }
.bento-item:hover figcaption span, .bento-item:focus-within figcaption span { max-height: 3em; opacity: 1; }
@media (hover: none) { .bento-item figcaption span { max-height: 3em; opacity: 1; } }

/* ---------- Supporters ---------- */
.supporters { overflow: hidden; }
.marquee { position: relative; overflow: hidden; padding-block: 10px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 300s linear infinite; }
.marquee-track[data-marquee="right"] { animation-direction: reverse; animation-duration: 360s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chip {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 12px 22px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-family: var(--head); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--royal); }
.marquee--alt .chip::before { background: #fff; }
.marquee--alt .chip { background: var(--navy); color: #fff; border-color: var(--navy); }

.supporters-bottom { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; margin-top: 56px; align-items: start; }
.mini-title { font-family: var(--head); font-weight: 800; font-size: 1.9rem; text-transform: uppercase; color: var(--navy); margin: 0 0 18px; line-height: 1; }
.supporter-count { color: var(--royal); font-variant-numeric: tabular-nums; }
.supporter-grid { list-style: none; margin: 0; padding: 0; columns: 3 180px; column-gap: 24px; }
.supporter-grid li { break-inside: avoid; padding: 8px 0 8px 22px; position: relative; border-bottom: 1px dashed var(--line); font-weight: 600; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s var(--ease-out); transition-delay: calc(var(--i, 0) * 40ms); }
.supporter-grid li::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 10px; translate: 0 -50%; border-radius: 3px; background: var(--royal); rotate: 45deg; }
.is-in .supporter-grid li { opacity: 1; transform: none; }

/* "Endorsed By" trigger + full-list popup */
.endorsed-by-link {
  display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 10px 20px;
  border: 2px solid var(--royal); border-radius: 999px; background: #fff; color: var(--royal);
  font: 700 .95rem var(--body); cursor: pointer; transition: background .2s, color .2s, transform .2s var(--ease-spring);
}
.endorsed-by-link:hover, .endorsed-by-link:focus-visible { background: var(--royal); color: #fff; transform: translateY(-2px); }
.endorsed-by-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.modal-panel.endorsed-by-panel { background: #fff; color: var(--ink); width: min(760px, 100%); }
.endorsed-by-panel .modal-head { color: var(--navy); border-bottom: 1px solid var(--line); }
.endorsed-by-panel .modal-close { background: var(--paper-alt); color: var(--navy); }
.endorsed-by-panel .modal-close:hover { background: var(--navy); color: #fff; }
.modal-body.endorsed-by-body { aspect-ratio: auto; background: #fff; color: var(--ink); max-height: 70vh; overflow-y: auto; padding: 8px 28px 32px; }
.endorsed-by-body .sup-name { color: var(--navy); font-weight: 700; }
.endorsed-by-body .sup-role { color: var(--muted); }
.sup-read { display: inline-block; margin-top: 3px; padding: 0; border: 0; background: none; font: 700 .85rem var(--body); color: var(--royal); cursor: pointer; }
.sup-read:hover, .sup-read:focus-visible { color: #d7262e; text-decoration: underline; }
@media (max-width: 640px) { .endorsed-by-body { padding: 8px 18px 24px; } .supporter-grid { columns: 1; } }

.endorse-form { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-md); border-top: 6px solid var(--navy); }
.form-help { margin: -8px 0 18px; color: var(--muted); font-size: 1rem; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: .98rem; margin-bottom: 6px; color: var(--ink); }
.field label span[aria-hidden] { color: #b3261e; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 1rem;
  border: 1.5px solid #cfc9ba; border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(35,80,184,.15); }
.field input[aria-invalid="true"] { border-color: #b3261e; animation: shake .4s; }
@keyframes shake { 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }
.field-err { margin: 4px 0 0; font-size: .92rem; color: #b3261e; min-height: 0; }
.field-err:empty { display: none; }
.check-field { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 20px; font-size: .98rem; cursor: pointer; }
.check-field input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--navy); flex: none; }
.form-status { margin: 12px 0 0; font-weight: 600; color: #1e6b3a; }
.form-status:empty { display: none; }

/* ---------- Vote ---------- */
.vote { color: #fff; background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 60%, var(--navy-ink) 100%); overflow: hidden; }
.vote::before {
  content: ""; position: absolute; right: -10%; top: -20%; bottom: -20%; width: 34%;
  background: rgba(255,255,255,.05); transform: skewX(-14deg);
}
.vote .wrap { position: relative; }
.vote-steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.vote-steps li {
  position: relative; padding: 26px 22px; border-radius: var(--radius);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  transition: transform .4s var(--ease-spring), background .3s;
}
.vote-steps li:hover { transform: translateY(-8px); background: rgba(255,255,255,.1); }
.v-date { display: block; font-family: var(--head); font-weight: 800; font-size: 2.4rem; color: var(--sky); line-height: 1; text-transform: uppercase; }
.v-what { display: block; margin-top: 8px; color: #e1e7f5; }
.vote-steps .v-big { background: #fff; border-color: #fff; color: var(--navy-ink); animation: glowPulse 2.6s ease-in-out infinite; }
.vote-steps .v-big .v-date { color: var(--royal); }
.vote-steps .v-big .v-what { color: var(--navy-ink); font-weight: 700; }
@keyframes glowPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.4); } 50% { box-shadow: 0 0 0 14px rgba(255,255,255,0); } }
.vote-links { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Footer ---------- */
.vote-footer { margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.2); }
.footer-vote { font-family: var(--head); font-weight: 800; font-size: 2rem; color: #fff; margin: 0; text-transform: uppercase; line-height: 1; }
.footer-sub { margin: 6px 0 0; color: #b9c3dd; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,10,28,.82); backdrop-filter: blur(6px); animation: fadeIn .3s ease; }
.modal-panel { position: relative; width: min(960px, 100%); background: var(--navy-ink); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: popIn .45s var(--ease-spring); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 20px; color: #fff; }
.modal-head h2 { margin: 0; font-family: var(--head); font-weight: 800; text-transform: uppercase; font-size: 1.4rem; }
.modal-close { width: 48px; height: 48px; display: grid; place-items: center; border: 0; background: rgba(255,255,255,.08); border-radius: 50%; cursor: pointer; color: #fff; transition: background .2s, transform .3s var(--ease-spring); }
.modal-close:hover { background: #fff; color: var(--navy-ink); transform: rotate(90deg); }
.modal-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.modal-body { aspect-ratio: 16 / 9; background: #000; }
.modal-body video, .modal-body iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-soon { height: 100%; display: grid; place-items: center; text-align: center; padding: 24px; color: #dbe2f5; background: radial-gradient(circle, #14307a, #07122f); }
.video-soon b { display: block; font-family: var(--head); font-size: 2.2rem; text-transform: uppercase; color: var(--sky); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.85) translateY(30px); } }

/* ---------- Placeholders (remove once real content is in) ---------- */
.placeholder { background: #fff6d6; border: 2px dashed #d9b44a; padding: 12px 16px; border-radius: 8px; color: #6b5316; font-size: 1rem; }
.placeholder-inline { background: #fff6d6; color: #6b5316; padding: 0 4px; border-radius: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .fb-1 { left: -8px; }
  .fb-2 { right: -8px; }
}
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .main-nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(7,18,47,.97); padding: 12px 16px 24px;
    clip-path: inset(0 0 100% 0); transition: clip-path .45s var(--ease-out); visibility: hidden;
  }
  .main-nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
  .main-nav a { padding: 14px 8px; font-size: 1.15rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .main-nav a::after { display: none; }
  .site-header { background: rgba(7,18,47,.92); }

  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .hero-text { padding-bottom: 0; }
  .hero-slash { width: 70%; top: 45%; right: -30%; }
  .hero-slash--thin { display: none; }
  .hero-photo { width: min(78%, 380px); }
  .fb-2 { bottom: 46px; }
  .arch img { aspect-ratio: 3 / 5; object-position: 16% 50%; }
  .quick { grid-template-columns: repeat(2, 1fr); margin-top: -30px; }
  .quick-card:nth-child(3) { border-left: 0; }
  .quick-card:nth-child(n+3) { border-top: 1px solid var(--line); }

  .section { padding-block: 72px; }
  .video-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: 420px 300px; min-height: 0; }
  .video-card--feature { grid-row: 1; grid-column: 1 / -1; }
  .story-inner, .supporters-bottom { grid-template-columns: 1fr; gap: 40px; }
  .vote-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .hide-sm { display: none; }
  .hero-title .line--big { font-size: 1.75em; }
  .hero-title .line--for { font-size: .36em; }
  .hero-bulldog { width: 150px; margin-left: -6px; }
  .brand-name { font-size: 1.45rem; }
  .float-badge { padding: 8px 12px; }
  .float-badge b { font-size: 1.6rem; }
  .quick { grid-template-columns: 1fr; }
  .quick-card { border-left: 0; border-top: 1px solid var(--line); padding: 18px 22px; }
  .quick-card:first-child { border-top: 0; }
  .quick-arrow { opacity: 1; translate: 0 -50%; }
  .stats { padding-top: 48px; }
  .stats-inner { gap: 12px; }
  .stat { padding: 20px 16px; }
  .pillars { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; grid-template-rows: 440px 320px 320px 320px; }
  .bento--trio { grid-template-columns: 1fr; }
  .vote-steps { grid-template-columns: 1fr; }
  .tech-card { padding: 32px 24px; }
  .endorse-form { padding: 24px 20px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero-ring { display: none; }
  [data-reveal], .load-in, .hero-title .line > span { opacity: 1 !important; transform: none !important; }
  .hero-slash { transform: skewX(-14deg); }
  .marquee-track { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track > :nth-child(n+13) { display: none; }
}

/* Vertical (phone-shot) videos get a tall player instead of a letterboxed 16:9 one */
.modal.is-portrait .modal-panel { width: min(calc(min(78vh, 780px) * 9 / 16), 100%); }
.modal.is-portrait .modal-body { aspect-ratio: 9 / 16; }

/* Main video card: keep Susan's face clear, play button in the corner */
.video-card--feature img { object-position: 50% 48%; }
.video-card--feature .play { left: auto; top: auto; right: 28px; bottom: 28px; translate: none; }
.video-card--feature .video-meta { right: 124px; }

/* Susan's own words, opening the Meet Susan section */
.story-quote {
  position: relative; margin: 0; padding: 30px 28px 26px; border-radius: var(--radius);
  background: var(--paper-alt); border-left: 5px solid var(--royal);
  box-shadow: var(--shadow-sm);
}
.story-quote::before {
  content: "\201C"; position: absolute; top: -18px; left: 18px;
  font-family: Georgia, serif; font-size: 5.5rem; line-height: 1; color: var(--royal); opacity: .9;
}
.story-quote p { margin: 0 0 14px; font-size: 1.1rem; line-height: 1.65; color: var(--ink); }
.story-quote footer {
  font-family: var(--head); font-weight: 700; font-size: 1.2rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--navy);
}
.story-quote footer::before { content: "\2014\00a0"; color: var(--royal); }

/* Closing quote: spans the full width below the timeline, not squeezed into a column */
.story-close-quote {
  position: relative; max-width: 900px; margin: 56px auto 0; padding: 56px 56px 44px;
  border-radius: var(--radius); background: var(--paper-alt); border-left: 6px solid var(--royal);
  box-shadow: var(--shadow-md);
}
.story-close-quote::before {
  content: "\201C"; position: absolute; top: -34px; left: 34px;
  font-family: Georgia, serif; font-size: 8rem; line-height: 1; color: var(--royal); opacity: .9;
}
.story-close-quote p { margin: 0 0 16px; font-size: 1.2rem; line-height: 1.7; color: var(--ink); }
.story-close-quote footer {
  font-family: var(--head); font-weight: 700; font-size: 1.2rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--navy);
}
@media (max-width: 640px) { .story-close-quote { padding: 48px 28px 32px; } .story-close-quote::before { left: 20px; font-size: 6rem; } }

/* Highlights list inside a timeline entry */
.tl-wins { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.tl-wins li {
  position: relative; padding: 12px 14px 12px 44px; border-radius: var(--radius-sm);
  background: var(--paper-alt); border: 1px solid var(--line); color: var(--muted); font-size: 1rem; line-height: 1.5;
  transition: transform .35s var(--ease-spring), box-shadow .3s, border-color .3s;
}
.tl-wins li:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); border-color: var(--royal); }
.tl-wins li::before {
  content: ""; position: absolute; left: 14px; top: 15px; width: 18px; height: 18px;
  background: var(--royal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 3l2.6 5.6 6.1.7-4.5 4.2 1.2 6L12 16.6 6.6 19.5l1.2-6L3.3 9.3l6.1-.7z'/%3E%3C/svg%3E") center / 12px no-repeat;
  border-radius: 50%;
}
.tl-wins strong { color: var(--navy); }

/* Closing ask in the last timeline entry */
.tl-item p.tl-ask { color: var(--navy); font-weight: 700; font-size: 1.1rem; }

/* Supporter name + optional title */
.chip .sup-role { font-family: var(--body); font-weight: 600; font-size: .85rem; text-transform: none; letter-spacing: 0; opacity: .75; }
.chip .sup-role::before { content: "\00B7"; margin-right: 8px; }
.supporter-grid .sup-name { display: block; }
.supporter-grid .sup-role { display: block; font-weight: 400; font-size: .92rem; color: var(--muted); line-height: 1.3; }
.supporter-grid li::before { top: 20px; translate: 0 0; }
.sup-note { margin: 14px 0 0; font-size: .88rem; font-style: italic; color: var(--muted); }

/* "Add Your Name" backup message (for visitors without an email app set up) */
.form-status { font-weight: 400; color: var(--ink); }
.form-status .fs-thanks { margin: 0 0 6px; font-weight: 700; color: #1e6b3a; }
.form-status .fs-help { margin: 0 0 8px; font-size: .95rem; color: var(--muted); }
.form-status .fs-help a { font-weight: 700; overflow-wrap: anywhere; }
.form-status .fs-message {
  margin: 0 0 10px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--paper-alt); border: 1px dashed var(--silver-deep);
  font-family: var(--body); font-size: .95rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere;
}
.btn-ghost-dark { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); min-height: 44px; padding: 10px 20px; font-size: .98rem; }
.btn-ghost-dark:hover { background: var(--navy); color: #fff; }

/* Tagline phrases in the hero open their matching video */
.lede-link { color: inherit; text-decoration: underline; text-decoration-color: rgba(179,200,255,.55);
             text-decoration-thickness: 2px; text-underline-offset: .22em; transition: color .2s, text-decoration-color .2s; }
.lede-link:hover, .lede-link:focus-visible { color: #fff; text-decoration-color: #fff; }
.lede-link:hover strong, .lede-link:focus-visible strong { color: var(--sky); }
.lede-play { display: inline-block; width: .95em; height: .95em; margin-left: .3em; vertical-align: -.1em; padding: .12em;
             border-radius: 50%; background: rgba(255,255,255,.18); fill: #fff; transition: background .2s, transform .25s var(--ease-spring); }
.lede-link:hover .lede-play { background: var(--red, #d7262e); transform: scale(1.15); }

/* Priority card headings open their matching video */
.pillar-link { color: inherit; text-decoration: none; }
.pillar-link:hover, .pillar-link:focus-visible { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .15em; }
.pillar-play { display: inline-block; width: .8em; height: .8em; margin-left: .3em; vertical-align: -.05em; padding: .14em;
               border-radius: 50%; background: var(--navy); fill: #fff; transition: background .3s, transform .3s var(--ease-spring); }
.pillar:hover .pillar-play { background: #fff; fill: var(--navy); }
.pillar-link:hover .pillar-play { transform: scale(1.15); }


/* ---------- Endorsements ("In Their Own Words"): name list + popup reader ---------- */
.endorsements-wrap[hidden] { display: none; }
.e-intro { margin: -8px 0 16px; color: var(--muted); font-size: 1rem; }

/* Fallback (no JavaScript): full endorsements shown as simple cards */
.endorsement { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--royal); border-radius: var(--radius-sm);
               padding: 18px 20px; margin-bottom: 14px; }
.e-body p { margin: 0 0 10px; }
.e-footer { display: grid; }
/* With JavaScript: the articles are hidden and a clickable name list is shown instead */
.endorsements.is-enhanced .endorsement { display: none; }

.e-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; align-items: start; }
.e-item { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 64px; text-align: left; cursor: pointer;
          background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--royal); border-radius: var(--radius-sm) var(--radius-sm) 0 0;
          box-shadow: var(--shadow-sm); font: inherit; color: var(--ink);
          transition: transform .3s var(--ease-spring), box-shadow .25s, border-color .25s; }
.e-item:hover, .e-item:focus-visible, .e-item[aria-expanded="true"] { transform: translateY(-3px); box-shadow: var(--shadow-md); border-left-color: #d7262e; }
.e-item-quote { flex: none; font-family: Georgia, serif; font-size: 2.4rem; line-height: .6; padding-top: .35em; color: var(--royal); }
.e-item-who { display: grid; flex: 1; min-width: 0; }
.e-item-name { font-family: var(--head); font-weight: 800; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .02em; color: var(--navy); line-height: 1.1; }
.e-item-title { font-size: .92rem; color: var(--muted); line-height: 1.3; }
.e-item-read { flex: none; font-weight: 700; font-size: .9rem; color: var(--royal); white-space: nowrap; display: flex; align-items: center; gap: 3px; }
.e-item:hover .e-item-read, .e-item[aria-expanded="true"] .e-item-read { color: #d7262e; }
.e-item-caret { display: inline-block; transition: transform .25s ease; }
.e-item[aria-expanded="true"] .e-item-caret { transform: rotate(180deg); }

/* Quote expands in place, right below its name, instead of a popup */
.e-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease;
           background: #fff; border: 1px solid var(--line); border-top: 0; border-left: 5px solid var(--royal);
           border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.e-panel.is-open { grid-template-rows: 1fr; border-left-color: #d7262e; }
.e-panel-inner { overflow: hidden; }
.e-panel-body { padding: 4px 20px 20px; }
.e-panel-body p { margin: 0 0 12px; font-size: 1.02rem; line-height: 1.65; color: var(--ink); }
.e-panel-body p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .e-panel { transition: none; } }


/* ---------- Tech Center photo gallery ---------- */
.tech-photo { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--navy-ink); cursor: zoom-in; overflow: hidden; color: inherit; }
.tech-img { display: block; }
.tech-img img { display: block; transition: opacity .3s ease, transform 1.2s var(--ease-out); }
.tech-photo.is-swapping .tech-img img { opacity: 0; }
.tech-zoom { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center;
             border-radius: 50%; background: rgba(6,13,66,.65); color: #fff; opacity: .85; transition: opacity .2s, transform .3s var(--ease-spring); }
.tech-zoom svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tech-photo:hover .tech-zoom, .tech-photo:focus-visible .tech-zoom { opacity: 1; transform: scale(1.1); }
.tech-ph { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center;
           background: linear-gradient(160deg, #1b3b8f, #0a1766); color: var(--sky); font-family: var(--head); font-size: 1.4rem; text-transform: uppercase; letter-spacing: .08em; }
.tech-ph[hidden] { display: none; }
.tech-ph svg { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

.tech-thumbs { grid-area: thumbs; display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; padding: 12px; background: var(--navy-ink); }
@media (max-width: 480px) { .tech-thumbs { grid-template-columns: repeat(5, 1fr); } }
.tech-thumb { position: relative; aspect-ratio: 1; padding: 0; border: 3px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer;
              background: #1b2a66; opacity: .75; transition: opacity .2s, border-color .2s, transform .3s var(--ease-spring); }
.tech-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
.tech-thumb:hover, .tech-thumb:focus-visible { opacity: 1; transform: translateY(-3px); }
.tech-thumb.is-active { opacity: 1; border-color: #fff; }
.tech-thumb--ph { display: grid; place-items: center; color: var(--sky); font: 700 .8rem var(--body); text-transform: uppercase; letter-spacing: .06em; }

/* Full-size photo viewer */
.photo-panel { position: relative; max-width: min(1100px, 94vw); animation: popIn .4s var(--ease-spring); }
.photo-panel img { display: block; max-width: 100%; max-height: 86vh; width: auto; height: auto; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.photo-close { top: -14px; right: -14px; background: #fff; }
@media (max-width: 640px) { .photo-close { top: 8px; right: 8px; } .tech-thumbs { gap: 6px; padding: 8px; } }

/* Three priority cards: stack them below laptop width */
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
