/*
 * TechX Cybersecurity marketing site, design v2 (5 Oct 2026).
 *
 * One dark navy theme, one light-blue accent used only for links, buttons
 * and glow. Instrument Serif for display, Inter for everything else, both
 * self-hosted under fonts/ (SIL Open Font License 1.1).
 *
 * Type scale: 17px base, ratio 1.25. Spacing: 4px steps.
 * Motion lives in js/motion.js and the keyframes below; all of it stops
 * under prefers-reduced-motion.
 */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
}

:root {
  /* colour */
  --bg: #0b1120;
  --bg-raised: #0f1724;
  --text: #e8eef5;
  --muted: #8a99ad;
  --accent: #85c4e8;
  --accent-ink: #0b1120;
  --line: rgba(255, 255, 255, 0.08);
  --line-hover: rgba(255, 255, 255, 0.15);
  --glow: rgba(133, 196, 232, 0.55);

  /* type */
  --display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs--1: 0.85rem;    /* 13.6 */
  --fs-0: 1.0625rem;   /* 17 */
  --fs-1: 1.328rem;    /* 21.3 */
  --fs-2: 1.66rem;     /* 26.6 */
  --fs-3: 2.075rem;    /* 33.2 */
  --fs-4: 2.594rem;    /* 41.5 */
  --fs-5: 3.242rem;    /* 51.9 */
  --fs-6: 4.053rem;    /* 64.8 */
  --fs-8: 6.333rem;    /* 101.3 */
  --fs-9: 7.916rem;    /* 126.6 */

  /* space (4px steps) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --section: clamp(56px, 9vw + 20px, 128px);

  --radius: 12px;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 68px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-0) / 1.65 var(--sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

/* 2.5% film grain over everything; static, so it costs one composited layer. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.035;
  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 values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

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

a {
  color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(var(--fs-4), 5vw, var(--fs-6));
}

h3 {
  font-family: var(--sans);
  font-size: var(--fs-1);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p {
  text-wrap: pretty;
}

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

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section);
}

.skip {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 200;
  padding: var(--s-3) var(--s-4);
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: var(--s-4);
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--s-6);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 500 var(--fs-0) / 1 var(--sans);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 0 transparent, 0 10px 30px -18px var(--glow);
}
.btn-primary:hover {
  background: #9dd1ef;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 4px rgba(133, 196, 232, 0.14),
    0 14px 40px -12px var(--glow);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: rgba(11, 17, 32, 0.35);
  color: var(--text);
  border-color: rgba(133, 196, 232, 0.35);
}
.btn-ghost:hover {
  border-color: var(--accent);
  box-shadow: 0 0 28px -8px rgba(133, 196, 232, 0.45);
}

.btn:disabled {
  cursor: progress;
  opacity: 0.6;
  transform: none;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.4s ease,
    border-color 0.4s ease,
    backdrop-filter 0.4s ease;
}
.site-header.is-scrolled {
  background: rgba(11, 17, 32, 0.72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-0);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand img {
  width: 32px;
  height: 32px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--s-4);
  border: 1px solid var(--line-hover);
  border-radius: var(--radius);
  color: var(--text);
  font-size: var(--fs--1);
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.25s ease, box-shadow 0.35s var(--ease-out);
}
.nav-cta:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px -8px var(--glow);
}

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

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(100svh, 980px);
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + var(--s-16)) var(--s-20);
  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-art picture,
.approach-art picture,
.contact-art picture {
  width: 100%;
  height: 100%;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}
.hero-flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2.4s ease 0.4s;
}
.hero-flow.is-live {
  opacity: 1;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 17, 32, 0.75) 0%, rgba(11, 17, 32, 0.15) 45%, transparent 70%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 17, 32, 0) 22%);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  left: -12vw;
  top: 18%;
  width: 70vw;
  max-width: 900px;
  aspect-ratio: 1.3;
  background: radial-gradient(closest-side, rgba(133, 196, 232, 0.13), rgba(133, 196, 232, 0.04) 55%, transparent);
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
}

.hero-eyebrow {
  color: var(--accent);
  font-size: var(--fs-0);
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-bottom: var(--s-6);
}

.hero h1 {
  font-size: clamp(4rem, 11vw, var(--fs-9));
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-8);
}
.hero h1 .line {
  display: block;
}

.hero-copy {
  max-width: 34ch;
  color: #c3cfdc;
  font-size: var(--fs-1);
  line-height: 1.5;
  margin-bottom: var(--s-10);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

/* load sequence */
.hero-eyebrow,
.hero h1 .line,
.hero-copy,
.hero-actions {
  animation: rise-in 1.1s var(--ease-out) both;
}
.hero-eyebrow { animation-delay: 0.1s; }
.hero h1 .line:nth-child(1) { animation-delay: 0.22s; }
.hero h1 .line:nth-child(2) { animation-delay: 0.36s; }
.hero-copy { animation-delay: 0.55s; }
.hero-actions { animation-delay: 0.7s; }
.hero-art img {
  animation: art-in 2.2s var(--ease-out) both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
@keyframes art-in {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes breathe {
  from { opacity: 0.75; transform: translate3d(0, 0, 0); }
  to { opacity: 1; transform: translate3d(2vw, -1vw, 0); }
}

/* ---------- Scroll reveals (only when JS is present) ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Distinction ---------- */

.distinction h2 {
  max-width: 14ch;
  margin-bottom: var(--s-8);
}

.lead {
  max-width: 36ch;
  font-family: var(--display);
  font-size: clamp(var(--fs-2), 3.2vw, var(--fs-4));
  line-height: 1.2;
  color: var(--muted);
  letter-spacing: -0.005em;
}
.lead strong {
  display: block;
  margin-top: var(--s-2);
  font-weight: 400;
  color: var(--text);
}

.pair {
  margin-top: var(--s-16);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.pair-side {
  padding: var(--s-10) var(--s-10) var(--s-10) 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.pair-side + .pair-side {
  padding-left: var(--s-10);
  border-left: 1px solid var(--line);
}
.pair-kind {
  color: var(--muted);
  font-size: var(--fs--1);
  font-weight: 500;
}
.pair-side > p:not(.pair-kind):not(.pair-measure) {
  color: var(--muted);
  max-width: 44ch;
}
.pair-measure {
  margin-top: auto;
  padding-top: var(--s-6);
  font-family: var(--display);
  font-size: var(--fs-2);
  line-height: 1.2;
}
.pair-it .pair-measure {
  color: var(--muted);
}
/* The cybersecurity side is the point, so it carries the light. */
.pair-cyber {
  position: relative;
}
.pair-cyber::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent) 70%, transparent);
  box-shadow: 0 0 18px 1px rgba(133, 196, 232, 0.5);
}
.pair-cyber .pair-kind {
  color: var(--accent);
}

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

.services {
  background: var(--bg-raised);
  border-block: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  align-items: end;
  gap: var(--s-8);
  margin-bottom: var(--s-12);
}
.section-head p {
  color: var(--muted);
  max-width: 40ch;
  justify-self: end;
}

.cards {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}
.card {
  position: relative;
  padding: var(--s-8) var(--s-6) var(--s-10);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.js .card[data-reveal] {
  transition:
    border-color 0.3s ease,
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
}
.card:hover {
  border-color: var(--line-hover);
}
.card:hover::before {
  opacity: 0.9;
}
.card h3 {
  margin-bottom: var(--s-3);
}
.card p {
  color: var(--muted);
}

/* ---------- Approach ---------- */

.approach {
  overflow: hidden;
}
.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--s-16);
}
.approach-art {
  position: relative;
  aspect-ratio: 4 / 3;
  -webkit-mask-image: radial-gradient(closest-side, #000 50%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 50%, transparent 100%);
}
.approach-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: drift 22s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes drift {
  0% { transform: scale(1.08) translate3d(-1.2%, 0.8%, 0) rotate(-0.6deg); }
  100% { transform: scale(1.12) translate3d(1.2%, -1%, 0) rotate(0.6deg); }
}

.approach h2 {
  margin-bottom: var(--s-10);
}

.steps {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}
.steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: baseline;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-1);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.step-n {
  color: var(--accent);
  font-size: var(--fs--1);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.inline-cta {
  margin-top: var(--s-10);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4) var(--s-6);
}
.inline-cta p {
  color: var(--muted);
  font-size: var(--fs--1);
}

/* ---------- Platform ---------- */

.platform {
  padding-top: 0;
}
.platform-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end;
  gap: var(--s-12);
  padding: clamp(32px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(133, 196, 232, 0.1), transparent 55%),
    linear-gradient(180deg, var(--bg-raised), var(--bg));
  overflow: hidden;
}
/* a slow line of light that travels along the panel's top edge */
.platform-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 16px 1px rgba(133, 196, 232, 0.45);
  animation: travel 9s ease-in-out infinite alternate;
}
@keyframes travel {
  from { transform: translateX(-20%); }
  to { transform: translateX(170%); }
}
.agency-logo {
  width: clamp(160px, 22vw, 240px);
  height: auto;
  margin-bottom: var(--s-8);
}
.platform h2 {
  margin-bottom: var(--s-5);
}
.platform-copy p {
  color: var(--muted);
  max-width: 46ch;
  font-size: var(--fs-1);
  line-height: 1.5;
}
.platform-note {
  font-family: var(--display);
  font-size: clamp(var(--fs-2), 2.6vw, var(--fs-3));
  line-height: 1.15;
  justify-self: end;
  max-width: none;
  text-align: right;
  text-wrap: balance;
}

/* ---------- Selective ---------- */

.selective {
  padding-top: 0;
}
.selective-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--s-16);
  align-items: start;
}
.selective h2 {
  max-width: 13ch;
  margin-bottom: var(--s-6);
}
.selective-grid > div > p {
  color: var(--muted);
  max-width: 44ch;
}
.signals {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}
.signals li {
  position: relative;
  padding: var(--s-5) 0 var(--s-5) var(--s-8);
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: var(--fs-2);
  line-height: 1.2;
}
.signals li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 10px 1px rgba(133, 196, 232, 0.5);
}

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

.contact {
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding-block: clamp(72px, 12vw, 160px);
}
.contact-art {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.contact-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 85% 50%;
}
.contact-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(11, 17, 32, 0) 25%, rgba(11, 17, 32, 0) 80%, var(--bg) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-16);
  align-items: center;
}
.contact h2 {
  max-width: 14ch;
  margin-bottom: var(--s-6);
}
.contact-copy p {
  color: var(--muted);
  max-width: 44ch;
}

.form-panel {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line-hover);
  border-radius: var(--radius);
  background: rgba(11, 17, 32, 0.62);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
}

.form-panel label {
  display: block;
  margin-bottom: var(--s-3);
  font-size: var(--fs--1);
  font-weight: 500;
  color: var(--text);
}

.field {
  display: flex;
  gap: var(--s-2);
}
.field input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 52px;
  padding: 0 var(--s-4);
  border: 1px solid var(--line-hover);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: 400 var(--fs-0) / 1 var(--sans);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.field input::placeholder {
  color: #6f7f94;
}
.field input:hover {
  border-color: rgba(255, 255, 255, 0.24);
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(133, 196, 232, 0.22);
}
.field .btn {
  min-height: 52px;
  flex: 0 0 auto;
}

.form-note {
  margin-top: var(--s-4);
  font-size: var(--fs--1);
  color: var(--muted);
}
.form-note-strong {
  color: var(--text);
}

/* Cloudflare Turnstile's slot; takes no room for most visitors (collapsed
   until it needs an interactive click). */
.check {
  margin-top: var(--s-3);
  width: 100%;
  min-width: 0;
}
.check-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 0;
}
.check-frame.is-interactive {
  height: 65px;
}
.check-slot {
  position: absolute;
  inset: 0;
}
.check-status {
  margin: 0;
}
.check-status.is-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.check-status.is-error {
  font-size: var(--fs--1);
  color: #ffb4a8;
}
.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--s-8) 0 calc(var(--s-8) + env(safe-area-inset-bottom, 0px));
  color: var(--muted);
  font-size: var(--fs--1);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-8);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.footer-brand img {
  width: 20px;
  height: 20px;
}
.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  padding-block: var(--s-2);
}
.footer-legal a:hover {
  color: var(--accent);
  text-decoration: underline;
}

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

@media (max-width: 960px) {
  .section-head,
  .approach-grid,
  .selective-grid,
  .contact-grid,
  .platform-panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .section-head p {
    justify-self: start;
  }
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .approach-grid {
    gap: var(--s-8);
  }
  .approach-art {
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }
  .platform-note {
    justify-self: start;
    text-align: left;
  }
  .selective-grid,
  .contact-grid {
    gap: var(--s-10);
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 60px;
  }
  .hero {
    min-height: min(100svh, 860px);
    align-items: flex-end;
    padding-block: calc(var(--header-h) + var(--s-12)) var(--s-12);
  }
  /* On phones the art sits in the top of the hero and the words sit
     below it on plain navy, instead of fighting the lines for contrast. */
  .hero-art {
    inset: 0 0 auto;
    height: 64%;
  }
  .hero-art img {
    object-position: 56% 50%;
  }
  .hero-shade {
    background: linear-gradient(0deg, var(--bg) 0%, rgba(11, 17, 32, 0.6) 30%, rgba(11, 17, 32, 0) 60%, rgba(11, 17, 32, 0.4) 100%);
  }
  .hero-glow {
    top: auto;
    bottom: 0;
    left: -30vw;
    width: 130vw;
  }
  .hero h1 {
    font-size: clamp(4rem, 21vw, 6rem);
    margin-bottom: var(--s-6);
  }
  .hero-copy {
    font-size: var(--fs-0);
    margin-bottom: var(--s-8);
  }
  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .pair {
    grid-template-columns: minmax(0, 1fr);
    margin-top: var(--s-12);
  }
  .pair-side,
  .pair-side + .pair-side {
    padding: var(--s-8) 0;
    border-left: 0;
  }
  .pair-side + .pair-side {
    border-top: 1px solid var(--line);
  }
  .pair-measure {
    padding-top: var(--s-3);
  }

  .card {
    padding: var(--s-6) var(--s-5) var(--s-8);
  }
  .steps li {
    grid-template-columns: 36px 1fr;
    font-size: var(--fs-0);
  }
  .signals li {
    font-size: var(--fs-1);
  }

  .contact-art img {
    object-position: 100% 50%;
    opacity: 0.8;
  }
  .field {
    flex-direction: column;
  }
  .field .btn {
    width: 100%;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Reduced motion: everything still ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
