/* ═══════════════════════════════════════════════════════════════
   ALTERING TECHNOLOGIES — neural engineering studio
   palette drawn from the brand mark: #147DAC → #25B7D3 → #3CDBEA
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #02060a;
  --bg-2: #040b12;
  --panel: rgba(7, 17, 26, 0.72);
  --ink: #c7e2ee;
  --ink-dim: #5e8294;
  --blue-deep: #147dac;
  --blue: #25b7d3;
  --blue-hi: #3cdbea;
  --line: rgba(37, 183, 211, 0.18);
  --line-hi: rgba(60, 219, 234, 0.45);
  --grad: linear-gradient(100deg, #147dac, #25b7d3 55%, #3cdbea);
  --display: "Syne", sans-serif;
  --body: "Instrument Sans", sans-serif;
  --mono: "Spline Sans Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blue-hi); color: var(--bg); }

a { color: inherit; }

/* ── atmosphere ──────────────────────────────────────────────── */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 40; }
.fx-vignette {
  background: radial-gradient(ellipse 130% 100% at 50% 0%, transparent 60%, rgba(0, 2, 5, 0.5) 100%);
}
.fx-grain {
  opacity: 0.45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.045'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.85s steps(3) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-16px, 10px); }
  66% { transform: translate(12px, -12px); }
  100% { transform: translate(0, 0); }
}

/* ── buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  padding: 15px 26px;
  border: 1px solid var(--line-hi);
  color: var(--blue-hi);
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.3, 1);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--grad);
  color: #02161f;
  border-color: transparent;
  box-shadow: 0 0 28px rgba(37, 183, 211, 0.35);
}
.btn-primary:hover { box-shadow: 0 6px 40px rgba(60, 219, 234, 0.55); }
.btn-arrow { transition: transform 0.25s; }
.btn:hover .btn-arrow { transform: translateX(5px); }

.btn-ghost:hover { background: rgba(37, 183, 211, 0.1); }
.btn-small { padding: 10px 18px; font-size: 10px; }

/* ── nav ─────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 14px clamp(20px, 5vw, 56px);
  background: linear-gradient(to bottom, rgba(2, 6, 10, 0.92), rgba(2, 6, 10, 0.6));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s;
}
.nav.is-scrolled { padding-top: 9px; padding-bottom: 9px; }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.nav-mark { height: 42px; width: 42px; filter: drop-shadow(0 0 12px rgba(60, 219, 234, 0.45)); }
.nav-word {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: #e9f7fc;
  line-height: 1.25;
  display: flex;
  flex-direction: column;
}
.nav-word em {
  font-style: normal;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--blue);
}

.nav-menu { display: flex; align-items: center; gap: 26px; }
.nav-menu a:not(.btn) {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-dim);
  position: relative;
  transition: color 0.2s;
}
.nav-menu a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--grad);
  transition: width 0.25s;
}
.nav-menu a:not(.btn):hover { color: var(--blue-hi); }
.nav-menu a:not(.btn):hover::after { width: 100%; }
.nav-cta { margin-left: 8px; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 40px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line-hi);
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--blue-hi);
  box-shadow: 0 0 8px rgba(60, 219, 234, 0.5);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.2s;
}
.nav.is-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
#neural {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 60% at 78% 30%, rgba(20, 125, 172, 0.22), transparent 65%),
    radial-gradient(ellipse 40% 45% at 15% 80%, rgba(60, 219, 234, 0.1), transparent 60%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 140px clamp(20px, 6vw, 72px) 80px;
  max-width: 1060px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--blue);
  margin-bottom: 26px;
}
.kicker-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue-hi);
  box-shadow: 0 0 12px var(--blue-hi);
  animation: pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(42px, 7.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: #eefaff;
  text-wrap: balance;
}
/* headline spans stay invisible (but laid out) until their decode starts,
   so the plain text never flashes before the animation */
.hero-title .scramble { opacity: 0; }
.hero-title .scramble.is-live { opacity: 1; }

.hero-title .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 34px rgba(37, 183, 211, 0.35));
}

.hero-sub {
  max-width: 560px;
  margin-top: 28px;
  font-size: 18px;
  color: var(--ink-dim);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

.hero-stats {
  display: flex;
  gap: clamp(28px, 5vw, 64px);
  margin-top: 64px;
}
.hero-stats div { border-left: 1px solid var(--line); padding-left: 18px; }
.hero-stats dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 34px;
  color: #eefaff;
  font-variant-numeric: tabular-nums;
}
.hero-stats dd {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--ink-dim);
  margin-top: 4px;
}

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 44px;
  border: 1px solid var(--line-hi);
  border-radius: 14px;
  z-index: 2;
}
.hero-scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 3px; height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--blue-hi);
  animation: scroll-hint 1.8s ease-in-out infinite;
}
@keyframes scroll-hint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ── trusted-by strip ────────────────────────────────────────── */
.brands {
  background: var(--bg-2); /* solid backdrop — the blend trick needs it */
  border-top: 1px solid var(--line);
  padding: 30px clamp(20px, 6vw, 72px);
}
.brands-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--ink-dim);
  text-align: center;
  margin-bottom: 22px;
}
.brands-row {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 26px clamp(28px, 4vw, 52px);
}
/* uniform monochrome: grayscale + invert turns dark-on-light artwork into
   light-on-dark; screen blending sinks any leftover background into the
   strip's dark backdrop */
.brands-row img {
  height: 41px;
  width: auto;
  filter: grayscale(1) invert(1) brightness(1.55) contrast(0.88);
  mix-blend-mode: screen;
  opacity: 0.62;
  transition: opacity 0.25s;
}
.brands-row img:hover { opacity: 1; }
.brands-row .brand-tall { height: 55px; }  /* stacked / square wordmarks */
.brands-row .brand-tile { height: 50px; }  /* app-tile style logos */
.brands-row .brand-sm { height: 27px; }    /* wide wordmarks read large — keep modest */
.brands-row .brand-md { height: 38px; }
/* artwork that is already light-on-dark — skip the invert */
.brands-row .brand-noinvert { filter: grayscale(1) brightness(1.4) contrast(0.9); }

@media (max-width: 720px) {
  .brands-row { gap: 20px 26px; }
  .brands-row img { height: 31px; }
  .brands-row .brand-tall { height: 41px; }
  .brands-row .brand-tile { height: 38px; }
  .brands-row .brand-sm { height: 21px; }
  .brands-row .brand-md { height: 29px; }
}

/* ── ticker ──────────────────────────────────────────────────── */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y; /* horizontal drag is ours, vertical scroll stays native */
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.ticker.is-grabbing { cursor: grabbing; }
.ticker-track {
  display: inline-block;
  will-change: transform;
}
.ticker-track span {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
  margin: 0 18px;
}
.ticker-track i { color: var(--blue-deep); font-style: normal; }

/* ── sections ────────────────────────────────────────────────── */
.section {
  padding: clamp(80px, 11vw, 140px) clamp(20px, 6vw, 72px);
  max-width: 1280px;
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 22px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-no {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--blue);
  letter-spacing: 0.2em;
}
.section-no::after { content: " /"; color: var(--ink-dim); }
.section-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 54px);
  letter-spacing: -0.01em;
  color: #eefaff;
}

.lede { font-size: 19px; color: var(--ink); max-width: 56ch; }

/* placeholders the owner will replace */
.placeholder {
  position: relative;
  margin-top: 22px;
  padding: 16px 18px;
  font-size: 15px;
  color: var(--ink-dim);
  border: 1px dashed rgba(37, 183, 211, 0.35);
  background: rgba(20, 125, 172, 0.05);
}
.placeholder::before {
  content: attr(data-note);
  position: absolute;
  top: -9px; left: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--blue);
  background: var(--bg);
  padding: 0 8px;
}
.placeholder-inline {
  color: var(--ink-dim);
  border-bottom: 1px dashed rgba(37, 183, 211, 0.4);
}

/* ── about ───────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.about-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 30px;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.about-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 44px; height: 2px;
  background: var(--grad);
  box-shadow: 0 0 12px var(--blue-hi);
}
.about-logo { width: 78%; max-width: 280px; display: block; margin: 6px auto 22px; }
.about-facts { list-style: none; }
.about-facts li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.about-facts b {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--blue);
  white-space: nowrap;
  padding-top: 3px;
}
.about-facts span { text-align: right; }

/* ── services ────────────────────────────────────────────────── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.svc {
  position: relative;
  padding: 30px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.svc::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 200px at var(--mx, 50%) var(--my, 0%), rgba(60, 219, 234, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.svc:hover {
  transform: translateY(-5px);
  border-color: var(--line-hi);
  box-shadow: 0 18px 50px rgba(20, 125, 172, 0.25);
}
.svc:hover::after { opacity: 1; }

.svc-icon {
  font-size: 26px;
  color: var(--blue-hi);
  margin-bottom: 18px;
  filter: drop-shadow(0 0 10px rgba(60, 219, 234, 0.6));
}
.svc h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  color: #eefaff;
  margin-bottom: 10px;
}
.svc p { font-size: 14.5px; color: var(--ink-dim); }
.svc-tag {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--blue);
  border: 1px solid var(--line);
  padding: 5px 10px;
}

/* ── process ─────────────────────────────────────────────────── */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 28px 24px 26px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(20, 125, 172, 0.08), transparent 55%);
  transition: border-color 0.3s, transform 0.3s;
}
.steps li:hover { border-color: var(--line-hi); transform: translateY(-4px); }
.steps li::after {
  content: "";
  position: absolute;
  top: 50%; right: -14px;
  width: 10px; height: 10px;
  border-top: 1px solid var(--line-hi);
  border-right: 1px solid var(--line-hi);
  transform: translateY(-50%) rotate(45deg);
}
.steps li:last-child::after { display: none; }

.step-no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--blue-hi);
}
.steps h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  color: #eefaff;
  margin: 10px 0 8px;
}
.steps p { font-size: 14px; color: var(--ink-dim); }

/* ── lab / code window ───────────────────────────────────────── */
.lab-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.lab-list { list-style: none; margin-top: 26px; }
.lab-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
}
.lab-list i { color: var(--blue-hi); font-style: normal; }

.code-window {
  background: #030a10;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(2, 8, 14, 0.8), 0 0 60px rgba(20, 125, 172, 0.12);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.code-bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(37, 183, 211, 0.25);
}
.code-bar i:first-child { background: rgba(60, 219, 234, 0.7); }
.code-bar span {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
}
.code-body {
  padding: 22px 24px 26px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  color: #9fd3e2;
  min-height: 320px;
  white-space: pre-wrap;
  word-break: break-word;
}
.code-body .tok-k { color: var(--blue-hi); }
.code-body .tok-s { color: #7ee0a8; }
.code-body .tok-c { color: #4a6a7a; }
.code-body .tok-f { color: #8ab8ff; }
.code-caret {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--blue-hi);
  vertical-align: -2px;
  animation: caret 0.9s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* ── contact ─────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact-channels { list-style: none; margin-top: 30px; }
.contact-channels li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 15.5px;
}
.contact-channels b {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--blue);
}
.contact-channels a {
  color: var(--blue-hi);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  width: fit-content;
  transition: border-color 0.2s;
}
.contact-channels a:hover { border-color: var(--blue-hi); }

.contact-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--blue);
  border: 1px solid var(--line);
  padding: 12px 16px;
  width: fit-content;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(22px, 3vw, 36px);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--ink-dim);
}
.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
  background: rgba(2, 8, 13, 0.8);
  border: 1px solid var(--line);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.field select { appearance: none; cursor: pointer; }
.field input::placeholder, .field textarea::placeholder { color: rgba(94, 130, 148, 0.55); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue-hi);
  box-shadow: 0 0 0 1px var(--blue-hi), 0 0 24px rgba(60, 219, 234, 0.18);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff6a5e; }
.field-err {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #ff8a7e;
  min-height: 13px;
}

.btn-submit { grid-column: 1 / -1; justify-content: center; }
.form-status {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--blue-hi);
  min-height: 18px;
  text-align: center;
}
.form-status.is-error { color: #ff8a7e; }

/* ── footer ──────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 48px clamp(20px, 6vw, 72px) 28px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  max-width: 1280px;
  margin: 0 auto;
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-mark { height: 52px; }
.footer-brand strong {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #e9f7fc;
}
.footer-brand p { font-size: 13px; color: var(--ink-dim); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-dim);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--blue-hi); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: 1280px;
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
}

/* ── scroll reveal ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .fx-grain, .ticker-track, .kicker-dot, .hero-scroll span, .code-caret { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── responsive ──────────────────────────────────────────────── */
@media (max-width: 980px) {
  .about-grid, .lab-grid, .contact-grid { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
}
@media (max-width: 720px) {
  .nav { flex-wrap: wrap; gap: 0; }
  .nav-brand { order: 1; margin-right: 0; }
  .nav-burger { order: 2; display: flex; margin-left: auto; }
  .nav-menu {
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.38s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.3s;
  }
  .nav.is-open .nav-menu { max-height: 380px; opacity: 1; }
  .nav-menu a:not(.btn) {
    padding: 15px 2px;
    border-top: 1px solid var(--line);
    font-size: 13px;
  }
  .nav-menu a:not(.btn):first-child { margin-top: 14px; }
  .nav-menu a:not(.btn)::after { display: none; }
  .nav-cta { margin: 14px 0 8px; justify-content: center; }
  .hero-stats { flex-wrap: wrap; gap: 22px; }
  .contact-form { grid-template-columns: 1fr; }
}
