:root {
  --ink: #10171a;
  --ink-2: #182226;
  --paper: #f4f5f2;
  --white: #fff;
  --line: #ccd1ce;
  --muted: #66716f;
  --cyan: #00b9cf;
  --cyan-light: #73d9e4;
  --amber: #e7a43a;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Manrope", sans-serif; line-height: 1.55; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { display: block; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 2000; padding: 10px 14px; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 1000; height: 76px; border-bottom: 1px solid rgba(255,255,255,.14); color: white; transition: background .25s, border-color .25s; }
.site-header.scrolled { background: rgba(16,23,26,.96); border-color: rgba(255,255,255,.08); backdrop-filter: blur(14px); }
.nav-shell { width: min(var(--max), calc(100% - 48px)); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: "IBM Plex Mono", monospace; font-size: 14px; letter-spacing: 0; white-space: nowrap; }
.brand strong { color: var(--cyan-light); font-weight: 500; }
.brand-mark { position: relative; width: 30px; height: 30px; display: inline-grid; place-items: center; }
.brand-mark span { position: absolute; border: 2px solid var(--cyan); border-top-color: transparent; border-bottom-color: transparent; border-radius: 50%; }
.brand-mark span:first-child { width: 28px; height: 28px; }
.brand-mark span:nth-child(2) { width: 18px; height: 18px; }
.brand-mark i { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); }
nav { display: flex; align-items: center; gap: 30px; font-size: 13px; }
nav a:not(.nav-cta) { color: #dfe5e3; transition: color .2s; }
nav a:hover { color: white; }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 17px; color: var(--ink); background: var(--cyan-light); font-weight: 700; }
.nav-cta svg { width: 16px; }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: white; background: transparent; border: 1px solid rgba(255,255,255,.25); }

.hero { position: relative; min-height: max(700px, calc(100svh - 40px)); color: white; background: #10191c; overflow: hidden; }
.hero-media { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(8,15,17,.98) 0%, rgba(8,15,17,.92) 36%, rgba(8,15,17,.35) 70%, rgba(8,15,17,.45) 100%), url("assets/lab-source.png"); background-size: cover; background-position: center 44%; filter: saturate(.72) contrast(1.08); }
.hero-grid { position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(90deg, black, transparent 70%); }
.hero-inner { position: relative; z-index: 2; width: min(var(--max), calc(100% - 48px)); min-height: max(700px, calc(100svh - 40px)); margin: auto; padding: 150px 0 92px; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(420px, .88fr); align-items: center; gap: 70px; }
.eyebrow { margin: 0 0 28px; display: flex; align-items: center; gap: 18px; color: var(--cyan-light); font-family: "IBM Plex Mono", monospace; font-size: 12px; text-transform: uppercase; }
.eyebrow span + span { padding-left: 18px; border-left: 1px solid currentColor; color: #c1cac8; }
.eyebrow.dark { color: #007f90; }
.eyebrow.dark span + span { color: var(--muted); }
h1, h2, h3, p { letter-spacing: 0; }
h1 { max-width: 800px; margin: 0; font-size: clamp(52px, 5.7vw, 84px); line-height: .98; font-weight: 600; }
.hero-lede { max-width: 650px; margin: 32px 0 0; color: #c9d0ce; font-size: 18px; line-height: 1.7; }
.hero-actions { margin-top: 38px; display: flex; align-items: center; gap: 28px; }
.button { min-height: 50px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 0; cursor: pointer; font-weight: 700; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button svg { width: 18px; }
.button-primary { background: var(--cyan); color: #071113; }
.button-primary:hover { background: var(--cyan-light); }
.button-dark { background: var(--ink); color: white; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.text-link svg { width: 17px; }
.text-link.light { color: var(--cyan-light); }
.measurement-panel { align-self: end; margin-bottom: 20px; background: rgba(11,22,25,.74); border: 1px solid rgba(115,217,228,.28); backdrop-filter: blur(8px); }
.panel-head { height: 46px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.12); color: #c9d0ce; font-family: "IBM Plex Mono", monospace; font-size: 11px; text-transform: uppercase; }
.status { display: flex; align-items: center; gap: 7px; color: var(--cyan-light); }
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.plot { width: 100%; height: auto; }
.trace { fill: none; stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.trace-a { stroke: var(--cyan-light); }
.trace-b { stroke: var(--amber); }
.marker-line { stroke: rgba(255,255,255,.45); stroke-dasharray: 4 4; }
.marker-dot { fill: white; }
.plot-readout { padding: 12px 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; color: #8f9c99; border-top: 1px solid rgba(255,255,255,.12); font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.plot-readout b { display: block; color: white; font-size: 11px; }
.hero-index { position: absolute; z-index: 2; right: 24px; top: 50%; color: rgba(255,255,255,.38); font-family: "IBM Plex Mono", monospace; font-size: 10px; transform: rotate(90deg) translateX(50%); transform-origin: right center; }

.signal-strip { min-height: 88px; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--cyan); color: #071113; }
.signal-strip div { padding: 20px 28px; display: flex; align-items: center; gap: 14px; border-right: 1px solid rgba(7,17,19,.2); font-size: 13px; font-weight: 700; }
.signal-strip span { font-family: "IBM Plex Mono", monospace; font-size: 10px; opacity: .65; }

.section { width: min(var(--max), calc(100% - 48px)); margin: auto; padding: 130px 0; }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; column-gap: 100px; align-items: end; margin-bottom: 74px; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2, .lab-copy h2, .about h2, .contact h2 { margin: 0; font-size: clamp(38px, 4.6vw, 66px); line-height: 1.04; font-weight: 600; }
.section-heading > p:last-child { max-width: 480px; margin: 0 0 4px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.capability-list { border-top: 1px solid var(--line); }
.capability { min-height: 178px; padding: 32px 0; display: grid; grid-template-columns: 50px 64px 1.1fr .9fr; gap: 30px; align-items: start; border-bottom: 1px solid var(--line); }
.cap-number { color: #84908d; font-family: "IBM Plex Mono", monospace; font-size: 11px; }
.cap-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #9ba5a2; color: #007f90; }
.cap-icon svg { width: 22px; }
.capability h3 { margin: -5px 0 10px; font-size: 24px; font-weight: 600; }
.capability p { max-width: 560px; margin: 0; color: var(--muted); }
.capability ul { margin: 0; padding: 0; list-style: none; color: #3b4745; font-size: 13px; }
.capability li { padding: 6px 0 6px 17px; position: relative; }
.capability li::before { content: "+"; position: absolute; left: 0; color: #008fa1; font-family: "IBM Plex Mono", monospace; }

.lab-band { min-height: 760px; display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: white; }
.lab-image { min-height: 620px; background-image: linear-gradient(rgba(0,185,207,.08), rgba(16,23,26,.18)), url("assets/lab-source.png"); background-size: cover; background-position: center; }
.lab-copy { padding: 100px max(48px, calc((100vw - var(--max)) / 2)); padding-left: clamp(56px, 6vw, 110px); align-self: center; }
.lab-copy > p:not(.eyebrow) { max-width: 600px; color: #aeb9b6; font-size: 16px; line-height: 1.8; }
.process-list { margin: 42px 0 0; padding: 0; list-style: none; }
.process-list li { padding: 20px 0; display: grid; grid-template-columns: 44px 1fr; gap: 16px; border-top: 1px solid rgba(255,255,255,.15); }
.process-list span { color: var(--cyan-light); font-family: "IBM Plex Mono", monospace; font-size: 10px; }
.process-list b { font-size: 16px; }
.process-list p { margin: 5px 0 0; color: #93a19e; font-size: 13px; }

.section-heading.compact { display: block; }
.deliverable-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.deliverable { min-height: 330px; padding: 32px 28px; border-right: 1px solid var(--line); }
.deliverable:last-child { border: 0; }
.deliverable > svg { width: 26px; height: 26px; margin-bottom: 74px; color: #008fa1; }
.deliverable > span { display: block; margin-bottom: 15px; color: #6d7976; font-family: "IBM Plex Mono", monospace; font-size: 10px; text-transform: uppercase; }
.deliverable h3 { margin: 0 0 14px; font-size: 20px; line-height: 1.3; }
.deliverable p { color: var(--muted); font-size: 13px; }

.about { padding: 130px max(24px, calc((100vw - var(--max)) / 2)); color: white; background: #172327; overflow: hidden; }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.about-copy .large { margin: 0 0 28px; color: white; font-size: 22px; line-height: 1.55; }
.about-copy > p:not(.large) { color: #aeb9b6; line-height: 1.8; }
.about-copy .text-link { margin-top: 18px; }
.spectrum { margin-top: 110px; display: grid; grid-template-columns: auto repeat(5, 1fr) auto; align-items: center; gap: 0; color: #879592; font-family: "IBM Plex Mono", monospace; font-size: 10px; }
.spectrum i { height: 1px; background: linear-gradient(90deg, var(--cyan), rgba(115,217,228,.24)); position: relative; }
.spectrum i::before { content: ""; position: absolute; left: 50%; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.spectrum span:first-child { padding-right: 20px; color: var(--cyan-light); }
.spectrum span:last-child { padding-left: 20px; }

.contact { width: min(var(--max), calc(100% - 48px)); margin: auto; padding: 130px 0; display: grid; grid-template-columns: .85fr 1.15fr; gap: 110px; }
.contact-intro > p:not(.eyebrow) { max-width: 460px; color: var(--muted); line-height: 1.8; }
.email-link { margin-top: 32px; display: inline-flex; align-items: center; gap: 8px; padding-bottom: 4px; border-bottom: 1px solid #8c9895; font-family: "IBM Plex Mono", monospace; font-size: 13px; }
.email-link svg { width: 16px; }
.project-form { padding: 40px; background: white; border: 1px solid #d8dcda; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { display: block; margin-bottom: 22px; color: #4b5654; font-family: "IBM Plex Mono", monospace; font-size: 10px; text-transform: uppercase; }
input, select, textarea { width: 100%; margin-top: 8px; padding: 13px 0; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid #aeb7b4; border-radius: 0; outline: none; font-family: "Manrope", sans-serif; font-size: 15px; text-transform: none; }
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 1px var(--cyan); }
::placeholder { color: #929c99; }
.form-status { min-height: 20px; margin: 14px 0 0; color: #007f90; font-size: 12px; }

footer { padding: 45px max(24px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 35px; color: #c3ccca; background: #0c1214; font-size: 12px; }
.footer-brand { align-self: start; color: white; }
.footer-links { display: flex; gap: 24px; justify-self: end; }
.copyright { grid-column: 3; color: #778481; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .nav-shell { width: min(100% - 32px, var(--max)); }
  .menu-toggle { display: inline-flex; }
  nav { position: fixed; inset: 76px 0 auto; padding: 24px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); border-top: 1px solid rgba(255,255,255,.1); }
  nav.open { display: flex; }
  nav a { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 15px; }
  .nav-cta { margin-top: 20px; padding: 0 17px; justify-content: center; border: 0; }
  .hero-inner { grid-template-columns: 1fr; align-items: end; padding-top: 140px; }
  .measurement-panel { display: none; }
  .hero-media { background-position: 62% center; }
  .hero-copy { max-width: 740px; }
  .section-heading { grid-template-columns: 1fr; gap: 28px; }
  .capability { grid-template-columns: 44px 54px 1fr; }
  .capability ul { grid-column: 3; }
  .lab-band { grid-template-columns: 1fr; }
  .lab-image { min-height: 540px; }
  .lab-copy { padding: 80px 48px; }
  .deliverable-grid { grid-template-columns: 1fr 1fr; }
  .deliverable:nth-child(2) { border-right: 0; }
  .deliverable:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .about-inner { gap: 50px; }
  .contact { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 640px) {
  .site-header { height: 68px; }
  .nav-shell { width: calc(100% - 32px); }
  nav { top: 68px; height: calc(100svh - 68px); }
  .brand { font-size: 12px; gap: 9px; }
  .brand-mark { width: 26px; height: 26px; }
  .brand-mark span:first-child { width: 25px; height: 25px; }
  .brand-mark span:nth-child(2) { width: 16px; height: 16px; }
  .hero { min-height: calc(100svh - 34px); }
  .hero-inner { width: calc(100% - 32px); min-height: calc(100svh - 34px); padding: 120px 0 70px; }
  .hero-media { background-image: linear-gradient(180deg, rgba(8,15,17,.65), rgba(8,15,17,.96) 62%), url("assets/lab-source.png"); background-position: 58% center; }
  .hero-grid { background-size: 40px 40px; }
  .eyebrow { margin-bottom: 22px; flex-wrap: wrap; gap: 10px; font-size: 10px; }
  .eyebrow span + span { padding-left: 10px; }
  h1 { font-size: 45px; line-height: 1.02; }
  .hero-lede { margin-top: 24px; font-size: 15px; line-height: 1.65; }
  .hero-actions { margin-top: 28px; align-items: stretch; flex-direction: column; gap: 20px; }
  .button { width: 100%; }
  .hero-index { display: none; }
  .signal-strip { grid-template-columns: 1fr 1fr; }
  .signal-strip div { min-height: 68px; padding: 14px 16px; font-size: 11px; }
  .signal-strip div:nth-child(2) { border-right: 0; }
  .section { width: calc(100% - 32px); padding: 90px 0; }
  .section-heading { margin-bottom: 48px; }
  .section-heading h2, .lab-copy h2, .about h2, .contact h2 { font-size: 38px; }
  .section-heading > p:last-child { font-size: 14px; }
  .capability { padding: 28px 0; grid-template-columns: 32px 48px 1fr; gap: 14px; }
  .cap-number { grid-row: 1; }
  .cap-icon { width: 42px; height: 42px; }
  .capability h3 { margin-top: 0; font-size: 19px; }
  .capability p { font-size: 13px; }
  .capability ul { grid-column: 2 / -1; padding-left: 0; }
  .lab-image { min-height: 380px; }
  .lab-copy { padding: 76px 24px; }
  .lab-copy > p:not(.eyebrow) { font-size: 14px; }
  .deliverable-grid { grid-template-columns: 1fr; }
  .deliverable { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .deliverable > svg { margin-bottom: 44px; }
  .about { padding: 90px 24px; }
  .about-inner { grid-template-columns: 1fr; gap: 42px; }
  .about-copy .large { font-size: 18px; }
  .spectrum { margin-top: 70px; grid-template-columns: auto repeat(3, 1fr) auto; }
  .spectrum i:nth-of-type(4), .spectrum i:nth-of-type(5) { display: none; }
  .contact { width: calc(100% - 32px); padding: 90px 0; gap: 45px; }
  .email-link { font-size: 11px; }
  .project-form { padding: 26px 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  footer { grid-template-columns: 1fr; align-items: start; padding: 40px 24px; }
  .footer-links { justify-self: start; }
  .copyright { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button { transition: none; }
}
