:root {
  /* Theme */
  --bg: #06122c; /* Slightly lighter navy */
  --bg2: #000000; /* Black */
  --panel: rgba(2, 6, 23, 0.72);
  --panel2: rgba(2, 6, 23, 0.5);

  /* Background media (stationary, embedded) */
  --bgMedia: url("gif/computer-screen-code-glitch-animation-gif-background-free-thumb57.gif");

  /* Accents: contrast against the cyan/blue GIF */
  --neon: #ff4fd8; /* Magenta */
  --cyan: #00d1ff; /* Cyan */
  --text: rgba(236, 254, 255, 0.92);
  --muted: rgba(226, 232, 240, 0.72);

  --border: rgba(0, 209, 255, 0.18);
  --border2: rgba(255, 79, 216, 0.16);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);

  --radius: 18px;
  --radiusSm: 12px;
  --max: 1150px;

  --fontTitle: "Orbitron", system-ui, -apple-system, Segoe UI, sans-serif;
  --fontMono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fontBody: "Sora", system-ui, -apple-system, Segoe UI, sans-serif;
  /* Wordmark (homepage logo text) — Beckman-inspired styling. For an exact match, provide the font file. */
  --fontWordmark: "Sora", system-ui, -apple-system, Segoe UI, sans-serif;

  /* Layout */
  --socialBarH: 74px; /* fixed bottom bar height */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--fontBody);
  color: var(--text);
  /* Stationary GIF behind everything, with a dark overlay for readability. */
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.76), rgba(6, 18, 44, 0.86)),
    var(--bgMedia) center / cover fixed no-repeat,
    radial-gradient(1000px 700px at 20% 10%, rgba(0, 209, 255, 0.10), transparent 55%),
    radial-gradient(900px 700px at 90% 20%, rgba(255, 79, 216, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  overflow-x: hidden;
}

body.modalOpen {
  overflow: hidden;
}

/* Accessibility helpers */
.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mono {
  font-family: var(--fontMono);
}

.faint {
  color: rgba(226, 232, 240, 0.55);
}

/* ---------------------------
   Loading screen
--------------------------- */
.loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 9999;
  background: radial-gradient(700px 500px at 30% 20%, rgba(34, 211, 238, 0.18), transparent 50%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(2, 6, 23, 0.92));
  backdrop-filter: blur(8px);
  transition: opacity 420ms ease, visibility 420ms ease;
}

.loader.isHidden {
  opacity: 0;
  visibility: hidden;
}

.loader__card {
  width: min(680px, calc(100vw - 32px));
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.5));
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.loader__card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.18), transparent);
  transform: translateX(-40%);
  animation: sweep 1.6s linear infinite;
  pointer-events: none;
}

@keyframes sweep {
  0% {
    transform: translateX(-45%);
  }
  100% {
    transform: translateX(45%);
  }
}

.loader__logo {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 25%, rgba(34, 211, 238, 0.9), rgba(0, 191, 255, 0.2) 45%, transparent 70%),
    linear-gradient(180deg, rgba(0, 191, 255, 0.12), rgba(2, 6, 23, 0.7));
  border: 1px solid rgba(0, 191, 255, 0.24);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.14), 0 0 30px rgba(0, 191, 255, 0.22);
}

.loader__title {
  font-family: var(--fontTitle);
  letter-spacing: 0.06em;
  font-size: 16px;
}

.loader__sub {
  margin-top: 6px;
  color: rgba(236, 254, 255, 0.8);
  font-size: 13px;
}

.loader__bar {
  margin-top: 12px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: rgba(2, 6, 23, 0.58);
  overflow: hidden;
}

.loader__barFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.85), rgba(0, 191, 255, 0.9));
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.2);
  transition: width 120ms linear;
}

/* ---------------------------
   Background (canvas + overlays)
--------------------------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  /* The GIF is the primary background; keep canvas as a fallback (disabled by default). */
  display: none;
}

.bgOverlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Extra overlay to keep text readable on top of the GIF */
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(6, 18, 44, 0.58));
}

.bgOverlay::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: linear-gradient(to right, rgba(34, 211, 238, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 211, 238, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 40% 20%, black, transparent 65%);
}

.bgOverlay::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0px, rgba(255, 255, 255, 0.04) 1px, transparent 2px, transparent 5px);
  mix-blend-mode: overlay;
}

/* ---------------------------
   Cursor glow (pointer hover effect)
--------------------------- */
.cursorGlow,
.cursorDot {
  position: fixed;
  left: 0;
  top: 0;
  /* Positioned via CSS variables set by JS */
  transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0) translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 120ms ease;
}

.cursorGlow {
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 209, 255, 0.22), transparent 60%),
    radial-gradient(circle, rgba(0, 255, 136, 0.16), transparent 66%);
  filter: blur(1px);
  mix-blend-mode: screen;
  transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0) translate(-50%, -50%) scale(var(--cursorScale, 1));
}

.cursorDot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(236, 254, 255, 0.9);
  box-shadow: 0 0 18px rgba(0, 209, 255, 0.35), 0 0 28px rgba(0, 255, 136, 0.22);
}

@media (pointer: fine) {
  .js.cursorOn .cursorGlow,
  .js.cursorOn .cursorDot {
    opacity: 1;
  }

  .js.cursorDown {
    --cursorScale: 1.08;
  }
}

/* ---------------------------
   Navigation
--------------------------- */
.navWrap {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.5));
  border-bottom: 1px solid rgba(34, 211, 238, 0.14);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand__mark {
  width: 34px;
  height: 34px;
}

.brand__name {
  font-family: var(--fontTitle);
  letter-spacing: 0.06em;
  font-size: 14px;
  text-transform: uppercase;
}

.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 12px;
  padding: 10px;
  color: var(--text);
}

.hamburger {
  width: 20px;
  height: 12px;
  display: block;
  position: relative;
}
.hamburger::before,
.hamburger::after,
.hamburger {
  border-top: 2px solid rgba(236, 254, 255, 0.8);
}
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
}
.hamburger::before {
  top: 4px;
}
.hamburger::after {
  top: 10px;
}

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

.nav__link {
  text-decoration: none;
  color: rgba(236, 254, 255, 0.84);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
  font-family: var(--fontMono);
  font-size: 13px;
}

.nav__link:hover {
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.16);
  color: rgba(236, 254, 255, 0.96);
  transform: translateY(-1px);
}

/* Mobile menu */
@media (max-width: 860px) {
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav__menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 64px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid rgba(34, 211, 238, 0.16);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.7));
    box-shadow: var(--shadow);
  }

  .nav__menu.isOpen {
    display: flex;
  }

  .nav__link {
    width: 100%;
  }
}

/* ---------------------------
   Layout / Sections
--------------------------- */
.main {
  position: relative;
  /* Keep the final section from being covered by the fixed social bar. */
  padding-bottom: calc(var(--socialBarH) + 18px);
}

.section {
  width: 100%;
  /* Each section covers (at least) a full screen, with content centered. */
  min-height: calc(100dvh - var(--socialBarH));
  display: grid;
  place-items: center;
  padding: clamp(76px, 10vh, 120px) 16px;
}

.section--tight {
  padding-top: 44px;
}

.section__inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.section__head {
  margin-bottom: 22px;
}

.section__head--center {
  text-align: center;
}
.section__head--center .section__sub {
  margin-left: auto;
  margin-right: auto;
}

.section__title {
  font-family: var(--fontTitle);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: clamp(22px, 3vw, 30px);
  margin: 0;
}

.section__sub {
  margin: 10px 0 0 0;
  color: var(--muted);
  max-width: 72ch;
  line-height: 1.55;
}

.section__sub--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section__cta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------------------------
   Hero
--------------------------- */
.hero {
  /* Full-width container so the landing video can be fullscreen */
  width: 100%;
  margin: 0;
  padding: 0 16px;
  min-height: calc(100dvh - var(--socialBarH));
  display: grid;
  align-items: center;
  position: relative;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: start;
}

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

.kicker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.pill {
  font-family: var(--fontMono);
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  background: rgba(2, 6, 23, 0.55);
}

.pill--glow {
  border-color: rgba(0, 191, 255, 0.26);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.1), 0 0 30px rgba(0, 191, 255, 0.12);
}

.title {
  font-family: var(--fontTitle);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: clamp(40px, 6vw, 64px);
  margin: 0;
  line-height: 1.05;
}

/* Beckman-like wordmark treatment (based on `assets/fontsite.jpeg`) */
.wordmark {
  font-family: var(--fontWordmark);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-block;
  position: relative;
  padding-left: 0.22em; /* visually centers wide letter-spacing */
}

/* "Cut" segments through the wordmark to mimic the reference style */
.wordmark::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  top: 52%;
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.72) 0px,
    rgba(0, 0, 0, 0.72) 18px,
    transparent 18px,
    transparent 34px
  );
  opacity: 0.35;
  pointer-events: none;
  filter: blur(0.2px);
}

.tagline {
  margin: 10px 0 0 0;
  font-size: 15px;
  color: rgba(236, 254, 255, 0.86);
}

.desc {
  margin: 14px 0 0 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 70ch;
}

.cta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Minimal landing (home page requirement: centered identity only) */
.hero--minimal {
  place-items: center;
  text-align: center;
}
.hero__center {
  width: min(860px, 100%);
  padding: 10px 0;
}
.hero__logo {
  width: 92px;
  height: 92px;
  margin: 0 auto 18px auto;
  display: block;
  filter: drop-shadow(0 0 18px rgba(0, 209, 255, 0.18)) drop-shadow(0 0 22px rgba(0, 255, 136, 0.08));
  opacity: 0.95;
}
.hero--minimal .tagline {
  margin-top: 14px;
  color: rgba(236, 254, 255, 0.78);
  letter-spacing: 0.04em;
}

/* Video landing: centered identity above the video */
/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  text-decoration: none;
  color: rgba(236, 254, 255, 0.9);
  font-family: var(--fontMono);
  font-size: 13px;
  background: rgba(2, 6, 23, 0.5);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
  overflow: hidden;
  user-select: none;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.32);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.12), 0 16px 60px rgba(0, 191, 255, 0.08);
}

.btn--primary {
  border-color: rgba(0, 191, 255, 0.35);
  background: linear-gradient(180deg, rgba(0, 191, 255, 0.18), rgba(2, 6, 23, 0.62));
}

.btn--ghost {
  background: rgba(2, 6, 23, 0.35);
}

.btn--sm {
  padding: 10px 12px;
  border-radius: 12px;
}

.btn__shine {
  position: absolute;
  inset: -2px;
  background: linear-gradient(110deg, transparent 40%, rgba(34, 211, 238, 0.3), transparent 60%);
  transform: translateX(-60%);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}
.btn:hover .btn__shine {
  opacity: 1;
  animation: shine 1.1s ease both;
}
@keyframes shine {
  0% {
    transform: translateX(-60%);
  }
  100% {
    transform: translateX(60%);
  }
}

.btn__icon {
  width: 18px;
  height: 18px;
  opacity: 0.95;
}

/* ---------------------------
   Writeups categories (circular buttons)
--------------------------- */
.writeupCats {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.catBtn {
  width: min(170px, calc(50vw - 28px));
  max-width: 170px;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  text-decoration: none;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(0, 209, 255, 0.22);
  background: radial-gradient(120px 120px at 30% 25%, rgba(0, 209, 255, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.66), rgba(2, 6, 23, 0.34));
  box-shadow: 0 0 0 1px rgba(0, 255, 136, 0.08), 0 18px 60px rgba(0, 0, 0, 0.35);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  user-select: none;
}

.catBtn:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 136, 0.22);
  box-shadow: 0 0 0 1px rgba(0, 209, 255, 0.12), 0 26px 70px rgba(0, 0, 0, 0.45);
}

.catBtn__icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 255, 136, 0.18);
  background: rgba(2, 6, 23, 0.44);
  color: rgba(236, 254, 255, 0.9);
  letter-spacing: 0.08em;
  box-shadow: 0 0 0 1px rgba(0, 209, 255, 0.08), 0 0 22px rgba(0, 209, 255, 0.12);
}

.catBtn__label {
  color: rgba(236, 254, 255, 0.82);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  text-align: center;
}

/* Terminal */
.terminal {
  margin-top: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(34, 211, 238, 0.16);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(2, 6, 23, 0.6));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(34, 211, 238, 0.12);
  background: rgba(2, 6, 23, 0.55);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}
.dot--r {
  background: rgba(255, 80, 80, 0.9);
}
.dot--y {
  background: rgba(255, 198, 61, 0.9);
}
.dot--g {
  background: rgba(56, 224, 137, 0.9);
}

.terminal__title {
  margin-left: 6px;
  font-size: 12px;
  color: rgba(236, 254, 255, 0.8);
}

.terminal__body {
  padding: 14px 14px 16px 14px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(236, 254, 255, 0.86);
  position: relative;
}

.terminal__body::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.06), transparent);
  opacity: 0.55;
  pointer-events: none;
  animation: scan 3.2s linear infinite;
}
@keyframes scan {
  0% {
    transform: translateY(-55%);
  }
  100% {
    transform: translateY(55%);
  }
}

.line {
  display: block;
}

.prompt {
  color: rgba(34, 211, 238, 0.9);
  margin-right: 8px;
}

.caret {
  display: inline-block;
  width: 8px;
  height: 14px;
  margin-left: 2px;
  background: rgba(34, 211, 238, 0.85);
  vertical-align: -2px;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Right side HUD */
.hero__right {
  position: relative;
  display: grid;
  gap: 16px;
}

.hud {
  border-radius: var(--radius);
  border: 1px solid rgba(34, 211, 238, 0.16);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.45));
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hud::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle at 20% 10%, rgba(0, 191, 255, 0.12), transparent 40%),
    radial-gradient(circle at 90% 40%, rgba(34, 211, 238, 0.1), transparent 50%);
  pointer-events: none;
}

.hud__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-bottom: 1px solid rgba(34, 211, 238, 0.12);
}

.hud__label {
  font-size: 12px;
  color: rgba(236, 254, 255, 0.76);
}

.hud__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.statusDot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(56, 224, 137, 0.95);
  box-shadow: 0 0 20px rgba(56, 224, 137, 0.35);
}

.hud__chart {
  height: 150px;
  position: relative;
  padding: 16px;
  border-bottom: 1px solid rgba(34, 211, 238, 0.12);
}

.spark {
  position: absolute;
  left: 16px;
  right: 16px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.9), transparent);
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.35));
  opacity: 0.65;
}

.spark--a {
  top: 40px;
  animation: sparkA 2.3s ease-in-out infinite;
}
.spark--b {
  top: 92px;
  opacity: 0.45;
  animation: sparkB 2.8s ease-in-out infinite;
}

@keyframes sparkA {
  0%,
  100% {
    transform: translateX(-12%) scaleX(0.85);
  }
  50% {
    transform: translateX(12%) scaleX(1.08);
  }
}
@keyframes sparkB {
  0%,
  100% {
    transform: translateX(10%) scaleX(0.8);
  }
  50% {
    transform: translateX(-8%) scaleX(1.1);
  }
}

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  top: -2px;
  background: rgba(0, 191, 255, 0.55);
  filter: blur(0.2px);
  animation: scan2 2.9s linear infinite;
  opacity: 0.45;
}
@keyframes scan2 {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(160px);
  }
}

.hud__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid rgba(34, 211, 238, 0.12);
}

.stat {
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: 14px;
  padding: 10px;
  background: rgba(2, 6, 23, 0.35);
}

.stat__k {
  font-size: 12px;
  color: rgba(226, 232, 240, 0.7);
}
.stat__v {
  margin-top: 8px;
  font-family: var(--fontTitle);
  letter-spacing: 0.06em;
  font-size: 18px;
}

.hud__log {
  padding: 12px 14px 16px 14px;
  font-size: 12px;
  color: rgba(236, 254, 255, 0.78);
}

.logLine {
  display: flex;
  gap: 10px;
  padding: 6px 0;
}
.ok {
  color: rgba(56, 224, 137, 0.95);
}
.warn {
  color: rgba(255, 198, 61, 0.95);
}

.hero__badge {
  display: grid;
  place-items: center;
}

.badge {
  width: min(240px, 70vw);
  aspect-ratio: 1/1;
  position: relative;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.badge__ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: conic-gradient(from 40deg, rgba(34, 211, 238, 0.6), rgba(0, 191, 255, 0.08), rgba(34, 211, 238, 0.2));
  filter: blur(0.3px);
  mask-image: radial-gradient(circle at center, transparent 58%, black 60%);
  animation: spin 10s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.badge__inner {
  width: 72%;
  height: 72%;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  background: radial-gradient(circle at 30% 25%, rgba(0, 191, 255, 0.18), rgba(2, 6, 23, 0.75) 55%);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.1), 0 0 60px rgba(0, 191, 255, 0.12);
}

.badge__title {
  font-family: var(--fontTitle);
  letter-spacing: 0.14em;
  font-size: 34px;
}
.badge__sub {
  margin-top: -10px;
  color: rgba(226, 232, 240, 0.72);
  letter-spacing: 0.22em;
  font-size: 12px;
}

/* ---------------------------
   Cards (About)
--------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1040px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  border-radius: var(--radius);
  border: 1px solid rgba(34, 211, 238, 0.16);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.32));
  padding: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle at 18% 12%, rgba(34, 211, 238, 0.16), transparent 45%),
    radial-gradient(circle at 92% 60%, rgba(0, 191, 255, 0.12), transparent 50%);
  pointer-events: none;
  opacity: 0.8;
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 211, 238, 0.18);
  background: rgba(0, 0, 0, 0.24);
  color: rgba(34, 211, 238, 0.92);
}
.card__title {
  margin: 14px 0 0 0;
  font-family: var(--fontTitle);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 15px;
}
.card__text {
  margin: 10px 0 0 0;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------------------------
   Team preview
--------------------------- */
.teamGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 820px) {
  .teamGrid {
    grid-template-columns: 1fr;
  }
}

/* Team members page grid (5 placeholders, responsive) */
.memberGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.member {
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  border-radius: var(--radius);
  border: 1px solid rgba(34, 211, 238, 0.16);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.34));
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.38);
  padding: 16px;
  display: grid;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.member:focus-visible {
  outline: 2px solid rgba(0, 255, 136, 0.35);
  outline-offset: 3px;
}

.member__glow {
  position: absolute;
  inset: -80px;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(34, 211, 238, 0.22), transparent 55%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.member:hover .member__glow {
  opacity: 1;
}

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

.member__avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(0, 191, 255, 0.28);
  background: rgba(2, 6, 23, 0.5);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.1), 0 0 30px rgba(0, 191, 255, 0.12);
}

.member__name {
  font-family: var(--fontTitle);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 16px;
}
.member__role {
  margin-top: 4px;
  color: rgba(226, 232, 240, 0.76);
  font-size: 12px;
}

.member__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.member__cta {
  color: rgba(34, 211, 238, 0.9);
  font-size: 12px;
}

.iconBtn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  background: rgba(2, 6, 23, 0.4);
  display: grid;
  place-items: center;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.iconBtn img {
  width: 18px;
  height: 18px;
  opacity: 0.95;
}
.member:hover .iconBtn {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.12);
}

/* ---------------------------
   Top-right navigation icons
--------------------------- */
.pageNav {
  position: fixed;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 10px;
  z-index: 9999;
}

.pageNav .iconBtn {
  height: 32px;
  border-radius: 12px;
  width: auto;
  min-width: 32px;
  padding: 0 10px;
}

.pageNav__label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(236, 254, 255, 0.86);
}

/* ---------------------------
   Social icons (no bar)
--------------------------- */
.socialDock {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 9999;
}

/* ---------------------------
   Member card click overlay
--------------------------- */
.member__open {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.member__open:focus-visible {
  outline: 2px solid rgba(0, 255, 136, 0.35);
  outline-offset: 3px;
}

.member__top,
.member__bottom {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.member__socialLink {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

/* Member detail page */
.memberDetail {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 860px) {
  .memberDetail {
    grid-template-columns: 1fr;
  }
}

.memberDetail__left {
  display: grid;
  gap: 12px;
}

.memberDetail__avatar {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  border: 1px solid rgba(0, 191, 255, 0.28);
  background: rgba(2, 6, 23, 0.5);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.1), 0 0 30px rgba(0, 191, 255, 0.12);
}

.memberDetail__social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.panel {
  border-radius: var(--radius);
  border: 1px solid rgba(34, 211, 238, 0.16);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.66), rgba(2, 6, 23, 0.34));
  padding: 16px;
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.32);
}

.panel__title {
  margin: 0 0 12px 0;
  color: rgba(236, 254, 255, 0.88);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
}

.panel__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.skillList {
  margin: 0;
  padding-left: 18px;
  color: rgba(236, 254, 255, 0.82);
}
.skillList li + li {
  margin-top: 8px;
}

/* CTFtime contests list (auto-fetched) */
.ctftime {
  border-radius: var(--radius);
  border: 1px solid rgba(34, 211, 238, 0.16);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.66), rgba(2, 6, 23, 0.34));
  padding: 16px;
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.32);
}

.ctftime__status {
  color: rgba(236, 254, 255, 0.75);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: lowercase;
}

.ctftime__list {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.ctfItem {
  border-radius: 16px;
  border: 1px solid rgba(34, 211, 238, 0.14);
  background: rgba(2, 6, 23, 0.48);
  padding: 14px;
}

.ctfItem__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.ctfItem__name {
  text-decoration: none;
  color: rgba(236, 254, 255, 0.92);
  font-family: var(--fontTitle);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 14px;
}
.ctfItem__name:hover {
  text-decoration: underline;
}

.ctfItem__year {
  color: rgba(236, 254, 255, 0.72);
  font-size: 12px;
}

.ctfItem__meta {
  margin-top: 10px;
  color: rgba(236, 254, 255, 0.75);
  font-size: 12px;
}

/* Keep long contest lists readable within a full-screen section */
.ctftime__list {
  max-height: min(52vh, 520px);
  overflow: auto;
  padding-right: 4px;
}

/* ---------------------------
   Member modal
--------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  place-items: center;
}

.modal.isOpen {
  display: grid;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.modal__card {
  position: relative;
  width: min(860px, calc(100vw - 28px));
  max-height: min(78dvh, 720px);
  overflow: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 209, 255, 0.18);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.62));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  padding: 18px;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.modal__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 42px; /* space for close */
}

.modal__avatar {
  width: 92px;
  height: 92px;
  border-radius: 18px;
  border: 1px solid rgba(0, 191, 255, 0.28);
  background: rgba(2, 6, 23, 0.5);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.1), 0 0 30px rgba(0, 191, 255, 0.12);
  object-fit: cover;
}

.modal__name {
  font-family: var(--fontTitle);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 22px;
}

.modal__role {
  margin-top: 6px;
  color: rgba(226, 232, 240, 0.76);
  font-size: 12px;
}

.modal__grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 860px) {
  .modal__grid {
    grid-template-columns: 1fr;
  }
}

.modal__social {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------------------------
   Persistent bottom social bar
--------------------------- */
.socialBar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--socialBarH);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 12px;
  border-top: 1px solid rgba(0, 209, 255, 0.14);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.52), rgba(2, 6, 23, 0.82));
  backdrop-filter: blur(10px);
  z-index: 9999;
}

.socialBar__text {
  height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 209, 255, 0.16);
  background: rgba(2, 6, 23, 0.38);
  color: rgba(236, 254, 255, 0.86);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  user-select: none;
}

.socialBar__text:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 79, 216, 0.18);
  box-shadow: 0 0 22px rgba(0, 209, 255, 0.12);
}

.socialBar__text:focus-visible {
  outline: 2px solid rgba(255, 79, 216, 0.35);
  outline-offset: 3px;
}

.socialBar__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(0, 209, 255, 0.16);
  background: rgba(2, 6, 23, 0.38);
  display: grid;
  place-items: center;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.socialBar__icon:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 255, 136, 0.18);
  box-shadow: 0 0 22px rgba(0, 209, 255, 0.12);
}

.socialBar__icon img {
  width: 20px;
  height: 20px;
  opacity: 0.95;
}

/* ---------------------------
   Achievements timeline
--------------------------- */
.timeline {
  display: grid;
  gap: 14px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.28), rgba(0, 191, 255, 0.08));
  opacity: 0.9;
}

.timelineItem {
  position: relative;
  padding-left: 40px;
}

.timelineItem__pin {
  position: absolute;
  left: 6px;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.95);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.25);
}

.timelineItem__card {
  border-radius: var(--radius);
  border: 1px solid rgba(34, 211, 238, 0.16);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.66), rgba(2, 6, 23, 0.34));
  padding: 16px;
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.32);
}

.timelineItem__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.timelineItem__event {
  font-family: var(--fontTitle);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 15px;
}
.timelineItem__year {
  color: rgba(226, 232, 240, 0.76);
  font-size: 12px;
}
.timelineItem__rank {
  margin-top: 10px;
  color: rgba(236, 254, 255, 0.86);
}
.timelineItem__note {
  margin-top: 10px;
  color: rgba(226, 232, 240, 0.64);
  font-size: 12px;
}

/* ---------------------------
   Events cards
--------------------------- */
.eventGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1040px) {
  .eventGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .eventGrid {
    grid-template-columns: 1fr;
  }
}

.eventCard {
  border-radius: var(--radius);
  border: 1px solid rgba(34, 211, 238, 0.16);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.66), rgba(2, 6, 23, 0.3));
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.32);
  padding: 16px;
  position: relative;
  overflow: hidden;
  min-height: 140px;
  transform-style: preserve-3d;
}

.eventCard__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 30%) var(--my, 40%), rgba(0, 191, 255, 0.18), transparent 60%),
    radial-gradient(circle at 90% 20%, rgba(34, 211, 238, 0.12), transparent 50%);
  opacity: 0.9;
  pointer-events: none;
}

.eventCard__title {
  position: relative;
  font-family: var(--fontTitle);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 15px;
}

.eventCard__meta {
  position: relative;
  margin-top: 10px;
  color: rgba(226, 232, 240, 0.72);
  font-size: 12px;
}

/* ---------------------------
   Team detail page: Profiles
--------------------------- */
.profileGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 980px) {
  .profileGrid {
    grid-template-columns: 1fr;
  }
}

.profile {
  border-radius: var(--radius);
  border: 1px solid rgba(34, 211, 238, 0.16);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.32));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  position: relative;
}

.profile__glow {
  position: absolute;
  inset: -80px;
  background: radial-gradient(circle at var(--mx, 40%) var(--my, 25%), rgba(34, 211, 238, 0.2), transparent 55%);
  opacity: 0.65;
  pointer-events: none;
}

.profile__hero {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(34, 211, 238, 0.12);
  background: rgba(2, 6, 23, 0.35);
}
@media (max-width: 520px) {
  .profile__hero {
    grid-template-columns: 64px 1fr;
    grid-auto-rows: auto;
  }
  .profile__hero .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.profile__avatar {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  border: 1px solid rgba(0, 191, 255, 0.28);
  background: rgba(2, 6, 23, 0.5);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.1), 0 0 34px rgba(0, 191, 255, 0.12);
}

.profile__name {
  font-family: var(--fontTitle);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 16px;
}
.profile__role {
  margin-top: 6px;
  color: rgba(226, 232, 240, 0.76);
  font-size: 12px;
}

.profile__body {
  padding: 16px;
}

.profile__bio {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag {
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  background: rgba(2, 6, 23, 0.4);
  color: rgba(236, 254, 255, 0.84);
}

.profile__panel {
  margin-top: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(34, 211, 238, 0.16);
  background: rgba(0, 0, 0, 0.24);
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 520px) {
  .profile__panel {
    grid-template-columns: 1fr;
  }
}
.q__k {
  color: rgba(226, 232, 240, 0.62);
  font-size: 12px;
}
.q__v {
  margin-top: 6px;
  color: rgba(236, 254, 255, 0.86);
  font-size: 12px;
}

/* ---------------------------
   Footer
--------------------------- */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 70px 16px 22px 16px;
}
.footer--compact {
  padding-top: 34px;
}

.footer__head {
  margin-bottom: 18px;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  background: rgba(2, 6, 23, 0.45);
  text-decoration: none;
  color: rgba(236, 254, 255, 0.88);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.social__link img {
  width: 18px;
  height: 18px;
  opacity: 0.95;
}
.social__link:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.12), 0 18px 60px rgba(0, 191, 255, 0.08);
}

.footer__bottom {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(34, 211, 238, 0.12);
  padding-top: 16px;
}

.backTop {
  text-decoration: none;
  color: rgba(34, 211, 238, 0.9);
}

/* ---------------------------
   Reveal + Tilt + Transitions
--------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.js .reveal.isVisible {
  opacity: 1;
  transform: translateY(0);
}

/* Page transition (fade-out on navigation) */
body.isLeaving .main {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 200ms ease, transform 200ms ease;
}

/* Subtle glitch title */
.glitch {
  position: relative;
  text-shadow: 0 0 22px rgba(0, 209, 255, 0.12), 0 0 30px rgba(0, 255, 136, 0.06);
}
.glitch::before,
.glitch::after {
  content: attr(data-glitch);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0.08;
  pointer-events: none;
}
.glitch::before {
  transform: translate(1px, 0);
  color: var(--cyan);
  animation: glitch1 2.6s infinite linear;
}
.glitch::after {
  transform: translate(-1px, 0);
  color: var(--neon);
  animation: glitch2 3.2s infinite linear;
}

@keyframes glitch1 {
  0%,
  100% {
    clip-path: inset(0 0 0 0);
  }
  12% {
    clip-path: inset(18% 0 68% 0);
  }
  14% {
    clip-path: inset(56% 0 22% 0);
  }
  16% {
    clip-path: inset(8% 0 80% 0);
  }
  18% {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes glitch2 {
  0%,
  100% {
    clip-path: inset(0 0 0 0);
  }
  10% {
    clip-path: inset(70% 0 8% 0);
  }
  12% {
    clip-path: inset(36% 0 46% 0);
  }
  14% {
    clip-path: inset(12% 0 74% 0);
  }
  16% {
    clip-path: inset(0 0 0 0);
  }
}

/* Reduced motion: keep it classy */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .badge__ring,
  .terminal__body::after,
  .scanline,
  .spark--a,
  .spark--b,
  .loader__card::before,
  .btn:hover .btn__shine {
    animation: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
