/* ============================================================
   Ogban Ebock Foundation — styles
   Direction: a foundation document woven on adire cloth.
   Indigo frames the page; cool cloth-white carries the
   records; the heartbeat line is the one signature.
   Display: Bricolage Grotesque · Body: Instrument Sans
   Utility: IBM Plex Mono (ledger voice)
   ============================================================ */

:root {
  --indigo: #0c2340;
  --indigo-deep: #07182c;
  --blue: #1677c8;
  --blue-dark: #0f5a9b;
  --blue-light: #3e9be0;
  --lime: #a8ce3f;
  --lime-dark: #64821b;
  --paper: #fbfcfd;
  --ink: #0b1e33;
  --muted: #5a6b7e;
  --line: rgba(11, 30, 51, 0.13);
  --line-strong: rgba(11, 30, 51, 0.3);
  --line-dark: rgba(255, 255, 255, 0.16);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

section { scroll-margin-top: calc(var(--header-h) + 12px); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.hero :focus-visible, .contact-panel :focus-visible { outline-color: var(--lime); }

/* ---------- Kickers (mono, uppercase — the ledger voice) ---------- */
.kicker {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-dark);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.kicker::before {
  content: "";
  width: 22px; height: 3px;
  background: var(--lime);
  flex: none;
}
.kicker-light { color: var(--lime); }

/* ---------- Type ---------- */
.section-title {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.accent { color: var(--blue); }

.section-head { max-width: 660px; margin-bottom: clamp(44px, 6vw, 64px); }
.section-sub { color: var(--muted); font-size: 1.05rem; margin-top: 16px; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease var(--d, 0s), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Buttons (square, mono — not pills) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 24px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn-on-dark { border-color: var(--line-dark); color: var(--paper); }
.btn-on-dark:hover { border-color: var(--lime); color: var(--lime); }

.btn-sm { padding: 11px 18px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(12, 35, 64, 0);
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.scrolled {
  background: rgba(12, 35, 64, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(4, 16, 32, 0.35);
}

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand-chip {
  display: inline-block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 6px 12px;
  transition: box-shadow 0.25s ease;
}
.brand:hover .brand-chip { box-shadow: 0 6px 18px rgba(4, 16, 32, 0.3); }
.brand-logo { height: 40px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 4px; }

.nav-link {
  font-weight: 500; font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  padding: 9px 14px;
  border-radius: 3px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-link.active { color: var(--lime); }

.nav-cta { margin-left: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; border-radius: 1px;
  background: var(--paper);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--indigo);
  color: var(--paper);
  padding: calc(var(--header-h) + clamp(64px, 10vw, 120px)) 0 clamp(48px, 7vw, 80px);
  overflow: hidden;
}

.hero-dots {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='132' viewBox='0 0 132 132'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.05'%3E%3Ccircle cx='14' cy='14' r='2.4'/%3E%3Ccircle cx='48' cy='14' r='2.4'/%3E%3Ccircle cx='82' cy='14' r='2.4'/%3E%3Ccircle cx='116' cy='14' r='2.4'/%3E%3Ccircle cx='31' cy='40' r='2.4'/%3E%3Ccircle cx='65' cy='40' r='2.4'/%3E%3Ccircle cx='99' cy='40' r='2.4'/%3E%3Ccircle cx='14' cy='66' r='2.4'/%3E%3Ccircle cx='48' cy='66' r='2.4'/%3E%3Ccircle cx='82' cy='66' r='2.4'/%3E%3Ccircle cx='116' cy='66' r='2.4'/%3E%3Ccircle cx='31' cy='92' r='2.4'/%3E%3Ccircle cx='65' cy='92' r='2.4'/%3E%3Ccircle cx='99' cy='92' r='2.4'/%3E%3Ccircle cx='14' cy='118' r='2.4'/%3E%3Ccircle cx='48' cy='118' r='2.4'/%3E%3Ccircle cx='82' cy='118' r='2.4'/%3E%3Ccircle cx='116' cy='118' r='2.4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 132px 132px;
  pointer-events: none;
}

.hero-copy { position: relative; max-width: 780px; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.7rem, 6.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 6px 0 24px;
  text-wrap: balance;
}
.dot-accent { color: var(--lime); }

.hero-sub {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 58ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-proof { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px; margin-top: 44px; }
.proof-item {
  display: flex; flex-direction: column; gap: 8px;
  width: 84px;
}
.proof-item img {
  width: 84px; height: 84px;
  object-fit: cover; object-position: top;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  background: var(--paper);
}
.proof-item span {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.proof-note {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 22ch;
  line-height: 1.5;
  padding-bottom: 2px;
}

/* Hero marks — the signature: heartbeat line into the emblem plate */
.hero-marks {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: clamp(44px, 6vw, 72px);
}
.pulse-line {
  display: block;
  flex: 1;
  height: 64px;
  stroke: var(--blue-light);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pulse-line path {
  stroke-dasharray: 1700;
  stroke-dashoffset: 1700;
  animation: draw 1.7s cubic-bezier(0.55, 0.06, 0.35, 1) 0.3s forwards;
}
.pulse-dot {
  fill: var(--lime);
  stroke: none;
  opacity: 0;
  animation: fade-dot 0.4s ease 1.75s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-dot { to { opacity: 1; } }

.emblem-plate {
  position: relative;
  flex: none;
  width: clamp(150px, 14vw, 196px);
  aspect-ratio: 1;
  margin-left: 26px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid; place-items: center;
  padding: 18px;
}
.emblem-plate::before {
  content: "";
  position: absolute; inset: -10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}
.emblem-plate::after {
  content: "";
  position: absolute; top: -16px; left: 50%;
  width: 10px; height: 10px;
  transform: translateX(-50%);
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--indigo);
}
.emblem-img { width: 100%; height: auto; }

.emblem-caption {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-align: right;
}

@media (prefers-reduced-motion: reduce) {
  .pulse-line path { animation: none; stroke-dashoffset: 0; }
  .pulse-dot { animation: none; opacity: 1; }
}

/* ---------- Register strip (the selvedge) ---------- */
.register {
  background: var(--paper);
  border-top: 3px solid var(--lime);
  border-bottom: 1px solid var(--line);
}
.register-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.reg-cell {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  padding: clamp(26px, 3.4vw, 40px) 20px;
}
.reg-cell + .reg-cell { border-left: 1px solid var(--line); }
.reg-value {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}
.reg-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 10vw, 128px) 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 90px); }
.about-body .lead {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  padding-left: 20px;
  border-left: 3px solid var(--lime);
}
.about-body p:not(.lead) { color: var(--muted); }

.check-list { margin-top: 30px; display: grid; gap: 13px; }
.check-list li { position: relative; padding-left: 34px; font-weight: 500; }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--lime-dark);
  background: #f0f6dd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364821b' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ---------- Pillars ---------- */
.pillars-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.pillar-card {
  grid-column: span 2;
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 24px 26px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.pillar-card:nth-child(4) { grid-column: 2 / span 2; }
.pillar-card:hover {
  border-color: var(--blue);
  box-shadow: 0 14px 34px rgba(11, 30, 51, 0.08);
  transform: translateY(-3px);
}
.pillar-tag {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.pillar-icon {
  width: 46px; height: 46px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  display: grid; place-items: center;
  color: var(--blue);
  margin-bottom: 18px;
}
.pillar-icon svg { width: 24px; height: 24px; }
.pillar-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.pillar-card p:not(.pillar-tag) { font-size: 0.95rem; color: var(--muted); }

/* ---------- Programs ---------- */
.program {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 4.5vw, 60px);
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(24px, 3.4vw, 44px);
  box-shadow: 0 1px 0 rgba(11, 30, 51, 0.04), 0 18px 44px rgba(11, 30, 51, 0.06);
}
.program + .program { margin-top: clamp(28px, 4vw, 48px); }
.program-flip .program-media { order: 2; }

.program-media {
  position: relative;
  border-radius: 4px; overflow: hidden;
  border: 1px solid var(--line);
}
.program-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  aspect-ratio: 4 / 4.6;
}

/* Rubber stamp */
.stamp {
  position: absolute; top: 18px; left: 18px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: 3px;
  border: 2px solid currentColor;
  background: var(--paper);
  transform: rotate(-4deg);
}
.stamp::after {
  content: "";
  position: absolute; inset: 3px;
  border: 1px solid currentColor;
  border-radius: 1px;
  opacity: 0.5;
  pointer-events: none;
}
.stamp-done { color: var(--blue); }
.stamp-progress { color: var(--lime-dark); }

.program-kicker {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.program-body h3 {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.6rem, 2.7vw, 2.15rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.program-body h3 .acr { color: var(--blue); }
.program-body > p { color: var(--muted); margin-bottom: 26px; }

/* Facts as a ledger */
.program-facts { margin-bottom: 26px; }
.fact-row {
  display: grid; grid-template-columns: 190px 1fr;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.fact-row:last-child { border-bottom: 1px solid var(--line); }
.fact-row dt {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.fact-row dd { font-size: 0.98rem; }

/* Prize breakdown */
.prize-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin-bottom: 30px;
}
.prize {
  border-radius: 4px;
  padding: 15px 12px;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--paper);
}
.prize span {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.prize strong { font-family: var(--font-display); font-size: 1.08rem; font-weight: 750; }
.prize-1 { background: #fbf5dc; border-color: #e0cb85; }
.prize-2 { background: #f0f3f7; border-color: #c7d2de; }
.prize-3 { background: #f8ead7; border-color: #debc91; }
.prize-c { background: #f0f6dd; border-color: #c2d993; }

.program-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.program-note { font-size: 0.88rem; color: var(--muted); font-style: italic; }

/* ---------- Winners ---------- */
.podium {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; align-items: end;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.podium-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--line-strong);
  border-radius: 4px;
  padding: 30px 24px 26px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.podium-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(11, 30, 51, 0.08); }
.podium-1 { border-top-color: var(--lime); padding-top: 42px; padding-bottom: 40px; }
.podium-2 { border-top-color: var(--blue); }
.podium-3 { border-top-color: var(--line-strong); }

.medal {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.podium-1 .medal { color: var(--blue); }

.podium-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.015em; }
.podium-school { font-size: 0.9rem; color: var(--muted); margin-top: 6px; }
.podium-meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); margin-top: 8px; }
.podium-prize {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 14px;
}

/* Results table */
.table-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow-x: auto;
}
.winners-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.winners-table th, .winners-table td {
  text-align: left;
  padding: 16px 22px;
  font-size: 0.95rem;
}
.winners-table thead th {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: #f2f5f8;
  border-bottom: 1px solid var(--line-strong);
}
.winners-table tbody tr { border-bottom: 1px solid var(--line); }
.winners-table tbody tr:last-child { border-bottom: 0; }
.winners-table tbody tr:hover { background: #f2f8fd; }
.winners-table td:nth-child(2) { font-weight: 600; }
.winners-table td:nth-child(5) {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
}
.winners-table td:last-child {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1.02rem;
  white-space: nowrap;
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: #f2f5f8;
  color: var(--muted);
  white-space: nowrap;
}
.tag-gold { background: #fbf5dc; border-color: #e0cb85; color: #8a6d10; }
.tag-silver { background: #f0f3f7; border-color: #c7d2de; color: #55657a; }
.tag-bronze { background: #f8ead7; border-color: #debc91; color: #96601f; }
.tag-lime { background: #f0f6dd; border-color: #c2d993; color: var(--lime-dark); }

/* ---------- Contact ---------- */
.contact { padding-top: 0; }
.contact-panel {
  position: relative;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  background: var(--indigo);
  color: #fff;
  border-radius: 4px;
  padding: clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.contact-dots {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='132' viewBox='0 0 132 132'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.05'%3E%3Ccircle cx='14' cy='14' r='2.4'/%3E%3Ccircle cx='48' cy='14' r='2.4'/%3E%3Ccircle cx='82' cy='14' r='2.4'/%3E%3Ccircle cx='116' cy='14' r='2.4'/%3E%3Ccircle cx='31' cy='40' r='2.4'/%3E%3Ccircle cx='65' cy='40' r='2.4'/%3E%3Ccircle cx='99' cy='40' r='2.4'/%3E%3Ccircle cx='14' cy='66' r='2.4'/%3E%3Ccircle cx='48' cy='66' r='2.4'/%3E%3Ccircle cx='82' cy='66' r='2.4'/%3E%3Ccircle cx='116' cy='66' r='2.4'/%3E%3Ccircle cx='31' cy='92' r='2.4'/%3E%3Ccircle cx='65' cy='92' r='2.4'/%3E%3Ccircle cx='99' cy='92' r='2.4'/%3E%3Ccircle cx='14' cy='118' r='2.4'/%3E%3Ccircle cx='48' cy='118' r='2.4'/%3E%3Ccircle cx='82' cy='118' r='2.4'/%3E%3Ccircle cx='116' cy='118' r='2.4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 132px 132px;
  pointer-events: none;
}
.contact-panel::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--lime);
}
.contact-copy { position: relative; }
.contact-copy h2 {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 16px;
}
.contact-copy p:not(.kicker) { color: rgba(255, 255, 255, 0.7); max-width: 46ch; }

.contact-cards { position: relative; display: grid; gap: 14px; }
.contact-card {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: 18px 20px;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.contact-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--lime);
  transform: translateY(-2px);
}
.contact-icon {
  flex: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  display: grid; place-items: center;
  color: var(--lime);
}
.contact-text { display: flex; flex-direction: column; }
.contact-text strong { font-weight: 600; color: #fff; }
.contact-text span { font-size: 0.92rem; color: rgba(255, 255, 255, 0.65); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--indigo-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: clamp(48px, 6vw, 72px) 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px; align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-logo-chip {
  display: inline-block;
  background: var(--paper);
  border-radius: 3px;
  padding: 10px 14px;
  margin-bottom: 18px;
}
.footer-logo-chip img { height: 38px; width: auto; }
.footer-brand p { font-size: 0.95rem; max-width: 30ch; }

.footer-nav, .footer-contact { display: grid; gap: 12px; font-size: 0.95rem; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--lime); }

.footer-base {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.to-top { font-weight: 600; color: #fff; }
.to-top:hover { color: var(--lime); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .program, .program-flip { grid-template-columns: 1fr; }
  .program-flip .program-media { order: 0; }
  .program-media img { aspect-ratio: 16 / 12; }
  .contact-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .emblem-caption { text-align: left; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: rgba(7, 24, 44, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-dark);
    box-shadow: 0 18px 40px rgba(4, 16, 32, 0.4);
    padding: 16px 24px 24px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0; pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-link { padding: 13px 16px; font-size: 1rem; color: rgba(255, 255, 255, 0.85); }
  .nav-cta { margin: 10px 0 0; justify-content: center; }

  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar-card, .pillar-card:nth-child(4) { grid-column: auto; }
  .register-grid { grid-template-columns: repeat(2, 1fr); }
  .reg-cell:nth-child(3) { border-left: 0; }
  .reg-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
  .podium { grid-template-columns: 1fr; align-items: stretch; max-width: 420px; margin-inline: auto; margin-bottom: 40px; }
  .podium-1 { order: -1; }
  .prize-row { grid-template-columns: repeat(2, 1fr); }
  .fact-row { grid-template-columns: 1fr; gap: 2px; }
  .hero-marks { flex-direction: column; align-items: stretch; gap: 26px; }
  .emblem-plate { align-self: flex-end; width: 150px; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 36px); }
  .hero-proof { gap: 18px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { justify-content: center; text-align: center; }
}
