/* ═══════════════════════════════════════════════════════════════
   zero-lab.ai — Surgical Precision
   Est. 2026 · Cipher Circle
   ═══════════════════════════════════════════════════════════════ */

/* ── Akira Super Bold (display) ────────────────────────────── */

@font-face {
  font-family: 'Akira Super Bold';
  src: url('fonts/akira_super_bold-webfont.woff2') format('woff2'),
       url('fonts/akira_super_bold-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── Reset & Base ──────────────────────────────────────────── */

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

:root {
  /* Base */
  --bg-primary: #FAFAFA;
  --bg-secondary: #FFFFFF;
  --bg-subtle: #F5F5F5;
  --text-primary: #111111;
  --text-secondary: #555555;
  --text-tertiary: #999999;
  --border: #E5E5E5;
  --border-subtle: #F0F0F0;

  /* Skittles Rainbow */
  --accent-red: #E5484D;
  --accent-blue: #3B82F6;
  --accent-green: #30A46C;
  --accent-purple: #8B5CF6;
  --accent-orange: #F97316;
  --accent-yellow: #EAB308;
  --accent-cyan: #06B6D4;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;
  --space-2xl: 128px;

  /* Typography */
  --font-body: 'Chakra Petch', system-ui, sans-serif;
  --font-display: 'Akira Super Bold', 'Chakra Petch', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

/* ── Dark Theme ───────────────────────────────────────────── */

[data-theme="dark"] {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-subtle: #1a1a1a;
  --text-primary: #E5E5E5;
  --text-secondary: #999999;
  --text-tertiary: #555555;
  --border: #2a2a2a;
  --border-subtle: #1a1a1a;
}

[data-theme="dark"] body {
  background-image: radial-gradient(circle, #1a1a1a 0.5px, transparent 0.5px);
}

[data-theme="dark"] nav {
  background: rgba(10, 10, 10, 0.85);
}

[data-theme="dark"] .nav-dropdown-menu {
  background: #111;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .hero::before {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
}

[data-theme="dark"] .impact {
  background: #2a2a2a;
}

[data-theme="dark"] .domain-card.revealed:hover,
[data-theme="dark"] .story-card:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .tier-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .tier-featured {
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .tier-featured:hover {
  box-shadow: 0 8px 40px rgba(59, 130, 246, 0.2);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  background-image: radial-gradient(circle, #D5D5D5 0.5px, transparent 0.5px);
  background-size: 24px 24px;
}

/* ── Layout ────────────────────────────────────────────────── */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

section {
  padding: var(--space-2xl) 0;
}

section + section {
  border-top: none;
  position: relative;
}

section + section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, 960px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

/* ── Typography ────────────────────────────────────────────── */

h1, h2, h3, h4 {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 400; /* Akira Super Bold is single-weight; avoid faux-bold */
  line-height: 1.2;
  letter-spacing: 0.01em; /* wide caps face: neutralize negative tracking */
  text-transform: uppercase;
}

h1 {
  font-size: 48px;
  letter-spacing: 0.02em; /* wide caps need air, not negative tracking */
}

h2 {
  font-size: 36px;
  letter-spacing: 0.015em;
}

h3 {
  font-size: 22px;
}

p {
  max-width: 640px;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: opacity 0.15s;
}

a:hover {
  opacity: 0.8;
}

.section-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-md);
}

.subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.5;
  max-width: 560px;
}

/* ── Navigation ────────────────────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400; /* Akira is single-weight; 700 would synth faux-bold */
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-logo-img {
  height: 28px;
  width: auto;
}

.nav-logo .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-blue);
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* ── Nav Dropdowns ─────────────────────────────────────────── */

.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-right: 1.5px solid var(--text-tertiary);
  border-bottom: 1.5px solid var(--text-tertiary);
  transform: rotate(45deg);
  margin-left: 6px;
  vertical-align: middle;
  transition: transform 0.2s;
}

.nav-dropdown:hover > a::after {
  transform: rotate(-135deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.1s, color 0.1s;
}

.nav-dropdown-menu a:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

/* ── Theme Toggle ─────────────────────────────────────────── */

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  padding: 6px 8px;
  font-size: 16px;
  line-height: 1;
  color: var(--text-secondary);
  transition: border-color 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  border-color: var(--text-tertiary);
  color: var(--text-primary);
}

/* Show sun in dark mode, moon in light mode */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline; }

[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ── Hamburger ─────────────────────────────────────────────── */

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 301;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 6px);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -6px);
}

/* ── Mobile Nav Overlay ────────────────────────────────────── */

.mobile-nav {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 10, 0.97);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-inner {
  text-align: center;
  padding: 40px;
}

.mobile-nav-section {
  margin-bottom: 32px;
}

.mobile-nav-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 16px;
}

.mobile-nav-section a {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  color: #e5e5e5;
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.15s;
}

.mobile-nav-section a:hover {
  color: #fff;
}

.mobile-nav-cta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #059669;
  text-decoration: none;
  padding: 12px 32px;
  border: 1px solid #059669;
  border-radius: 6px;
  margin-top: 16px;
  transition: background 0.2s, color 0.2s;
}

.mobile-nav-cta:hover {
  background: #059669;
  color: #fff;
}

/* ── Hero ──────────────────────────────────────────────────── */

.hero {
  padding: var(--space-2xl) 0;
  border-top: none;
  position: relative;
  overflow: hidden; /* contain absolutely-positioned watermark logo; prevents
                       horizontal page scroll (verified clean 390/1280/1920) */
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-logo {
  position: absolute;
  top: 18%;
  left: 55%;
  transform: translate(-50%, -50%);
  height: 90%;
  width: auto;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
  animation: hero-enter 1.2s ease-out both;
}

.hero-headline {
  margin-bottom: var(--space-lg);
  animation: hero-enter 0.8s ease-out 0.1s both;
}

.hero .subtitle {
  margin-bottom: var(--space-xl);
  animation: hero-enter 0.8s ease-out 0.25s both;
}

.hero .cta-group {
  animation: hero-enter 0.8s ease-out 0.4s both;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Dot System ────────────────────────────────────────────── */

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  transition: box-shadow 0.3s ease;
}

.dot-red { background: var(--accent-red); }
.dot-blue { background: var(--accent-blue); }
.dot-green { background: var(--accent-green); }
.dot-purple { background: var(--accent-purple); }
.dot-orange { background: var(--accent-orange); }
.dot-yellow { background: var(--accent-yellow); }
.dot-cyan { background: var(--accent-cyan); }

.domain-card:hover .dot-red { box-shadow: 0 0 8px 2px var(--accent-red); }
.domain-card:hover .dot-blue { box-shadow: 0 0 8px 2px var(--accent-blue); }
.domain-card:hover .dot-green { box-shadow: 0 0 8px 2px var(--accent-green); }
.domain-card:hover .dot-purple { box-shadow: 0 0 8px 2px var(--accent-purple); }
.domain-card:hover .dot-orange { box-shadow: 0 0 8px 2px var(--accent-orange); }
.domain-card:hover .dot-yellow { box-shadow: 0 0 8px 2px var(--accent-yellow); }
.domain-card:hover .dot-cyan { box-shadow: 0 0 8px 2px var(--accent-cyan); }

/* ── Domain Grid ───────────────────────────────────────────── */

.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.domain-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-lg);
  cursor: pointer;
}

.domain-card:hover {
  border-color: var(--text-tertiary);
}

.domain-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.domain-card h3 {
  font-size: 16px;
  font-weight: 600;
}

.domain-card p {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* ── Redacted Domain Card ─────────────────────────────────── */

.domain-card-redacted {
  background: #0a0a0a !important;
  border-color: #1a1a1a !important;
  position: relative;
  overflow: hidden;
}
[data-theme="light"] .domain-card-redacted,
:root:not([data-theme="dark"]) .domain-card-redacted {
  background: #111 !important;
  border-color: #222 !important;
}
.domain-card-redacted:hover {
  border-color: var(--accent-red) !important;
  box-shadow: 0 0 20px rgba(229, 72, 77, 0.15);
}
.domain-card-redacted::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(229, 72, 77, 0.03) 2px,
      rgba(229, 72, 77, 0.03) 4px
    );
  pointer-events: none;
  z-index: 1;
}

.redacted-text {
  color: #E5484D !important;
  opacity: 0.25;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.05em;
  user-select: none;
}

.redacted-glitch {
  color: #E5484D !important;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  animation: redacted-flicker 4s ease-in-out infinite;
}
.redacted-glitch::before,
.redacted-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}
.redacted-glitch::before {
  color: #E5484D;
  animation: redacted-shift-1 8s ease-in-out infinite;
  clip-path: inset(0 0 60% 0);
}
.redacted-glitch::after {
  color: #ff6b6b;
  animation: redacted-shift-2 6s ease-in-out infinite;
  clip-path: inset(40% 0 0 0);
}

@keyframes redacted-flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.6; }
  94% { opacity: 1; }
  95% { opacity: 0.4; }
  96% { opacity: 1; }
}
@keyframes redacted-shift-1 {
  0%, 85%, 100% { opacity: 0; transform: translateX(0); }
  86% { opacity: 0.8; transform: translateX(-2px); }
  87% { opacity: 0; transform: translateX(0); }
}
@keyframes redacted-shift-2 {
  0%, 90%, 100% { opacity: 0; transform: translateX(0); }
  91% { opacity: 0.6; transform: translateX(3px); }
  92% { opacity: 0; transform: translateX(0); }
}

/* ── Domain Terminal Modal ─────────────────────────────────── */

.domain-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.domain-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.domain-term {
  width: 90%;
  max-width: 540px;
  background: #0a0a0a;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  overflow: hidden;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.domain-overlay.active .domain-term {
  transform: translateY(0) scale(1);
}

.domain-term-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #111;
  border-bottom: 1px solid #222;
}

.domain-term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dt-close { cursor: pointer; transition: opacity 0.2s; }
.dt-close:hover { opacity: 0.7; }

.domain-term-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #555;
  margin-left: 8px;
  letter-spacing: 0.06em;
}

.domain-term-body {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #888;
  padding: 20px 24px;
  line-height: 1.9;
  max-height: 65vh;
  overflow-y: auto;
  margin: 0;
  white-space: pre;
}

.domain-term-body::-webkit-scrollbar { width: 4px; }
.domain-term-body::-webkit-scrollbar-track { background: transparent; }
.domain-term-body::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

.dt-prompt { color: #555; }
.dt-cmd { color: #ccc; }
.dt-flag { color: #666; }
.dt-header { color: #555; letter-spacing: 0.15em; font-size: 11px; }
.dt-divider { color: #2a2a2a; }
.dt-label { color: #ccc; }
.dt-live { color: #30A46C; }
.dt-dev { color: #EAB308; }
.dt-redacted { color: #E5484D; }
.dt-verified { color: #06B6D4; }
.dt-bar { color: #222; }
.dt-line { opacity: 0; animation: dt-fade 0.15s ease forwards; }

@keyframes dt-fade {
  to { opacity: 1; }
}

/* ── Capabilities ──────────────────────────────────────────── */

.capabilities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.capability {
  border-left: 2px solid var(--border);
  padding-left: var(--space-lg);
  transition: border-left-color 0.3s;
}

.capability.accent-red { border-left-color: var(--accent-red); }
.capability.accent-blue { border-left-color: var(--accent-blue); }
.capability.accent-purple { border-left-color: var(--accent-purple); }
.capability.accent-orange { border-left-color: var(--accent-orange); }

.capability.accent-red:hover { box-shadow: -4px 0 12px -4px rgba(229, 72, 77, 0.2); }
.capability.accent-purple:hover { box-shadow: -4px 0 12px -4px rgba(139, 92, 246, 0.2); }
.capability.accent-blue:hover { box-shadow: -4px 0 12px -4px rgba(59, 130, 246, 0.2); }
.capability.accent-orange:hover { box-shadow: -4px 0 12px -4px rgba(249, 115, 22, 0.2); }

.capability h3 {
  margin-bottom: var(--space-sm);
}

.capability p {
  font-size: 15px;
  color: var(--text-secondary);
}

/* ── Stats Row ─────────────────────────────────────────────── */

.stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: var(--space-sm);
}

/* ── CTA ───────────────────────────────────────────────────── */

.cta-primary {
  display: inline-block;
  background: #059669;
  color: #FFFFFF;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 15px;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  text-decoration: none;
}

.cta-primary:hover {
  opacity: 0.9;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.3);
}

.cta-secondary {
  display: inline-block;
  color: var(--text-secondary);
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s;
  text-decoration: none;
  background: transparent;
  font-family: var(--font-body);
}

.cta-secondary:hover {
  border-color: var(--text-tertiary);
  color: var(--text-primary);
}

.cta-group {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

/* ── Footer ────────────────────────────────────────────────── */

footer {
  padding: var(--space-lg) 0 var(--space-md);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
  margin-bottom: var(--space-lg);
}

.footer-heading {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a {
  font-size: 13px;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-legal a:hover {
  color: var(--text-primary);
}

/* ── Contact Terminal Form ──────────────────────────────────── */

.contact-terminal {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
  max-width: 640px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.contact-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #0d0d0d;
  border-bottom: 1px solid #222;
}

.contact-chrome-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #444;
  margin-left: 8px;
  letter-spacing: 0.05em;
}

.contact-form {
  padding: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.form-field:last-child:not(.form-row .form-field) {
  margin-bottom: 16px;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #555;
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-mono);
  font-size: 14px;
  color: #e5e5e5;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #059669;
}

.form-field select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23555'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.form-field select option {
  background: #111;
  color: #e5e5e5;
}

.form-field textarea {
  resize: vertical;
  min-height: 80px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.form-alt {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #555;
}

.form-alt a {
  color: #06B6D4;
  text-decoration: none;
}

.form-alt a:hover {
  text-decoration: underline;
}

.contact-success,
.contact-error {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #888;
  line-height: 1.8;
}

.contact-success pre,
.contact-error pre {
  margin: 0;
  font-family: inherit;
  white-space: pre-wrap;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Engagement Tier Cards ─────────────────────────────────── */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.tier-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.5s ease, opacity 0.5s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tier-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.tier-card:hover {
  border-color: var(--text-tertiary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.tier-featured {
  border-color: var(--accent-blue);
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.08);
}

.tier-featured:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 8px 40px rgba(59, 130, 246, 0.12);
}

.tier-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-lg);
}

.tier-number {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.tier-accent {
  width: 32px;
  height: 3px;
  border-radius: 2px;
}

.tier-name {
  font-size: 28px;
  margin-bottom: var(--space-sm);
}

.tier-tagline {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: none;
}

.tier-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-lg) 0;
}

.tier-details {
  list-style: none;
  flex: 1;
  margin-bottom: var(--space-lg);
}

.tier-details li {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.tier-details li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--text-tertiary);
  font-size: 12px;
}

.tier-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border-subtle);
  margin-bottom: var(--space-md);
}

.tier-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.tier-value {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.tier-cta {
  display: block;
  text-align: center;
  width: 100%;
}

@media (max-width: 1024px) {
  .tier-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  /* Six ways in: 3-up on desktop steps down to 2-up on tablet (then 1-up under 768) */
  .domain-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Terminal Block ────────────────────────────────────────── */

.terminal {
  background: #111111;
  border-radius: 8px;
  padding: var(--space-lg);
  margin-top: var(--space-xl);
  overflow-x: auto;
  position: relative;
  border: 1px solid #2a2a2a;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.terminal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.008) 2px,
    rgba(255, 255, 255, 0.008) 4px
  );
  pointer-events: none;
  border-radius: 8px;
}

.terminal pre {
  font-family: var(--font-mono);
  font-size: 14px;
  color: #E5E5E5;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

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

.terminal .comment {
  color: #666666;
}

.terminal .status-live {
  color: var(--accent-green);
  animation: pulse-status 3s ease-in-out infinite;
}

.terminal .cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent-green);
  vertical-align: text-bottom;
  animation: blink-cursor 1.2s step-end infinite;
  opacity: 0.7;
}

@keyframes pulse-status {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes blink-cursor {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0; }
}

.terminal-chrome {
  display: flex;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid #222;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.td-red { background: #ff5f57; }
.td-yellow { background: #febc2e; }
.td-green { background: #28c840; }

/* ── Interactive Terminal ──────────────────────────────────── */

.terminal {
  cursor: text;
}

.terminal.active {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.terminal .terminal-lines {
  max-height: 480px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}

.terminal .terminal-lines::-webkit-scrollbar {
  width: 4px;
}

.terminal .terminal-lines::-webkit-scrollbar-track {
  background: transparent;
}

.terminal .terminal-lines::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 2px;
}

/* ── Scroll Reveal System ─────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Domain cards use their own stagger */
.domain-card {
  opacity: 0;
  transform: translateY(16px);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.domain-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.domain-card.revealed:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* ── Impact Highlights (scroll-triggered) ─────────────────── */

.impact {
  background: #E5E5E5;
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: 0 0;
  transition: background-size 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 2px 6px;
  margin: 0 -6px;
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.impact.lit {
  background-size: 100% 100%;
  color: var(--text-primary);
}

/* ── Story Cards ──────────────────────────────────────────── */

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.story-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-lg);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(16px);
  transition: transform 0.4s ease, opacity 0.4s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.story-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.story-card:hover {
  border-color: var(--text-tertiary);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.story-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 16px;
  align-self: flex-start;
}

.story-tag-red { background: rgba(229, 72, 77, 0.1); color: var(--accent-red); }
.story-tag-blue { background: rgba(59, 130, 246, 0.1); color: var(--accent-blue); }
.story-tag-green { background: rgba(48, 164, 108, 0.1); color: var(--accent-green); }
.story-tag-purple { background: rgba(139, 92, 246, 0.1); color: var(--accent-purple); }
.story-tag-orange { background: rgba(249, 115, 22, 0.1); color: var(--accent-orange); }
.story-tag-cyan { background: rgba(6, 182, 212, 0.1); color: var(--accent-cyan); }

.story-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.story-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
  max-width: none;
}

.story-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
}

/* ── About Page: Prose ────────────────────────────────────── */

.about-prose p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: var(--space-lg);
}

/* ── About Page: Credentials Bar ──────────────────────────── */

.cred-bar {
  display: flex;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.cred {
  display: flex;
  flex-direction: column;
}

.cred-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.01em;
}

.cred-label {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 6px;
}

/* ── About Page: Agent Grid ───────────────────────────────── */

.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.agent-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition: transform 0.4s ease, opacity 0.4s ease, border-color 0.3s ease;
}

.agent-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.agent-card:hover {
  border-color: var(--text-tertiary);
  transform: translateY(-2px);
}

.agent-glyph {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.agent-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.agent-power {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.agent-role {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

/* ── About Page: Values Terminal ──────────────────────────── */

.values-terminal {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
  max-width: 640px;
  margin-top: var(--space-xl);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.values-body {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #888;
  padding: 4px 24px 20px;
  line-height: 1.9;
  margin: 0;
  white-space: pre;
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }

  section { padding: var(--space-xl) 0; }

  /* Collapse desktop nav to hamburger */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero {
    padding: var(--space-xl) 0;
    overflow: hidden; /* clip oversized watermark logo; no horizontal scroll */
  }

  /* Wide Akira caps must fit a narrow viewport */
  .hero-headline {
    font-size: 22px;
    letter-spacing: 0.005em;
  }

  /* Faint centered backdrop; reset desktop offsets so it can't push width */
  .hero-logo {
    top: 50%;
    left: 50%;
    right: auto;
    height: 70%;
    opacity: 0.06;
  }

  /* Stack every multi-column block */
  .capabilities { grid-template-columns: 1fr; gap: var(--space-lg); }
  .domain-grid  { grid-template-columns: 1fr; }
  .story-grid   { grid-template-columns: 1fr; }
  .agent-grid   { grid-template-columns: repeat(2, 1fr); }

  .stats { flex-direction: column; gap: var(--space-lg); }

  .form-row { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; align-items: flex-start; }

  .cta-group { flex-direction: column; }

  .cred-bar {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .values-body {
    font-size: 12px;
    padding: 4px 16px 16px;
    white-space: pre-wrap;
  }
}

/* Smallest phones (iPhone SE etc.): drop the hero headline one more notch */
@media (max-width: 360px) {
  .hero-headline { font-size: 18px; }
  .agent-grid { grid-template-columns: 1fr; }
}

/* ═══ Redacted Story Cards ═══ */

.story-card[data-story] {
  cursor: pointer;
}

.story-redacted {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.story-redacted .story-static {
  pointer-events: none;
}

.story-redacted .story-glitch-text {
  color: rgba(0, 0, 0, 0.12);
  animation: redact-flicker-light 4s ease-in-out infinite;
  user-select: none;
}

.story-redacted .story-tag {
  opacity: 0.7;
}

.story-redacted .story-meta {
  color: var(--text-tertiary);
}

[data-theme="dark"] .story-redacted .story-glitch-text {
  color: rgba(255, 255, 255, 0.25);
  animation: redact-flicker-dark 4s ease-in-out infinite;
}

/* Static overlay */
.story-static {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.03) 2px,
      rgba(0, 0, 0, 0.03) 4px
    );
  animation: static-drift 8s linear infinite;
}

[data-theme="dark"] .story-static {
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.04) 2px,
      rgba(255, 255, 255, 0.04) 4px
    );
}

.story-static::after {
  content: 'CLASSIFIED';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(229, 72, 77, 0.5);
  text-transform: uppercase;
  animation: classified-pulse 3s ease-in-out infinite;
}

@keyframes redact-flicker-light {
  0%, 100% { color: rgba(0, 0, 0, 0.12); }
  15% { color: rgba(0, 0, 0, 0.08); }
  30% { color: rgba(0, 0, 0, 0.15); }
  45% { color: rgba(0, 0, 0, 0.06); }
  60% { color: rgba(0, 0, 0, 0.13); }
  75% { color: rgba(0, 0, 0, 0.09); }
  92% { color: rgba(0, 0, 0, 0.18); }
  93% { color: rgba(0, 0, 0, 0.04); }
}

@keyframes redact-flicker-dark {
  0%, 100% { color: rgba(255, 255, 255, 0.25); }
  15% { color: rgba(255, 255, 255, 0.18); }
  30% { color: rgba(255, 255, 255, 0.30); }
  45% { color: rgba(255, 255, 255, 0.15); }
  60% { color: rgba(255, 255, 255, 0.28); }
  75% { color: rgba(255, 255, 255, 0.20); }
  92% { color: rgba(255, 255, 255, 0.35); }
  93% { color: rgba(255, 255, 255, 0.10); }
}

@keyframes static-drift {
  0% { background-position: 0 0; }
  100% { background-position: 0 100px; }
}

@keyframes classified-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
