/* ============================================================
   2 ACRE STUDIOS — STYLE SYSTEM
   Brutalist / Terminal / Techno / Old-School Code Aesthetic
   Zero border-radius. Sharp edges. Dark room terminal glow.
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES
   ──────────────────────────────────────────────────────────── */

:root {
  --bg: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --text-primary: #e0e0e0;
  --text-secondary: #888888;
  --terminal-green: #00ff41;
  --terminal-amber: #ff6600;
  --accent-red: #ff0040;
  --accent-cyan: #00d4ff;
  --muted: #333333;
  --muted-light: #555555;
  --white: #ffffff;
  --border: #2a2a2a;

  --font-primary: 'JetBrains Mono', monospace;
  --font-secondary: 'Space Mono', monospace;

  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-md: 20px;
  --fs-lg: 24px;
  --fs-xl: 32px;
  --fs-2xl: 48px;
  --fs-3xl: 64px;
  --fs-4xl: 96px;
  --fs-5xl: 128px;

  --spacing-section: 120px;
  --spacing-container: 40px;
  --grid-gap: 24px;
  --max-width: 1400px;

  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;

  --shadow-green: 4px 4px 0px var(--terminal-green);
  --shadow-green-sm: 2px 2px 0px var(--terminal-green);
}

/* ────────────────────────────────────────────────────────────
   2. RESET / BASE
   ──────────────────────────────────────────────────────────── */

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

html {
  font-size: var(--fs-base);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  color: var(--text-primary);
  background-color: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* Noise overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9996;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--terminal-green);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--white);
}

a:focus-visible {
  outline: 2px solid var(--terminal-green);
  outline-offset: 2px;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

button {
  cursor: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--terminal-green);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--white);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--terminal-green) var(--bg);
}

/* Selection */
::selection {
  background: var(--terminal-green);
  color: var(--bg);
}

::-moz-selection {
  background: var(--terminal-green);
  color: var(--bg);
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--terminal-green);
  outline-offset: 2px;
}

/* ────────────────────────────────────────────────────────────
   3. TYPOGRAPHY
   ──────────────────────────────────────────────────────────── */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  line-height: 1.1;
  color: var(--text-primary);
}

h1 {
  font-size: var(--fs-3xl);
}

h2 {
  font-size: var(--fs-2xl);
}

h3 {
  font-size: var(--fs-xl);
}

h4 {
  font-size: var(--fs-lg);
}

h5 {
  font-size: var(--fs-md);
}

h6 {
  font-size: var(--fs-base);
}

p {
  margin-bottom: 1em;
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

strong,
b {
  font-weight: 700;
  color: var(--text-primary);
}

.terminal-text {
  font-family: var(--font-primary);
  color: var(--terminal-green);
  font-size: var(--fs-sm);
  line-height: 1.8;
}

.terminal-prompt {
  color: var(--terminal-green);
  font-family: var(--font-primary);
}

/* Terminal prompt prefix handled inline in HTML */

.highlight {
  color: var(--terminal-green);
}

/* ────────────────────────────────────────────────────────────
   4. LAYOUT
   ──────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--spacing-container);
  padding-right: var(--spacing-container);
}

/* ═══════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════ */
.section {
  padding: var(--spacing-section) 0;
  position: relative;
  overflow: hidden;
}

/* ── Section Background Grid Effect ── */
.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 0.15s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.section.section--active::before {
  opacity: 1;
  transform: scale(1);
}

/* ── Section Noise/Static Overlay ── */
.section::after {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  animation: none;
}

.section.section--active::after {
  opacity: 1;
  animation: noise-shift 0.5s steps(3) 1;
}

@keyframes noise-shift {
  0% {
    transform: translate(0, 0) scale(1.5);
  }

  25% {
    transform: translate(-5%, 3%) scale(1.5);
  }

  50% {
    transform: translate(3%, -2%) scale(1.5);
  }

  75% {
    transform: translate(-3%, 5%) scale(1.5);
  }

  100% {
    transform: translate(0, 0) scale(1.5);
  }
}

/* Ensure section content sits above backgrounds */
.section>.container {
  position: relative;
  z-index: 1;
}

/* ── Glitch Bar Flash ── */
.section__glitch-bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--terminal-green);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

.section__title {
  font-size: var(--fs-3xl);
  margin-bottom: 24px;
  letter-spacing: 0.2em;
}

.section__subtitle {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  margin-bottom: 48px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section__content {
  width: 100%;
}

.grid {
  display: grid;
  gap: var(--grid-gap);
}

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

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ────────────────────────────────────────────────────────────
   5. NAVIGATION (#nav)
   ──────────────────────────────────────────────────────────── */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  background: transparent;
  transition: background var(--transition-base), border-color var(--transition-base);
  border-bottom: 1px solid transparent;
}

#nav.nav--scrolled {
  background: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#nav .nav__logo {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: var(--fs-md);
  color: var(--terminal-green);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav__logo-cubes {
  flex-shrink: 0;
}

#nav .nav__logo .blink {
  display: inline;
}

#nav .nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

#nav .nav__link {
  font-family: var(--font-primary);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

#nav .nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--terminal-green);
  transition: width var(--transition-fast);
}

#nav .nav__link:hover {
  color: var(--terminal-green);
}

#nav .nav__link:hover::after,
#nav .nav__link--active::after {
  width: 100%;
}

#nav .nav__link--active {
  color: var(--terminal-green);
}

#nav .nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: none;
}

#nav .nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--terminal-green);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

#nav .nav__toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#nav .nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

#nav .nav__toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ────────────────────────────────────────────────────────────
   6. BOOT SCREEN (#boot-screen)
   ──────────────────────────────────────────────────────────── */

#boot-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

#boot-screen.boot--complete {
  transform: translateY(-100%);
}

#boot-screen .boot__content {
  font-family: var(--font-primary);
  color: var(--terminal-green);
  font-size: var(--fs-sm);
  line-height: 2;
  max-width: 600px;
  padding: 40px;
}

#boot-screen .boot__line {
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
}

#boot-screen .boot__line.visible {
  opacity: 1;
}

#boot-screen .boot__status {
  color: var(--terminal-green);
  font-weight: 700;
}

/* ────────────────────────────────────────────────────────────
   7. CRT OVERLAY (#crt-overlay)
   ──────────────────────────────────────────────────────────── */

#crt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.03;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 2px,
      rgba(0, 255, 65, 0.1) 2px,
      rgba(0, 255, 65, 0.1) 4px);
}

#crt-overlay .scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(to bottom,
      transparent,
      rgba(0, 255, 65, 0.08),
      transparent);
  animation: scanline-sweep 8s linear infinite;
  pointer-events: none;
}

@keyframes scanline-sweep {
  0% {
    top: -8px;
  }

  100% {
    top: 100%;
  }
}

/* ────────────────────────────────────────────────────────────
   8. CUSTOM CURSOR
   ──────────────────────────────────────────────────────────── */

#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--terminal-green);
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
}

#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--terminal-green);
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, opacity 0.25s ease;
  opacity: 0.6;
}

/* Hide ring when cubes are active */
#cursor-ring.cursor-ring--hover {
  opacity: 0;
  width: 0;
  height: 0;
}

#cursor-ring.cursor-ring--click {
  width: 32px;
  height: 32px;
}

#cursor-dot.cursor-dot--hover {
  transform: translate(-50%, -50%) scale(0);
}

/* ── 3D Wireframe Cubes Container ── */
#cursor-cubes {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
  perspective: 400px;
}

#cursor-cubes.cursor-cubes--active {
  opacity: 1;
}

/* ── Individual Cube ── */
.cursor-cube {
  position: absolute;
  width: 36px;
  height: 36px;
  transform-style: preserve-3d;
}

.cursor-cube--1 {
  top: -28px;
  left: -18px;
  animation: cube-spin-1 4s linear infinite, cube-pulse-1 1.4s ease-in-out infinite;
}

.cursor-cube--2 {
  top: -8px;
  left: 6px;
  animation: cube-spin-2 5s linear infinite, cube-pulse-2 1.6s ease-in-out infinite;
}

/* ── Cube Faces ── */
.cube-face {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1.5px solid var(--terminal-amber);
  background: transparent;
  box-sizing: border-box;
}

.cursor-cube--2 .cube-face {
  border-color: var(--accent-red);
}

.cube-face--front {
  transform: translateZ(18px);
}

.cube-face--back {
  transform: translateZ(-18px) rotateY(180deg);
}

.cube-face--left {
  transform: translateX(-18px) rotateY(-90deg);
}

.cube-face--right {
  transform: translateX(18px) rotateY(90deg);
}

.cube-face--top {
  transform: translateY(-18px) rotateX(90deg);
}

.cube-face--bottom {
  transform: translateY(18px) rotateX(-90deg);
}

/* ── Cube Spin Animations ── */
@keyframes cube-spin-1 {
  0% {
    transform: rotateX(25deg) rotateY(0deg);
  }

  100% {
    transform: rotateX(25deg) rotateY(360deg);
  }
}

@keyframes cube-spin-2 {
  0% {
    transform: rotateX(-15deg) rotateY(180deg);
  }

  100% {
    transform: rotateX(-15deg) rotateY(540deg);
  }
}

/* ── Cube Pulse / Glow Animations ── */
@keyframes cube-pulse-1 {

  0%,
  100% {
    filter: drop-shadow(0 0 4px rgba(255, 102, 0, 0.4));
  }

  50% {
    filter: drop-shadow(0 0 12px rgba(255, 102, 0, 0.8)) drop-shadow(0 0 24px rgba(255, 102, 0, 0.3));
  }
}

@keyframes cube-pulse-2 {

  0%,
  100% {
    filter: drop-shadow(0 0 4px rgba(255, 0, 64, 0.4));
  }

  50% {
    filter: drop-shadow(0 0 12px rgba(255, 0, 64, 0.8)) drop-shadow(0 0 24px rgba(255, 0, 64, 0.3));
  }
}

/* ────────────────────────────────────────────────────────────
   10. HERO (#hero)
   ──────────────────────────────────────────────────────────── */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#hero .container {
  text-align: center;
}

#hero .hero__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 0px;
  flex-wrap: wrap;
}

#hero .hero__logo-icon {
  width: 300px;
  height: 300px;
  flex-shrink: 0;
}

#hero .hero__ascii {
  margin-bottom: 0;
  overflow: hidden;
  text-align: left;
}

#hero .hero__ascii pre {
  font-family: var(--font-primary);
  font-size: clamp(6px, 1.2vw, 14px);
  color: #B0B0B0;
  line-height: 1.2;
  white-space: pre;
  display: inline-block;
  text-align: left;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Hero elements hidden until GSAP animates them in */
#hero .hero__title,
#hero .hero__subtitle,
#hero .hero__description,
#hero .hero__cta,
#hero .hero__subtitle,
#hero .hero__description,
#hero .hero__cta,
#hero .hero__brand {
  opacity: 0;
}

#hero .hero__title {
  font-size: clamp(var(--fs-xl), 5vw, var(--fs-4xl));
  letter-spacing: 0.1em;
  margin-top: 0;
  margin-bottom: 24px;
  color: var(--white);
}

#hero .hero__subtitle {
  font-size: var(--fs-md);
  color: var(--terminal-green);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

#hero .hero__description {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 48px;
  line-height: 1.8;
}

#hero .hero__cta {
  display: inline-block;
}

/* ────────────────────────────────────────────────────────────
   11. MANIFESTO (#manifesto)
   ──────────────────────────────────────────────────────────── */

#manifesto {
  background: var(--bg-secondary);
}

#manifesto .manifesto__statement {
  font-size: clamp(var(--fs-lg), 3vw, var(--fs-2xl));
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 48px;
  padding-left: 32px;
  border-left: 4px solid var(--terminal-green);
}

#manifesto .manifesto__body {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 900px;
  margin-bottom: 32px;
}

#manifesto .manifesto__pull-quote {
  font-size: var(--fs-xl);
  color: var(--terminal-green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 32px 0;
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  margin: 48px 0;
}

#manifesto .manifesto__stats {
  font-size: var(--fs-sm);
  color: var(--terminal-amber);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: 24px;
}

/* ────────────────────────────────────────────────────────────
   12. CAPABILITIES (#capabilities)
   ──────────────────────────────────────────────────────────── */

#capabilities {
  background: var(--bg);
}

#capabilities .card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-top: 3px solid var(--terminal-green);
  padding: 40px 32px;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
}

#capabilities .card:hover {
  border-color: var(--terminal-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}

#capabilities .card__icon {
  display: block;
  font-family: var(--font-primary);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--muted);
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

#capabilities .card__title {
  font-size: var(--fs-base);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--text-primary);
}

#capabilities .card__body {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ────────────────────────────────────────────────────────────
   13. LAB (#lab)
   ──────────────────────────────────────────────────────────── */

#lab {
  background: var(--bg-secondary);
}

#lab .lab__project {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  padding: 32px;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

#lab .lab__project:hover {
  border-color: var(--terminal-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}

#lab .lab__project-name {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--terminal-green);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  font-family: var(--font-primary);
}

#lab .lab__project-desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

#lab .lab__project-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--fs-xs);
}

#lab .lab__project-stars {
  color: var(--terminal-amber);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

#lab .lab__project-stars::before {
  content: '\2605 ';
}

#lab .lab__project-lang {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

#lab .lab__stats-bar {
  margin-top: 48px;
  padding: 24px 0;
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
}

#lab .lab__stats-bar span {
  position: relative;
}

#lab .lab__stats-bar span:not(:last-child)::after {
  content: '/';
  position: absolute;
  right: -18px;
  color: var(--muted);
}

/* ────────────────────────────────────────────────────────────
   14. TEAM (#team)
   ──────────────────────────────────────────────────────────── */

#team {
  background: var(--bg);
}

#team .team__member {
  border: 1px solid var(--border);
  border-left: 3px solid var(--terminal-amber);
  padding: 32px;
  background: var(--bg-secondary);
}

#team .team__photo {
  text-align: center;
  margin-bottom: 20px;
}

#team .team__img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--terminal-green);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.15);
  filter: saturate(0.8);
  transition: filter 0.3s, box-shadow 0.3s;
}

#team .team__member:hover .team__img {
  filter: saturate(1.2);
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
}

#team .team__header {
  margin-bottom: 20px;
}

#team .team__name {
  font-family: var(--font-primary);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

#team .team__role {
  font-family: var(--font-primary);
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--terminal-amber);
}

#team .team__bio p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 10px;
}

#team .team__bio .highlight {
  color: var(--terminal-green);
  margin-right: 4px;
}

#team .team__links {
  margin-top: 16px;
  font-family: var(--font-primary);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

#team .team__links a {
  color: var(--terminal-green);
  text-decoration: none;
  transition: color 0.2s;
}

#team .team__links a:hover {
  color: var(--accent-cyan);
}

/* ────────────────────────────────────────────────────────────
   15. CALCULATOR (#calculator)
   ──────────────────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════
   EMBEDDED TERMINAL
   ═══════════════════════════════════════════════ */
#try-terminal {
  background: var(--bg-secondary);
}

.embedded-terminal {
  max-width: 900px;
  margin: 0 auto;
  border: 2px solid var(--border);
  overflow: hidden;
}

.embedded-terminal__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.embedded-terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.embedded-terminal__dot--red {
  background: #ff5f57;
}

.embedded-terminal__dot--yellow {
  background: #febc2e;
}

.embedded-terminal__dot--green {
  background: #28c840;
}

.embedded-terminal__title {
  margin-left: auto;
  font-family: var(--font-primary);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.embedded-terminal__body {
  background: var(--bg);
  padding: 24px;
  min-height: 280px;
  max-height: 400px;
  display: flex;
  flex-direction: column;
}

.embedded-terminal__output {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--terminal-green) transparent;
}

.embedded-terminal__output .terminal-line {
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.embedded-terminal__output .terminal-line .hl {
  color: var(--terminal-green);
  font-weight: 700;
}

.embedded-terminal__output .terminal-line.cmd {
  color: var(--white);
}

.embedded-terminal__output .terminal-line.system {
  color: var(--terminal-green);
}

.embedded-terminal__output .terminal-line.error {
  color: #ff5f57;
}

.embedded-terminal__output .terminal-line.ascii-art {
  color: var(--terminal-green);
  line-height: 1.1;
  font-size: 10px;
}

.embedded-terminal__input-line {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.embedded-terminal__prompt {
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  color: var(--terminal-green);
  white-space: nowrap;
  flex-shrink: 0;
}

.embedded-terminal__input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  color: var(--white);
  caret-color: var(--terminal-green);
  letter-spacing: 0.03em;
}

.embedded-terminal__input::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

/* Blinking prompt animation */
.embedded-terminal__prompt::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
}

#calculator {
  background: var(--bg-secondary);
}

#calculator .calculator__terminal {
  background: var(--bg);
  border: 2px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

#calculator .calculator__header {
  background: var(--bg-tertiary);
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

#calculator .calculator__header-dot {
  width: 10px;
  height: 10px;
  background: var(--muted);
  display: inline-block;
}

#calculator .calculator__header-dot--green {
  background: var(--terminal-green);
}

#calculator .calculator__header-dot--amber {
  background: var(--terminal-amber);
}

#calculator .calculator__header-dot--red {
  background: var(--accent-red);
}

#calculator .calculator__header-title {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-left: auto;
}

#calculator .calculator__body {
  padding: 32px;
}

#calculator .calculator__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

#calculator .calculator__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#calculator .calculator__label {
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  color: var(--terminal-green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

#calculator .calculator__label::before {
  content: '> ';
  opacity: 0.5;
}

#calculator .calculator__input,
#calculator .calculator__select {
  background: var(--bg-tertiary);
  color: var(--terminal-green);
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  padding: 12px 16px;
  border: none;
  border-bottom: 2px solid var(--border);
  transition: border-color var(--transition-fast);
  width: 100%;
}

#calculator .calculator__input:focus,
#calculator .calculator__select:focus {
  border-bottom-color: var(--terminal-green);
  outline: none;
}

#calculator .calculator__input::placeholder {
  color: var(--muted-light);
}

#calculator .calculator__select {
  cursor: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2300ff41' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

#calculator .calculator__select option {
  background: var(--bg);
  color: var(--terminal-green);
  font-family: var(--font-primary);
}

#calculator .calculator__submit {
  margin-top: 16px;
}

#calculator .calculator__results {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  color: var(--terminal-green);
  line-height: 2;
  display: none;
}

#calculator .calculator__results.visible {
  display: block;
}

#calculator .calculator__results-header {
  color: var(--terminal-amber);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

#calculator .calculator__results-divider {
  color: var(--muted);
  user-select: none;
}

#calculator .calculator__results-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

#calculator .calculator__results-label {
  color: var(--text-secondary);
}

#calculator .calculator__results-value {
  color: var(--terminal-green);
  font-weight: 700;
}

#calculator .calculator__results-detail {
  color: var(--muted-light);
  font-size: var(--fs-xs);
  padding-left: 16px;
}

#calculator .calculator__results-detail::before {
  content: '\2192 ';
}

#calculator .calculator__results-total {
  color: var(--white);
  font-weight: 700;
  font-size: var(--fs-base);
}

#calculator .calculator__processing {
  display: none;
  color: var(--terminal-amber);
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  margin-top: 24px;
  animation: processing-blink 0.5s step-end infinite;
}

#calculator .calculator__processing.visible {
  display: block;
}

@keyframes processing-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* ────────────────────────────────────────────────────────────
   16. SIGNAL (#signal)
   ──────────────────────────────────────────────────────────── */

#signal {
  background: var(--bg);
  text-align: center;
}

#signal .signal__title {
  font-size: clamp(var(--fs-xl), 4vw, var(--fs-3xl));
  color: var(--white);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

#signal .signal__description {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.8;
}

#signal .signal__cta {
  display: inline-block;
  margin-bottom: 32px;
}

#signal .signal__contact {
  margin-bottom: 32px;
}

#signal .signal__contact-line {
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

#signal .signal__links {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

#signal .signal__links a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  margin: 0 8px;
}

#signal .signal__links a:hover {
  color: var(--terminal-green);
}

/* ────────────────────────────────────────────────────────────
   17. FOOTER (#footer)
   ──────────────────────────────────────────────────────────── */

#footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

#footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

#footer .footer__brand {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--text-secondary);
}

#footer .footer__tagline {
  font-size: var(--fs-xs);
  color: var(--muted-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

#footer .footer__links {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

#footer .footer__links a {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color var(--transition-fast);
}

#footer .footer__links a:hover {
  color: var(--terminal-green);
}

#footer .footer__note {
  font-size: 11px;
  color: var(--muted-light);
  margin-top: 16px;
  letter-spacing: 0.1em;
}

/* ────────────────────────────────────────────────────────────
   18. TERMINAL OVERLAY (#terminal-overlay)
   ──────────────────────────────────────────────────────────── */

#terminal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: none;
  flex-direction: column;
  padding: 80px 40px 40px;
}

#terminal-overlay.active {
  display: flex;
}

#terminal-overlay .terminal__header {
  font-family: var(--font-primary);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
}

#terminal-overlay .terminal__close {
  color: var(--accent-red);
  cursor: none;
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color var(--transition-fast);
}

#terminal-overlay .terminal__close:hover {
  color: var(--white);
}

#terminal-overlay .terminal__output {
  flex: 1;
  overflow-y: auto;
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  color: var(--terminal-green);
  line-height: 1.8;
  margin-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--terminal-green) transparent;
}

#terminal-overlay .terminal__output .terminal__line {
  margin-bottom: 4px;
}

#terminal-overlay .terminal__output .terminal__line--error {
  color: var(--accent-red);
}

#terminal-overlay .terminal__output .terminal__line--info {
  color: var(--accent-cyan);
}

#terminal-overlay .terminal__output .terminal__line--warning {
  color: var(--terminal-amber);
}

#terminal-overlay .terminal__input-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

#terminal-overlay .terminal__prompt-symbol {
  color: var(--terminal-green);
  flex-shrink: 0;
}

#terminal-overlay .terminal__input {
  flex: 1;
  background: none;
  border: none;
  color: var(--terminal-green);
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  outline: none;
  caret-color: var(--terminal-green);
}

#terminal-overlay .terminal__input::placeholder {
  color: var(--muted);
}

/* ────────────────────────────────────────────────────────────
   19. GLITCH EFFECT (.glitch)
   ──────────────────────────────────────────────────────────── */

.glitch {
  position: relative;
  display: block;
}

h1.glitch {
  display: block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0s;
}

.glitch::before {
  color: var(--accent-red);
  z-index: -1;
}

.glitch::after {
  color: var(--accent-cyan);
  z-index: -1;
}

.glitch:hover::before {
  opacity: 0.8;
  animation: glitch-before 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

.glitch:hover::after {
  opacity: 0.8;
  animation: glitch-after 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
}

@keyframes glitch-before {
  0% {
    clip-path: inset(40% 0 61% 0);
    transform: translate(-2px, -1px);
  }

  20% {
    clip-path: inset(92% 0 1% 0);
    transform: translate(1px, 2px);
  }

  40% {
    clip-path: inset(43% 0 1% 0);
    transform: translate(-1px, -1px);
  }

  60% {
    clip-path: inset(25% 0 58% 0);
    transform: translate(2px, 1px);
  }

  80% {
    clip-path: inset(54% 0 7% 0);
    transform: translate(-1px, 2px);
  }

  100% {
    clip-path: inset(58% 0 43% 0);
    transform: translate(2px, -2px);
  }
}

@keyframes glitch-after {
  0% {
    clip-path: inset(65% 0 13% 0);
    transform: translate(2px, 1px);
  }

  20% {
    clip-path: inset(79% 0 14% 0);
    transform: translate(-2px, -1px);
  }

  40% {
    clip-path: inset(18% 0 63% 0);
    transform: translate(1px, 2px);
  }

  60% {
    clip-path: inset(40% 0 25% 0);
    transform: translate(-1px, -2px);
  }

  80% {
    clip-path: inset(14% 0 72% 0);
    transform: translate(2px, -1px);
  }

  100% {
    clip-path: inset(11% 0 31% 0);
    transform: translate(-2px, 1px);
  }
}

/* ────────────────────────────────────────────────────────────
   20. TYPEWRITER (.typewriter)
   ──────────────────────────────────────────────────────────── */

.typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--terminal-green);
  animation: typewriter-cursor 0.7s step-end infinite;
}

@keyframes typewriter-cursor {

  0%,
  100% {
    border-color: var(--terminal-green);
  }

  50% {
    border-color: transparent;
  }
}

/* ────────────────────────────────────────────────────────────
   21. BLINK (.blink)
   ──────────────────────────────────────────────────────────── */

.blink {
  animation: blink-animation 1s step-end infinite;
}

@keyframes blink-animation {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ────────────────────────────────────────────────────────────
   22. BUTTONS
   ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 16px 32px;
  border: 2px solid var(--border);
  color: var(--text-primary);
  background: transparent;
  text-decoration: none;
  cursor: none;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  color: var(--bg);
  background: var(--text-primary);
  border-color: var(--text-primary);
}

.btn--primary {
  border-color: var(--terminal-green);
  color: var(--terminal-green);
}

.btn--primary:hover {
  background: var(--terminal-green);
  color: var(--bg);
  box-shadow: var(--shadow-green);
}

.btn--secondary {
  border-color: var(--muted);
  color: var(--text-secondary);
}

.btn--secondary:hover {
  border-color: var(--terminal-green);
  color: var(--terminal-green);
  background: transparent;
}

.btn--ghost {
  border-color: var(--muted-light);
  color: var(--text-secondary);
}

.btn--ghost:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: transparent;
}

/* ────────────────────────────────────────────────────────────
   23. TAGS
   ──────────────────────────────────────────────────────────── */

.tag {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 4px 8px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  line-height: 1;
}

.tag--green {
  border-color: var(--terminal-green);
  color: var(--terminal-green);
}

.tag--amber {
  border-color: var(--terminal-amber);
  color: var(--terminal-amber);
}

/* ────────────────────────────────────────────────────────────
   24. SCROLL ANIMATIONS — INITIAL STATES (GSAP handles animation)
   ──────────────────────────────────────────────────────────── */

.fade-up,
.fade-in,
.slide-left,
.slide-right {
  opacity: 0;
}

.slide-right.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* ────────────────────────────────────────────────────────────
   25. UTILITY CLASSES
   ──────────────────────────────────────────────────────────── */

.text-green {
  color: var(--terminal-green);
}

.text-amber {
  color: var(--terminal-amber);
}

.text-red {
  color: var(--accent-red);
}

.text-cyan {
  color: var(--accent-cyan);
}

.text-muted {
  color: var(--text-secondary);
}

.text-white {
  color: var(--white);
}

.no-scroll {
  overflow: hidden;
}

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

/* ────────────────────────────────────────────────────────────
   26. REDACTED EFFECT
   ──────────────────────────────────────────────────────────── */

.redacted {
  background: var(--text-primary);
  color: var(--text-primary);
  transition: background var(--transition-fast), color var(--transition-fast);
  padding: 0 4px;
  cursor: none;
  user-select: none;
}

.redacted:hover {
  background: transparent;
  color: var(--terminal-green);
}

/* ────────────────────────────────────────────────────────────
   27. RESPONSIVE — 1024px
   ──────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  :root {
    --spacing-section: 80px;
    --spacing-container: 32px;
  }

  .section__title {
    font-size: var(--fs-2xl);
  }

  h1 {
    font-size: var(--fs-2xl);
  }

  h2 {
    font-size: var(--fs-xl);
  }

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

  #hero .hero__title {
    font-size: clamp(var(--fs-lg), 4vw, var(--fs-3xl));
  }

  #manifesto .manifesto__statement {
    font-size: var(--fs-lg);
  }

  #team .team__name {
    font-size: var(--fs-md);
  }
}

/* ────────────────────────────────────────────────────────────
   28. RESPONSIVE — 768px (Mobile)
   ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  :root {
    --spacing-section: 60px;
    --spacing-container: 20px;
    --grid-gap: 16px;
  }

  body {
    cursor: auto;
  }

  /* Standard cursors for interactive elements on touch devices */
  button,
  a,
  select,
  input,
  [role="button"] {
    cursor: pointer;
  }

  /* Hide custom cursor on mobile/touch */
  #cursor-dot,
  #cursor-ring,
  #cursor-cubes {
    display: none;
  }

  /* Nav mobile */
  #nav .nav__toggle {
    display: flex;
  }

  #nav .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px;
    gap: 24px;
    transition: right var(--transition-base);
  }

  #nav .nav__links.nav--open {
    right: 0;
  }

  /* Dark backdrop behind mobile menu */
  #nav .nav__links::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
  }

  #nav .nav__links.nav--open::before {
    opacity: 1;
    pointer-events: auto;
  }

  #nav .nav__link {
    font-size: var(--fs-sm);
  }

  /* Grids collapse to single column */
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  /* Type scale mobile */
  .section__title {
    font-size: var(--fs-xl);
    letter-spacing: 0.1em;
  }

  .section__subtitle {
    font-size: var(--fs-base);
  }

  h1 {
    font-size: var(--fs-xl);
  }

  h2 {
    font-size: var(--fs-lg);
  }

  /* Hero mobile */
  #hero {
    min-height: 80vh;
  }

  #hero .hero__title {
    font-size: var(--fs-xl);
  }

  #hero .hero__subtitle {
    font-size: var(--fs-base);
  }

  #hero .hero__description {
    font-size: var(--fs-sm);
  }

  #hero .hero__brand {
    gap: 20px;
  }

  #hero .hero__logo-icon {
    width: 140px;
    height: 140px;
  }

  #hero .hero__ascii {
    font-size: 5px;
    margin-bottom: 24px;
  }

  /* Manifesto mobile */
  #manifesto .manifesto__statement {
    font-size: var(--fs-md);
    padding-left: 20px;
  }

  #manifesto .manifesto__pull-quote {
    font-size: var(--fs-md);
  }

  /* Capabilities mobile */
  #capabilities .card {
    padding: 24px 20px;
  }

  #capabilities .card__icon {
    font-size: var(--fs-2xl);
    margin-bottom: 16px;
  }

  /* Team mobile — stack to 1 col */
  #team .grid--2 {
    grid-template-columns: 1fr;
  }

  #team .team__member {
    padding: 24px;
  }

  /* Calculator mobile */
  #calculator .calculator__body {
    padding: 20px;
  }

  #calculator .calculator__results-line {
    flex-direction: column;
    gap: 4px;
  }

  /* Signal mobile */
  #signal .signal__title {
    font-size: var(--fs-lg);
  }

  /* Lab stats bar mobile */
  #lab .lab__stats-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  #lab .lab__stats-bar span:not(:last-child)::after {
    display: none;
  }

  /* Terminal overlay mobile */
  #terminal-overlay {
    padding: 60px 20px 20px;
  }

  /* Buttons mobile */
  .btn {
    padding: 12px 24px;
    font-size: var(--fs-xs);
    width: 100%;
    text-align: center;
  }
}

/* ────────────────────────────────────────────────────────────
   29. REDUCED MOTION
   ──────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-up,
  .fade-in,
  .slide-left,
  .slide-right {
    opacity: 1;
    transform: none;
  }
}

/* ────────────────────────────────────────────────────────────
   30. BACKGROUND NETWORK
   ──────────────────────────────────────────────────────────── */
#bg-network {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* ────────────────────────────────────────────────────────────
   31. ARC-AGI-3 COUNTDOWN (TERMINAL UPLINK)
   ──────────────────────────────────────────────────────────── */

.hero__countdown {
  margin: 24px auto 32px auto;
  border: 1px solid var(--terminal-green);
  background: rgba(0, 10, 0, 0.9);
  display: block;
  width: fit-content;
  position: relative;
  text-align: left;
  max-width: 100%;
  min-width: 300px;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.2), inset 0 0 20px rgba(0, 255, 65, 0.1);
  overflow: hidden;
  backdrop-filter: blur(5px);
  animation: turnOn 0.4s ease-out forwards;
  pointer-events: auto;
  /* Ensure interactivity if parent has none */
}

/* CRT Scanline Overlay */
.hero__countdown::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%,
      rgba(0, 0, 0, 0.25) 50%),
    linear-gradient(90deg,
      rgba(255, 0, 0, 0.06),
      rgba(0, 255, 0, 0.02),
      rgba(0, 0, 255, 0.06));
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.6;
  animation: scanlineScroll 10s linear infinite;
}

/* Screen Flicker Animation */
.hero__countdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 255, 65, 0.02);
  pointer-events: none;
  z-index: 3;
  animation: screenFlicker 0.15s infinite;
  opacity: 0;
}

/* Window Header */
.countdown__window-header {
  background: var(--terminal-green);
  color: #000000;
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-secondary);
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
}

.window-controls {
  display: flex;
  gap: 4px;
}

.control {
  width: 6px;
  height: 6px;
  background: var(--black);
  border-radius: 50%;
  opacity: 0.6;
}

/* Main Content Area */
.countdown__content {
  padding: 20px 24px;
  position: relative;
  z-index: 1;
}

.countdown__header {
  font-family: var(--font-secondary);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.highlight-green a {
  color: var(--terminal-green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.highlight-green a:hover {
  background: var(--terminal-green);
  color: var(--black);
  box-shadow: 0 0 10px var(--terminal-green);
}

.status-indicator {
  width: 6px;
  height: 6px;
  background-color: var(--terminal-green);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1s infinite;
  box-shadow: 0 0 8px var(--terminal-green);
}

.highlight-green {
  color: var(--terminal-green);
  font-weight: 700;
  text-shadow: 0 0 5px rgba(0, 255, 65, 0.6);
  animation: textFlicker 3s infinite;
}

.countdown__subtext {
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(0, 255, 65, 0.3);
  padding-bottom: 12px;
  display: inline-block;
  width: 100%;
  text-shadow: 0 0 2px rgba(0, 255, 65, 0.3);
}

.countdown__timer {
  font-family: var(--font-primary);
  font-size: var(--fs-lg);
  color: var(--terminal-green);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.8), 0 0 20px rgba(0, 255, 65, 0.4);
}

/* Animations */
@keyframes turnOn {
  0% {
    transform: scale(1, 0.002);
    opacity: 0;
  }

  50% {
    transform: scale(1, 0.002);
    opacity: 1;
  }

  100% {
    transform: scale(1, 1);
    opacity: 1;
  }
}

@keyframes screenFlicker {
  0% {
    opacity: 0.02;
  }

  5% {
    opacity: 0.05;
  }

  10% {
    opacity: 0.02;
  }

  15% {
    opacity: 0.06;
  }

  20% {
    opacity: 0.02;
  }

  50% {
    opacity: 0.02;
  }

  55% {
    opacity: 0.05;
  }

  60% {
    opacity: 0.02;
  }

  100% {
    opacity: 0.02;
  }
}

@keyframes textFlicker {
  0% {
    opacity: 1;
  }

  3% {
    opacity: 0.8;
  }

  6% {
    opacity: 1;
  }

  7% {
    opacity: 0.8;
  }

  8% {
    opacity: 1;
  }

  9% {
    opacity: 1;
  }

  10% {
    opacity: 0.1;
  }

  11% {
    opacity: 1;
  }

  100% {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .hero__countdown {
    margin-top: 24px;
    width: 100%;
    min-width: auto;
    display: block;
  }

  .countdown__content {
    padding: 12px 16px;
  }

  .countdown__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 10px;
  }

  .status-indicator {
    display: inline-block;
  }

  .countdown__timer {
    font-size: 18px;
  }
}