/* ============================================================
   HatchFox Studios — Retro-Futuristic Studio Site
   Aesthetic: 1970s space station terminal meets pulp sci-fi poster
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Barlow+Condensed:ital,wght@0,400;0,600;0,700;1,600&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --void:    #090807;
  --void-2:  #141210;
  --void-3:  #1c1a17;
  --void-4:  #262320;

  --amber:   #D4A84B;
  --amber-2: #b08a38;
  --amber-3: rgba(212,168,75,0.18);

  --oxide:   #E8571A;
  --oxide-2: #FF4500;
  --oxide-3: rgba(232,87,26,0.16);

  --solar:   #F5B830;
  --flash:   #FCF6EB;
  --green:   #57B548;
  --mono:    #8c8374;
  --mono-2:  #8a8276;

  --font-display: "Anton", Impact, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;
  --font-ui:      "Barlow Condensed", system-ui, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --ease-retro: cubic-bezier(.2,.7,.2,1);
  --dur-fast: 140ms;
  --dur-med:  260ms;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  font-family: var(--font-mono);
  background: var(--void);
  color: var(--amber);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── GLOBAL SCANLINE GRAIN ───────────────────────────────── */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.18) 2px,
    rgba(0,0,0,0.18) 3px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ── PAGE WRAP — full bleed ──────────────────────────────── */
.page-wrap {
  width: 100%;
  position: relative;
}

/* ── TERMINAL HEADER STRIP ───────────────────────────────── */
.terminal-header {
  background: var(--void);
  border-bottom: 1px solid var(--oxide-3);
  padding: 6px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--mono-2);
  text-transform: uppercase;
}
.terminal-header span:nth-child(2) { margin-left: auto; }
.terminal-header-blink {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--oxide);
  box-shadow: 0 0 8px var(--oxide);
  animation: blink 1.1s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; } 50% { opacity: 0.2; }
}

/* ── NAV ─────────────────────────────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  border-bottom: 1px solid var(--oxide-3);
  position: sticky;
  top: 0;
  background: rgba(9,8,7,0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
}
.nav-left, .nav-right { display: flex; gap: var(--s3); align-items: center; }

.nav-logo-wrap {
  display: flex; align-items: center; gap: 6px;
  text-decoration: none;
}
.nav-logo-img {
  width: 44px; height: 44px;
  display: block;
  flex-shrink: 0;
  transform: translateY(-2px);
}
.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--flash);
  line-height: 1;
}
.nav-brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--mono);
  line-height: 1;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mono);
  padding: 8px 16px;
  border: 1px solid transparent;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.nav-link:hover { color: var(--amber); border-color: var(--oxide-3); }
.nav-link--cta {
  color: var(--oxide);
  border-color: var(--oxide-3);
}
.nav-link--cta:hover { color: var(--flash); background: var(--oxide-3); border-color: var(--oxide); }

.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 4px;
}
.nav-hamburger span {
  display: block; width: 20px; height: 1px;
  background: var(--amber);
  transition: all var(--dur-med) var(--ease-retro);
}
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  flex-direction: column;
  background: rgba(9,8,7,0.98);
  padding: 96px 24px 24px;
  gap: var(--s2);
  overflow-y: auto;
  z-index: 99;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile .nav-link { border-bottom: 1px solid var(--oxide-3); padding: 12px 0; width: 100%; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 80vh;
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--oxide-3);
  overflow: hidden;
  position: relative;
}

.hero-left {
  padding: 56px 48px 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url(/assets/images/hero-athena.jpg);
  background-image: image-set(url(/assets/images/hero-athena.webp) type("image/webp"), url(/assets/images/hero-athena.jpg) 1x);
  background-size: cover; background-position: center center;
  opacity: 0.38; filter: saturate(0.55) brightness(0.85);
  pointer-events: none;
  z-index: 0;
}
.hero-left::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(80deg, var(--oxide-3) 0 2px, transparent 2px 60px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
  animation: hero-lines-flow 5s linear infinite;
}
@keyframes hero-lines-flow {
  from { background-position: 0 0; }
  to   { background-position: 54px -38px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-left::before { animation: none; }
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--oxide);
  text-transform: uppercase;
  margin-bottom: var(--s3);
  position: relative;
  z-index: 2;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(72px, 11vw, 160px);
  line-height: 0.88;
  letter-spacing: -0.01em;
  color: var(--flash);
  margin-bottom: var(--s4);
  position: relative;
  z-index: 2;
  -webkit-text-stroke: 1px rgba(252,246,235,0.6);
}
.hero-headline span {
  display: block;
  color: var(--oxide);
  -webkit-text-stroke: 1px var(--oxide);
}
.hero-sub {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 400;
  color: var(--mono);
  max-width: 420px;
  line-height: 1.75;
  margin-bottom: var(--s6);
  position: relative;
  z-index: 2;
}
.hero-cta-row {
  display: flex;
  gap: var(--s3);
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.hero-coords {
  position: absolute;
  z-index: 2;
  bottom: var(--s5);
  left: 48px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--mono-2);
  text-transform: uppercase;
}

/* ── SECTION COMMON ──────────────────────────────────────── */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--oxide);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s4);
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--oxide-3);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.05;
  color: var(--flash);
  letter-spacing: -0.01em;
  margin-bottom: var(--s5);
  -webkit-text-stroke: 0.5px rgba(252,246,235,0.4);
}
.section-title--oxide {
  color: var(--oxide);
  -webkit-text-stroke: 0.5px rgba(232,87,26,0.5);
}

/* ── CIRCUIT DIVIDER ─────────────────────────────────────── */
.circuit-divider {
  height: 48px;
  background: var(--void-2);
  border-top: 1px solid var(--oxide-3);
  border-bottom: 1px solid var(--oxide-3);
  display: flex;
  align-items: center;
  padding: 0 48px;
  gap: 14px;
  overflow: hidden;
  position: relative;
}
.circuit-divider::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    90deg,
    var(--oxide-3) 0 1px,
    transparent 1px 48px
  );
}
.circuit-node {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--oxide);
  box-shadow: 0 0 10px var(--oxide);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  animation: circuit-node-pulse 2.2s ease-in-out infinite;
}
.circuit-node--amber { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.circuit-node--solar { background: var(--solar); box-shadow: 0 0 10px var(--solar); }
.circuit-node--oxide { background: var(--oxide); box-shadow: 0 0 10px var(--oxide); }
@keyframes circuit-node-pulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50%      { transform: scale(1.15); filter: brightness(1.3); }
}
@media (prefers-reduced-motion: reduce) {
  .circuit-node { animation: none; }
}
.circuit-line {
  height: 1px;
  background: var(--oxide-3);
  flex: 1;
  position: relative;
  z-index: 1;
}
.circuit-text {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--mono-2);
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* ── PROJECTS SECTION ────────────────────────────────────── */
.projects-section {
  background: var(--void);
  padding: 72px 0 80px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--oxide-3);
  border: 1px solid var(--oxide-3);
  margin-top: var(--s5);
}

.project-cta-row {
  display: flex;
  gap: var(--s3);
  flex-wrap: wrap;
}
.project-card {
  background: var(--void);
  padding: var(--s6);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  transition: background var(--dur-fast);
  position: relative;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--oxide);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease-retro);
}
.project-card:hover { background: var(--void-2); }
.project-card:hover::before { transform: scaleX(1); }

.project-num {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--mono-2);
}
.project-screen {
  height: 140px;
  background: var(--void-2);
  border: 1px solid var(--oxide-3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.project-screen::after {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.22) 2px,
    rgba(0,0,0,0.22) 3px
  );
  pointer-events: none;
}
.project-screen-title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.06em;
  color: var(--amber);
  text-align: center;
  padding: 0 12px;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 20px rgba(212,168,75,0.5);
}
.project-status {
  position: absolute;
  top: 8px; right: 10px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--green);
  z-index: 2;
}
.project-status--upcoming { color: var(--solar); }
.project-name {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--flash);
  letter-spacing: 0.01em;
  line-height: 1;
  -webkit-text-stroke: 0.5px rgba(252,246,235,0.4);
}
.project-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--oxide);
  font-style: italic;
  margin-top: -8px;
}
.project-body {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  color: var(--mono);
  line-height: 1.7;
  flex: 1;
}

/* ── ABOUT SECTION ───────────────────────────────────────── */
.about-section {
  background: var(--void-2);
  padding: 72px 0;
  border-top: 1px solid var(--oxide-3);
  border-bottom: 1px solid var(--oxide-3);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: var(--s5);
}
.about-text p {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 400;
  color: var(--mono);
  line-height: 1.75;
  margin-bottom: var(--s4);
}
.about-text p:last-of-type { margin-bottom: 0; }
.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--s4);
}
.about-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--oxide);
  padding: 6px 12px;
  border: 1px solid var(--oxide-3);
  border-radius: 999px;
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-retro);
}
.about-pill:hover { color: var(--flash); border-color: var(--oxide); background: var(--oxide-3); }

/* CRT monitor placeholder — replace with image asset when supplied */
.about-crt-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-crt-monitor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  /* .about-grid centers this against the FULL height of the text column,
     but that column's trailing CTA button (~62px incl. margin-top) has no
     equivalent on this side — so centering against the full column sits
     this noticeably lower than centering against just the heading/para
     text above the button. Shift up by roughly half that button height. */
  transform: translateY(-48px);
}
.about-crt-bezel {
  width: 320px;
  height: 260px;
  background: radial-gradient(ellipse at 50% 45%, #1e1a14 0%, #0e0c09 100%);
  border-radius: 18px;
  border: 3px solid #2a2520;
  box-shadow:
    0 0 0 1px rgba(232,87,26,0.12),
    0 8px 40px rgba(0,0,0,0.7),
    inset 0 2px 8px rgba(0,0,0,0.5);
  padding: 16px;
  position: relative;
}
.about-crt-bezel::before {
  content: '';
  position: absolute;
  top: 6px; left: 6px; right: 6px; bottom: 6px;
  border-radius: 12px;
  border: 1px solid rgba(232,87,26,0.1);
  pointer-events: none;
}
.about-crt-screen {
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 40%, #0d1a0a 0%, #040a03 70%, #020603 100%);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(87,181,72,0.15);
  box-shadow: inset 0 0 30px rgba(87,181,72,0.06);
}
.about-crt-scanlines {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px, rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.35) 2px, rgba(0,0,0,0.35) 3px
  );
  pointer-events: none;
  z-index: 2;
  border-radius: 8px;
}
.about-crt-phosphor {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 1;
}
.about-crt-ticker-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.about-crt-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: #57B548;
  text-shadow: 0 0 12px rgba(87,181,72,0.8), 0 0 24px rgba(87,181,72,0.4);
  text-transform: uppercase;
  animation: phosphor-flicker 8s ease-in-out infinite;
}
.about-crt-cursor {
  width: 8px; height: 14px;
  background: #57B548;
  box-shadow: 0 0 8px rgba(87,181,72,0.8);
  animation: crt-cursor 1.1s step-end infinite;
  flex-shrink: 0;
}
.about-crt-base {
  width: 60px;
  height: 10px;
  background: linear-gradient(to bottom, #1c1814, #141210);
  border-radius: 0 0 4px 4px;
  border: 1px solid #2a2520;
  border-top: none;
}
@keyframes phosphor-flicker {
  0%,96%,100% { opacity: 1; }
  97% { opacity: 0.85; }
  98% { opacity: 1; }
  99% { opacity: 0.9; }
}
@keyframes crt-cursor {
  0%,49% { opacity: 1; }
  50%,100% { opacity: 0; }
}

/* ── TEAM SECTION ────────────────────────────────────────── */
.team-section {
  background: var(--void);
  padding: 72px 0 80px;
}

/* ── CREW GRID / CRT MONITOR CARDS ──────────────────────── */
.crew-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s6);
  margin-top: var(--s6);
}
.crew-card {
  text-align: center;
}
/* Odd-numbered crew count leaves this one alone on the last row — span the
   full row and center it there, regardless of how many columns the grid
   currently has at any breakpoint. */
.crew-card:nth-child(5) {
  grid-column: 1 / -1;
  justify-self: center;
}

/* CRT monitor portrait */
.crew-crt {
  margin: 0 auto var(--s4);
  width: 160px;
  transition: transform var(--dur-med) var(--ease-retro);
}
.crew-card:hover .crew-crt {
  transform: scale(1.04);
}
.crew-crt-bezel {
  width: 160px;
  height: 140px;
  background: radial-gradient(ellipse at 50% 45%, #1e1a14 0%, #0e0c09 100%);
  border-radius: 10px;
  border: 3px solid #2a2520;
  box-shadow:
    0 0 0 1px rgba(232,87,26,0.1),
    0 6px 24px rgba(0,0,0,0.6),
    inset 0 1px 4px rgba(0,0,0,0.5);
  padding: 10px;
  position: relative;
}
.crew-crt-bezel::after {
  content: '';
  position: absolute;
  top: 4px; left: 4px; right: 4px; bottom: 4px;
  border-radius: 6px;
  border: 1px solid rgba(232,87,26,0.08);
  pointer-events: none;
}
.crew-card:hover .crew-crt-bezel {
  border-color: rgba(232,87,26,0.4);
  box-shadow:
    0 0 0 1px rgba(232,87,26,0.25),
    0 6px 32px rgba(0,0,0,0.6),
    0 0 20px rgba(232,87,26,0.08);
}
.crew-crt-screen {
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 48% 42%, #160e08 0%, #0c0804 60%, #070503 100%);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(232,87,26,0.12);
  box-shadow: inset 0 0 20px rgba(232,87,26,0.04);
}
.crew-crt-scanlines {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px, rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.3) 2px, rgba(0,0,0,0.3) 3px
  );
  pointer-events: none;
  z-index: 2;
  border-radius: 5px;
}
/* Sweep animation — phosphor scan pass */
.crew-crt-sweep {
  position: absolute;
  top: -100%;
  left: 0; right: 0;
  height: 40%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(232,87,26,0.04) 40%,
    rgba(232,87,26,0.06) 50%,
    rgba(232,87,26,0.04) 60%,
    transparent 100%
  );
  z-index: 3;
  animation: crt-sweep 5s linear infinite;
}
@keyframes crt-sweep {
  0% { top: -40%; }
  100% { top: 120%; }
}
.crew-initials {
  font-family: var(--font-display);
  font-size: 52px;
  color: var(--oxide);
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
  line-height: 1;
  text-shadow: 0 0 16px rgba(232,87,26,0.6), 0 0 32px rgba(232,87,26,0.3);
}
.crew-name {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--flash);
  letter-spacing: 0.01em;
  -webkit-text-stroke: 0.4px rgba(252,246,235,0.4);
  margin-bottom: 4px;
}
.crew-role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.crew-status {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--green);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.crew-status::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}
.crew-status:hover { text-decoration: underline; }
.crew-advisors {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--mono-2);
  text-align: center;
  margin-top: var(--s6);
  text-transform: uppercase;
  border-top: 1px solid var(--oxide-3);
  padding-top: var(--s5);
}

/* ── CONTACT SECTION ─────────────────────────────────────── */
.contact-section {
  background: var(--void-2);
  padding: 72px 0 80px;
  border-top: 1px solid var(--oxide-3);
}
.contact-panel {
  margin-top: var(--s5);
  border: 1px solid var(--oxide-3);
  background: var(--void);
  position: relative;
}
.contact-panel-header {
  padding: 12px 24px;
  border-bottom: 1px solid var(--oxide-3);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--mono-2);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.contact-panel-header::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--oxide);
  box-shadow: 0 0 8px var(--oxide);
  flex-shrink: 0;
}
.contact-body { padding: 40px 40px 48px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.28em;
  color: var(--mono-2);
  text-transform: uppercase;
}
.form-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(212,168,75,0.2);
  color: var(--flash);
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  width: 100%;
  transition: border-color var(--dur-fast);
  caret-color: var(--oxide);
}
.form-input::placeholder { color: var(--mono-2); }
.form-input:focus { border-bottom-color: var(--oxide); }
.form-textarea { resize: none; min-height: 90px; display: block; }
.form-submit-row { display: flex; justify-content: flex-end; margin-top: 32px; }
.form-success { display: none; text-align: center; padding: 24px 0; }
.form-success.is-visible { display: block; }
.form-fields.is-hidden { display: none; }
.form-success-title {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--flash);
  -webkit-text-stroke: 0.5px rgba(252,246,235,0.4);
  letter-spacing: 0.01em;
}
.form-success-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--mono);
  margin-top: var(--s3);
}
.contact-body--email { text-align: center; }
.contact-email-link {
  display: inline-block;
  max-width: 100%;
  margin-top: var(--s3);
  font-family: var(--font-display);
  font-size: clamp(16px, 4vw, 32px);
  color: var(--flash);
  -webkit-text-stroke: 0.5px rgba(252,246,235,0.4);
  letter-spacing: 0.01em;
  text-decoration: none;
  word-break: break-word;
  overflow-wrap: break-word;
  transition: color 0.15s ease;
}
.contact-email-link:hover { color: var(--oxide); }
.contact-alt-label {
  margin-top: var(--s4);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.28em;
  color: var(--mono-2);
  text-transform: uppercase;
}
.contact-discord-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--s2);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #7289da;
  text-decoration: none;
  transition: color var(--dur-fast);
}
.contact-discord-link:hover { color: var(--flash); }
.contact-social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: var(--s3);
}
.contact-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  color: var(--mono-2);
  border: 1px solid rgba(212,168,75,0.1);
  transition: color var(--dur-fast), border-color var(--dur-fast);
  flex-shrink: 0;
}
.contact-social-icon:hover { color: var(--amber); border-color: rgba(212,168,75,0.3); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 12px 24px;
  border: 1px solid transparent;
  transition: all var(--dur-fast) var(--ease-retro);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  line-height: 1;
}
.btn--primary {
  background: var(--oxide);
  color: var(--flash);
  border-color: var(--oxide);
}
.btn--primary:hover { background: var(--oxide-2); border-color: var(--oxide-2); }
.hero-cta-row .btn--primary::after {
  content: '';
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
}
.btn--outline {
  background: transparent;
  color: var(--amber);
  border-color: rgba(212,168,75,0.3);
}
.btn--outline:hover { color: var(--flash); border-color: var(--amber); background: rgba(212,168,75,0.06); }
.btn--outline-oxide {
  background: transparent;
  color: var(--oxide);
  border-color: var(--oxide-3);
}
.btn--outline-oxide:hover { color: var(--flash); border-color: var(--oxide); background: var(--oxide-3); }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: default; }
.btn[aria-disabled="true"]:hover { color: var(--oxide); border-color: var(--oxide-3); background: transparent; }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--void-2);
  border-top: 1px solid var(--oxide-3);
  padding: 40px 48px 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--oxide-3);
}
.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--s4);
}
.footer-logo-img {
  width: 44px; height: 44px;
  display: block;
  flex-shrink: 0;
  transform: translateY(-2px);
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--flash);
  letter-spacing: 0.04em;
  line-height: 1;
  -webkit-text-stroke: 0.4px rgba(252,246,235,0.4);
}
.footer-brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--mono-2);
  margin-top: 2px;
}
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--mono-2);
  max-width: 260px;
  line-height: 1.6;
}

/* Footer links column: nav + social icons in one row */
.footer-links-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 8px;
}
.footer-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  align-items: center;
  justify-content: flex-end;
}
.footer-nav-link {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mono);
  padding: 7px 14px;
  border: 1px solid rgba(212,168,75,0.12);
  transition: all var(--dur-fast);
}
.footer-nav-link:hover { color: var(--flash); border-color: var(--oxide-3); }
.footer-nav-sep {
  width: 1px;
  height: 24px;
  background: var(--oxide-3);
  margin: 0 var(--s2);
  flex-shrink: 0;
}
.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  color: var(--mono-2);
  border: 1px solid rgba(212,168,75,0.1);
  transition: color var(--dur-fast), border-color var(--dur-fast);
  flex-shrink: 0;
}
.footer-social-icon:hover { color: var(--amber); border-color: rgba(212,168,75,0.3); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 0 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s5);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--mono-2);
  text-transform: uppercase;
}
.footer-bottom > span:last-child { text-align: right; }
.footer-bottom-legal {
  display: flex;
  align-items: center;
  gap: var(--s5);
  justify-content: center;
  white-space: nowrap;
}
.footer-bottom-legal a { color: var(--mono-2); transition: color var(--dur-fast); }
.footer-bottom-legal a:hover { color: var(--amber); }

/* ── LEGAL PAGES ─────────────────────────────────────────── */
.legal-page {
  background: var(--void);
  padding: 64px 0 80px;
  min-height: 60vh;
  border-bottom: 1px solid var(--oxide-3);
}
.legal-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  color: var(--flash);
  letter-spacing: -0.01em;
  margin-bottom: var(--s3);
  -webkit-text-stroke: 0.5px rgba(252,246,235,0.4);
}
.legal-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--mono-2);
  text-transform: uppercase;
  margin-bottom: var(--s7);
  border-bottom: 1px solid var(--oxide-3);
  padding-bottom: var(--s5);
}
.legal-body h2 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--oxide);
  text-transform: uppercase;
  margin-top: var(--s7);
  margin-bottom: var(--s4);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 400;
  color: var(--mono);
  line-height: 1.75;
  margin-bottom: var(--s4);
  max-width: 680px;
}
.legal-body ul {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 400;
  color: var(--mono);
  line-height: 1.75;
  margin-bottom: var(--s4);
  padding-left: var(--s5);
  max-width: 680px;
}
.legal-body li { margin-bottom: var(--s2); }
.legal-body a { color: var(--oxide); text-decoration: underline; }
.legal-body a:hover { color: var(--flash); }
.legal-footer-link { margin-top: var(--s8); }

/* ── REVEAL ANIMATION ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-retro), transform 0.5s var(--ease-retro);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-left { padding: 40px 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-crt-monitor { transform: none; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .crew-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s5); }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-links-col { justify-content: flex-start; }
  .footer-nav-row { justify-content: flex-start; }
}

@media (max-width: 768px) {
  .terminal-header { padding: 6px 24px; font-size: 8px; letter-spacing: 0.12em; }
  .terminal-header span:nth-child(2) { display: none; }
  .site-nav { padding: 16px 24px; }
  .nav-left, .nav-right { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { padding: 88px 24px 24px; }
  .section-inner { padding: 0 24px; }
  .circuit-divider { padding: 0 24px; }
  .hero-left { padding: 32px 24px; }
  .hero-headline { font-size: clamp(56px, 14vw, 100px); }
  .hero-sub { max-width: 100%; }
  .hero-coords {
    position: static;
    left: auto;
    bottom: auto;
    margin-top: var(--s4);
  }
  .projects-section { padding: 48px 0 56px; }
  .project-grid { grid-template-columns: 1fr; }
  .about-section { padding: 48px 0; }
  .about-crt-bezel { width: 280px; height: 220px; }
  .team-section { padding: 48px 0 56px; }
  .crew-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .crew-crt { width: 140px; }
  .crew-crt-bezel { width: 140px; height: 120px; }
  .crew-initials { font-size: 44px; }
  .contact-section { padding: 48px 0 56px; }
  .contact-body { padding: 24px 24px 32px; }
  .form-grid { grid-template-columns: 1fr; gap: 20px; }
  .site-footer { padding: 32px 24px 0; }
  .footer-inner { padding-bottom: 24px; }
  .footer-nav-row { gap: 4px; }
  .footer-bottom { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .footer-bottom > span:last-child { text-align: center; }
  .footer-bottom-legal { flex-wrap: wrap; gap: var(--s3); }
}

@media (max-width: 480px) {
  .hero-left { padding: 28px 20px; }
  .crew-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .crew-crt { width: 120px; }
  .crew-crt-bezel { width: 120px; height: 100px; }
  .crew-initials { font-size: 36px; }
}
