:root {
  color-scheme: dark;
  --bg: #02060d;
  --bg-2: #06111c;
  --panel: rgba(6, 18, 31, 0.9);
  --panel-soft: rgba(9, 27, 44, 0.76);
  --text: #f2fbff;
  --muted: #afc3ce;
  --dim: #8199a7;
  --blue: #126dff;
  --cyan: #18dcff;
  --cyan-bright: #8bf5ff;
  --orange: #ff9c3d;
  --success: #9ff6d1;
  --danger: #ffb4a9;
  --line: rgba(24, 220, 255, 0.22);
  --line-soft: rgba(255, 255, 255, 0.1);
  --max: 1200px;
  --header-h: 66px;
  --radius: 16px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 76% 4%, rgba(18, 109, 255, 0.22), transparent 32rem),
    radial-gradient(circle at 10% 30%, rgba(24, 220, 255, 0.1), transparent 30rem),
    linear-gradient(180deg, var(--bg), #04101b 48%, #02060d);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background:
    linear-gradient(rgba(24, 220, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 220, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.045;
  background: repeating-linear-gradient(180deg, transparent 0 7px, rgba(24, 220, 255, 0.24) 8px);
  mix-blend-mode: screen;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
main, section, article, form, div { min-width: 0; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--cyan-bright);
  color: #02060d;
  font-weight: 850;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header,
.hero,
.section,
.early-cta,
.site-footer { padding-inline: max(20px, calc((100vw - var(--max)) / 2)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: rgba(2, 6, 13, 0.88);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}
.brand {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.brand b { color: var(--cyan); }
.brand img {
  width: 48px;
  height: 42px;
  flex: 0 0 48px;
  border-radius: 7px;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: screen;
}
nav { display: flex; align-items: center; gap: 4px; }
nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}
nav a:hover { color: var(--text); background: rgba(24, 220, 255, 0.08); }
nav .nav-cta { border-color: var(--line); color: var(--cyan-bright); }
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(24, 220, 255, 0.07);
  color: var(--text);
  cursor: pointer;
}
.menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.menu-icon,
.menu-icon::before,
.menu-icon::after { display: block; width: 20px; height: 2px; margin: auto; border-radius: 99px; background: var(--cyan); transition: 160ms ease; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }

[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

.hero {
  min-height: min(760px, calc(100svh - var(--header-h)));
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.78fr);
  align-items: center;
  gap: 28px;
  padding-block: clamp(68px, 8vw, 98px);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.hero-media { position: absolute; inset: 0 0 0 31%; z-index: -3; margin: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(1.18) contrast(1.09); }
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 6, 13, 1) 0%, rgba(2, 6, 13, 0.96) 35%, rgba(2, 6, 13, 0.55) 69%, rgba(2, 6, 13, 0.72) 100%),
    radial-gradient(circle at 72% 44%, rgba(24, 220, 255, 0.13), transparent 38%);
}
.hero-hud { position: absolute; inset: 18px; z-index: -1; pointer-events: none; overflow: hidden; }
.hud-corner { position: absolute; width: 74px; height: 48px; opacity: .54; }
.hud-corner-top { top: 0; right: 0; border-top: 1px solid var(--cyan); border-right: 1px solid var(--cyan); }
.hud-corner-bottom { bottom: 0; left: 0; border-bottom: 1px solid var(--cyan); border-left: 1px solid var(--cyan); }
.hud-corner::after { content: ""; position: absolute; width: 19px; height: 2px; background: var(--cyan-bright); box-shadow: 0 0 12px var(--cyan); }
.hud-corner-top::after { top: -1px; right: 18px; }
.hud-corner-bottom::after { bottom: -1px; left: 18px; }
.hud-scan { position: absolute; top: 0; bottom: 0; left: 29%; width: 18%; opacity: 0; background: linear-gradient(90deg, transparent, rgba(139, 245, 255, .035), rgba(139, 245, 255, .2), rgba(139, 245, 255, .035), transparent); transform: translateX(-180%); }
.hud-signal { position: absolute; right: 15%; border: 1px solid rgba(139, 245, 255, .34); border-radius: 50%; opacity: 0; transform: translate(-50%, -50%) scale(.2); }
.hud-signal-one { top: 38%; width: 86px; height: 86px; }
.hud-signal-two { top: 38%; width: 178px; height: 178px; }
.hero-copy { grid-column: 1; max-width: 760px; }
.eyebrow,
.section-kicker,
.card-number,
.map-status {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; overflow-wrap: break-word; }
h1 { margin-bottom: 22px; font-size: clamp(3.1rem, 6.6vw, 5.7rem); line-height: 0.91; letter-spacing: -0.045em; }
h2 { margin-bottom: 16px; font-size: clamp(2.25rem, 4.8vw, 4rem); line-height: 0.98; letter-spacing: -0.03em; }
h3 { margin-bottom: 10px; font-size: 1.3rem; line-height: 1.12; }
.hero-copy > p:not(.eyebrow),
.section-heading > p,
.heading-row > p,
.map-copy > p:not(.map-status),
.sister-link p,
.proof-card > div > p { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.1rem); }
.hero-copy > p:not(.eyebrow) { max-width: 680px; font-size: clamp(1.06rem, 2vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 9px;
  position: relative;
  overflow: hidden;
  color: inherit;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.28), transparent 70%);
  transform: translateX(-130%);
  transition: transform 360ms ease;
}
.button:hover::before { transform: translateX(130%); }
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #02060d; box-shadow: 0 12px 34px rgba(24, 220, 255, 0.22); }
.button-secondary { border-color: var(--line); background: rgba(24, 220, 255, 0.055); }
.button:disabled { opacity: 0.58; cursor: wait; }
.hero-outcomes { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; max-width: 690px; margin: 32px 0 0; padding: 0; }
.hero-outcomes li { position: relative; display: grid; gap: 3px; padding: 12px 12px 12px 16px; border-left: 2px solid var(--cyan); background: rgba(2, 6, 13, 0.52); }
.hero-outcomes li::before { content: ""; position: absolute; top: 17px; left: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--cyan-bright); box-shadow: 0 0 8px var(--cyan); }
.hero-outcomes strong { font-size: 0.86rem; }
.hero-outcomes span { color: var(--dim); font-size: 0.72rem; }

.early-cta {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(18, 109, 255, 0.12), rgba(24, 220, 255, 0.05), rgba(2, 6, 13, 0.4));
}
.early-cta p { margin: 0; color: var(--muted); }
.early-cta strong { color: var(--text); }
.early-cta a { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; color: var(--cyan-bright); font-weight: 850; text-decoration: none; white-space: nowrap; }
.early-cta a span { display: inline-block; transition: transform 160ms ease; }
.early-cta a:hover span, .early-cta a:focus-visible span { transform: translateX(4px); }

.section { padding-block: clamp(64px, 8vw, 100px); }
.section-heading { max-width: 800px; margin-bottom: 34px; }
.heading-row { max-width: none; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.58fr); align-items: end; gap: 46px; }
.heading-row > p { margin-bottom: 18px; }

.system-map-card,
.build-card {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.system-map-card::before,
.build-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(24, 220, 255, 0.14), transparent 34%);
}
.system-map-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(270px, 0.42fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(7, 24, 40, 0.94), rgba(2, 7, 14, 0.98));
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.05);
}
.system-map-card::after { content: ""; position: absolute; inset: 0 auto 0 -24%; z-index: 1; width: 19%; pointer-events: none; opacity: 0; background: linear-gradient(90deg, transparent, rgba(139, 245, 255, .05), rgba(139, 245, 255, .2), rgba(139, 245, 255, .05), transparent); transform: translateX(-140%); }
.map-copy, .system-map { position: relative; z-index: 2; }
.map-copy { padding: clamp(26px, 4vw, 48px); }
.map-status { display: flex; align-items: center; gap: 8px; }
.map-status span { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); animation: pulse 2s ease-in-out infinite; }
.map-copy h3 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.map-steps { list-style: none; display: grid; gap: 9px; margin: 28px 0 0; padding: 0; }
.map-steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.86rem; }
.map-steps span { color: var(--cyan); font-size: 0.7rem; font-weight: 900; }
.system-map { width: 100%; height: auto; min-height: 430px; }
.system-map-mobile { display: none; }
.map-paths path { stroke-dasharray: .12 .045; animation: data-flow 5.5s linear infinite; }
.map-paths .return-path { opacity: 0.56; animation-duration: 8s; }
.map-traces { opacity: .78; }
.map-traces path { stroke-dasharray: .018 .26; animation: trace-packet 6.4s linear infinite; }
.map-traces path:nth-child(2) { animation-delay: -2.1s; animation-duration: 7.2s; }
.map-traces path:nth-child(3) { animation-delay: -4.3s; animation-duration: 7.8s; }
.map-node rect { fill: rgba(3, 13, 24, 0.96); stroke: rgba(24, 220, 255, 0.34); stroke-width: 1.5; }
.map-node.core rect { fill: rgba(8, 36, 59, 0.98); stroke: var(--cyan); filter: drop-shadow(0 0 14px rgba(24, 220, 255, 0.28)); }
.map-node text { fill: #e9fbff; font: 800 13px Inter, sans-serif; letter-spacing: 1.2px; }
.map-node .sub { fill: #7fa6b7; font-size: 10px; font-weight: 600; letter-spacing: .4px; }
@keyframes data-flow { to { stroke-dashoffset: -1; } }
@keyframes trace-packet { to { stroke-dashoffset: -.55; } }
@keyframes pulse { 50% { opacity: .45; transform: scale(.72); } }

.build-section { border-block: 1px solid var(--line-soft); background: linear-gradient(180deg, rgba(18, 109, 255, 0.07), rgba(2, 6, 13, 0.4)); }
.build-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.build-card {
  min-height: 370px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}
.build-card:hover { border-color: rgba(24, 220, 255, 0.48); box-shadow: 0 30px 78px rgba(0, 0, 0, 0.46); }
.build-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2, 6, 13, 0.02), rgba(2, 6, 13, 0.28) 40%, rgba(2, 6, 13, 0.96) 82%); }
.build-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1) contrast(1.04); transition: transform 420ms ease, filter 260ms ease; }
.build-card:hover img, .build-card:focus-within img { transform: scale(1.045); filter: saturate(1.2) contrast(1.08); }
.build-card > div { position: relative; z-index: 2; width: calc(100% - 24px); margin: 12px; padding: 19px; border: 1px solid rgba(24, 220, 255, 0.2); border-radius: 11px; background: rgba(3, 13, 24, 0.85); backdrop-filter: blur(10px); }
.build-card > div::after { content: ""; position: absolute; right: 18px; bottom: 11px; width: 28px; height: 2px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); box-shadow: 0 0 10px rgba(24, 220, 255, .75); opacity: .8; }
.build-card p:not(.card-number) { margin-bottom: 0; color: var(--muted); font-size: 0.9rem; }

.proof-section { background: rgba(3, 8, 15, 0.58); }
.proof-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.72fr);
  gap: 48px;
  align-items: center;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 85% 20%, rgba(24, 220, 255, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(7, 22, 37, 0.96), rgba(2, 7, 14, 0.96));
  box-shadow: var(--shadow);
}
.proof-card::after { content: ""; position: absolute; top: 0; left: 0; width: 2px; height: 72px; background: linear-gradient(transparent, var(--cyan-bright), transparent); box-shadow: 0 0 14px var(--cyan); opacity: .72; }
.proof-card ul { list-style: none; display: grid; gap: 0; margin: 0; padding: 0; }
.proof-card li { position: relative; display: grid; gap: 5px; padding: 15px 18px 15px 0; border-top: 1px solid var(--line-soft); }
.proof-card li:last-child { border-bottom: 1px solid var(--line-soft); }
.proof-card li span { color: var(--cyan); font-size: 0.72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.proof-card li strong { font-size: 0.95rem; }
.proof-card li::after { content: ""; position: absolute; right: 1px; top: 23px; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.proof-card li:nth-child(2)::after { animation-delay: -.8s; }
.proof-card li:nth-child(3)::after { animation-delay: -1.6s; }

.sister-link {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  background:
    linear-gradient(120deg, rgba(2, 6, 13, 0.98), rgba(4, 15, 27, 0.76) 58%, rgba(2, 6, 13, 0.93)),
    url("/assets/trident-cornerstone-strip.jpg") center / cover no-repeat;
  border-block: 1px solid var(--line);
}
.sister-link > div { max-width: 790px; }

.contact {
  background:
    linear-gradient(180deg, rgba(2, 6, 13, .94) 0%, rgba(2, 9, 17, .68) 34%, rgba(2, 6, 13, .9) 100%),
    radial-gradient(circle at 50% 28%, rgba(24, 220, 255, .12), transparent 43%),
    url("/assets/trident-contact-systems-lattice.webp") center 34% / cover no-repeat;
}
.contact-form {
  position: relative;
  overflow: hidden;
  max-width: 920px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(2, 9, 17, 0.92);
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.42);
}
.contact-form::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .56; background: linear-gradient(90deg, transparent, rgba(24, 220, 255, .08), transparent); transform: translateX(-130%); }
.contact-form > * { position: relative; z-index: 1; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display: grid; gap: 7px; margin-bottom: 16px; color: var(--text); font-size: 0.9rem; font-weight: 750; }
label > span, .form-note { color: var(--dim); font-weight: 550; }
input, select, textarea { width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid rgba(184, 220, 234, 0.23); border-radius: 8px; background: rgba(1, 6, 12, 0.92); color: var(--text); }
textarea { resize: vertical; }
.form-consent { grid-template-columns: 20px 1fr; align-items: start; }
.form-consent input { width: 20px; min-height: 20px; margin-top: 3px; }
.form-trap { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
.form-status { min-height: 26px; margin: 14px 0 0; color: var(--muted); font-weight: 750; }
.form-status[data-tone="success"] { color: var(--success); }
.form-status[data-tone="error"] { color: var(--danger); }
.email-fallback, .form-note { margin: 8px 0 0; color: var(--muted); font-size: 0.88rem; }
.email-fallback a, .form-note a { color: var(--cyan-bright); font-weight: 800; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 30px; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer div { display: grid; gap: 3px; }
.site-footer strong { color: var(--text); }
.site-footer span { font-size: 0.8rem; }
.site-footer a { color: var(--cyan-bright); font-weight: 800; }

@media (prefers-reduced-motion: no-preference) {
  body::before { animation: grid-drift 30s linear infinite alternate; }
  .hero-media img { animation: hero-breathe 14s ease-in-out infinite alternate; }
  .hud-scan { animation: hero-scan 9s ease-in-out infinite; }
  .hud-signal-one { animation: signal-ring 5.8s ease-out infinite; }
  .hud-signal-two { animation: signal-ring 5.8s ease-out 1.4s infinite; }
  .hud-corner::after { animation: hud-glint 4.2s ease-in-out infinite; }
  .hero-outcomes li::before, .proof-card li::after { animation: status-light 2.6s ease-in-out infinite; }
  .system-map-card::after { animation: panel-scan 10s ease-in-out infinite; }
  .build-card > div::after { animation: lane-signal 3.6s ease-in-out infinite; }
  .proof-card::after { animation: proof-trace 7.5s linear infinite; }
  .contact-form::before { animation: form-scan 10s ease-in-out infinite; }
}

@keyframes grid-drift { to { background-position: 48px 24px, 24px 48px; } }
@keyframes hero-breathe { to { transform: scale(1.028); } }
@keyframes hero-scan { 0%, 48%, 100% { opacity: 0; transform: translateX(-180%); } 58% { opacity: .75; } 76% { opacity: .35; transform: translateX(430%); } }
@keyframes signal-ring { 0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.2); } 12% { opacity: .42; } 72% { opacity: 0; transform: translate(-50%, -50%) scale(1); } }
@keyframes hud-glint { 0%, 100% { opacity: .3; } 48% { opacity: 1; } }
@keyframes status-light { 50% { opacity: .34; box-shadow: 0 0 3px var(--cyan); } }
@keyframes panel-scan { 0%, 58%, 100% { opacity: 0; transform: translateX(-140%); } 68% { opacity: .8; } 82% { opacity: .2; transform: translateX(690%); } }
@keyframes lane-signal { 0%, 100% { opacity: .3; transform: translateX(-8px); } 50% { opacity: 1; transform: translateX(8px); } }
@keyframes proof-trace { from { transform: translateY(-80px); } to { transform: translateY(calc(100% + 80px)); } }
@keyframes form-scan { 0%, 55%, 100% { opacity: 0; transform: translateX(-130%); } 68% { opacity: .8; } 84% { opacity: .25; transform: translateX(230%); } }

:focus-visible { outline: 3px solid rgba(139, 245, 255, 0.72); outline-offset: 3px; }

@media (max-width: 980px) {
  .system-map-card { grid-template-columns: 1fr; }
  .map-copy { padding-bottom: 0; }
  .system-map { min-height: 0; }
  .build-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .build-card:last-child { grid-column: 1 / -1; min-height: 320px; }
}

@media (max-width: 760px) {
  :root { --header-h: 62px; }
  .site-header { min-height: var(--header-h); padding-inline: 14px; }
  .brand { font-size: 0.74rem; letter-spacing: .055em; }
  .brand img { width: 44px; height: 38px; flex-basis: 44px; }
  .menu-toggle { display: block; flex: 0 0 46px; }
  nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 12px;
    right: 12px;
    display: none;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 0 0 14px 14px;
    background: rgba(2, 6, 13, 0.98);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.58);
  }
  nav[data-open="true"] { display: grid; }
  nav a { min-height: 46px; padding-inline: 13px; }
  nav .nav-cta { margin-top: 3px; }
  .hero { min-height: 670px; grid-template-columns: 1fr; align-items: end; padding-block: 56px; }
  .hero-media { inset: 25% -24% 0 -24%; }
  .hero-media img { object-position: center; }
  .hero-scrim { background: linear-gradient(180deg, rgba(2, 6, 13, .98) 0%, rgba(2, 6, 13, .86) 48%, rgba(2, 6, 13, .93) 100%), radial-gradient(circle at 52% 60%, rgba(24, 220, 255, .15), transparent 42%); }
  h1 { font-size: clamp(3rem, 13vw, 4.7rem); }
  h2 { font-size: clamp(2.2rem, 10vw, 3.3rem); }
  .early-cta { padding-block: 14px; align-items: flex-start; flex-direction: column; gap: 5px; }
  .heading-row { grid-template-columns: 1fr; gap: 0; }
  .build-grid { display: flex; overflow-x: auto; gap: 12px; padding: 0 2px 16px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .build-card, .build-card:last-child { min-width: min(84vw, 360px); min-height: 340px; grid-column: auto; scroll-snap-align: start; }
  .proof-card { grid-template-columns: 1fr; gap: 24px; }
  .sister-link { align-items: flex-start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 20px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 430px) {
  .site-header, .hero, .section, .early-cta, .site-footer { padding-inline: 16px; }
  .brand span { max-width: 180px; }
  .hero { min-height: 690px; padding-top: 44px; }
  .actions { display: grid; }
  .button { width: 100%; }
  .hero-outcomes { grid-template-columns: 1fr 1fr; }
  .hero-outcomes li:last-child { grid-column: 1 / -1; }
  .system-map-card { margin-inline: -4px; }
  .map-copy { padding: 22px 20px 0; }
  .system-map { display: none; }
  .system-map-mobile {
    list-style: none;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 8px 20px 22px;
  }
  .system-map-mobile li {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 2px 10px;
    padding: 13px 0;
    border-top: 1px solid var(--line-soft);
  }
  .system-map-mobile li::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 41px;
    bottom: -8px;
    width: 1px;
    background: linear-gradient(var(--cyan), transparent);
  }
  .system-map-mobile li:last-child::before { display: none; }
  .system-map-mobile span { grid-row: 1 / 3; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--cyan); font-size: .65rem; font-weight: 900; }
  .system-map-mobile strong { font-size: .9rem; }
  .system-map-mobile small { color: var(--dim); }
  .build-card, .build-card:last-child { min-width: 100%; }
  .contact {
    background:
      linear-gradient(180deg, rgba(2, 6, 13, .88), rgba(2, 9, 17, .72) 38%, rgba(2, 6, 13, .94)),
      url("/assets/trident-contact-systems-lattice.webp") 50% 18% / auto 100% no-repeat;
  }
  .proof-card { padding: 22px; }
  .site-footer { font-size: .86rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .system-map-card, .build-card { transform: none !important; }
  .map-pulses { display: none; }
}

/* Restrained isometric and sequence motion integration — 2026-07-25 */
.hero-media {
  --hero-x: 0px;
  --hero-y: 0px;
  transform: translate3d(var(--hero-x), var(--hero-y), 0) scale(1.025);
  transition: transform 180ms ease-out;
}
.hero-hud {
  --hud-x: 0px;
  --hud-y: 0px;
  transform: translate3d(var(--hud-x), var(--hud-y), 0);
  transition: transform 180ms ease-out;
}

.system-map-card { perspective: 1200px; }
.system-map {
  transform: perspective(1000px) rotateX(7deg) rotateZ(-1deg) translateZ(18px);
  transform-origin: 50% 55%;
  transition: transform 260ms ease;
}
.system-map-card:hover .system-map,
.system-map-card:focus-within .system-map { transform: perspective(1000px) rotateX(5deg) rotateZ(-.5deg) translateZ(24px); }
.map-paths path, .map-traces path { animation-play-state: paused; }
.system-map-card.is-scene-active .map-paths path,
.system-map-card.is-scene-active .map-traces path { animation-play-state: running; }
.map-node { cursor: pointer; }
.map-node rect { transition: fill 160ms ease, stroke 160ms ease, filter 160ms ease; }
.map-node:hover rect,
.map-node:focus rect,
.map-node.is-active rect {
  fill: rgba(8,36,59,.98);
  stroke: var(--cyan-bright);
  filter: drop-shadow(0 0 9px rgba(24,220,255,.5));
}

.build-card { perspective: 900px; }
.build-card::before {
  opacity: .5;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(24,220,255,.16), transparent 32%),
    linear-gradient(rgba(24,220,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24,220,255,.08) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
  mask-image: linear-gradient(transparent 15%, #000 72%);
  transform: translateZ(8px) rotateX(2deg);
}
.build-card img { transform: translateZ(10px) scale(1.025); }
.build-card:hover img,
.build-card:focus img,
.build-card:focus-within img { transform: translateZ(18px) scale(1.05); }
.build-card > div { transform: translateZ(28px); }
.build-card:focus { border-color: rgba(139,245,255,.72); }

.motion-ready [data-sequence] {
  opacity: 0;
  transform: perspective(1200px) translateY(22px) rotateX(3deg);
}
.motion-ready [data-sequence].is-visible {
  opacity: 1;
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: opacity 420ms ease, transform 520ms cubic-bezier(.2,.75,.2,1), border-color 180ms ease, box-shadow 180ms ease;
}
.motion-ready [data-sequence]:nth-child(2) { transition-delay: 80ms; }
.motion-ready [data-sequence]:nth-child(3) { transition-delay: 160ms; }

input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(24,220,255,.1); }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: rgba(255,180,169,.72); }

@media (max-width: 760px) {
  .hero-media, .hero-hud { transform: none; }
  .system-map { display: none; transform: none; }
  .system-map-mobile {
    list-style: none;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 10px 22px 24px;
  }
  .system-map-mobile li {
    display: grid;
    grid-template-columns: 34px minmax(0,1fr);
    gap: 2px 10px;
    padding: 13px 0;
    border-top: 1px solid var(--line-soft);
  }
  .system-map-mobile span { grid-row: 1 / 3; color: var(--cyan); font-size: .68rem; font-weight: 900; }
  .system-map-mobile small { color: var(--dim); }
  .build-grid { display: grid; grid-template-columns: 1fr; overflow: visible; padding: 0; }
  .build-card, .build-card:last-child { min-width: 0; width: 100%; min-height: 330px; }
  .build-card, .build-card img, .build-card > div, .build-card::before { transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media, .hero-hud, .system-map, .build-card img, .build-card > div { transform: none !important; }
  .map-paths path, .map-traces path { animation: none !important; }
  .motion-ready [data-sequence] { opacity: 1; transform: none; }
}
@media (max-width: 760px) {
  .system-map-card { transform: none !important; }
}
/* Sequence effects never hide unvisited content or create blank full-page captures. */
.motion-ready [data-sequence] { opacity: 1; transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)); }
.motion-ready [data-sequence].is-visible { animation: lane-settle 480ms cubic-bezier(.2,.75,.2,1) 1 both; }
@keyframes lane-settle {
  from { opacity: .68; transform: perspective(1200px) translateY(18px) rotateX(3deg); }
  to { opacity: 1; transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)); }
}
@media (max-width: 760px) {
  .motion-ready [data-sequence], .motion-ready [data-sequence].is-visible { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .motion-ready [data-sequence].is-visible { animation: none; } }
