/* ==========================================================================
   APERTURE SEC — Design Tokens + Components
   Cybersecurity: dark-first, cool cyan/teal accent, precise & trustworthy
   ========================================================================== */

/* ---- Type scale ---- */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 8rem);

  /* Spacing (4px system) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 1000px;
  --content-wide: 1240px;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Satoshi', system-ui, sans-serif;
  --font-body: 'Satoshi', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ---- DARK (default) ---- */
:root,
[data-theme='dark'] {
  --color-bg: #070b12;
  --color-surface: #0b111c;
  --color-surface-2: #101825;
  --color-surface-offset: #0e1521;
  --color-border: #1d2836;
  --color-border-strong: #2a3a4d;

  --color-text: #e4ecf5;
  --color-text-muted: #8b9bad;
  --color-text-faint: #55647a;
  --color-text-inverse: #06090f;

  --color-primary: #ff4d4d;
  --color-primary-hover: #ff6b6b;
  --color-primary-active: #e02f2f;
  --color-primary-soft: rgba(255, 77, 77, 0.12);
  --color-primary-glow: rgba(255, 77, 77, 0.28);

  --color-accent-2: #ff8a3d;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);

  --grid-line: rgba(120, 160, 200, 0.06);
}

/* ---- LIGHT ---- */
[data-theme='light'] {
  --color-bg: #f4f7fb;
  --color-surface: #ffffff;
  --color-surface-2: #eef3f9;
  --color-surface-offset: #e8eef6;
  --color-border: #d5dfeb;
  --color-border-strong: #bccbdc;

  --color-text: #0d1826;
  --color-text-muted: #4d5f73;
  --color-text-faint: #8494a6;
  --color-text-inverse: #f7fafd;

  --color-primary: #d61f1f;
  --color-primary-hover: #b81919;
  --color-primary-active: #9c1414;
  --color-primary-soft: rgba(214, 31, 31, 0.1);
  --color-primary-glow: rgba(214, 31, 31, 0.18);

  --color-accent-2: #e0641f;

  --shadow-sm: 0 1px 2px rgba(13, 24, 38, 0.06);
  --shadow-md: 0 8px 24px rgba(13, 24, 38, 0.1);
  --shadow-lg: 0 20px 50px rgba(13, 24, 38, 0.14);

  --grid-line: rgba(30, 60, 100, 0.05);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --color-bg: #f4f7fb;
    --color-surface: #ffffff;
    --color-surface-2: #eef3f9;
    --color-surface-offset: #e8eef6;
    --color-border: #d5dfeb;
    --color-border-strong: #bccbdc;
    --color-text: #0d1826;
    --color-text-muted: #4d5f73;
    --color-text-faint: #8494a6;
    --color-text-inverse: #f7fafd;
    --color-primary: #d61f1f;
    --color-primary-hover: #b81919;
    --color-primary-active: #9c1414;
    --color-primary-soft: rgba(214, 31, 31, 0.1);
    --color-primary-glow: rgba(214, 31, 31, 0.18);
    --color-accent-2: #e0641f;
    --grid-line: rgba(30, 60, 100, 0.05);
  }
}

/* ==========================================================================
   LAYOUT PRIMITIVES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-12));
}
.container--narrow {
  max-width: var(--content-default);
}

.section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 500;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--color-primary);
  opacity: 0.7;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: var(--space-4);
  max-width: 20ch;
}
.section-lead {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  margin-top: var(--space-5);
  max-width: 60ch;
}

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}
.header--scrolled {
  border-bottom-color: var(--color-border);
  background: oklch(from var(--color-bg) l c h / 0.9);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
}
.brand svg {
  color: var(--color-primary);
  flex-shrink: 0;
}
.brand span {
  white-space: nowrap;
}
.brand span b {
  font-weight: 700;
}
.brand span i {
  font-style: normal;
  color: var(--color-text-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
}
.nav-links a {
  display: block;
  padding: var(--space-2) var(--space-3);
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-sm);
}
.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--color-text);
  background: var(--color-primary-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Language switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.lang-switch button {
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  line-height: 1;
}
.lang-switch button[aria-pressed='true'] {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
.lang-switch button:hover {
  color: var(--color-text);
}

/* Breach / emergency button */
.btn--breach {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  position: relative;
  font-weight: 700;
}
.btn--breach::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: breach-pulse 1.8s infinite;
  flex-shrink: 0;
}
.btn--breach:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--color-primary-glow);
}
@keyframes breach-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .btn--breach::before { animation: none; }
}

/* Top emergency bar */
.emergency-bar {
  background: var(--color-primary);
  color: #fff;
}
.emergency-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding-block: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: center;
}
.emergency-bar a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.theme-toggle:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  place-items: center;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  line-height: 1;
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: 0 0 0 1px var(--color-primary-glow);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px var(--color-primary-glow),
    0 0 0 1px var(--color-primary-glow);
}
.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}
.btn--lg {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse 80% 70% at 50% 40%,
      transparent 0%,
      var(--color-bg) 78%
    ),
    linear-gradient(180deg, oklch(from var(--color-bg) l c h / 0.4) 0%, transparent 30%);
}
.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: clamp(var(--space-24), 16vw, 11rem);
  gap: var(--space-6);
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.hero__title .accent {
  color: var(--color-primary);
}
.hero__lead {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  max-width: 56ch;
}
.hero__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-2);
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: center;
  margin-top: var(--space-8);
  color: var(--color-text-faint);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.hero__trust span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary-glow);
}

/* ==========================================================================
   STATS STRIP
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  border-block: 1px solid var(--color-border);
}
.stat {
  padding: var(--space-8) var(--space-4);
  text-align: center;
  border-right: 1px solid var(--color-border);
}
.stat:last-child {
  border-right: none;
}
.stat__num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-1);
}

/* ==========================================================================
   SERVICE CARDS
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-12);
}
.card {
  position: relative;
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-interactive);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}
.card:hover::before {
  opacity: 1;
}
.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}
.card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
}
.card__badge {
  display: inline-flex;
  align-items: center;
  margin-left: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  color: var(--color-primary);
  background: oklch(from var(--color-primary) l c h / 0.08);
  border: 1px solid oklch(from var(--color-primary) l c h / 0.5);
  border-radius: var(--radius-full);
  padding: 0.32em 0.72em 0.3em;
  vertical-align: middle;
  transform: translateY(-1px);
}
.card__text {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  margin-top: var(--space-3);
}
.card__list {
  list-style: none;
  margin-top: var(--space-5);
  display: grid;
  gap: var(--space-2);
}
.card__list li {
  position: relative;
  padding-left: var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 12px;
  height: 2px;
  background: var(--color-primary);
}

/* ==========================================================================
   SPLIT / FEATURE
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-24));
  align-items: center;
}
.split--reverse .split__media {
  order: -1;
}
.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  position: relative;
}
.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.feature-list {
  list-style: none;
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-8);
}
.feature-list li {
  display: flex;
  gap: var(--space-4);
}
.feature-list .fi {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
.feature-list h4 {
  font-size: var(--text-base);
  font-weight: 600;
  font-family: var(--font-display);
}
.feature-list p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: 2px;
}

/* ==========================================================================
   PROCESS
   ========================================================================== */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-12);
  counter-reset: step;
}
.process__step {
  position: relative;
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.process__step::before {
  counter-increment: step;
  content: '0' counter(step);
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  color: var(--color-primary);
  font-weight: 600;
}
.process__step h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  margin-top: var(--space-3);
}
.process__step p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: linear-gradient(140deg, var(--color-surface-2), var(--color-surface));
  padding: clamp(var(--space-10), 6vw, var(--space-24));
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 0%,
    var(--color-primary-glow),
    transparent 60%
  );
  opacity: 0.5;
  z-index: 0;
}
.cta-band > * {
  position: relative;
  z-index: 1;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-inline: auto;
}
.cta-band p {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  max-width: 52ch;
  margin: var(--space-4) auto 0;
}
.cta-band .hero__actions {
  margin-top: var(--space-8);
}

/* ==========================================================================
   PAGE HEADER (interior pages)
   ========================================================================== */
.page-head {
  position: relative;
  border-bottom: 1px solid var(--color-border);
  background:
    radial-gradient(circle at 80% -20%, var(--color-primary-soft), transparent 50%),
    var(--color-bg);
}
.page-head__inner {
  padding-block: clamp(var(--space-16), 10vw, var(--space-24));
}
.page-head h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: var(--space-4);
  max-width: 18ch;
}
.page-head p {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  margin-top: var(--space-5);
  max-width: 58ch;
}

/* ==========================================================================
   LEGAL / PROSE
   ========================================================================== */
.legal {
  max-width: var(--content-default);
}
.legal .prose {
  max-width: 72ch;
}
.legal-notice {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-10);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.legal-notice svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}
.prose h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}
.prose h2:first-of-type {
  margin-top: var(--space-8);
}
.prose h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  margin-top: var(--space-6);
}
.prose p,
.prose li {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  margin-top: var(--space-4);
}
.prose ul,
.prose ol {
  margin-top: var(--space-4);
  padding-left: var(--space-6);
  display: grid;
  gap: var(--space-2);
}
.prose li {
  margin-top: 0;
}
.prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose strong {
  color: var(--color-text);
  font-weight: 600;
}
.ph {
  color: var(--color-primary);
  background: var(--color-primary-soft);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.92em;
  white-space: nowrap;
}
.legal-updated {
  color: var(--color-text-faint);
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   TEAM
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-12);
}
.team-card {
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  text-align: center;
}
.team-card__avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  border: 1px solid var(--color-border);
}
.team-card h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
}
.team-card .role {
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  margin-top: 2px;
}
.team-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-3);
}

/* ==========================================================================
   VALUES
   ========================================================================== */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-12);
}
.value {
  padding: var(--space-6);
  border-left: 2px solid var(--color-primary);
  background: var(--color-surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.value h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
}
.value p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: start;
}
.contact-info {
  display: grid;
  gap: var(--space-6);
}
.contact-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.contact-item .ci {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
.contact-item h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
}
.contact-item p,
.contact-item a {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-decoration: none;
}
.contact-item a:hover {
  color: var(--color-primary);
}

.form {
  display: grid;
  gap: var(--space-5);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.field {
  display: grid;
  gap: var(--space-2);
}
.field label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}
.field input,
.field textarea,
.field select {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--text-sm);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.form-note {
  color: var(--color-text-faint);
  font-size: var(--text-xs);
}
.form-success {
  display: none;
  padding: var(--space-4);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-text);
  font-size: var(--text-sm);
}
.form-success.show {
  display: block;
}
.form-error {
  display: none;
  padding: var(--space-4);
  border: 1px solid #ff6b6b;
  border-radius: var(--radius-md);
  background: rgba(255, 77, 77, 0.1);
  color: var(--color-text);
  font-size: var(--text-sm);
}
.form-error.show {
  display: block;
}
/* Honeypot-Feld: für Menschen unsichtbar, aber nicht display:none (Bots meiden das) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding-block: var(--space-16) var(--space-8);
  margin-top: var(--space-16);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
}
.footer__brand p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-4);
  max-width: 34ch;
}
.footer h5 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}
.footer ul {
  list-style: none;
  display: grid;
  gap: var(--space-2);
}
.footer a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
}
.footer a:hover {
  color: var(--color-primary);
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-faint);
  font-size: var(--text-xs);
}
.footer-legal {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}
.footer-legal a {
  font-size: var(--text-xs);
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
/* Reveal-Inhalt ist standardmaessig SICHTBAR (auch ohne JS / ohne Observer).
   Nur wenn JS aktiv ist (html.js-anim), starten Elemente ausgeblendet und
   werden per Observer/Fallback eingeblendet. So kann Inhalt nie verschwinden. */
.reveal {
  opacity: 1;
  transform: none;
}
html.js-anim .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
html.js-anim .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js-anim .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(2) {
    border-right: none;
  }
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .split--reverse .split__media {
    order: 0;
  }
}

@media (max-width: 720px) {
  .nav-links,
  .nav-cta-desktop {
    display: none;
  }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
    padding: var(--space-4);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }
  .nav-toggle {
    display: grid;
  }
}

@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .stat:last-child {
    border-bottom: none;
  }
}


/* ==========================================================================
   APERTURE-PULS LADESCREEN (minimalistisch)
   ========================================================================== */
/* CSS-Notausstieg: Boot blendet sich IMMER selbst aus, auch ohne JS. */
.boot { animation: boot-autohide 0.6s ease 2.2s forwards; }
@keyframes boot-autohide { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.boot--hidden { animation: none !important; opacity: 0; visibility: hidden; pointer-events: none; }

.boot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  opacity: 1;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.boot--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.boot__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
}
/* Die rote Wolke, die einmal "atmet" */
.boot__logo {
  color: var(--color-primary);
  filter: drop-shadow(0 0 12px rgba(255, 77, 77, 0.55));
  animation: aperture-breath 0.9s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes aperture-breath {
  0%   { transform: scale(0.92); opacity: 0.5; }
  45%  { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
/* Dünner Scan-Ring, der sich einmal nach außen ausdehnt und ausblendet */
.boot__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border: 1px solid var(--color-primary);
  border-radius: 50%;
  opacity: 0;
  animation: aperture-scan 0.9s ease-out 0.1s both;
}
@keyframes aperture-scan {
  0%   { transform: scale(1); opacity: 0.7; }
  70%  { opacity: 0.25; }
  100% { transform: scale(2.35); opacity: 0; }
}
/* Barrierefreiheit: reduzierte Bewegung -> statisches Logo, kein Ring */
@media (prefers-reduced-motion: reduce) {
  .boot__logo { animation: none; }
  .boot__ring { display: none; }
}

/* ==========================================================================
   STATS-VARIANTEN (TEST) — A/B/C/D zur Auswahl
   ========================================================================== */
.statvariants { display: flex; flex-direction: column; gap: 2.5rem; }
.statvar__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--color-border);
}

/* Variante A — Icons + Kacheln */
.sv-a { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.85rem; }
.sv-a__c {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
}
.sv-a__ic { color: var(--color-primary); display: block; margin-bottom: 0.7rem; }
.sv-a__n { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; line-height: 1.1; color: var(--color-text); }
.sv-a__l { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 0.35rem; line-height: 1.4; }

/* Variante B — Inline-Reihe mit Trennern */
.sv-b {
  display: flex; flex-wrap: wrap; align-items: stretch;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.5rem 0.5rem;
}
.sv-b__item { flex: 1 1 140px; text-align: center; padding: 0.4rem 1rem; }
.sv-b__item + .sv-b__item { border-left: 1px solid var(--color-border); }
.sv-b__n { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--color-text); line-height: 1.05; }
.sv-b__n small { font-size: 0.55em; color: var(--color-primary); font-weight: 700; margin: 0 0.08em; }
.sv-b__l { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 0.4rem; }

/* Variante C — Label-first, reduziert */
.sv-c {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px; background: var(--color-border); border-radius: 14px; overflow: hidden;
}
.sv-c__c { background: var(--color-surface); padding: 1.4rem 1.4rem; }
.sv-c__l { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }
.sv-c__n { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-top: 0.5rem; color: var(--color-text); }
.sv-c__n b { color: var(--color-primary); font-weight: 700; }

/* Variante D — Seriös / belegbar */
.sv-d { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.85rem; }
.sv-d__c {
  background: var(--color-surface);
  border-left: 2px solid var(--color-primary);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
}
.sv-d__n { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--color-text); line-height: 1.2; }
.sv-d__l { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 0.35rem; line-height: 1.4; }

/* ============================================================
   HELL-MODUS: Bildbehandlung
   Die dunklen "Aperture"-Renderings wirken im Hellmodus als
   schwarze Bloecke. Wir heben sie leicht an, entsaettigen dezent
   und legen einen weichen, hellen Verlauf darueber, damit sie
   sich stilistisch ins helle Layout einfuegen.
   ============================================================ */

/* Content-Bilder im Hellmodus: eigene helle Bildvarianten (per JS-Swap),
   daher KEIN Abdunkeln/Blend mehr noetig. */
[data-theme='light'] .split__media img {
  filter: none;
  mix-blend-mode: normal;
  transition: filter var(--transition-interactive);
}

/* Hellmodus-Hero: eigenes helles Motiv mit freier Bildmitte, die
   Grafik-Elemente rahmen den Text an den Raendern. Daher voll sichtbar und
   KEIN Schleier hinter dem Text noetig. */
[data-theme='light'] .hero__bg img {
  opacity: 1;
  filter: none;
}
[data-theme='light'] .hero__bg::after {
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 62%,
    var(--color-bg) 100%
  );
}

/* ============================================================
   LADESCREEN: Voidwatch-Sec-Schriftzug
   Unter dem Aperture-Kreis. Der Text erscheint aufsteigend und
   ein roter "Scan"-Lichtstreifen faehrt einmal quer hindurch.
   ============================================================ */
.boot__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.boot__wordmark {
  font-family: 'Cabinet Grotesk', 'Satoshi', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  gap: 0.5ch;
  position: relative;
  color: var(--color-text);
  /* Sanft aufsteigend einblenden */
  opacity: 0;
  transform: translateY(8px);
  animation: boot-word-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
  overflow: hidden;
}
.boot__word--accent {
  color: var(--color-primary);
  -webkit-text-fill-color: var(--color-primary);
}
/* Roter Licht-Sweep-Balken, der einmal quer ueber den Schriftzug faehrt */
.boot__wordmark::after {
  content: "";
  position: absolute;
  top: -10%;
  left: -30%;
  width: 30%;
  height: 120%;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 77, 77, 0.55),
    rgba(255, 120, 120, 0.85),
    rgba(255, 77, 77, 0.55),
    transparent
  );
  filter: blur(6px);
  mix-blend-mode: screen;
  animation: boot-scan-sweep 1.1s ease-in-out 0.45s both;
}

@keyframes boot-word-in {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes boot-scan-sweep {
  0%   { left: -30%; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}
}
@media (prefers-reduced-motion: reduce) {
  .boot__wordmark { animation: none; opacity: 1; transform: none; }
  .boot__wordmark::after { display: none; }
}
