:root {
  --bg: #08080a;
  --bg-elev: #11111a;
  --bg-elev-2: #1a1a25;
  --fg: #f4f4f5;
  --fg-muted: #8a8a96;
  --fg-dim: #4f4f5a;
  --red: #dc1f26;
  --red-bright: #ff2d36;
  --red-glow: rgba(220, 31, 38, 0.45);
  --border: #1d1d28;
  --border-strong: #2c2c3a;
  --grid: rgba(255, 255, 255, 0.03);

  --font-display: 'Big Shoulders Display', 'Impact', sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', 'Menlo', monospace;

  --max: 1320px;
  --pad: 2rem;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
button, a { font-family: inherit; }

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

/* ─── Atmosphere ────────────────────────────────────────────── */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>");
}

/* ─── Header ────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 10, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem var(--pad);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
}

.brand { display: inline-flex; }
.brand img { height: 32px; width: auto; }

.nav {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.nav a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav a::after {
  content: '';
  position: absolute;
  inset: auto 0 -2px 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.1, 1);
}

.nav a:hover { color: var(--fg); }
.nav a:hover::after { transform: scaleX(1); }

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

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red-glow);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.78); }
}

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

.hero {
  position: relative;
  min-height: calc(100svh - 60px);
  padding: 2.5rem var(--pad) 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  width: 720px; height: 720px;
  left: 50%; top: 48%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 62%);
  filter: blur(48px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 75% at center, #000 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at center, #000 25%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

.hero-scan {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red-glow), transparent);
  top: 0;
  opacity: 0.7;
  pointer-events: none;
  z-index: 1;
  animation: scan 14s linear infinite;
}

@keyframes scan {
  0% { top: -2%; opacity: 0; }
  10%, 90% { opacity: 0.6; }
  100% { top: 102%; opacity: 0; }
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 3rem auto;
  max-width: 880px;
  width: 100%;
}

.hero-stage {
  position: relative;
  padding: 2.25rem 3rem;
  margin-bottom: 2.5rem;
  width: 100%;
  max-width: 640px;
}

.hero-logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 38px rgba(220, 31, 38, 0.4));
}

.bracket {
  position: absolute;
  width: 32px; height: 32px;
  border-color: var(--red);
  border-style: solid;
  border-width: 0;
}
.bracket-tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.bracket-tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.bracket-bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.bracket-br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 1.5rem;
}

.hero-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--fg);
  text-transform: uppercase;
}

.line-break { display: block; height: 0; }

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  color: var(--fg);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-100%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.cta:hover::before { transform: translateX(100%); }

.cta-primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.cta-primary:hover {
  background: var(--red-bright);
  border-color: var(--red-bright);
  transform: translateY(-2px);
}
.cta-primary .cta-num { color: rgba(255, 255, 255, 0.65); }

.cta-secondary:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}

.cta-num { color: var(--fg-dim); font-size: 0.7rem; }
.cta-arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.cta-primary:hover .cta-arrow { transform: translate(3px, -3px); }
.cta-secondary:hover .cta-arrow { transform: translateY(3px); color: var(--red); }

/* ─── Section base ──────────────────────────────────────────── */

.section {
  padding: 6.5rem var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}

.section-head { margin-bottom: 4rem; }

.section-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-bottom: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-label { color: var(--red); }
.section-count { color: var(--fg-dim); }

.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 6.4vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.012em;
  margin: 0;
  text-transform: uppercase;
}

.section-intro {
  margin: 1.75rem 0 0;
  max-width: 540px;
  color: var(--fg-muted);
  font-size: 1.05rem;
}

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

.cap-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.cap-card {
  background: var(--bg);
  padding: 2.25rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 300px;
  transition: background 0.3s ease;
  overflow: hidden;
}

.cap-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.1, 1);
}

.cap-card:hover { background: var(--bg-elev); }
.cap-card:hover::before { transform: scaleX(1); }

.cap-prefix {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.75rem;
}

.cap-body { flex: 1; }

.cap-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 0.95;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}

.cap-card p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.cap-arrow {
  position: absolute;
  top: 2.25rem;
  right: 2rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--fg-dim);
  transition: color 0.25s ease, transform 0.25s ease;
}
.cap-card:hover .cap-arrow {
  color: var(--red);
  transform: translateX(4px);
}

/* ─── Mission ───────────────────────────────────────────────── */

.mission-quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.2vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  margin: 0 0 4rem;
  max-width: 1100px;
}

.mission-body {
  max-width: 720px;
  font-size: 1.08rem;
  line-height: 1.7;
}

.mission-body p { margin: 0 0 1.25rem; }
.mission-body strong { color: var(--fg); font-weight: 700; }

.mission-body .mission-pulloff {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.65rem;
  line-height: 1.18;
  text-transform: uppercase;
  margin: 3rem 0 0;
  border-left: 3px solid var(--red);
  padding-left: 1.5rem;
}

/* ─── Contact ───────────────────────────────────────────────── */

.contact-link {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
  color: var(--fg);
  margin: 1rem 0 2.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
  transition: border-color 0.35s ease;
}

.contact-link:hover { border-color: var(--red); }

.contact-email {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 6.2vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.015em;
  text-transform: lowercase;
  overflow-wrap: anywhere;
  transition: color 0.3s ease;
}

.contact-link:hover .contact-email { color: var(--red); }

.contact-arrow {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--fg-dim);
  margin-left: auto;
  flex-shrink: 0;
  transition: color 0.25s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.contact-link:hover .contact-arrow {
  color: var(--red);
  transform: translate(6px, -6px);
}

.contact-tag {
  max-width: 540px;
  color: var(--fg-muted);
  font-size: 1rem;
  margin: 0;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem var(--pad) 2rem;
  max-width: var(--max);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.footer-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--fg);
}

.footer-link { text-decoration: none; transition: color 0.2s ease; }
.footer-link:hover { color: var(--red); }

.footer-strip {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* ─── Reveal & load animations ──────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.2, 0.7, 0.1, 1), transform 0.85s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.reveal.in-view { opacity: 1; transform: none; }

.hero-meta-top, .hero-stage, .hero-eyebrow, .hero-tagline, .hero-actions, .hero-meta-bottom {
  animation: heroIn 0.95s cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
.hero-meta-top { animation-delay: 0.05s; }
.hero-stage { animation-delay: 0.18s; }
.hero-eyebrow { animation-delay: 0.46s; }
.hero-tagline { animation-delay: 0.56s; }
.hero-actions { animation-delay: 0.7s; }
.hero-meta-bottom { animation-delay: 0.86s; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

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

@media (max-width: 960px) {
  .header-inner { gap: 1rem; }
  .nav { gap: 1.25rem; }
  .nav-num { display: none; }
  .status { display: none; }

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

@media (max-width: 640px) {
  :root { --pad: 1.25rem; }

  .header-inner { grid-template-columns: auto auto; }
  .nav { gap: 0.85rem; }
  .nav a { font-size: 0.7rem; }
  .brand img { height: 26px; }

  .hero { padding-top: 1.5rem; padding-bottom: 1.5rem; min-height: auto; }
  .hero-content { margin: 2.5rem auto; }
  .hero-stage { padding: 1.5rem 1.75rem; }
  .hero-meta {
    font-size: 0.62rem;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
  }
  .hero-actions { flex-direction: column; width: 100%; }
  .cta { justify-content: center; }

  .section { padding: 4rem var(--pad); }
  .section-head { margin-bottom: 2.5rem; }
  .section-label-row { flex-direction: column; align-items: flex-start; gap: 0.4rem; }

  .cap-grid { grid-template-columns: 1fr; }
  .cap-card { min-height: 220px; padding: 2rem 1.5rem 1.75rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer-strip { flex-direction: column; gap: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
