/* South OC Cyber Club — shared styles
   Fonts: Plus Jakarta Sans (headings) + Inter (body), self-hosted latin subsets in assets/fonts/. */

@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700 800; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

:root {
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #475569;
  --subtle: #64748b;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-tint: #effaf8;
  --line: #e2e8f0;

  --brand: #0d9488;
  --brand-strong: #0f766e;
  --brand-deep: #115e59;
  --brand-soft: #ccfbf1;
  --sun: #f59e0b;
  --sun-soft: #fef3c7;
  --sun-ink: #92400e;
  --indigo: #4f46e5;
  --indigo-soft: #e0e7ff;
  --rose: #e11d48;
  --rose-soft: #ffe4e6;
  --night: #0b1b33;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow: 0 12px 32px -14px rgba(15, 23, 42, .22);
  --container: 1120px;
  --header-h: 72px;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
p + p { margin-top: 1rem; }

a { color: var(--brand-strong); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
strong { color: var(--ink); font-weight: 650; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.i { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.5rem;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; border-radius: 999px; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .i { width: 1.1em; height: 1.1em; transition: transform .15s ease; }
.btn:hover .i-arrow { transform: translateX(3px); }

.btn-primary { background: var(--brand-strong); color: #fff; box-shadow: 0 6px 18px -6px rgba(15, 118, 110, .55); }
.btn-primary:hover { background: var(--brand-deep); color: #fff; box-shadow: 0 10px 24px -8px rgba(15, 118, 110, .6); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-strong); }
.btn-light { background: #fff; color: var(--brand-deep); }
.btn-light:hover { background: var(--bg-tint); color: var(--brand-deep); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-outline-light:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-sm { min-height: 44px; padding: .55rem 1.1rem; font-size: .95rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .35rem;
  font-weight: 600; text-decoration: none; color: var(--brand-strong);
}
.link-arrow .i { width: 1em; height: 1em; transition: transform .15s ease; }
.link-arrow:hover .i { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px -12px rgba(15, 23, 42, .25); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.brand-sub { font-size: .75rem; color: var(--subtle); font-weight: 500; }

.nav-links { display: flex; gap: .25rem; }
.nav-links a {
  display: block; padding: .55rem .9rem; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: .97rem;
  transition: background-color .15s ease, color .15s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-links a[aria-current="page"] { color: var(--brand-deep); background: var(--bg-tint); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: .5rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); cursor: pointer;
}
.nav-toggle .i { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-menu { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px -18px rgba(15, 23, 42, .35);
    padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .site-nav.open { display: block; }
  .nav-links { flex-direction: column; gap: .15rem; }
  .nav-links a { padding: .85rem 1rem; border-radius: 12px; font-size: 1.05rem; }
}
@media (max-width: 480px) {
  .brand-sub { display: none; }
  .brand-name { font-size: .98rem; }
  .header-actions .btn-sm { padding: .5rem .9rem; font-size: .9rem; }
  .header-inner { gap: .75rem; }
}
@media (max-width: 360px) {
  .brand-text { display: none; }
}

/* ---------- home hero (the one dark section) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(700px 420px at 85% 10%, rgba(13, 148, 136, .35), transparent 70%),
    radial-gradient(600px 400px at 10% 100%, rgba(79, 70, 229, .28), transparent 70%),
    var(--night);
  color: #cbd5e1;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(6rem, 10vw, 7.5rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M44 0H0v44' fill='none' stroke='%23ffffff' stroke-opacity='.06'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
}
.hero-grid > *, .split > *, .grid > * { min-width: 0; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 3rem; } }

.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .95rem .4rem .5rem; margin-bottom: 1.4rem;
  font-size: .85rem; font-weight: 600; color: #fde68a;
  background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .35); border-radius: 999px;
}
.pill-dot { width: 8px; height: 8px; margin-left: .35rem; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(245, 158, 11, .25); }
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero h1 .accent { background: linear-gradient(90deg, #5eead4, #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: clamp(1.1rem, 1rem + .4vw, 1.25rem); color: #cbd5e1; max-width: 36rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.25rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; font-size: .95rem; color: #94a3b8; }
.hero-facts li { display: flex; align-items: center; gap: .45rem; }
.hero-facts .i { color: #5eead4; width: 1.1em; height: 1.1em; }

/* terminal illustration */
.terminal {
  position: relative;
  background: rgba(15, 23, 42, .75); border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
  font: .9rem/1.8 var(--font-mono); color: #e2e8f0; overflow: hidden;
}
.terminal-bar { display: flex; align-items: center; gap: .45rem; padding: .8rem 1rem; border-bottom: 1px solid rgba(148, 163, 184, .15); }
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: #334155; }
.terminal-bar span:nth-child(1) { background: #f87171; }
.terminal-bar span:nth-child(2) { background: #fbbf24; }
.terminal-bar span:nth-child(3) { background: #34d399; }
.terminal-bar em { margin-left: auto; font-style: normal; font-size: .78rem; color: #94a3b8; }
.terminal-body { padding: 1.1rem 1.25rem 2.75rem; overflow-x: auto; }
.terminal .cmd { color: #f1f5f9; white-space: nowrap; }
.terminal .cmd::before { content: "$ "; color: #5eead4; }
.terminal .ok { color: #86efac; margin-bottom: .35rem; white-space: nowrap; }
.terminal .ok::before { content: "✓ "; }
.terminal .comment { color: #64748b; white-space: nowrap; }
.terminal .caret {
  display: inline-block; width: .55em; height: 1.15em; vertical-align: -.22em;
  background: #5eead4; animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 600px) {
  .terminal { font-size: .82rem; }
  .terminal-body { padding-bottom: 1.25rem; }
  .terminal-body > :nth-child(n+6):not(.prompt) { display: none; }
  .float-badge { display: none; }
}
.hero-visual { position: relative; }
.float-badge {
  position: absolute; left: -1.25rem; bottom: -1.5rem;
  display: flex; align-items: center; gap: .6rem;
  background: #fff; color: var(--ink); border-radius: 14px; padding: .75rem 1rem;
  font-size: .9rem; font-weight: 600; box-shadow: var(--shadow);
}
.float-badge .card-icon { width: 36px; height: 36px; margin: 0; border-radius: 10px; }
.float-badge small { display: block; font-weight: 500; color: var(--subtle); font-size: .78rem; }
@media (max-width: 960px) { .float-badge { left: 1rem; } }

/* ---------- subpage hero ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(13, 148, 136, .12), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(79, 70, 229, .08), transparent 70%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M44 0H0v44' fill='none' stroke='%230f172a' stroke-opacity='.05'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse at 85% 20%, #000 10%, transparent 65%);
  mask-image: radial-gradient(ellipse at 85% 20%, #000 10%, transparent 65%);
}
.page-hero h1 { max-width: 20ch; margin-bottom: 1rem; }
.page-hero .lede { font-size: clamp(1.08rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 40rem; }
.page-hero .hero-actions { margin: 2rem 0 0; }

.eyebrow {
  display: inline-block; margin-bottom: .75rem;
  font: 600 .8rem/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--brand-strong);
}
.eyebrow::before { content: "// "; opacity: .55; }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-tight { padding: clamp(2.5rem, 5vw, 3.5rem) 0 0; }

/* dark band for photo-led sections, echoing the home hero */
.section-night {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(600px 400px at 100% 0%, rgba(13, 148, 136, .22), transparent 70%),
    var(--night);
  color: #cbd5e1;
}
.section-night::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M44 0H0v44' fill='none' stroke='%23ffffff' stroke-opacity='.05'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse at 90% 0%, #000 10%, transparent 60%);
  mask-image: radial-gradient(ellipse at 90% 0%, #000 10%, transparent 60%);
}
.section-night h2, .section-night h3 { color: #fff; }
.section-night .eyebrow { color: #5eead4; }
.section-night .section-head p { color: #94a3b8; }
.section-head { max-width: 42rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: .75rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cbd5e1; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .98rem; }

.card-icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1.1rem;
  border-radius: 14px; background: var(--brand-soft); color: var(--brand-deep);
}
.card-icon .i { width: 24px; height: 24px; }
.tone-sun .card-icon, .card-icon.tone-sun { background: var(--sun-soft); color: var(--sun-ink); }
.tone-indigo .card-icon, .card-icon.tone-indigo { background: var(--indigo-soft); color: #3730a3; }
.tone-rose .card-icon, .card-icon.tone-rose { background: var(--rose-soft); color: #9f1239; }

@media (max-width: 640px) {
  .grid.cards-compact { gap: .75rem; }
  .cards-compact .card { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; padding: 1.25rem; }
  .cards-compact .card-icon { grid-row: span 2; width: 44px; height: 44px; margin: 0; }
  .cards-compact .card h3 { align-self: center; margin-bottom: .2rem; }
}

/* audience cards (students / parents) */
.audience { padding: clamp(1.6rem, 3vw, 2.25rem); position: relative; overflow: hidden; }
.audience::after {
  content: ""; position: absolute; width: 220px; height: 220px; right: -80px; top: -80px;
  border-radius: 50%; background: var(--bg-tint); z-index: 0;
}
.audience.tone-sun::after { background: #fffbeb; }
.audience > * { position: relative; z-index: 1; }
.audience h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.audience .checklist { margin: 1.1rem 0 1.4rem; }

/* checklist */
.checklist li { position: relative; padding: .35rem 0 .35rem 2rem; color: var(--ink-2); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .6rem; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23115e59' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 60% no-repeat;
}
.checklist.lg li { padding: .75rem 0 .75rem 2.4rem; border-bottom: 1px solid var(--line); }
.checklist.lg li:last-child { border-bottom: 0; }
.checklist.lg li::before { top: 1rem; }

/* ---------- steps (horizontal) ---------- */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; position: relative; }
.steps-row li { counter-increment: step; position: relative; }
.steps-row li::before {
  content: counter(step); display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 1rem; border-radius: 50%;
  font: 800 1.1rem/1 var(--font-head); color: var(--sun-ink); background: var(--sun-soft);
  border: 4px solid var(--bg-soft); box-shadow: 0 0 0 1px #fde68a;
}
.steps-row h3 { margin-bottom: .35rem; }
.steps-row p { color: var(--muted); font-size: .98rem; }
@media (min-width: 768px) {
  .steps-row::before {
    content: ""; position: absolute; top: 22px; left: 22px; right: 33%; height: 2px;
    background: repeating-linear-gradient(90deg, #fcd34d 0 8px, transparent 8px 16px);
  }
  .steps-row li { padding-right: 1rem; }
}
@media (max-width: 767px) { .steps-row { grid-template-columns: 1fr; } }

/* ---------- timeline (vertical steps) ---------- */
.timeline { counter-reset: step; position: relative; }
.timeline li { counter-increment: step; position: relative; padding: 0 0 2rem 4.25rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  font: 800 1.15rem/1 var(--font-head); color: #fff; background: var(--brand-strong);
  box-shadow: 0 0 0 6px var(--bg-tint);
}
.timeline li::after {
  content: ""; position: absolute; left: 23px; top: 56px; bottom: 8px; width: 2px; background: var(--line);
}
.timeline li:last-child::after { display: none; }
.timeline h3 { padding-top: .6rem; margin-bottom: .3rem; }
.timeline p { color: var(--muted); }

/* ---------- leaders ---------- */
.leader { text-align: center; padding: 2rem 1.6rem; }
.avatar {
  display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 1rem; border-radius: 50%;
  font: 800 1.6rem/1 var(--font-head); color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--indigo));
  box-shadow: 0 0 0 5px #fff, 0 0 0 6px var(--line);
}
.leader:nth-child(2) .avatar { background: linear-gradient(135deg, var(--indigo), #7c3aed); }
.leader:nth-child(3) .avatar { background: linear-gradient(135deg, var(--sun), #f97316); }
.leader h3 { font-size: 1.2rem; margin-bottom: .15rem; }
.role {
  display: inline-block; margin-bottom: .9rem; padding: .2rem .7rem; border-radius: 999px;
  background: var(--bg-tint); color: var(--brand-deep); font-size: .82rem; font-weight: 600;
}
.leader p { font-size: .95rem; }

/* ---------- callout ---------- */
.callout {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--bg-tint); border: 1px solid #b7ece2; border-radius: var(--radius);
  padding: 1.3rem 1.5rem; color: var(--ink-2); font-size: 1rem;
}
.callout > .i { width: 24px; height: 24px; color: var(--brand-strong); margin-top: .1rem; }
.callout strong { display: block; margin-bottom: .2rem; font-family: var(--font-head); font-size: 1.05rem; }
.callout.tone-sun { background: #fffbeb; border-color: #fde68a; }
.callout.tone-sun > .i { color: var(--sun-ink); }
.callout.tone-indigo { background: #eef2ff; border-color: #c7d2fe; }
.callout.tone-indigo > .i { color: var(--indigo); }
.callout .link-arrow { margin-top: .4rem; }
.stack > * + * { margin-top: 1.25rem; }

/* ---------- split / quote ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.prose p { color: var(--muted); font-size: 1.08rem; }
.prose p:first-child { color: var(--ink-2); font-size: 1.2rem; }

.quote-card {
  position: relative; border-radius: 20px; padding: 2.25rem 2rem 2rem;
  background: linear-gradient(145deg, var(--brand-strong), var(--brand-deep) 60%, #134e4a);
  color: #ccfbf1; box-shadow: var(--shadow);
}
.quote-card .eyebrow { color: #99f6e4; }
.quote-card p { font: 600 1.25rem/1.55 var(--font-head); color: #fff; letter-spacing: -.01em; }
.quote-card::before {
  content: "\201C"; position: absolute; right: 1.25rem; top: -.5rem;
  font: 800 7rem/1 var(--font-head); color: rgba(255, 255, 255, .12);
}

.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .95rem; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.chip .i { color: var(--brand-strong); width: 1.1em; height: 1.1em; }

/* ---------- topics ---------- */
.topics { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (max-width: 760px) { .topics { grid-template-columns: 1fr; } }
.topics li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1.1rem;
  color: var(--ink-2); font-weight: 500;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.topics li:hover { border-color: #cbd5e1; box-shadow: var(--shadow-sm); }

.tag {
  display: inline-block; padding: .25rem .7rem; border-radius: 999px; white-space: nowrap; flex-shrink: 0;
  font-size: .8rem; font-weight: 600;
  background: var(--bg-soft); color: var(--muted);
}
.tag-lab { background: var(--brand-soft); color: var(--brand-deep); }
.tag-network { background: #e0f2fe; color: #075985; }
.tag-physical { background: var(--sun-soft); color: var(--sun-ink); }
.tag-defense { background: var(--indigo-soft); color: #3730a3; }
.tag-ethics { background: #ede9fe; color: #5b21b6; }
.tag-privacy { background: #f1f5f9; color: #334155; }
.tag-service { background: var(--rose-soft); color: #9f1239; }
.tag-careers { background: #ffedd5; color: #9a3412; }
.tag-showtell { background: #dcfce7; color: #166534; }

/* ---------- milestones ---------- */
.milestones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 860px) { .milestones { grid-template-columns: 1fr; } }
.milestone { border-top: 4px solid var(--brand); }
.milestone.tone-indigo { border-top-color: var(--indigo); }
.milestone.tone-sun { border-top-color: var(--sun); }
.milestone-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.milestone-top .card-icon { margin: 0; }
.year { font: 800 2.25rem/1 var(--font-head); letter-spacing: -.03em; color: var(--brand-strong); }
.tone-indigo .year { color: var(--indigo); }
.tone-sun .year { color: var(--sun-ink); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.faq details[open] { border-color: #99f6e4; box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.3rem; cursor: pointer; list-style: none;
  font: 700 1.05rem/1.4 var(--font-head); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s ease, background-color .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--brand-soft); }
.faq details p { padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* competition team call to action (Programs): dark, like the hero terminal */
.team-cta {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(1.5rem, 3vw, 2rem); border-radius: var(--radius);
  background: radial-gradient(400px 220px at 100% 0%, rgba(13, 148, 136, .3), transparent 70%), var(--night);
  color: #cbd5e1; box-shadow: var(--shadow);
}
.team-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M44 0H0v44' fill='none' stroke='%23ffffff' stroke-opacity='.05'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 100% 0%, #000 10%, transparent 70%);
}
.team-cta-flag {
  display: inline-block; margin-bottom: 1rem; padding: .3rem .7rem; border-radius: 8px;
  font: 600 .85rem/1.4 var(--font-mono); color: #86efac;
  background: rgba(134, 239, 172, .08); border: 1px solid rgba(134, 239, 172, .25);
}
.team-cta h3 { color: #fff; font-size: 1.35rem; margin-bottom: .5rem; }
.team-cta p:not(.team-cta-flag) { margin: 0 0 1.5rem; }

/* ---------- contact ---------- */
.contact-card .for { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--subtle); }
.contact-card .for strong { display: block; color: var(--ink); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .2rem; }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(3.5rem, 8vw, 6rem) 0; }
main > .section:last-child:not(.section-soft) { padding-bottom: 0; }
.cta-inner {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding: clamp(2rem, 5vw, 3.25rem);
  border-radius: 24px; color: #ccfbf1;
  background: linear-gradient(120deg, var(--brand-strong), #0e7490 55%, #3730a3);
}
.cta-inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='2' cy='2' r='1.3' fill='%23ffffff' fill-opacity='.14'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
  mask-image: linear-gradient(90deg, transparent, #000);
}
.cta-inner h2 { color: #fff; margin-bottom: .5rem; }
.cta-inner p { color: #ccfbf1; font-size: 1.08rem; }
.cta-inner a:not(.btn) { color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: #94a3b8; font-size: .95rem; padding: clamp(3rem, 6vw, 4rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(148, 163, 184, .18); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
.footer-about .brand { color: #fff; margin-bottom: 1rem; }
.footer-about .brand:hover { color: #fff; }
.footer-about p { max-width: 26rem; }
.site-footer .footer-h { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; font-family: var(--font-body); font-weight: 700; }
.site-footer li + li { margin-top: .5rem; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #5eead4; }
.footer-legal { padding-top: 1.75rem; font-size: .85rem; color: #64748b; display: grid; gap: .5rem; }

/* ---------- reveal on scroll (only when JS is running) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- utilities ---------- */
.mt-lg { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.muted { color: var(--muted); }
.small { font-size: .92rem; }

/* =========================================================
   Content slots: photos, stats, news, partners, docs.
   Placeholders show until real content is added.
   ========================================================= */

/* text placeholder: [LIKE THIS] */
.todo {
  background: #fef9c3; color: #854d0e; border: 1px dashed #ca8a04;
  border-radius: 4px; padding: 0 .3em; font-weight: 600; font-size: .92em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero .todo, .cta-inner .todo, .site-footer .todo { background: rgba(254, 249, 195, .15); color: #fde68a; border-color: rgba(250, 204, 21, .6); }

/* photo slot */
.photo { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-soft); aspect-ratio: 4 / 3; }
.photo.r-16x9 { aspect-ratio: 16 / 9; }
.photo.r-1x1 { aspect-ratio: 1; }
.photo.r-5x2 { aspect-ratio: 5 / 2; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo.missing {
  display: grid; place-items: center; padding: 1rem 1rem 2rem; text-align: center;
  background: repeating-linear-gradient(45deg, #f8fafc 0 12px, #f1f5f9 12px 24px);
  border: 2px dashed #cbd5e1;
}
.photo.missing img { display: none; }
.photo.missing::before {
  content: attr(data-label); padding-top: 2.2rem; font-size: .9rem; font-weight: 600; color: var(--muted);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E") top center / 28px no-repeat;
}
.photo.missing::after {
  content: attr(data-file); position: absolute; left: .5rem; right: .5rem; bottom: .55rem;
  font: .7rem/1.3 var(--font-mono); color: var(--subtle); overflow-wrap: anywhere;
}
.live .photo.missing { display: none; }

/* hero: real photo replaces the terminal once hero.jpg exists */
.hero-visual .hero-photo { display: none; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); border-radius: 18px; }
.hero-visual.has-photo .hero-photo { display: block; }
.hero-visual.has-photo .terminal { display: none; }

/* stats band, overlapping the hero */
.stats-wrap { position: relative; z-index: 2; margin-top: -2.5rem; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
}
.stat { display: flex; flex-direction: column-reverse; gap: .25rem; padding: 1.5rem 1.25rem; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat dd { font: 800 clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem)/1.1 var(--font-head); color: var(--ink); letter-spacing: -.02em; }
.stat dd .todo { font-size: .8rem; letter-spacing: 0; vertical-align: middle; }
.stat dt { font-size: .88rem; color: var(--muted); font-weight: 500; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* photo rows: fixed height, so a row with only one photo becomes a wide banner, not an orphan */
.photo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.photo-row .photo { aspect-ratio: auto; height: clamp(220px, 24vw, 300px); }

/* highlights (home): featured video story + two photo stories */
.highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.highlight {
  display: flex; flex-direction: column; overflow: hidden;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(148, 163, 184, .18); border-radius: var(--radius);
}
.highlight-media { border-radius: 0; aspect-ratio: 16 / 9; background: #0f172a; }
.highlight-media img, .highlight-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.highlight-media img { transition: transform .5s ease; }
.highlight:hover .highlight-media img { transform: scale(1.03); }
.highlight-body { padding: 1.4rem 1.5rem 1.6rem; }
.highlight h3 { margin-bottom: .4rem; }
.highlight p { color: #cbd5e1; font-size: .98rem; }
.highlight .news-date { color: #5eead4; }
.highlight-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.55fr 1fr; }
.highlight-feature .highlight-body { align-self: center; padding: clamp(1.5rem, 3vw, 2.5rem); }
.highlight-feature h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-bottom: .6rem; }
.highlight-feature p { font-size: 1.05rem; }
@media (max-width: 760px) {
  .highlights, .highlight-feature { grid-template-columns: 1fr; }
}

.video-toggle {
  position: absolute; right: .75rem; bottom: .75rem;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(11, 27, 51, .72); border: 1px solid rgba(255, 255, 255, .25); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.video-toggle[hidden] { display: none; }
.video-toggle:hover { background: rgba(11, 27, 51, .9); }
.video-toggle .i { width: 18px; height: 18px; }
.video-toggle .i-play { fill: currentColor; }
.video-toggle .i-play, .video-toggle.paused .i-pause { display: none; }
.video-toggle.paused .i-play { display: block; }

/* milestones (About) */
.milestone { padding: 0; overflow: hidden; }
.milestone .photo { border-radius: 0; border-width: 0 0 2px; }
.milestone-body { padding: 1.4rem 1.5rem 1.6rem; }
.news-date { display: block; margin-bottom: .4rem; font: 600 .8rem/1.4 var(--font-mono); letter-spacing: .04em; color: var(--brand-strong); }

/* team */
.avatar { position: relative; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* partners */
.partners-title {
  margin-bottom: 1.25rem; text-align: center;
  font: 600 .8rem/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--subtle);
}
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.75rem; }
@media (max-width: 760px) { .logos { grid-template-columns: repeat(2, 1fr); } }
.logo-slot { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.logo-slot img { object-fit: contain; padding: 1rem 1.25rem; filter: grayscale(1); opacity: .8; transition: filter .2s ease, opacity .2s ease; }
.logo-slot:hover img { filter: none; opacity: 1; }
.logo-slot.missing::before { padding-top: 0; background: none; }
@media (max-width: 760px) { .logo-slot.missing::after { display: none; } }
.center-text { text-align: center; color: var(--muted); }

/* key facts (parents page) */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }
.fact {
  display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: center;
  background: var(--bg-tint); border: 1px solid #b7ece2; border-radius: var(--radius); padding: 1.1rem 1.25rem;
}
.fact .i { grid-row: span 2; width: 26px; height: 26px; color: var(--brand-strong); }
.fact dt { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-deep); }
.fact dd { color: var(--ink); font-weight: 600; }

/* documents */
.doc-card { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--ink-2); }
.doc-card:hover { color: var(--ink-2); }
.doc-card .card-icon { margin: 0; flex-shrink: 0; }
.doc-card strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.doc-card .muted { display: block; }
.doc-card.missing strong::after, .site-footer a.missing::after {
  content: "Not uploaded yet"; margin-left: .5rem; padding: .1rem .45rem; border-radius: 4px; vertical-align: middle;
  font: 600 .7rem/1.4 var(--font-body); background: #fef9c3; color: #854d0e; border: 1px dashed #ca8a04;
}
.site-footer a.missing::after { background: rgba(254, 249, 195, .15); color: #fde68a; }

/* contact info */
.info-card h3 { margin-bottom: .35rem; }
.info-link { font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
[data-email].unset {
  background: #fef9c3; color: #854d0e; border: 1px dashed #ca8a04; border-radius: 4px; padding: 0 .3em;
  font-weight: 600; font-size: .85rem; text-decoration: none;
}
.site-footer [data-email].unset { background: rgba(254, 249, 195, .15); color: #fde68a; }
.footer-email { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; }
.footer-email .i { color: #5eead4; }

/* draft badge */
.draft-badge {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 90;
  display: flex; align-items: center; gap: .5rem; padding: .55rem .9rem; border-radius: 999px;
  background: #1e293b; color: #fde68a; font: 600 .82rem/1 var(--font-body);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); border: 1px solid #854d0e; cursor: pointer;
}
.draft-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }

/* compact leadership line (About) */
.leadership { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.leadership-h { font-size: 1rem; font-family: var(--font-body); font-weight: 700; color: var(--ink); letter-spacing: 0; }
.leadership-list { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.leadership-list li { display: flex; align-items: center; gap: .5rem; font-size: .95rem; }
.leadership-list .role { margin: 0; }
.leadership p { flex-basis: 100%; }

/* competition team (Programs): on phones the results list comes before the call to action */
@media (min-width: 861px) {
  .competition { grid-template-areas: "intro list" "cta list"; }
  .competition > :first-child { grid-area: intro; }
  .competition-list { grid-area: list; }
  .competition-cta { grid-area: cta; }
}
.competition { row-gap: 2rem; }
