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

:root {
  --canvas: #000;
  --surface: rgba(255,255,255,.05);
  --text-primary: #f5f5f5;
  --text-secondary: #aaa;
  --text-muted: #777;
  --text-subtle: #555;
  --line: rgba(255,255,255,.12);
  --bg: var(--canvas);
  --fg: var(--text-primary);
  --muted: var(--text-secondary);
  --soft: var(--surface);
  --accent: #9c6b28;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--canvas);
  color: var(--text-primary);
  font-family: "Inter", Arial, sans-serif;
  overflow-x: hidden;
  transition: background .45s ease, color .45s ease;
}

body.light-mode {
  --canvas: #fff;
  --surface: #f8f9fa;
  --text-primary: #212529;
  --text-secondary: #4a5568;
  --text-muted: #4a5568;
  --text-subtle: #6c757d;
  --line: #e2e8f0;
  --bg: var(--canvas);
  --fg: var(--text-primary);
  --muted: var(--text-secondary);
  --soft: var(--surface);
  --accent: #212529;
}
body.light-mode {
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(255,255,255,.07), transparent 65%);
  transform: translate(-50%, -50%);
  transition: left .15s ease-out, top .15s ease-out;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 101;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--fg);
  box-shadow: 0 0 12px rgba(255,255,255,.55);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .08s linear;
}
body.light-mode .scroll-progress span {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(0,0,0,.3);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  overflow: visible;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 92%, transparent), transparent);
  transition: background .45s ease;
}

.brand img {
  width: 210px;
  height: auto;
  display: block;
  border-radius: 0;
  transition: transform .35s ease, filter .35s ease;
}
.brand:hover img { transform: scale(1.04); filter: brightness(1.2); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: border-color .3s ease, transform .3s ease, background .3s ease;
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(12deg) scale(1.06); background: var(--soft); }
.theme-toggle img { width: 25px; height: 25px; object-fit: contain; }

.navbar nav {
  display: flex;
  gap: 34px;
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 11px 9px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.45);
  color: var(--fg);
  cursor: pointer;
}
.menu-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 1px;
  margin: 4px 0;
  background: currentColor;
  transition: transform .3s ease, opacity .3s ease;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.navbar nav a { transition: color .3s; }
.navbar nav a:hover { color: white; }

body.light-mode .navbar nav a:hover,
body.light-mode footer a:hover { color: var(--text-primary); }
body.light-mode .hero::after { background: radial-gradient(circle, rgba(0,0,0,.08), transparent 62%); }
body.light-mode .stars { opacity: .13; filter: invert(1); }
body.light-mode .cursor-glow { background: radial-gradient(circle, rgba(0,0,0,.12), transparent 65%); }
body.light-mode .menu-toggle { background: rgba(255,255,255,.72); }
body.light-mode .orbit { border-color: rgba(0,0,0,.12); }
body.light-mode .planet { background: var(--accent); box-shadow: 0 0 30px 8px rgba(0,0,0,.2); }
body.light-mode em { color: var(--text-secondary); }
body.light-mode .hero-content h1 { color: #000000; }
body.light-mode .button-solid { background: #171717; color: #fff; }
body.light-mode .button-solid { box-shadow: 0 12px 28px rgba(0,0,0,.14); }
body.light-mode .button-ghost { color: var(--text-primary); }
body.light-mode .research-link { background: #212529; color: #fff; border-color: #212529; }
body.light-mode .research-link:hover { background: #fff; color: #212529; border-color: #212529; }
body.light-mode .member-avatar { background: radial-gradient(circle at 50% 45%, rgba(0,0,0,.1), transparent 30%), repeating-radial-gradient(circle at center, transparent 0 35px, rgba(0,0,0,.07) 36px 37px); }
body.light-mode .member-avatar span { color: var(--text-primary); }
body.light-mode .journey-note strong { color: var(--text-primary); }
body.light-mode .contact::before, body.light-mode .contact::after { border-color: var(--line); }
body.light-mode .about-text p,
body.light-mode .research-statement,
body.light-mode .research-card p,
body.light-mode .contact-copy { color: var(--text-secondary); }
body.light-mode .about-text .lead { color: var(--text-primary); }
body.light-mode .section-label,
body.light-mode .research-identity,
body.light-mode .research-flow,
body.light-mode .team-heading p,
body.light-mode .journey-heading p,
body.light-mode .journey-note,
body.light-mode footer { color: var(--text-subtle); }
body.light-mode .card-index,
body.light-mode .research-card b,
body.light-mode .competition > span,
body.light-mode .competition small,
body.light-mode .competition b,
body.light-mode .member p { color: var(--text-subtle); }
body.light-mode .research-card,
body.light-mode .member-avatar { background-color: var(--surface); }
body.light-mode .research-card:hover { border-color: #cbd5e1; background: #f4f5f7; }
body.light-mode .competition-logo-isef,
body.light-mode .competition-logo-space { filter: invert(1) grayscale(1) brightness(.75); }
body.light-mode .competition-logo-eistf { filter: grayscale(1) brightness(.85); }
body.light-mode .competition:hover { background: rgba(0,0,0,.06); }
body.light-mode .competition:hover b { color: #111; }

.nav-cta {
  border: 1px solid var(--line);
  padding: 11px 16px;
  border-radius: 99px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  transition: background .3s, transform .3s;
}
.nav-cta:hover { background: white; color: black; transform: translateY(-2px); }

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 150px 9vw 80px;
  overflow: hidden;
  isolation: isolate;
}

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 20%, white 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 30%, white 0 1px, transparent 1.5px),
    radial-gradient(circle at 40% 70%, white 0 1px, transparent 1.5px),
    radial-gradient(circle at 85% 75%, white 0 1px, transparent 1.5px);
  background-size: 280px 240px, 370px 310px, 440px 390px, 520px 460px;
  opacity: .25;
  animation: starfield-drift 30s linear infinite;
}
.hero, .section, .contact, footer { position: relative; z-index: 1; }
.stars::before,
.stars::after {
  content: "";
  position: absolute;
  inset: -18%;
  pointer-events: none;
}
.stars::before {
  background-image:
    radial-gradient(circle at 12% 38%, rgba(255,255,255,.85) 0 1px, transparent 2px),
    radial-gradient(circle at 58% 18%, rgba(255,255,255,.65) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 68%, rgba(255,255,255,.8) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 36% 82%, rgba(255,255,255,.55) 0 1px, transparent 2px);
  background-size: 310px 280px, 430px 390px, 520px 470px, 260px 330px;
  opacity: .7;
  transform: translate(var(--stars-x, 0px), var(--stars-y, 0px));
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.stars::after {
  inset: auto;
  top: 18%;
  left: -20%;
  width: 170px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent);
  box-shadow: 0 0 12px 2px rgba(255,255,255,.35);
  opacity: 0;
  transform: rotate(-28deg);
  animation: shooting-star 11s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  width: 65vw;
  height: 65vw;
  max-width: 850px;
  max-height: 850px;
  right: -20vw;
  top: 4vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.055), transparent 62%);
  z-index: -1;
  animation: stellar-breathe 8s ease-in-out infinite;
}

.hero::before {
  content: "";
  position: absolute;
  width: 35vw;
  height: 35vw;
  max-width: 480px;
  max-height: 480px;
  right: 7vw;
  top: 18%;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255,255,255,.018), 0 0 0 44px rgba(255,255,255,.012);
  animation: radar-pulse 6s ease-out infinite;
  pointer-events: none;
}

.hero-content { max-width: 800px; position: relative; z-index: 5; }
.hero-content h1 { animation: title-arrival 1.3s cubic-bezier(.16,1,.3,1) both; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: .28em;
  color: #aaa;
  font-weight: 600;
  margin-bottom: 24px;
}
.eyebrow span {
  width: 7px;
  height: 7px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255,255,255,.8);
}

h1, h2 {
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: .92;
}
h1 { font-size: clamp(70px, 10vw, 155px); }
h2 { font-size: clamp(54px, 7vw, 105px); }
em { font-style: normal; color: #777; }
.hero-word {
  display: inline-block;
  white-space: nowrap;
}
.hero-icon {
  width: .72em;
  height: .72em;
  object-fit: contain;
  display: inline-block;
  vertical-align: -.08em;
  margin: 0 -.02em;
  transition: transform .35s ease, filter .35s ease;
}

.hero-copy {
  max-width: 500px;
  margin: 35px 0;
  color: #aaa;
  line-height: 1.7;
  font-size: 15px;
}

.hero-actions { display: flex; gap: 12px; }

.button {
  position: relative;
  overflow: hidden;
  padding: 15px 21px;
  border-radius: 100px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  transition: all .35s ease;
}
.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.55) 48%, transparent 70%);
  transform: translateX(-130%);
  transition: transform .65s ease;
}
.button:hover::after { transform: translateX(130%); }
.button-solid { background: white; color: black; }
.button-solid:hover { transform: translateY(-4px); box-shadow: 0 15px 35px rgba(255,255,255,.12); }
.button-ghost { border: 1px solid var(--line); color: #ccc; }
.button-ghost:hover { border-color: white; color: white; }

.orbit {
  position: absolute;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  z-index: 1;
}
.orbit-one {
  width: 660px;
  height: 260px;
  right: -5vw;
  top: 42%;
  transform: rotate(-28deg);
  animation: spin 16s linear infinite;
}
.orbit-two {
  width: 520px;
  height: 200px;
  right: 4vw;
  top: 44%;
  transform: rotate(32deg);
  animation: spinReverse 22s linear infinite;
}
.planet {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  right: 21%;
  top: 32%;
  box-shadow: 0 0 30px 8px rgba(255,255,255,.3);
  animation: pulse 3s ease-in-out infinite;
}

.orbit-satellite {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fg);
  box-shadow: 0 0 18px 5px rgba(255,255,255,.4);
  pointer-events: none;
  z-index: 2;
}
.satellite-one {
  right: 31%;
  top: 42%;
  animation: satellite-drift-one 9s ease-in-out infinite;
}
.satellite-two {
  right: 12%;
  top: 62%;
  width: 5px;
  height: 5px;
  opacity: .7;
  animation: satellite-drift-two 12s ease-in-out infinite reverse;
}
body.light-mode .orbit-satellite {
  background: var(--accent);
  box-shadow: 0 0 18px 5px rgba(0,0,0,.25);
}

.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 9vw;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #555;
  font-size: 9px;
  letter-spacing: .2em;
}
.scroll-hint .line { width: 45px; height: 1px; background: #555; }

.section {
  position: relative;
  padding: 150px 9vw;
  border-top: 1px solid var(--line);
}
.section-label {
  font-size: 10px;
  letter-spacing: .2em;
  color: #666;
  margin-bottom: 80px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 10vw;
}
.about-text { max-width: 470px; }
.about-text p { color: #858585; line-height: 1.8; font-size: 14px; }
.about-text .lead { color: #ddd; font-size: 20px; line-height: 1.5; margin-bottom: 25px; }

.stats {
  display: flex;
  gap: 45px;
  margin-top: 65px;
}
.stats div { display: flex; flex-direction: column; gap: 8px; }
.stats div { transition: transform .3s ease, color .3s ease; }
.stats div:hover { transform: translateY(-5px); color: white; }
.stats strong { font-size: 27px; font-weight: 500; }
.stats span { color: #555; font-size: 9px; letter-spacing: .16em; }

.research { overflow: hidden; }
.research-intro {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 10vw;
  align-items: end;
  margin-bottom: 80px;
}
.research-intro .eyebrow { margin-bottom: 28px; }
.research-statement { max-width: 510px; color: #aaa; line-height: 1.8; font-size: 15px; }
.research-identity {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
  color: #777;
  font-size: 9px;
  letter-spacing: .18em;
  transition: color .3s ease, transform .3s ease;
}
.research-identity img {
  width: 74px;
  height: auto;
  display: block;
  transition: transform .4s ease, filter .4s ease;
}
.research-identity .research-unit-mark { width: min(330px, 72vw); }
.research-identity:not(.research-unit-identity):hover { color: #eee; transform: translateX(5px); }
.research-identity:not(.research-unit-identity):hover img { transform: rotate(-4deg) scale(1.06); filter: brightness(1.2); }
.research-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  padding: 17px 20px 17px 24px;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
  transition: transform .35s ease, box-shadow .35s ease, background .35s ease, color .35s ease;
}
.research-link::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid currentColor;
  border-radius: inherit;
  opacity: .25;
  transform: scale(.92);
  transition: transform .35s ease, opacity .35s ease;
}
.research-link span {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 17px;
  line-height: 1;
  transition: transform .35s ease;
}
.research-link:hover {
  transform: translateY(-6px);
  background: transparent;
  color: var(--fg);
  box-shadow: 0 18px 38px rgba(0,0,0,.22);
}
.research-link:hover::before { opacity: .5; transform: scale(1); }
.research-link:hover span { transform: translate(3px, -3px) rotate(8deg); }
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.research-card {
  min-height: 265px;
  padding: 25px 30px 28px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}
.research-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(255,255,255,.14), transparent 28%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.research-card:hover::after { opacity: 1; }
.research-card:nth-child(even) { padding-left: 30px; border-left: 1px solid var(--line); }
.card-index, .research-card b { color: #555; font-size: 9px; letter-spacing: .18em; }
.research-card h3 { max-width: 300px; margin: 40px 0 16px; font-size: 27px; font-weight: 500; letter-spacing: -.04em; }
.research-card p { max-width: 370px; color: #777; line-height: 1.7; font-size: 13px; }
.research-card b { display: block; margin-top: 24px; font-weight: 500; }
.research-card { transition: transform .35s ease, border-color .35s ease, background .35s ease; }
.research-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.025); }
.research-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 55px;
  color: #777;
  font-size: 9px;
  letter-spacing: .14em;
  flex-wrap: wrap;
}
.research-flow i { color: #444; font-style: normal; font-size: 16px; }
.research-flow span { transition: color .3s ease, transform .3s ease; }
.research-flow span:hover { color: white; transform: translateY(-3px); }

.team-heading, .journey-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 75px;
}
.team-heading p, .journey-heading p {
  max-width: 280px;
  color: #666;
  font-size: 12px;
  line-height: 1.7;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  gap: 20px;
  max-width: 800px;
}
.member {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.member-avatar {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  color: #777;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,.08), transparent 30%),
    repeating-radial-gradient(circle at center, transparent 0 35px, rgba(255,255,255,.045) 36px 37px);
  transition: transform .5s, border-color .5s;
  transform-style: preserve-3d;
}
.member-avatar span {
  font-size: 70px;
  font-weight: 600;
  letter-spacing: -.08em;
  position: relative;
}
.member:hover .member-avatar { transform: scale(.97); border-color: rgba(255,255,255,.35); }
.member h3 { font-size: 20px; font-weight: 500; transition: color .3s ease, transform .3s ease; }
.member p { color: #555; font-size: 9px; letter-spacing: .16em; margin-top: 8px; }
.member:hover h3 { color: white; transform: translateX(5px); }

.competition-list {
  border-top: 1px solid var(--line);
}
.competition {
  min-height: 155px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 12% 1fr 40px;
  align-items: center;
  transition: padding .45s ease, background .45s ease;
  position: relative;
  overflow: hidden;
}
.competition::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -35%;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  transform: skewX(-20deg);
  transition: left .7s ease;
  pointer-events: none;
}
.competition:hover::after { left: 120%; }
.competition:hover {
  padding: 0 25px;
  background: var(--soft);
}
.competition > span { color: #555; font-size: 11px; }
.competition small {
  color: #555;
  font-size: 9px;
  letter-spacing: .17em;
}
.competition h3 {
  font-size: clamp(30px, 5vw, 65px);
  font-weight: 500;
  letter-spacing: -.055em;
  margin-top: 6px;
}
.competition-logo {
  display: block;
  width: 150px;
  height: 58px;
  margin-top: 13px;
  object-fit: contain;
  object-position: left center;
  filter: grayscale(1) brightness(1.65);
  transition: transform .35s ease, filter .35s ease;
}
.competition-logo-isef { width: 155px; }
.competition-logo-eistf { width: 82px; height: 82px; }
.competition-logo-space { width: 235px; }
.competition-logo + h3 { display: none; }
.competition b {
  font-size: 24px;
  font-weight: 400;
  color: #555;
  transition: color .3s, transform .3s;
}
.competition:hover b { color: white; transform: translate(5px,-5px); }
.competition small, .competition-logo { transition: color .3s ease, letter-spacing .3s ease, transform .35s ease, filter .35s ease; }
.competition:hover small { color: #aaa; }
.competition:hover .competition-logo { filter: grayscale(0) brightness(1); transform: scale(1.05); }
body.light-mode .competition:hover .competition-logo-isef,
body.light-mode .competition:hover .competition-logo-space { filter: invert(1) grayscale(1) brightness(.75); }
body.light-mode .competition:hover .competition-logo-eistf { filter: grayscale(1) brightness(.85); }

.research-page {
  min-height: 100vh;
  padding: 170px 9vw 100px;
}
.research-page-intro {
  max-width: 760px;
  margin-bottom: 90px;
}
.research-unit-logo {
  width: min(660px, 85vw);
  height: auto;
  display: block;
  margin-left: clamp(-56px, -4vw, -16px);
  margin-bottom: 48px;
  object-fit: contain;
  object-position: left center;
}
.research-page-intro h1 { margin: 22px 0 28px; }
.research-page-intro p {
  max-width: 560px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 15px;
}
.research-empty {
  max-width: 780px;
  min-height: 300px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 50px 30px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.research-empty img { width: 76px; height: 76px; object-fit: contain; margin-bottom: 22px; }
.research-empty h2 { font-size: clamp(32px, 5vw, 60px); }
.research-empty p { max-width: 420px; margin-top: 16px; color: var(--text-secondary); line-height: 1.7; font-size: 14px; }
.research-back { display: inline-flex; margin-top: 38px; }

.error-page { min-height: 100vh; overflow: hidden; }
.error-content {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: start;
  padding: 150px 9vw 80px;
  position: relative;
  z-index: 2;
}
.error-content .section-label { margin-bottom: 26px; }
.error-content h1 { font-size: clamp(72px, 12vw, 170px); }
.error-copy {
  margin: 30px 0 34px;
  color: var(--text-secondary);
  font-size: 15px;
}
.error-content .button { display: inline-flex; align-items: center; gap: 16px; }
.error-content .button span { font-size: 18px; }
.error-orbit {
  width: 250px;
  height: 92px;
  position: absolute;
  right: 12vw;
  top: 42%;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: rotate(-28deg);
  animation: error-orbit-spin 8s linear infinite;
}
.error-orbit::before {
  content: "";
  position: absolute;
  inset: 16px 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.error-orbit span {
  position: absolute;
  width: 15px;
  height: 15px;
  top: -7px;
  right: 30px;
  border-radius: 50%;
  background: var(--fg);
  box-shadow: 0 0 22px rgba(255,255,255,.45);
}
.error-orbit i {
  position: absolute;
  width: 6px;
  height: 6px;
  bottom: 11px;
  left: 35px;
  border-radius: 50%;
  background: var(--fg);
}
@keyframes error-orbit-spin { to { transform: rotate(332deg); } }
body.light-mode .error-orbit span,
body.light-mode .error-orbit i { box-shadow: 0 0 18px rgba(0,0,0,.25); }

.journey-note {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 32px 0 0;
  color: #777;
  font-size: 12px;
}
.journey-note strong { color: #eee; font-weight: 500; }

.contact {
  min-height: 85vh;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.contact::before {
  content: "";
  position: absolute;
  width: 750px;
  height: 750px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  animation: spin 25s linear infinite;
}
.contact::after {
  content: "";
  position: absolute;
  width: 470px;
  height: 470px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  transform: rotate(45deg);
}
.contact-inner { position: relative; z-index: 2; padding: 50px 20px; }
.contact-inner .eyebrow { justify-content: center; }
.contact-inner h2 { font-size: clamp(60px, 9vw, 130px); margin: 20px 0 30px; }
.contact-copy { color: #666; font-size: 13px; }

footer {
  border-top: 1px solid var(--line);
  padding: 28px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #555;
  font-size: 10px;
}
.footer-brand img {
  width: 145px;
  height: auto;
  display: block;
  transition: transform .35s ease, filter .35s ease;
}
.footer-brand:hover img { transform: scale(1.05); filter: brightness(1.2); }
footer a:hover { color: white; }

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes drift { to { transform: translate3d(-90px, 50px, 0); } }
@keyframes starfield-drift {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to { background-position: -90px 50px, -70px 35px, -110px 65px, -50px 25px; }
}
@keyframes spin { to { transform: rotate(332deg); } }
@keyframes spinReverse { to { transform: rotate(-328deg); } }
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: .75; }
  50% { transform: scale(1.45); opacity: 1; }
}
@keyframes stellar-breathe {
  0%, 100% { transform: scale(.92); opacity: .65; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes radar-pulse {
  0% { transform: scale(.72); opacity: 0; }
  25% { opacity: .65; }
  100% { transform: scale(1.22); opacity: 0; }
}
@keyframes title-arrival {
  from { opacity: 0; transform: translateY(28px) scale(.97); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes shooting-star {
  0%, 62%, 100% { opacity: 0; transform: translate(0, 0) rotate(-28deg); }
  66% { opacity: .9; }
  73% { opacity: 0; transform: translate(125vw, 58vh) rotate(-28deg); }
}
@keyframes satellite-drift-one {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(24px, -18px); }
}
@keyframes satellite-drift-two {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 24px); }
}

@media (max-width: 800px) {
  .navbar { padding: 15px 5vw; }
  .brand img { width: 82px; height: auto; }
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .header-actions { gap: 8px; }
  .navbar nav {
    position: absolute;
    top: 100%;
    left: 5vw;
    right: 5vw;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease;
  }
  .navbar nav a { padding: 16px 20px; }
  .navbar.menu-open nav { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .navbar.menu-open .menu-toggle span:nth-of-type(2) { transform: translateY(5px) rotate(45deg); }
  .navbar.menu-open .menu-toggle span:nth-of-type(3) { opacity: 0; }
  .navbar.menu-open .menu-toggle span:nth-of-type(4) { transform: translateY(-5px) rotate(-45deg); }
  .nav-cta { padding: 9px 12px; }
  .hero { padding: 120px 7vw 80px; }
  .orbit-one { width: 480px; right: -35vw; }
  .orbit-two { width: 380px; right: -25vw; }
  .planet { right: 18%; }
  .section { padding: 100px 7vw; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .research-intro { grid-template-columns: 1fr; gap: 45px; }
  .research-grid { grid-template-columns: 1fr; }
  .research-card, .research-card:nth-child(even) { padding: 25px 0 28px; border-left: 0; }
  .research-flow { justify-content: flex-start; }
  .research-flow i { margin-right: 4px; }
  .journey-note { display: block; }
  .journey-note span { display: block; margin-top: 12px; }
  .team-heading, .journey-heading { display: block; }
  .team-heading p, .journey-heading p { margin-top: 25px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 35px 15px; }
  .member-avatar span { font-size: 45px; }
  .competition { grid-template-columns: 12% 1fr 25px; }
  .scroll-hint { left: 7vw; }
  footer { gap: 20px; flex-wrap: wrap; }
  .footer-brand img { width: 82px; height: auto; }
}

@media (max-width: 480px) {
  h1 { font-size: 65px; }
  .hero-copy { font-size: 13px; }
  .hero-actions { flex-wrap: wrap; }
  .stats { gap: 25px; }
  .competition > span { display: none; }
  .competition { grid-template-columns: 1fr 25px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .contact::before { width: 480px; height: 480px; }
  .contact::after { width: 300px; height: 300px; }
  .error-content { padding: 130px 7vw 60px; }
  .error-orbit { width: 180px; height: 68px; right: -16vw; top: 39%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
