/*
  GLITCH CYBERSECURITY RESEARCH LAB LLC — STYLESHEET v3
*/

/* ── Design tokens ── */
:root {
  --bg-main: #060d18;
  --bg-panel: rgba(8, 20, 40, 0.82);
  --bg-panel-strong: rgba(4, 12, 26, 0.96);
  --bg-card: rgba(10, 22, 42, 0.9);
  --text-main: #e8f2ff;
  --text-soft: #8aa8cc;
  --text-dim: #4a6580;
  --line-soft: rgba(100, 200, 255, 0.14);
  --line-med: rgba(100, 200, 255, 0.28);
  --cyan: #40e0ff;
  --cyan-dim: rgba(64, 224, 255, 0.15);
  --blue: #4d9fff;
  --blue-dim: rgba(77, 159, 255, 0.12);
  --pink: #ff3ecb;
  --pink-dim: rgba(255, 62, 203, 0.12);
  --orange: #ff8c42;
  --green: #39ff9f;
  --shadow-glow-c: 0 0 40px rgba(64, 224, 255, 0.18);
  --shadow-glow-p: 0 0 40px rgba(255, 62, 203, 0.18);
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.5);
  --max-width: 1240px;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-display: "Orbitron", "Share Tech Mono", monospace;
  --font-mono: "Share Tech Mono", "OCR A Std", monospace;
  --font-body: "Exo 2", "Share Tech Mono", monospace;
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-main);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Background atmosphere ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 15% 0%,
      rgba(255, 62, 203, 0.09) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 70% 50% at 85% 5%,
      rgba(64, 224, 255, 0.1) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 60% 80% at 50% 100%,
      rgba(77, 159, 255, 0.07) 0%,
      transparent 70%
    ),
    linear-gradient(180deg, #07111f 0%, #04090f 60%, #020507 100%);
}

/* Grid texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(
      rgba(64, 224, 255, 0.07) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(64, 224, 255, 0.07) 1px,
      transparent 1px
    );
  background-size: 52px 52px;
  mask-image: radial-gradient(
    ellipse 80% 90% at center,
    black 30%,
    transparent 100%
  );
}

/* ── Scanline effect ── */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  animation: scanline-drift 12s linear infinite;
}

@keyframes scanline-drift {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 0 200px;
  }
}

/* ── Floating particles ── */
.particle-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle-field span {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0;
  animation: float-up var(--dur, 8s) var(--delay, 0s) infinite ease-in;
}

.particle-field span:nth-child(1) {
  left: 10%;
  --dur: 9s;
  --delay: 0s;
  background: var(--cyan);
}

.particle-field span:nth-child(2) {
  left: 25%;
  --dur: 12s;
  --delay: 2s;
  background: var(--pink);
}

.particle-field span:nth-child(3) {
  left: 40%;
  --dur: 8s;
  --delay: 4s;
  background: var(--blue);
}

.particle-field span:nth-child(4) {
  left: 55%;
  --dur: 11s;
  --delay: 1s;
  background: var(--cyan);
}

.particle-field span:nth-child(5) {
  left: 70%;
  --dur: 7s;
  --delay: 3s;
  background: var(--green);
}

.particle-field span:nth-child(6) {
  left: 82%;
  --dur: 13s;
  --delay: 5s;
  background: var(--pink);
}

.particle-field span:nth-child(7) {
  left: 18%;
  --dur: 10s;
  --delay: 6s;
  background: var(--blue);
}

.particle-field span:nth-child(8) {
  left: 63%;
  --dur: 9s;
  --delay: 7s;
  background: var(--cyan);
}

.particle-field span:nth-child(9) {
  left: 47%;
  --dur: 14s;
  --delay: 2.5s;
  background: var(--pink);
}

.particle-field span:nth-child(10) {
  left: 90%;
  --dur: 8.5s;
  --delay: 0.5s;
  background: var(--green);
}

@keyframes float-up {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.2;
  }

  100% {
    transform: translateY(-10vh) scale(1.5);
    opacity: 0;
  }
}

/* ── Layout shell ── */
.page-shell {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

/* ── Shared panel ── */
.panel {
  background:
    linear-gradient(
      160deg,
      var(--bg-panel) 0%,
      var(--bg-panel-strong) 100%
    );
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  box-shadow:
    var(--shadow-card),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
}

/* ── Utility ── */
.dim {
  opacity: 0.45;
}

/* ── Header ── */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 0 1.25rem;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 1.5rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1 1 600px;
}

/* ── Logo ── */
.logo-wrap {
  position: relative;
  flex-shrink: 0;
}

.brand-logo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 30px rgba(255, 62, 203, 0.28),
    0 0 60px rgba(255, 62, 203, 0.1);
  display: block;
}

.logo-ring {
  position: absolute;
  inset: -10px;
  border-radius: 32px;
  border: 1px solid rgba(64, 224, 255, 0.3);
  animation: ring-spin 8s linear infinite;
  pointer-events: none;
}

.logo-ring::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

@keyframes ring-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ── Brand text ── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.blink-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: blink 1.4s step-end infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  background: linear-gradient(
    135deg,
    var(--cyan) 0%,
    var(--blue) 50%,
    var(--pink) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: default;
  user-select: none;
  margin-bottom: 0.2rem;
}

.glitch-text {
  display: inline-block;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  letter-spacing: 0.1em;
  color: var(--text-soft);
  margin-bottom: 0.6rem;
}

.brand-tagline {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-soft);
  max-width: 55ch;
  font-weight: 300;
  font-style: italic;
}

/* ── Navigation ── */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
  align-items: center;
}

.site-nav a {
  position: relative;
  color: var(--text-soft);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(6, 13, 24, 0.6);
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-num {
  font-size: 0.72rem;
  color: var(--cyan);
  opacity: 0.6;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--cyan-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(64, 224, 255, 0.12);
}

/* ── Banner ── */
.brand-banner {
  margin-bottom: 2rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-card);
}

.banner-inner {
  position: relative;
}

.brand-banner img {
  display: block;
  width: 100%;
  height: clamp(180px, 28vw, 400px);
  object-fit: cover;
  object-position: center;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hud-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--cyan);
  border-style: solid;
  opacity: 0.7;
}

.hud-corner.tl {
  top: 12px;
  left: 12px;
  border-width: 2px 0 0 2px;
}

.hud-corner.tr {
  top: 12px;
  right: 12px;
  border-width: 2px 2px 0 0;
}

.hud-corner.bl {
  bottom: 12px;
  left: 12px;
  border-width: 0 0 2px 2px;
}

.hud-corner.br {
  bottom: 12px;
  right: 12px;
  border-width: 0 2px 2px 0;
}

.hud-line {
  position: absolute;
  background: rgba(64, 224, 255, 0.15);
}

.hud-line.h {
  top: 50%;
  left: 5%;
  right: 5%;
  height: 1px;
  transform: translateY(-50%);
}

.hud-line.v {
  left: 50%;
  top: 10%;
  bottom: 10%;
  width: 1px;
  transform: translateX(-50%);
}

.banner-status {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
  background: rgba(6, 13, 24, 0.75);
  padding: 0.3rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(64, 224, 255, 0.25);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 5px var(--green);
  animation: blink 1.4s step-end infinite;
}

/* ── Section labels ── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.label-bracket {
  opacity: 0.4;
}

/* ── Hero ── */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
}

.hero-copy,
.hero-figure {
  padding: 2rem;
}

.hero-copy h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
  margin: 0.5rem 0 1.2rem;
  background: linear-gradient(
    135deg,
    var(--text-main) 60%,
    var(--cyan) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-copy p {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 58ch;
  margin-bottom: 0.9rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.6rem 0;
}

/* ── Buttons ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: #060d18;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 28px rgba(64, 224, 255, 0.28);
  font-weight: 600;
}

.button.primary:hover {
  box-shadow: 0 14px 36px rgba(64, 224, 255, 0.4);
}

.button.secondary {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-med);
}

.button.secondary:hover {
  background: rgba(64, 224, 255, 0.06);
  border-color: var(--cyan);
  color: var(--cyan);
}

.button.large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-icon {
  font-size: 0.8em;
  opacity: 0.8;
}

/* ── Signal list ── */
.signal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0;
  margin-top: 0.5rem;
}

.signal-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(57, 255, 159, 0.14);
  background: rgba(57, 255, 159, 0.04);
}

.sig-icon {
  color: var(--green);
  font-size: 0.9rem;
}

/* ── Hero figure ── */
.hero-figure {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.figure-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex: 1;
}

.hero-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow-c);
  min-height: 240px;
}

.figure-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hud-tag {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  background: rgba(6, 13, 24, 0.72);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  opacity: 0.8;
}

.hud-tag.top-left {
  top: 10px;
  left: 10px;
}

.hud-tag.top-right {
  top: 10px;
  right: 10px;
}

.hud-tag.bot-left {
  bottom: 10px;
  left: 10px;
}

.hud-tag.bot-right {
  bottom: 10px;
  right: 10px;
}

.hero-figure figcaption {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-align: center;
}

/* ── Content sections ── */
.content-section {
  padding-top: 5rem;
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: 0.06em;
  color: var(--text-main);
}

/* ── Info cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.info-card {
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.info-card.in-view {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.info-card:hover {
  border-color: var(--card-accent, var(--cyan));
  box-shadow:
    var(--shadow-card),
    0 0 30px rgba(64, 224, 255, 0.08);
  transform: translateY(-4px);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.card-icon {
  font-size: 1.4rem;
  color: var(--card-accent, var(--cyan));
  line-height: 1;
  filter: drop-shadow(0 0 6px currentColor);
}

.info-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-main);
  margin: 0;
}

.info-card p {
  font-size: 0.92rem;
  color: var(--text-soft);
  margin-bottom: 1rem;
  line-height: 1.65;
}

.info-card ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.info-card li {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-soft);
  padding-left: 1rem;
  position: relative;
}

.info-card li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--card-accent, var(--cyan));
  opacity: 0.7;
}

/* ── Timeline ── */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.timeline-step {
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
}

.timeline-step.in-view {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.timeline-step:nth-child(1) {
  transition-delay: 0.05s;
}

.timeline-step:nth-child(2) {
  transition-delay: 0.12s;
}

.timeline-step:nth-child(3) {
  transition-delay: 0.19s;
}

.timeline-step:nth-child(4) {
  transition-delay: 0.26s;
}

.step-num-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.step-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--pink);
  letter-spacing: 0.1em;
  filter: drop-shadow(0 0 8px rgba(255, 62, 203, 0.4));
  flex-shrink: 0;
}

.step-line {
  height: 1px;
  flex: 1;
  background: linear-gradient(
    90deg,
    rgba(255, 62, 203, 0.4),
    transparent
  );
}

.timeline-step h3 {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-main);
  margin-bottom: 0.65rem;
}

.timeline-step p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.65;
}

/* ── Project cards ── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.project-card {
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.project-card.in-view {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.project-card:nth-child(1) {
  transition-delay: 0.05s;
}

.project-card:nth-child(2) {
  transition-delay: 0.12s;
}

.project-card:nth-child(3) {
  transition-delay: 0.19s;
}

.project-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
}

.project-type {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0;
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin: 0;
}

.project-card p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.65;
  flex: 1;
}

.project-footer {
  margin-top: 0.4rem;
}

.proj-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--green);
  border: 1px solid rgba(57, 255, 159, 0.25);
  background: rgba(57, 255, 159, 0.06);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

/* ── Contact ── */
.contact-section {
  padding-bottom: 2.5rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  padding: 2.2rem;
  align-items: center;
}

.contact-copy p {
  font-size: 0.98rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.contact-copy p:last-child {
  margin-bottom: 0;
}

.contact-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.meta-item {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-soft);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Footer ── */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 3rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line-soft);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.footer-meta {
  text-align: right;
}

.footer-meta p {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.footer-quirk {
  font-style: italic;
  opacity: 0.6;
}

/* ── Scroll-in animation base ── */
.info-card,
.timeline-step,
.project-card,
.hero-copy,
.hero-figure {
  opacity: 0;
  transform: translateY(20px);
}

.hero-copy.in-view,
.hero-figure.in-view {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.hero-copy {
  transition-delay: 0.05s;
}

.hero-figure {
  transition-delay: 0.15s;
}

/* Card stagger */
.card-grid .info-card:nth-child(1) {
  transition-delay: 0.05s;
}

.card-grid .info-card:nth-child(2) {
  transition-delay: 0.12s;
}

.card-grid .info-card:nth-child(3) {
  transition-delay: 0.19s;
}

/* ── Responsive ── */
@media (max-width: 1060px) {
  .hero-grid,
  .card-grid,
  .project-grid,
  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 1.5rem), var(--max-width));
    padding: 1rem 0 2.5rem;
  }

  .site-header {
    padding: 1rem 0;
  }

  .brand-lockup {
    flex-direction: column;
    align-items: flex-start;
    flex-basis: 100%;
  }

  .brand-logo {
    width: 80px;
    height: 80px;
  }

  .hero-grid,
  .card-grid,
  .project-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-figure {
    padding: 1.4rem;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .site-nav a {
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
  }

  .footer-meta {
    text-align: left;
  }

  .contact-panel {
    padding: 1.5rem;
  }
}

/* ============================================================
   EASTER EGG SPLASH
   ============================================================ */

.egg-splash {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 7, 13, 0.96);
  backdrop-filter: blur(6px);
}

.egg-splash.open {
  display: flex;
}

.egg-panel {
  position: relative;
  width: min(420px, calc(100% - 2rem));
  padding: 2.5rem 2rem 2rem;
  background: #060d18;
  border: 1px solid rgba(64, 224, 255, 0.25);
  border-radius: 18px;
  box-shadow:
    0 0 60px rgba(64, 224, 255, 0.08),
    0 0 120px rgba(255, 62, 203, 0.06);
  text-align: center;
}

.egg-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.5rem;
  transition: color 0.2s;
}

.egg-close:hover {
  color: #ff3ecb;
}

.egg-kicker {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: #39ff9f;
  margin-bottom: 0.75rem;
}

.egg-title {
  font-family: "Orbitron", "Share Tech Mono", monospace;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #40e0ff, #ff3ecb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 0.4rem;
}

.egg-sub {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.08em;
  margin-bottom: 1.6rem;
}

.egg-input {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(64, 224, 255, 0.05);
  border: 1px solid rgba(64, 224, 255, 0.3);
  border-radius: 10px;
  color: #40e0ff;
  font-family: "Share Tech Mono", monospace;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-align: center;
  outline: none;
  margin-bottom: 1rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.egg-input:focus {
  border-color: #40e0ff;
  box-shadow: 0 0 16px rgba(64, 224, 255, 0.15);
}

.egg-next {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, #40e0ff, #4d9fff);
  border: none;
  border-radius: 10px;
  color: #02070d;
  font-family: "Share Tech Mono", monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.egg-next:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.egg-msg {
  margin-top: 0.85rem;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  min-height: 1.2em;
}

.egg-msg.success {
  color: #39ff9f;
}

.egg-msg.error {
  color: #ff3ecb;
}

#girLogo {
  cursor: pointer;
}

/* ============================================================
   GLITCH EASTER EGG — DOPEWARS
   Scoped exclusively to .dopewars-* elements.
   ============================================================ */

.dopewars-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(1, 4, 9, 0.97);
  backdrop-filter: blur(8px);
  overflow-y: auto;
}

.dopewars-overlay.open {
  display: flex;
}

.dopewars-window {
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background:
    linear-gradient(
      160deg,
      rgba(8, 20, 40, 0.98),
      rgba(2, 7, 15, 0.99)
    );
  border: 1px solid rgba(64, 224, 255, 0.3);
  border-radius: 18px;
  box-shadow:
    0 0 50px rgba(64, 224, 255, 0.12),
    0 0 100px rgba(255, 62, 203, 0.08),
    0 25px 80px rgba(0, 0, 0, 0.8);
  font-family: var(--font-mono);
  color: var(--text-main);
}

.dopewars-window::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(64, 224, 255, 0.015) 3px,
      rgba(64, 224, 255, 0.015) 4px
    );
}

.dopewars-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  background: rgba(4, 12, 26, 0.97);
  border-bottom: 1px solid rgba(64, 224, 255, 0.2);
}

.dopewars-title {
  color: var(--cyan);
  font-size: 1rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.dopewars-status {
  color: var(--green);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.dopewars-close {
  appearance: none;
  border: 1px solid rgba(255, 62, 203, 0.3);
  background: rgba(255, 62, 203, 0.06);
  color: var(--pink);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font-family: inherit;
  cursor: pointer;
}

.dopewars-close:hover {
  background: rgba(255, 62, 203, 0.15);
  border-color: var(--pink);
}

.dopewars-body {
  padding: 1.2rem;
}

.dopewars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.dopewars-panel {
  padding: 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(6, 13, 24, 0.72);
}

.dopewars-panel.full {
  grid-column: 1 / -1;
}

.dopewars-panel h3 {
  margin: 0 0 0.75rem;
  color: var(--cyan);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dopewars-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.dopewars-stat {
  padding: 0.7rem;
  border: 1px solid rgba(64, 224, 255, 0.12);
  border-radius: 8px;
  background: rgba(64, 224, 255, 0.03);
}

.dopewars-stat-label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text-dim);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dopewars-stat-value {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 700;
}

.dopewars-location {
  color: var(--pink);
}

.dopewars-health {
  color: var(--green);
}

.dopewars-debt {
  color: var(--orange);
}

.dopewars-cash {
  color: var(--cyan);
}

.dopewars-log {
  height: 190px;
  overflow-y: auto;
  padding: 0.75rem;
  border-radius: 8px;
  background: #02060b;
  border: 1px solid rgba(64, 224, 255, 0.1);
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.65;
}

.dopewars-log-line {
  margin-bottom: 0.2rem;
}

.dopewars-log-line.good {
  color: var(--green);
}

.dopewars-log-line.bad {
  color: var(--pink);
}

.dopewars-log-line.money {
  color: var(--orange);
}

.dopewars-market {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.dopewars-market-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(64, 224, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.02);
}

.dopewars-drug {
  color: var(--text-main);
  font-size: 0.78rem;
}

.dopewars-price {
  color: var(--orange);
  font-size: 0.75rem;
}

.dopewars-buy {
  appearance: none;
  border: 1px solid rgba(57, 255, 159, 0.25);
  border-radius: 6px;
  padding: 0.25rem 0.45rem;
  background: rgba(57, 255, 159, 0.05);
  color: var(--green);
  font-family: inherit;
  font-size: 0.7rem;
  cursor: pointer;
}

.dopewars-buy:hover {
  background: rgba(57, 255, 159, 0.14);
  border-color: var(--green);
}

.dopewars-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.dopewars-action {
  appearance: none;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(64, 224, 255, 0.22);
  border-radius: 8px;
  background: rgba(64, 224, 255, 0.04);
  color: var(--cyan);
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}

.dopewars-action:hover {
  transform: translateY(-1px);
  background: rgba(64, 224, 255, 0.1);
  border-color: var(--cyan);
}

.dopewars-action.danger {
  color: var(--pink);
  border-color: rgba(255, 62, 203, 0.22);
}

.dopewars-action.danger:hover {
  background: rgba(255, 62, 203, 0.1);
  border-color: var(--pink);
}

.dopewars-action.bank {
  color: var(--green);
  border-color: rgba(57, 255, 159, 0.22);
}

.dopewars-inventory {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.dopewars-inventory-item {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
  font-size: 0.72rem;
}

.dopewars-inventory-item span:last-child {
  color: var(--cyan);
}

.dopewars-leaderboard {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.dopewars-leaderboard th,
.dopewars-leaderboard td {
  padding: 0.5rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid rgba(64, 224, 255, 0.08);
}

.dopewars-leaderboard th {
  color: var(--cyan);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dopewars-leaderboard td {
  color: var(--text-soft);
}

.dopewars-leaderboard td:last-child {
  color: var(--green);
  text-align: right;
}

.dopewars-game-over {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 20;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(2, 5, 10, 0.94);
  border-radius: inherit;
}

.dopewars-game-over.open {
  display: flex;
}

.dopewars-game-over-box {
  width: min(520px, 100%);
  padding: 2rem;
  border: 1px solid rgba(255, 62, 203, 0.35);
  border-radius: 14px;
  background: #040a12;
  text-align: center;
  box-shadow: 0 0 60px rgba(255, 62, 203, 0.12);
}

.dopewars-game-over h2 {
  margin: 0 0 0.6rem;
  color: var(--pink);
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
}

.dopewars-game-over p {
  margin: 0 0 1rem;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.dopewars-score {
  margin: 1rem 0;
  color: var(--green);
  font-size: 1.4rem;
  font-weight: 700;
}

/* ── DopeWars mobile ── */
@media (max-width: 720px) {
  .dopewars-overlay {
    padding: 0.5rem;
    align-items: flex-start;
  }

  .dopewars-window {
    max-height: calc(100vh - 1rem);
  }

  .dopewars-grid {
    grid-template-columns: 1fr;
  }

  .dopewars-panel.full {
    grid-column: auto;
  }

  .dopewars-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .dopewars-market {
    grid-template-columns: 1fr;
  }

  .dopewars-actions {
    grid-template-columns: 1fr 1fr;
  }

  .dopewars-inventory {
    grid-template-columns: 1fr 1fr;
  }
}