@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #07182A;
  --navy-2: #0B2036;
  --navy-3: #0F2842;
  --cyan: #13D8E5;
  --blue: #315BFF;
  --amber: #FFB238;
  --off-white: #F4F7F8;
  --grey: #9AA7B5;
  --line: rgba(154, 167, 181, 0.22);
  --font-head: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.35rem, 6.4vw, 4.75rem); font-weight: 800; max-width: 14ch; }
h2 { font-size: clamp(1.75rem, 4vw, 2.85rem); font-weight: 800; max-width: 22ch; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip:focus {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  background: var(--off-white); color: var(--navy);
  padding: 8px 12px; font-weight: 600;
}

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

/* Section label: small, widely spaced caps with a thin rule after */
.label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cyan);
}
.label::after {
  content: "";
  flex: 0 1 96px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

/* ── Header ───────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(7, 24, 42, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo { display: block; line-height: 0; }
.logo img { height: 40px; width: auto; }

.site-nav { display: flex; gap: 32px; }
.site-nav a {
  font-size: 0.9rem;
  color: var(--grey);
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--off-white); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 12px;
  width: 20px; height: 2px;
  background: var(--off-white);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle-bars { top: 21px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--navy);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; font-size: 1rem; color: var(--off-white); }
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: min(100vh, 860px);
  min-height: min(100svh, 860px);
  display: flex;
  align-items: center;
  padding: 120px 0 88px;
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7,24,42,0.92) 0%, rgba(7,24,42,0.6) 42%, rgba(7,24,42,0) 70%),
    linear-gradient(0deg, var(--navy) 0%, rgba(7,24,42,0) 22%);
  pointer-events: none;
}
.hero-sub {
  margin-top: 24px;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--grey);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  padding: 15px 26px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--cyan);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.button::after {
  content: "";
  width: 8px; height: 8px;
  background: var(--navy);
}
.button:hover { background: var(--off-white); }

@media (max-width: 760px) {
  .hero { align-items: flex-end; padding-top: 140px; }
  .hero-shade {
    background:
      linear-gradient(0deg, rgba(7,24,42,0.97) 0%, rgba(7,24,42,0.88) 44%, rgba(7,24,42,0) 64%);
  }
}

/* ── Sections ─────────────────────────────────────────── */
.section { padding: clamp(80px, 11vw, 136px) 0; }
.section + .section { border-top: 1px solid var(--line); }

.intro {
  margin-top: 20px;
  max-width: 38rem;
  font-size: 1.15rem;
  color: var(--grey);
}

/* Signal detection sequence */
.sequence {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
}
.stage {
  position: relative;
  background: var(--navy-2);
}
.stage + .stage { border-left: 1px solid var(--line); }
.stage-art {
  width: 100%;
  height: auto;
  aspect-ratio: 200 / 120;
  background: var(--navy);
  border-bottom: 1px solid var(--line);
}
.stage-text { padding: 24px 22px 30px; }
.stage-num {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 10px;
}
.stage h3 { font-size: 1.35rem; margin-bottom: 10px; }
.stage p:not(.stage-num) { color: var(--grey); font-size: 0.98rem; }

.pt-player { fill: var(--cyan); }
.pt-signal { fill: var(--amber); }
.signal-pulse {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.2;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 2.6s ease-out infinite;
}
.route {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
  stroke-dasharray: 1.5 4;
  stroke-linecap: round;
}
@keyframes pulse {
  0%   { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

@media (max-width: 960px) {
  .sequence { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage:nth-child(3) { border-left: 0; }
  .stage:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .sequence { grid-template-columns: 1fr; }
  .stage + .stage { border-left: 0; border-top: 1px solid var(--line); }
}

/* Quote band */
.quote-band {
  padding: clamp(72px, 10vw, 120px) 0;
  background:
    linear-gradient(rgba(19,216,229,0.06) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(19,216,229,0.06) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--navy-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quote-band blockquote { margin: 0; }
.quote-band p {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.45rem, 3.3vw, 2.4rem);
  line-height: 1.3;
  max-width: 30ch;
  letter-spacing: -0.01em;
}

/* What we build: cards */
.cards {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  padding: 30px 26px 32px;
  background: var(--navy-2);
  border: 1px solid var(--line);
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover { border-color: rgba(19, 216, 229, 0.45); }
.icon {
  width: 64px; height: 64px;
  margin: -12px 0 12px -10px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--grey); font-size: 0.98rem; }

@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
}

/* Who we work with */
.audiences {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.audiences li {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  position: relative;
}
.audiences li::before {
  content: "";
  position: absolute;
  top: -4px; left: 0;
  width: 7px; height: 7px;
  background: var(--blue);
}
.audiences h3 { font-size: 1.25rem; margin-bottom: 10px; }
.audiences p { color: var(--grey); }
@media (max-width: 860px) {
  .audiences { grid-template-columns: 1fr; gap: 32px; }
}

/* Contact */
.contact-card {
  margin-top: 40px;
  font-style: normal;
  display: grid;
  gap: 6px;
}
.contact-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.contact-card a {
  text-decoration: none;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  overflow-wrap: anywhere;
}
.contact-email { color: var(--amber); }
.contact-phone { color: var(--off-white); }
.contact-card a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  font-size: 0.88rem;
  color: var(--grey);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 20px; }
.footer-logo { height: 96px; width: auto; }
.footer-legal a { color: var(--grey); }
.footer-legal a:hover { color: var(--off-white); }

/* Privacy page */
.page {
  padding: 140px 0 120px;
  min-height: calc(100vh - 100px);
}
.page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 28px; }
.page p { max-width: 40rem; color: var(--grey); margin-bottom: 18px; }
.page a { color: var(--cyan); }
.back { display: inline-block; margin-top: 24px; font-size: 0.95rem; }

.defs { position: absolute; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .signal-pulse { transform: scale(1.4); opacity: 0.6; }
}
