/* Layout: dark clinical ground, chrome italic display type echoing the wordmark,
   hairline gradient rules from the banner, content in a 1120px column. */
:root {
  --bg: #05070c;
  --surface: #0b111c;
  --line: #1c2a40;
  --fg: #e8eef8;
  --muted: #a3b5ce;
  --accent: #8fbef5;
  --accent-strong: #cfe4ff;
  --chrome: linear-gradient(180deg, #7fa8e0 0%, #a9c9f2 36%, #f2f7ff 50%, #8ab3ea 62%, #5b8bd0 100%);
  --rule: linear-gradient(90deg, transparent, #3a6aa8 18%, #bcdcff 50%, #3a6aa8 82%, transparent);
  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.6vw, 4.2rem);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}

/* Header */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--bg);
}
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  background: rgba(5, 7, 12, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand span {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-stretch: 112%;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.nav a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding-block: 6px;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--accent-strong); border-bottom-color: var(--accent); }

/* Type */
h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 108%;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: var(--step-4);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 600; font-stretch: 100%; }
p { margin: 0; max-width: 65ch; }
.lede { font-size: var(--step-1); color: var(--muted); line-height: 1.55; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.muted { color: var(--muted); }

/* Sections */
main { display: block; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; }
.rule { height: 2px; background: var(--rule); border: 0; margin: 0; }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; } }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-art { min-width: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--accent);
}
.btn-primary { background: var(--accent); color: #05070c; }
.btn-primary:hover { background: var(--accent-strong); color: #05070c; }
.btn-ghost { color: var(--fg); }
.btn-ghost:hover { color: var(--accent-strong); border-color: var(--accent-strong); }

/* Twin trace */
.trace { width: 100%; height: auto; display: block; }
.trace .pulse {
  stroke-dasharray: 60 900;
  animation: travel 3.2s linear infinite;
}
@keyframes travel { from { stroke-dashoffset: 960; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .trace .pulse { animation: none; opacity: 0; } }
.trace-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}

/* Grids */
.grid-3 { display: grid; gap: 20px; }
@media (min-width: 820px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid-2 { display: grid; gap: 20px; }
@media (min-width: 820px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}
.panel .tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Problem statement */
.statement { display: grid; gap: 28px; }
@media (min-width: 900px) { .statement { grid-template-columns: 0.8fr 1.2fr; align-items: start; } }
.statement .body { display: grid; gap: 18px; color: var(--muted); min-width: 0; }

/* List with markers */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.checks li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
}
.checks li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 4px rgba(143, 190, 245, 0.18);
  transform: translateY(-1px);
}

/* Process steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  padding-block: 26px;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
  padding-top: 4px;
}
.steps .step-body { display: grid; gap: 8px; min-width: 0; }
.signals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.signals span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-strong);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 8px;
}

/* Team */
.person { display: grid; gap: 18px; align-content: start; }
.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--accent-strong);
  background: radial-gradient(circle at 35% 30%, #2a4f8a, #0b111c 70%);
  border: 1px solid var(--line);
}
.headshot {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
  box-shadow: 0 0 0 4px rgba(143, 190, 245, 0.12);
}
.role {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Contact */
.contact-card { display: grid; gap: 16px; }
.email {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: var(--step-2);
  overflow-wrap: anywhere;
}

/* CTA band */
.cta {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.cta .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 48px;
}

/* Footer */
.site-footer { padding-block: 36px 48px; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); }
