:root {
  --void: #030508;
  --laser: #00e5ff;
  --toxic: #00ff66;
  --text: #e4f4f8;
  --text-muted: rgba(228, 244, 248, 0.55);
  --hud-fill: rgba(3, 5, 8, 0.55);
  --hud-border-cyan: rgba(0, 229, 255, 0.45);
  --hud-border-green: rgba(0, 255, 102, 0.35);
  --glow-cyan: 0 0 12px rgba(0, 229, 255, 0.45), 0 0 1px rgba(0, 229, 255, 0.9);
  --glow-green: 0 0 10px rgba(0, 255, 102, 0.35);
  --inset-hud: inset 0 0 60px rgba(0, 229, 255, 0.04);
  --radius: 2px;
  --max: 1160px;
  --font-head: "Syne", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--void);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

strong { font-weight: 400; }

a { color: var(--laser); text-decoration: none; }
a:hover { color: var(--toxic); text-decoration: none; }

nav a[aria-current="page"] {
  color: var(--laser);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.45);
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* HUD panel base */
.hud {
  background: var(--hud-fill);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid var(--hud-border-cyan);
  border-radius: var(--radius);
  box-shadow: var(--glow-cyan), var(--inset-hud);
}
.hud--green {
  border-color: var(--hud-border-green);
  box-shadow: var(--glow-green), var(--inset-hud);
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(3, 5, 8, 0.72);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-bottom: 1px solid var(--hud-border-cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.12);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand img { height: 44px; width: auto; display: block; filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.2)); }
.brand-sub {
  font-size: 0.65rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  line-height: 1.3;
  max-width: 11rem;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
}
nav a {
  color: var(--text);
  font-weight: 300;
  font-size: 0.92rem;
  text-decoration: none;
}
nav a:hover { color: var(--laser); text-shadow: 0 0 12px rgba(0, 229, 255, 0.5); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(0, 255, 102, 0.15));
  color: var(--toxic);
  border: 1px solid var(--hud-border-cyan);
  box-shadow: var(--glow-cyan);
}
.btn-primary:hover {
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
  box-shadow: 0 0 24px rgba(0, 255, 102, 0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--hud-border-cyan);
  box-shadow: none;
}
.btn-ghost:hover {
  border-color: var(--toxic);
  color: var(--laser);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
  text-decoration: none;
}

/* Hero */
.hero {
  position: relative;
  padding: 3rem 0 4rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 80% 10%, rgba(0, 229, 255, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 80%, rgba(0, 255, 102, 0.05), transparent 50%),
    var(--void);
  z-index: -1;
}
.hero-focus h1 {
  font-size: clamp(2.35rem, 7vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.72fr);
    gap: 1.75rem 2.5rem;
    align-items: start;
  }
  .hero-grid > .hero-copy { padding-top: 0.5rem; }
  .hero-grid > .hero-visual { margin-top: 2rem; }
}
.hero-copy { min-width: 0; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--toxic);
  text-shadow: 0 0 14px rgba(0, 255, 102, 0.4);
  margin-bottom: 0.75rem;
}
h1 {
  font-size: clamp(2rem, 4.8vw, 3rem);
  line-height: 1.08;
  margin: 0 0 1rem;
}
h1 span {
  color: var(--laser);
  text-shadow: 0 0 28px rgba(0, 229, 255, 0.35);
}
.hero-lead {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 38rem;
  margin-bottom: 1.5rem;
}
.location-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.location-pill.hud { border-color: var(--hud-border-green); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-visual {
  position: relative;
  overflow: hidden;
  padding: 0;
}
.hero-visual.hud { border-radius: var(--radius); }
.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}
.strip-banner {
  margin-top: 2.25rem;
  overflow: hidden;
}
.strip-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Sections */
main > section { padding: 3.5rem 0; }
main > section:nth-of-type(even) {
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.02), transparent);
}
.section-head {
  margin-bottom: 2rem;
  max-width: 42rem;
}
.section-head h2 {
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  margin: 0 0 0.5rem;
  color: var(--text);
}
.section-head p { margin: 0; color: var(--text-muted); font-weight: 300; }

/* Programs: 12-col asymmetric grid */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) {
  .cards {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-flow: dense;
    gap: 1rem;
  }
  .cards.four-cols > .card:nth-child(1) { grid-column: span 7; }
  .cards.four-cols > .card:nth-child(2) { grid-column: span 5; }
  .cards.four-cols > .card:nth-child(3) { grid-column: span 5; }
  .cards.four-cols > .card:nth-child(4) { grid-column: span 7; }
}
.card {
  padding: 1.35rem 1.5rem;
}
.cards.four-cols .card:nth-child(even) { border-color: var(--hud-border-green); box-shadow: var(--glow-green), var(--inset-hud); }
.card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
  color: var(--laser);
}
.card p { margin: 0; color: var(--text-muted); font-size: 0.92rem; font-weight: 300; }

.event-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem;
}
@media (min-width: 768px) {
  .event-card {
    grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
    gap: 2rem;
  }
}
.event-card .event-card-visual {
  margin: 0 auto;
  max-width: 280px;
}
.event-card .event-card-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--hud-border-cyan);
  box-shadow: var(--glow-cyan);
}
.event-card .event-card-visual figcaption {
  margin-top: 0.55rem;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-muted);
  font-weight: 300;
}
.event-card .event-card-visual figcaption a {
  color: var(--toxic);
  font-weight: 400;
}
.event-card .event-card-visual figcaption a:hover {
  color: var(--laser);
}
.event-meta {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--toxic);
  margin-bottom: 0.5rem;
}
.event-card h3 { font-size: 1.35rem; margin: 0 0 0.75rem; color: var(--text); }
.event-card p { color: var(--text-muted); margin: 0 0 1rem; font-weight: 300; }

/* Gallery: asymmetric 4-column bento */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 0.65rem;
}
@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(112px, auto);
    gap: 0.75rem;
  }
  .gallery figure:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
  .gallery figure:nth-child(2) { grid-column: 3 / 5; grid-row: 1 / 2; }
  .gallery figure:nth-child(3) { grid-column: 3 / 4; grid-row: 2 / 3; }
  .gallery figure:nth-child(4) { grid-column: 4 / 5; grid-row: 2 / 3; }
  .gallery figure:nth-child(5) { grid-column: 1 / 3; grid-row: 3 / 4; }
  .gallery figure:nth-child(6) { grid-column: 3 / 4; grid-row: 3 / 4; }
  .gallery figure:nth-child(7) { grid-column: 4 / 5; grid-row: 3 / 4; }
  .gallery figure:nth-child(8) { grid-column: 1 / 5; grid-row: 4 / 5; min-height: 140px; }
}
@media (min-width: 960px) {
  .gallery { grid-auto-rows: minmax(128px, auto); }
}
.gallery figure {
  margin: 0;
  overflow: hidden;
  background: rgba(3, 5, 8, 0.6);
}
.gallery figure.hud { border-radius: var(--radius); }
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}
.gallery figure:hover img {
  transform: scale(1.05);
  filter: brightness(1.08) saturate(1.1);
}

/* About: asymmetric split */
.about-split {
  display: grid;
  gap: 1.75rem;
  align-items: stretch;
}
@media (min-width: 800px) {
  .about-split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.85fr);
    gap: 2rem 2.5rem;
  }
}
.about-split .prose { align-self: center; }
.about-split .about-photo { align-self: stretch; }
.about-split img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
  display: block;
}
.about-split .prose p { color: var(--text-muted); margin: 0 0 1rem; font-weight: 300; }
.nonprofit-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--laser);
  border: 1px solid var(--hud-border-cyan);
  border-radius: var(--radius);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  background: var(--void);
  border-top: 1px solid var(--hud-border-cyan);
  box-shadow: 0 -8px 40px rgba(0, 229, 255, 0.06);
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr) minmax(0, 0.95fr);
  }
}
.site-footer .hud-panel { padding: 1.25rem 1.35rem; }
.site-footer h4 {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--toxic);
  margin: 0 0 0.65rem;
}
.site-footer p, .site-footer address {
  margin: 0;
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 300;
}
.footer-logo { height: 40px; width: auto; margin-bottom: 0.75rem; }
.fine {
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.04em;
}
.footer-network {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--laser);
  margin: 1rem 0 0.65rem;
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.25);
}
.footer-network-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-network-links a {
  font-size: 0.9rem;
  font-weight: 300;
}
.fine-legal {
  margin-bottom: 1rem;
}
.fine-legal a {
  font-weight: 400;
}

/* Subpage hero */
.page-hero {
  padding: 2.75rem 0 3rem;
  position: relative;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 30% 0%, rgba(0, 229, 255, 0.07), transparent 55%),
    var(--void);
  z-index: -1;
}
.page-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  margin: 0 0 0.65rem;
}
.page-hero .lede {
  margin: 0;
  max-width: 40rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* Curriculum syllabus */
.syllabus-grid {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 800px) {
  .syllabus-grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .syllabus-unit:nth-child(1) { grid-column: span 7; }
  .syllabus-unit:nth-child(2) { grid-column: span 5; }
  .syllabus-unit:nth-child(3) { grid-column: span 12; }
}
.syllabus-unit {
  padding: 1.45rem 1.35rem;
}
.syllabus-unit h2 {
  font-size: 1.1rem;
  margin: 0 0 0.85rem;
  color: var(--toxic);
  letter-spacing: 0.02em;
}
.syllabus-unit ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-weight: 300;
  font-size: 0.95rem;
}
.syllabus-unit li { margin-bottom: 0.4rem; }
.syllabus-unit li:last-child { margin-bottom: 0; }

/* Terminal contact form */
.terminal-form {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
}
.terminal-window {
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid var(--hud-border-cyan);
  box-shadow: var(--glow-cyan), var(--inset-hud);
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: var(--radius);
  max-width: 44rem;
}
.terminal-header {
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
}
.terminal-line {
  margin-bottom: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
}
.terminal-prompt {
  color: var(--toxic);
  flex-shrink: 0;
  user-select: none;
}
.terminal-line .field {
  flex: 1;
  min-width: min(100%, 14rem);
}
.terminal-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--laser);
  font: inherit;
  padding: 0.2rem 0;
  outline: none;
}
.terminal-input:focus {
  border-bottom-color: var(--toxic);
  box-shadow: 0 1px 0 0 rgba(0, 255, 102, 0.45);
}
.terminal-input::placeholder {
  color: rgba(0, 229, 255, 0.22);
}
.terminal-line-block {
  flex-direction: column;
  align-items: stretch;
}
.terminal-line-block .terminal-prompt { margin-bottom: 0.35rem; }
textarea.terminal-input {
  min-height: 7rem;
  width: 100%;
  border: 1px solid rgba(0, 229, 255, 0.28);
  padding: 0.55rem 0.65rem;
  resize: vertical;
  line-height: 1.45;
}
textarea.terminal-input:focus {
  box-shadow: 0 0 0 1px rgba(0, 255, 102, 0.35);
}
.terminal-actions {
  margin-top: 1.35rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.terminal-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 300;
  font-family: var(--font-body);
  max-width: 22rem;
  line-height: 1.45;
}
.btn-terminal {
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Curriculum: EV-LC media strip (tools / motors / workshop) */
.evlc-photo-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 0 0 1.75rem;
  align-items: stretch;
}
@media (min-width: 700px) {
  .evlc-photo-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }
}
.evlc-photo-cell {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
}
.evlc-photo-cell.hud {
  border-radius: var(--radius);
  padding: 0;
}
/* Uniform crop area: same aspect for all columns */
.evlc-photo-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  flex: 0 0 auto;
}
.evlc-photo-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.evlc-photo-strip figcaption {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 0.55rem 0.45rem 0.5rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.35;
  border-top: 1px solid rgba(0, 229, 255, 0.12);
}

/* Cookie consent (HUD pill, bottom) */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 960px;
  z-index: 200;
  padding: 0;
}
.cookie-banner[hidden] {
  display: none !important;
}
.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  padding: 1rem 1.25rem;
  border-radius: 999px;
  background: rgba(3, 5, 8, 0.94);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid var(--hud-border-cyan);
  box-shadow: var(--glow-cyan), 0 12px 48px rgba(0, 0, 0, 0.55);
}
@media (min-width: 768px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.85rem 1.5rem;
  }
}
.cookie-banner__text {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.5;
  flex: 1;
  min-width: 0;
}
.cookie-banner__text a {
  color: var(--laser);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.cookie-banner__text a:hover {
  color: var(--toxic);
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  flex-shrink: 0;
  justify-content: flex-end;
}
.cookie-btn {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.15s ease, border-color 0.15s ease;
}
.cookie-btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--hud-border-cyan);
  box-shadow: none;
}
.cookie-btn--ghost:hover {
  border-color: var(--toxic);
  color: var(--laser);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.2);
}
.cookie-btn--accept {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.22), rgba(0, 255, 102, 0.18));
  color: #fff;
  border: 1px solid rgba(0, 255, 102, 0.5);
  box-shadow: 0 0 22px rgba(0, 255, 102, 0.35), 0 0 12px rgba(0, 229, 255, 0.25);
}
.cookie-btn--accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(0, 255, 102, 0.45);
}
