/* ==========================================================================
   Single Strand — singlestrand.io
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
  --bg: #04070d;
  --bg-2: #081020;
  --surface: rgba(12, 20, 37, 0.72);
  --surface-2: rgba(17, 28, 50, 0.6);
  --line: rgba(130, 170, 255, 0.11);
  --line-strong: rgba(130, 170, 255, 0.22);
  --text: #e8eef8;
  --muted: #93a3bd;
  --faint: #5f6f8a;

  --cyan: #3ce0ff;
  --dye-blue: #4d8dff;
  --dye-green: #2ee6a0;
  --dye-yellow: #ffd447;
  --dye-red: #ff5a76;
  --dye-orange: #ff9d4d;

  --grad: linear-gradient(100deg, #3ce0ff 0%, #2ee6a0 50%, #c8f560 100%);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 18px;
  --radius-sm: 10px;
  --shell: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 85% -8%, rgba(60, 224, 255, 0.11), transparent 60%),
    radial-gradient(900px 640px at -12% 38%, rgba(46, 230, 160, 0.06), transparent 60%),
    radial-gradient(900px 700px at 110% 80%, rgba(77, 141, 255, 0.07), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, pre { font-family: var(--font-mono); }
::selection { background: rgba(60, 224, 255, 0.3); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--cyan);
  color: #021018;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.shell {
  width: min(100% - 48px, var(--shell));
  margin-inline: auto;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Background grid & progress ---------- */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    linear-gradient(rgba(130, 170, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 170, 255, 0.045) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 20%, #000 20%, transparent 75%);
  opacity: 0.55;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
  background: linear-gradient(90deg, var(--dye-blue), var(--dye-green), var(--dye-yellow), var(--dye-red));
  box-shadow: 0 0 12px rgba(60, 224, 255, 0.6);
}

/* ---------- Buttons ---------- */

.btn {
  --pad-y: 14px;
  --pad-x: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 15px/1 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary {
  background: var(--grad);
  color: #031118;
  box-shadow: 0 10px 30px -10px rgba(60, 224, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(46, 230, 160, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn--primary:hover svg { transform: translateX(3px); }
.btn--primary svg { transition: transform 0.25s var(--ease); }
.btn--ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}
.btn--ghost:hover { border-color: rgba(60, 224, 255, 0.5); background: rgba(60, 224, 255, 0.06); }
.btn--outline {
  border-color: rgba(60, 224, 255, 0.45);
  color: var(--cyan);
}
.btn--outline:hover { background: rgba(60, 224, 255, 0.1); }
.btn--small { --pad-y: 9px; --pad-x: 16px; font-size: 14px; }
.btn--tiny {
  --pad-y: 7px; --pad-x: 12px;
  gap: 6px;
  font: 500 12px/1 var(--font-mono);
  border-color: var(--line-strong);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}
.btn--tiny svg { width: 14px; height: 14px; }
.btn--tiny:hover { color: var(--cyan); border-color: rgba(60, 224, 255, 0.5); }
.btn--tiny:hover svg { transform: rotate(-90deg); }
.btn--tiny svg { transition: transform 0.4s var(--ease); }
.btn--lg { --pad-y: 18px; --pad-x: 30px; font-size: 16px; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(4, 7, 13, 0.72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand__mark { width: 34px; height: 34px; }
/* Header mark uses a viewBox cropped to the strand, so it is sized by height. */
.site-header .brand { gap: 6px; }
.site-header .brand__mark { width: auto; height: 48px; }
.site-header .brand__word { font-size: 27px; }
.brand__strand {
  stroke-dasharray: 100;
  animation: strand-draw 2.4s var(--ease) both;
}
@keyframes strand-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.brand__word {
  font: 500 20px/1 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand__word b {
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav a:not(.btn) {
  position: relative;
  padding: 8px 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 8px;
  transition: color 0.2s;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav a:not(.btn):hover,
.site-nav a.is-active { color: var(--text); }
.site-nav a:not(.btn):hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }
.site-nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}
.nav-toggle__bar {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle__bar:nth-child(1) { top: 16px; }
.nav-toggle__bar:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { top: 20.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { top: 20.5px; transform: rotate(-45deg); }

/* ---------- Shared labels ---------- */

.eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font: 500 12.5px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-tag span {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  padding: 5px 8px;
  border: 1px solid rgba(60, 224, 255, 0.35);
  border-radius: 6px;
  color: var(--cyan);
  background: rgba(60, 224, 255, 0.06);
  letter-spacing: 0.06em;
}

.pulse-dot,
.status-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--dye-green);
  box-shadow: 0 0 10px var(--dye-green);
  flex: none;
}
.pulse-dot::after,
.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--dye-green);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  from { transform: scale(0.6); opacity: 1; }
  to { transform: scale(2.2); opacity: 0; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 48px) 0 40px;
  isolation: isolate;
  overflow: hidden;
}
.hero__helix {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 56%;
  height: 100%;
  z-index: -1;
  cursor: grab;
  touch-action: pan-y;
}
.hero__helix.is-dragging { cursor: grabbing; }
.hero__inner {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.hero__copy { max-width: 720px; pointer-events: auto; }
.hero__title {
  font-size: clamp(2.5rem, 5.3vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin-bottom: 28px;
}
.hero__line { display: block; }
.js .hero__line {
  opacity: 0;
  transform: translateY(0.5em);
  filter: blur(8px);
  animation: line-in 1s var(--ease) forwards;
}
.js .hero__line:nth-child(2) { animation-delay: 0.12s; }
.js .hero__line:nth-child(3) { animation-delay: 0.24s; }
.js .hero__line:nth-child(4) { animation-delay: 0.42s; }
@keyframes line-in { to { opacity: 1; transform: none; filter: none; } }

.hero__lead {
  max-width: 560px;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--muted);
  margin-bottom: 36px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.js .hero__lead,
.js .hero__actions,
.js .hero .eyebrow {
  opacity: 0;
  animation: fade-up 0.9s var(--ease) forwards;
}
.js .hero .eyebrow { animation-delay: 0s; }
.js .hero__lead { animation-delay: 0.55s; }
.js .hero__actions { animation-delay: 0.7s; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.hud {
  position: absolute;
  right: 0;
  bottom: 12px;
  width: 260px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(6, 11, 22, 0.66);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.hud::before,
.hud::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 1.5px solid var(--cyan);
}
.hud::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.hud::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.hud__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line-strong);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10.5px;
}
.hud__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
}
.hud__row span { text-transform: uppercase; letter-spacing: 0.1em; font-size: 10.5px; color: var(--faint); }
.hud__row code { color: var(--text); letter-spacing: 0.08em; }
.hud__row code mark {
  background: rgba(60, 224, 255, 0.18);
  color: #fff;
  border-radius: 3px;
  padding: 0 2px;
  box-shadow: 0 0 10px rgba(60, 224, 255, 0.5);
}

.b-a { color: var(--dye-green); }
.b-c { color: var(--dye-blue); }
.b-g { color: var(--dye-yellow); }
.b-t { color: var(--dye-red); }

.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 56px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 14, 27, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.spec-strip__cell {
  padding: 18px 22px;
  border-right: 1px solid var(--line);
}
.spec-strip__cell:last-child { border-right: 0; }
.spec-strip dt {
  font: 500 10.5px/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}
.spec-strip dd { margin: 0; }
.spec-strip strong {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 16px/1.2 var(--font-display);
  color: var(--text);
}
.spec-strip dd span:not(.status-dot) {
  display: block;
  margin-top: 4px;
  font: 400 12px/1.4 var(--font-mono);
  color: var(--muted);
}

/* ---------- Sequence marquee ---------- */

.seq-marquee {
  position: relative;
  overflow: hidden;
  padding: 16px 0;
  border-block: 1px solid var(--line);
  background: rgba(6, 11, 22, 0.6);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.no-js .seq-marquee { display: none; }
.seq-marquee__track {
  display: flex;
  width: max-content;
  font: 500 14px/1 var(--font-mono);
  letter-spacing: 0.32em;
  white-space: nowrap;
  animation: marquee 80s linear infinite;
}
.seq-marquee__track .seq-label {
  color: var(--faint);
  letter-spacing: 0.12em;
  padding: 0 1.6em;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: clamp(80px, 11vw, 140px) 0;
}
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  margin-bottom: 22px;
}
.section-lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  max-width: 640px;
}
.section-head h2 .grad-text,
.contact-card h2 .grad-text { white-space: nowrap; }
.section-head--center .section-lead { margin-inline: auto; }

/* Reveal on scroll */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal:not(.is-visible) { pointer-events: none; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Services ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  --accent: var(--cyan);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 28, 50, 0.7), rgba(9, 15, 29, 0.7));
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.35s, transform 0.5s var(--ease), box-shadow 0.35s;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%);
  opacity: 0.55;
  transition: opacity 0.35s;
}
.service-card::after {
  content: "";
  position: absolute;
  top: 0; left: 28px; right: 28px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.7;
}
.service-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--accent) 45%, transparent);
}
.js .service-card.reveal {
  transition: opacity 0.9s var(--ease), transform 0.6s var(--ease), border-color 0.35s, box-shadow 0.35s;
  transition-delay: var(--delay, 0s);
}
.js .service-card.is-visible:hover { transform: translateY(-6px); }
.service-card:hover::before { opacity: 1; }
.service-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 26px;
}
.service-card__id {
  font: 500 11.5px/1 var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--accent);
  padding: 6px 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.service-card__icon {
  width: 56px; height: 48px;
  color: var(--accent);
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 60%, transparent));
}
.service-card__icon .draw {
  stroke-dasharray: 160;
  stroke-dashoffset: 0;
}
.service-card:hover .service-card__icon .draw { animation: icon-draw 1.4s var(--ease); }
@keyframes icon-draw { from { stroke-dashoffset: 160; } to { stroke-dashoffset: 0; } }
.service-card h3 { font-size: 1.6rem; margin-bottom: 12px; }
.service-card > p { color: var(--muted); font-size: 15.5px; }
.ticks { margin: 8px 0 26px; display: grid; gap: 10px; }
.ticks li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #c6d2e5;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.45em;
  width: 10px; height: 10px;
  border-radius: 3px;
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 60%, transparent);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 5.5px; top: calc(0.45em + 3.5px);
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent);
}
.service-card__link {
  margin-top: auto;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font: 500 13px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}
.service-card__link span { transition: transform 0.3s var(--ease); }
.service-card__link:hover span { transform: translateX(5px); }

/* ---------- DNA Data / Electropherogram ---------- */

.section--data::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(8, 16, 32, 0.6) 30%, rgba(8, 16, 32, 0.6) 70%, transparent);
}
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: end;
}
.split .section-head { margin-bottom: 48px; }
.data-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 48px;
}
.data-points li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--cyan);
  border-radius: 4px 12px 12px 4px;
  background: var(--surface-2);
}
.data-points strong {
  display: block;
  font: 600 13px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}
.data-points span { font-size: 14px; line-height: 1.5; color: var(--muted); display: block; }

.epg {
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(10, 17, 32, 0.92), rgba(5, 9, 18, 0.92));
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
}
.epg__bar,
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font: 500 12px/1 var(--font-mono);
  color: var(--muted);
}
.window-dots { display: flex; gap: 6px; }
.window-dots i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.window-dots i:nth-child(1) { background: #ff5f57; opacity: 0.8; }
.window-dots i:nth-child(2) { background: #febc2e; opacity: 0.8; }
.window-dots i:nth-child(3) { background: #28c840; opacity: 0.8; }
.epg__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.epg__title em { font-style: normal; color: var(--faint); }
.epg__legend {
  display: flex;
  gap: 14px;
  margin-left: auto;
}
.epg__legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.epg__legend li::before {
  content: "";
  width: 14px; height: 3px;
  border-radius: 2px;
  background: var(--c);
  box-shadow: 0 0 8px var(--c);
}
.epg__stage { position: relative; }
.epg canvas {
  width: 100%;
  height: clamp(440px, 52vw, 600px);
}
.epg__tip {
  position: absolute;
  z-index: 2;
  min-width: 170px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(4, 8, 16, 0.94);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7);
  font: 400 12px/1.55 var(--font-mono);
  color: var(--muted);
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
  white-space: nowrap;
}
.epg__tip.is-side { transform: translate(18px, -50%); }
.epg__tip.is-side.is-left { transform: translate(calc(-100% - 18px), -50%); }
.epg__tip strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.epg__tip .tip-kind { color: var(--c, var(--cyan)); }
.epg figcaption,
.portrait figcaption {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--faint);
}
.epg figcaption span,
.portrait figcaption span {
  font: 600 12px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 8px;
}

/* ---------- Qualification ---------- */

.split--qual {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.split--qual .section-head { margin-bottom: 36px; }
.qual-steps { display: grid; gap: 14px; margin-bottom: 28px; }
.qual-steps li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  transition: border-color 0.3s, background-color 0.3s;
}
.qual-steps li:hover { border-color: var(--line-strong); background: rgba(22, 36, 64, 0.6); }
.qual-steps__code {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  font: 700 15px/1 var(--font-mono);
  color: var(--c);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: color-mix(in srgb, var(--c) 10%, transparent);
  box-shadow: 0 0 24px -6px color-mix(in srgb, var(--c) 60%, transparent);
}
.qual-steps h3 { font-size: 1.12rem; margin: 2px 0 6px; letter-spacing: -0.01em; }
.qual-steps p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font: 500 12.5px/1 var(--font-mono);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.terminal {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #03060c;
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9), 0 0 80px -40px rgba(46, 230, 160, 0.35);
  overflow: hidden;
}
.terminal__badge {
  margin-left: auto;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.terminal__body {
  margin: 0;
  padding: 22px 22px 26px;
  font-size: clamp(10.5px, 1.05vw, 13px);
  line-height: 2.1;
  color: #c6d2e5;
  overflow-x: auto;
}
/* inline-block + the <pre> newlines give exactly one line per entry */
.t-line { display: inline-block; }
.js .terminal .t-line { opacity: 0; transform: translateX(-6px); transition: opacity 0.3s, transform 0.3s var(--ease); }
.js .terminal .t-line.is-on { opacity: 1; transform: none; }
.t-cmd b { color: var(--dye-green); font-weight: 600; margin-right: 4px; }
.t-dim { color: var(--faint); }
.t-line i { font-style: normal; font-weight: 600; }
.t-iq { color: var(--dye-blue); }
.t-oq { color: var(--dye-green); }
.t-pq { color: var(--dye-yellow); }
.t-line em {
  font-style: normal;
  font-weight: 700;
  color: #03140d;
  background: var(--dye-green);
  padding: 1px 6px;
  border-radius: 4px;
}
.t-ok { color: var(--dye-green); font-weight: 600; text-shadow: 0 0 14px rgba(46, 230, 160, 0.6); }
.t-cursor {
  display: inline-block;
  width: 8px; height: 1.1em;
  margin-left: 6px;
  vertical-align: -0.2em;
  background: var(--dye-green);
  animation: blink 1s steps(1) infinite;
}
.js .terminal:not(.is-done) .t-cursor { visibility: hidden; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Reporting ---------- */

.protocol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
  margin-bottom: 72px;
}
.protocol::before {
  content: "";
  position: absolute;
  top: 27px; left: 6%; right: 6%;
  height: 1px;
  background: linear-gradient(90deg, var(--dye-blue), var(--dye-green), var(--dye-yellow), var(--dye-red));
  opacity: 0.45;
}
.protocol::after {
  content: "";
  position: absolute;
  top: 24px; left: 6%;
  width: 60px; height: 7px;
  border-radius: 50%;
  background: radial-gradient(closest-side, #fff, var(--cyan) 40%, transparent);
  filter: blur(1px);
  animation: travel 4.5s ease-in-out infinite;
}
@keyframes travel {
  0% { left: 6%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(94% - 60px); opacity: 0; }
}
.protocol__step {
  position: relative;
  padding: 0 6px;
}
.protocol__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font: 600 15px/1 var(--font-mono);
  color: var(--cyan);
  box-shadow: 0 0 0 6px var(--bg), 0 0 30px -6px rgba(60, 224, 255, 0.5);
}
.protocol__step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.protocol__step p { font-size: 15px; color: var(--muted); margin: 0; }

.report-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.principles { display: grid; gap: 16px; }
.principles li {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}
.principles__k {
  display: inline-block;
  font: 600 1.25rem/1.2 var(--font-display);
  margin-bottom: 6px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.principles p { margin: 0; color: var(--muted); font-size: 15px; }

.report-doc {
  perspective: 1400px;
}
.report-doc__paper {
  position: relative;
  padding: 32px 34px 36px;
  border-radius: 6px;
  background: linear-gradient(180deg, #f3f6fb, #e3e9f2);
  color: #0b1426;
  font-size: 13px;
  transform: rotateY(-10deg) rotateX(4deg) rotateZ(1.5deg);
  box-shadow: 0 50px 80px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.4) inset, 0 0 120px -30px rgba(60, 224, 255, 0.35);
  transition: transform 0.8s var(--ease);
}
.report-doc:hover .report-doc__paper { transform: rotateY(-3deg) rotateX(1deg) rotateZ(0.5deg); }
.report-doc__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 2px solid #0b1426;
}
.report-doc__head strong {
  display: block;
  font: 700 20px/1.1 var(--font-display);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.report-doc__head span { font: 500 11.5px/1 var(--font-mono); color: #4a5a75; }
.report-doc__head svg { width: 34px; height: 34px; }
.report-doc__h {
  margin: 16px 0 10px;
  font: 700 11.5px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #24324a;
}
.skel {
  display: block;
  height: 8px;
  margin-bottom: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #c9d3e2, #d8e0eb);
}
.report-doc table {
  width: 100%;
  border-collapse: collapse;
  font: 500 12px/1 var(--font-mono);
}
.report-doc th,
.report-doc td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid #c9d3e2;
}
.report-doc th { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #4a5a75; }
.report-doc td:last-child { color: #0a8a5a; font-weight: 600; }
.report-doc__sign {
  margin-top: 26px;
  display: inline-flex;
  flex-direction: column;
  padding-top: 8px;
  border-top: 1px solid #0b1426;
  font: 500 11px/1.4 var(--font-mono);
  color: #4a5a75;
}
.report-doc__sig {
  font: italic 500 22px/1 var(--font-display);
  color: #0b1426;
  margin: -34px 0 12px;
  letter-spacing: -0.02em;
}
.report-doc__stamp {
  position: absolute;
  right: 30px; bottom: 34px;
  padding: 10px 14px;
  border: 3px solid #0a8a5a;
  border-radius: 8px;
  font: 700 12px/1.3 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: #0a8a5a;
  transform: rotate(-12deg);
  opacity: 0.85;
  mix-blend-mode: multiply;
}
.report-doc__stamp b { font-size: 14px; }
.js .report-doc .report-doc__stamp { opacity: 0; transform: rotate(-12deg) scale(2.2); transition: opacity 0.3s 0.6s, transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 0.6s; }
.js .report-doc.is-visible .report-doc__stamp { opacity: 0.85; transform: rotate(-12deg) scale(1); }

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}
.portrait { margin: 0; }
.portrait__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #070d1a;
}
.portrait__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portrait__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(60, 224, 255, 0.04) 1px, transparent 1px) 0 0 / 100% 4px,
    linear-gradient(180deg, transparent 60%, rgba(4, 7, 13, 0.55));
}
/* Scanner sweep: a bright beam with a fading "read" band of grid lines trailing behind it. */
.portrait__scan {
  position: absolute;
  left: 0; right: 0;
  top: -24%;
  height: 24%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  animation: portrait-scan 7s cubic-bezier(0.45, 0, 0.55, 1) infinite 0.8s;
}
.portrait__scan::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(180deg, rgba(60, 224, 255, 0.22) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(60, 224, 255, 0.1) 0 1px, transparent 1px 24px),
    linear-gradient(180deg, transparent, rgba(60, 224, 255, 0.28));
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 85%);
  mask-image: linear-gradient(180deg, transparent, #000 85%);
}
.portrait__scan::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #a6f3ff 18%, #fff 50%, #a6f3ff 82%, transparent);
  box-shadow: 0 0 14px 2px rgba(60, 224, 255, 0.75), 0 0 40px 6px rgba(60, 224, 255, 0.35);
}
@keyframes portrait-scan {
  0% { top: -24%; opacity: 0; }
  6% { opacity: 1; }
  52% { opacity: 1; }
  58% { top: 100%; opacity: 0; }
  100% { top: 100%; opacity: 0; }
}
.portrait__corner {
  position: absolute;
  width: 26px; height: 26px;
  border: 2px solid var(--cyan);
  z-index: 1;
}
.portrait__corner--tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.portrait__corner--tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.portrait__corner--bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.portrait__corner--br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.portrait figcaption { border-top: 0; padding-inline: 2px; }
.about__copy .section-head { margin-bottom: 28px; }
.about__copy .section-head h2 { margin-bottom: 10px; }
.about__role {
  font: 500 14px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0;
}
.about__bio p { color: #c3cfe2; font-size: 17px; }
.about__copy .chips { margin-top: 28px; }

/* ---------- Contact ---------- */

.contact-card {
  position: relative;
  padding: clamp(44px, 7vw, 88px) clamp(24px, 6vw, 80px);
  border-radius: 28px;
  text-align: center;
  background: linear-gradient(180deg, rgba(14, 24, 44, 0.9), rgba(6, 11, 22, 0.9));
  border: 1px solid var(--line-strong);
  overflow: hidden;
  isolation: isolate;
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%);
}
.contact-card__glow {
  position: absolute;
  z-index: -1;
  left: 50%; top: -40%;
  width: 720px; height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(60, 224, 255, 0.22), rgba(46, 230, 160, 0.08) 50%, transparent);
  filter: blur(10px);
}
.contact-card h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 20px;
}
.contact-card .section-lead { margin: 0 auto 36px; }
.email-reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
.email-reveal__out:empty { display: none; }
.email-reveal__out {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.email-scramble,
.email-link {
  font: 600 clamp(1.15rem, 3vw, 1.9rem)/1.2 var(--font-mono);
  letter-spacing: 0.02em;
}
.email-scramble { color: var(--muted); }
.email-scramble .ok { color: var(--text); }
.email-link {
  color: var(--text);
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 14px;
  border: 1px solid rgba(60, 224, 255, 0.4);
  background: rgba(60, 224, 255, 0.06);
  box-shadow: 0 0 40px -12px rgba(60, 224, 255, 0.6);
  transition: background-color 0.25s, border-color 0.25s;
  overflow-wrap: anywhere;
}
.email-link:hover { background: rgba(60, 224, 255, 0.12); border-color: var(--cyan); }
.contact-card__fine {
  margin: 28px 0 0;
  font: 400 12px/1.5 var(--font-mono);
  color: var(--faint);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.site-footer p { margin: 0; font-size: 13.5px; color: var(--faint); }
.brand--footer { gap: 6px; }
.brand--footer .brand__mark { width: auto; height: 34px; }
.brand--footer .brand__word { font-size: 17px; }
.site-footer__seq { font-family: var(--font-mono); letter-spacing: 0.2em; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card:last-child { grid-column: 1 / -1; }
  .split { grid-template-columns: 1fr; gap: 0; }
  .data-points { margin-bottom: 40px; }
  .split--qual { grid-template-columns: 1fr; gap: 48px; }
  .report-split { grid-template-columns: 1fr; gap: 56px; }
  .report-doc { max-width: 560px; margin-inline: auto; width: 100%; }
  .about { grid-template-columns: 1fr 1.2fr; gap: 48px; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: calc(var(--header-h) - 4px);
    left: 16px; right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: #060b16;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .no-js .site-nav { position: static; opacity: 1; visibility: visible; transform: none; }
  .site-nav a:not(.btn) { padding: 12px 14px; font-size: 16px; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav a.is-active { background: rgba(60, 224, 255, 0.07); }
  .site-nav .btn { margin: 8px 0 0; justify-content: center; }
  .site-header { background: rgba(4, 7, 13, 0.6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

  .hero__helix { width: 100%; opacity: 0.3; }
  .eyebrow { line-height: 1.5; align-items: flex-start; }
  .eyebrow .pulse-dot { margin-top: 0.45em; }
  .hud { display: none; }
  .spec-strip { grid-template-columns: 1fr 1fr; }
  .spec-strip__cell:nth-child(2) { border-right: 0; }
  .spec-strip__cell:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }

  .service-grid { grid-template-columns: 1fr; }
  .protocol { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .protocol::before,
  .protocol::after { display: none; }
  .about { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
  .epg__legend { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .shell { width: min(100% - 32px, var(--shell)); }
  .site-header .brand__mark { height: 42px; }
  .site-header .brand__word { font-size: 24px; }
  .hero { padding-top: calc(var(--header-h) + 32px); }
  .data-points { grid-template-columns: 1fr; }
  .protocol { grid-template-columns: 1fr; }
  .spec-strip__cell { padding: 14px 16px; }
  .spec-strip strong { font-size: 14.5px; }
  .epg__title { font-size: 11px; }
  .terminal__badge { display: none; }
  .terminal__body { padding: 18px 16px 20px; font-size: 2.3vw; line-height: 2; }
  .report-doc__paper { padding: 24px 20px 28px; }
  .report-doc__stamp { right: 16px; bottom: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { transform: none; }
  .js .hero__line,
  .js .hero__lead,
  .js .hero__actions,
  .js .hero .eyebrow {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }
  .portrait__scan,
  .protocol::after { display: none; }
}
