/* ============ Tokens ============ */
:root{
  --ink: #0A2331;
  --ink-2: #0F2F40;
  --ink-3: #143A4E;
  --paper: #F1ECE2;
  --paper-2: #E7E0D2;

  --teal: #1D6E8C;
  --teal-deep: #123C52;
  --teal-light: #5FA8C4;
  --brand-cyan: #3FC0EE;
  --amber: #E2914B;
  --amber-deep: #C9722A;

  --line-on-ink: rgba(95,168,196,0.22);
  --line-on-ink-strong: rgba(95,168,196,0.4);
  --line-on-paper: rgba(18,60,82,0.14);

  --text-on-ink: #E7EEF0;
  --text-on-ink-muted: #86A7B4;
  --text-on-paper: #102A38;
  --text-on-paper-muted: #4C6270;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1180px;
  --radius: 3px;
}

/* ============ Reset ============ */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text-on-paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img, svg{ display:block; max-width:100%; }
a{ color: inherit; text-decoration:none; }
ul, ol{ list-style:none; margin:0; padding:0; }
h1,h2,h3,p{ margin:0; }
button{ font: inherit; cursor:pointer; }

::selection{ background: var(--amber); color: var(--ink); }

.skip-link{
  position:absolute; left:-9999px; top:0;
  background: var(--amber); color: var(--ink);
  padding: 10px 16px; z-index: 200; font-weight:600;
}
.skip-link:focus{ left: 16px; top: 16px; }

*:focus-visible{ outline: 2px solid var(--amber); outline-offset: 3px; }

.mono{ font-family: var(--font-mono); }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px){
  .container{ padding: 0 20px; }
}

/* ============ Buttons ============ */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn-primary{
  background: var(--amber);
  color: var(--ink);
}
.btn-primary:hover{ background: var(--amber-deep); transform: translateY(-1px); }
.btn-ghost{
  border-color: var(--line-on-ink-strong);
  color: var(--text-on-ink);
}
.btn-ghost:hover{ border-color: var(--teal-light); background: rgba(95,168,196,0.08); }
.btn-small{ padding: 10px 18px; font-size: 0.85rem; }
.btn-block{ width:100%; }

/* ============ Eyebrow ============ */
.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 16px;
}
.eyebrow::before{
  content:'';
  width: 20px; height: 1px;
  background: currentColor;
}
section.services .eyebrow, section.commitments .eyebrow{ color: var(--teal); }

/* ============ Header ============ */
.site-header{
  position: fixed; top:0; left:0; right:0; z-index: 100;
  background: rgba(10,35,49,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-on-ink);
  transition: background 0.25s ease;
}
.site-header.is-scrolled{ background: rgba(10,35,49,0.94); }

.header-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 32px;
  display:flex;
  align-items:center;
  gap: 28px;
}

.logo{ display:flex; align-items:center; gap:12px; color: var(--brand-cyan); margin-right: auto; }
.logo-icon{
  width: 32px; height: 32px; flex-shrink:0;
  filter: drop-shadow(0 0 5px rgba(63,192,238,0.4));
}
.logo-icon polygon{ fill: currentColor; }
.logo-icon .logo-bar{ fill:none; stroke: currentColor; stroke-width: 3.4; stroke-linejoin: round; }
.logo-icon .logo-shaft{ fill:none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.logo-icon .logo-node{ fill:none; stroke: currentColor; stroke-width: 2.6; }
.logo-icon .logo-trace{ stroke: currentColor; stroke-width: 2.2; }

.logo-text{ display:flex; flex-direction:column; line-height:1; }
.logo-text strong{
  font-family: var(--font-display); font-style:normal;
  font-size: 1.05rem; font-weight:700; letter-spacing: 0.02em;
  color: var(--brand-cyan);
}
.logo-text em{
  font-style:normal; font-family: var(--font-mono);
  font-size: 0.56rem; letter-spacing: 0.26em;
  color: var(--teal-light); margin-top: 3px;
}

.nav-menu{ display:flex; align-items:center; gap: 30px; }
.nav-menu a{
  font-size: 0.9rem; font-weight:500;
  color: var(--text-on-ink-muted);
  position:relative; padding: 4px 0;
  transition: color 0.18s ease;
}
.nav-menu a::after{
  content:''; position:absolute; left:0; bottom:-2px;
  width:0; height:1px; background: var(--amber);
  transition: width 0.2s ease;
}
.nav-menu a:hover{ color: var(--text-on-ink); }
.nav-menu a:hover::after{ width:100%; }

.header-cta{ flex-shrink:0; }

.nav-toggle{
  display:none;
  flex-direction:column; justify-content:center; align-items:center; gap:5px;
  width: 44px; height: 44px;
  background:none; border:none; padding:0; margin: -4px;
}
.nav-toggle span{
  display:block; width:100%; height:2px;
  background: var(--text-on-ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero{
  position:relative;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text-on-ink);
  overflow:hidden;
  padding: 150px 0 70px;
  display:flex;
  align-items:center;
}
.blueprint-grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(var(--line-on-ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-on-ink) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, black 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, black 30%, transparent 78%);
}

.hero-grid{
  position:relative; z-index:2;
  display:grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items:center;
  width:100%;
}
.hero-inner{ order:1; max-width: 620px; }
.schematic-anim{ order:2; width:100%; max-width: 440px; justify-self:end; }

.hero h1{
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 3.6vw + 1.1rem, 3.7rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-on-ink);
  margin-bottom: 22px;
}
.hero-sub{
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text-on-ink-muted);
  max-width: 52ch;
  margin-bottom: 34px;
}
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; }

.hero-tags{ position:absolute; inset:0; z-index:3; pointer-events:none; }
.hero-tags .tag{
  position:absolute;
  font-size: 0.68rem; letter-spacing: 0.08em;
  color: var(--teal-light);
  background: rgba(15,47,64,0.65);
  border: 1px solid var(--line-on-ink-strong);
  padding: 7px 12px;
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
  display:flex; align-items:center; gap:6px;
}
.hero-tags .tag:nth-child(1){ top: 10%; left: 4%; }
.hero-tags .tag:nth-child(2){ bottom: 6%; right: 5%; }
.hero-tags .tag:nth-child(3){ top: 14%; right: 4%; }
.tag-arrow{ color: var(--amber); }

/* Schematic animation */
.schematic-tangle path{ stroke: var(--line-on-ink-strong); stroke-width:2; fill:none; }
.schematic-tangle circle{ fill: var(--text-on-ink-muted); opacity:0.85; }
.schematic-clean path{
  stroke: var(--amber); stroke-width: 2.5; fill:none;
  stroke-dasharray: 400; stroke-dashoffset: 400;
}
.schematic-clean circle{ fill: var(--amber); opacity:0; }
.schematic-clean polygon{ fill: var(--amber); opacity:0; }

.schematic-anim.is-animated .schematic-tangle{ animation: fadeOut 1s ease forwards; animation-delay: 0.5s; }
.schematic-anim.is-animated .schematic-clean path{ animation: drawLine 1.3s ease forwards; animation-delay: 0.9s; }
.schematic-anim.is-animated .schematic-clean circle{ animation: popIn 0.35s ease forwards; }
.schematic-anim.is-animated .schematic-clean circle:nth-of-type(1){ animation-delay: 1.0s; }
.schematic-anim.is-animated .schematic-clean circle:nth-of-type(2){ animation-delay: 1.4s; }
.schematic-anim.is-animated .schematic-clean circle:nth-of-type(3){ animation-delay: 1.8s; }
.schematic-anim.is-animated .schematic-clean circle:nth-of-type(4){ animation-delay: 2.2s; }
.schematic-anim.is-animated .schematic-clean polygon{ animation: popIn 0.4s ease forwards; animation-delay: 2.3s; }

/* Two supporting lines: same reveal language as the hero line, quieter, so it reads as several systems coming online together */
.schematic-clean-2 path{
  stroke: var(--brand-cyan); stroke-width: 2; fill:none;
  stroke-dasharray: 300; stroke-dashoffset: 300;
}
.schematic-clean-2 circle{ fill: var(--brand-cyan); opacity:0; }
.schematic-clean-2 polygon{ fill: var(--brand-cyan); opacity:0; }

.schematic-clean-3 path{
  stroke: var(--teal-light); stroke-width: 2; fill:none;
  stroke-dasharray: 262; stroke-dashoffset: 262;
}
.schematic-clean-3 circle{ fill: var(--teal-light); opacity:0; }
.schematic-clean-3 polygon{ fill: var(--teal-light); opacity:0; }

.schematic-anim.is-animated .schematic-clean-2 path{ animation: drawLine 1.1s ease forwards; animation-delay: 1.2s; }
.schematic-anim.is-animated .schematic-clean-2 circle{ animation: popIn 0.3s ease forwards; }
.schematic-anim.is-animated .schematic-clean-2 circle:nth-of-type(1){ animation-delay: 1.3s; }
.schematic-anim.is-animated .schematic-clean-2 circle:nth-of-type(2){ animation-delay: 1.6s; }
.schematic-anim.is-animated .schematic-clean-2 circle:nth-of-type(3){ animation-delay: 1.9s; }
.schematic-anim.is-animated .schematic-clean-2 circle:nth-of-type(4){ animation-delay: 2.2s; }
.schematic-anim.is-animated .schematic-clean-2 polygon{ animation: popIn 0.35s ease forwards; animation-delay: 2.3s; }

.schematic-anim.is-animated .schematic-clean-3 path{ animation: drawLine 1s ease forwards; animation-delay: 1.5s; }
.schematic-anim.is-animated .schematic-clean-3 circle{ animation: popIn 0.3s ease forwards; }
.schematic-anim.is-animated .schematic-clean-3 circle:nth-of-type(1){ animation-delay: 1.6s; }
.schematic-anim.is-animated .schematic-clean-3 circle:nth-of-type(2){ animation-delay: 1.9s; }
.schematic-anim.is-animated .schematic-clean-3 circle:nth-of-type(3){ animation-delay: 2.1s; }
.schematic-anim.is-animated .schematic-clean-3 circle:nth-of-type(4){ animation-delay: 2.4s; }
.schematic-anim.is-animated .schematic-clean-3 polygon{ animation: popIn 0.35s ease forwards; animation-delay: 2.5s; }

/* Signal pulse: a traveling dot that runs the finished route on a loop, like live data moving through the rebuilt system */
.schematic-clean circle.signal-pulse{
  fill: var(--amber);
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(226,145,75,0.8));
  offset-path: path("M50 320 L150 260 L230 260 L340 90");
  offset-distance: 0%;
  offset-rotate: 0deg;
}
.schematic-anim.is-animated .schematic-clean circle.signal-pulse{
  animation: signalTravel 3.4s ease-in-out 2.7s infinite;
}

/* Node ping: a status ring pulsing at a mid-route checkpoint, like a monitored system reporting in */
.schematic-clean circle.node-ping{
  fill: none;
  stroke: var(--teal-light);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.schematic-anim.is-animated .schematic-clean circle.node-ping{
  animation: pingRing 2.6s ease-out 3.1s infinite;
}

@keyframes fadeOut{ to{ opacity:0; } }
@keyframes drawLine{ to{ stroke-dashoffset:0; } }
@keyframes popIn{ to{ opacity:1; } }
@keyframes signalTravel{
  0%{ offset-distance: 0%; opacity: 0; }
  8%{ opacity: 1; }
  92%{ opacity: 1; }
  100%{ offset-distance: 100%; opacity: 0; }
}
@keyframes pingRing{
  0%{ transform: scale(1); opacity: 0.85; }
  75%{ opacity: 0; }
  100%{ transform: scale(4.2); opacity: 0; }
}

/* ============ Reveal on scroll ============ */
.reveal{ opacity:0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view{ opacity:1; transform: translateY(0); }

/* ============ Section heads ============ */
.section-head{ max-width: 640px; margin-bottom: 56px; }
.section-head h2{
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.6vw + 1.1rem, 2.4rem);
  font-weight:600;
  line-height:1.2;
}
section.services h2, section.commitments h2{ color: var(--text-on-paper); }
section.process h2{ color: var(--text-on-ink); }

/* ============ Services ============ */
.services{ background: var(--paper); padding: 120px 0; }
.schematic-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-on-paper);
  border-left: 1px solid var(--line-on-paper);
}
.node{
  position:relative;
  background: var(--paper);
  border-right: 1px solid var(--line-on-paper);
  border-bottom: 1px solid var(--line-on-paper);
  padding: 34px 26px 30px;
}
.node::before{
  content:'';
  position:absolute; top:-1px; left:26px;
  width:7px; height:7px; border-radius:50%;
  background: var(--teal);
  transform: translateY(-50%);
}
.node-tag{
  display:inline-block;
  background: var(--teal-deep);
  color: var(--paper);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  padding: 4px 9px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.node h3{
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight:600;
  margin-bottom: 10px;
  color: var(--text-on-paper);
}
.node p{
  font-size: 0.94rem;
  line-height:1.62;
  color: var(--text-on-paper-muted);
}

@media (max-width: 900px){
  .schematic-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .schematic-grid{ grid-template-columns: 1fr; }
}

/* ============ Process ============ */
.process{ background: var(--ink); color: var(--text-on-ink); padding: 120px 0; }
.process-list{
  position:relative;
  margin-left: 4px;
}
.process-list::before{
  content:'';
  position:absolute; top:8px; bottom:8px; left:34px;
  width:1px;
  background: var(--line-on-ink-strong);
}
.process-list li{
  position:relative;
  display:grid;
  grid-template-columns: 70px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-on-ink);
}
.process-list li:first-child{ padding-top:4px; }
.process-list li:last-child{ border-bottom:none; }
.step-num{
  font-size: 1.6rem;
  font-weight:500;
  color: var(--teal-light);
  position:relative; z-index:1;
}
.process-list h3{
  font-family: var(--font-display);
  font-size: 1.18rem; font-weight:600;
  color: var(--text-on-ink);
  margin-bottom: 8px;
}
.process-list p{
  color: var(--text-on-ink-muted);
  font-size: 0.96rem;
  line-height: 1.65;
  max-width: 56ch;
}

/* ============ Commitments ============ */
.commitments{ background: var(--paper); padding: 110px 0; }
.readout-panel{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-on-paper);
  border: 1px solid var(--line-on-paper);
}
.readout{
  position:relative;
  background: var(--paper);
  padding: 30px 26px;
}
.readout::before{
  content:'';
  position:absolute; top:14px; right:14px;
  width:6px; height:6px; border-radius:50%;
  background: var(--amber);
}
.readout-value{
  display:block;
  font-size: 1.45rem;
  color: var(--teal-deep);
  font-weight:500;
  margin-bottom: 10px;
}
.readout-label{
  display:block;
  font-size: 0.88rem;
  color: var(--text-on-paper-muted);
  line-height:1.5;
  max-width: 26ch;
}

@media (max-width: 760px){
  .readout-panel{ grid-template-columns: 1fr; }
}

/* ============ About ============ */
.about{ background: var(--ink); color: var(--text-on-ink); padding: 110px 0; }
.about-inner{ max-width: var(--container); margin:0 auto; padding: 0 32px; }
.about-inner{ max-width: 720px; }
.about h2{
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.6vw + 1.1rem, 2.3rem);
  font-weight:600; line-height:1.2;
  color: var(--text-on-ink);
  margin-bottom: 22px;
}
.about p:last-child{
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--text-on-ink-muted);
}

@media (max-width: 640px){
  .about-inner{ padding: 0 20px; }
}

/* ============ CTA ============ */
.cta{ position:relative; background: var(--paper); padding: 120px 0; overflow:hidden; }
.cta .blueprint-grid{
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 85% 30%, black 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 85% 30%, black 20%, transparent 75%);
  background-image:
    linear-gradient(var(--line-on-paper) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-on-paper) 1px, transparent 1px);
}
.cta-inner{
  position:relative; z-index:2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items:start;
}
.cta h2{
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.8vw + 1.1rem, 2.5rem);
  font-weight:600; line-height:1.2;
  color: var(--text-on-paper);
  margin-bottom: 18px;
}
.cta-copy > p:not(.eyebrow){
  color: var(--text-on-paper-muted);
  font-size: 1.02rem;
  margin-bottom: 30px;
}
.direct-contact{ display:flex; flex-direction:column; gap:10px; }
.direct-contact a{
  font-size: 0.95rem;
  color: var(--teal-deep);
  border-bottom: 1px solid var(--line-on-paper);
  padding-bottom: 2px;
  width: fit-content;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.direct-contact a:hover{ color: var(--amber-deep); border-color: var(--amber-deep); }

.contact-form{
  background: var(--paper-2);
  border: 1px solid var(--line-on-paper);
  padding: 32px;
  border-radius: var(--radius);
}
.form-row{ margin-bottom: 20px; }
.form-row:last-of-type{ margin-bottom: 26px; }
.form-row label{
  display:block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 8px;
}
.form-row input, .form-row textarea{
  width:100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--text-on-paper);
  background: transparent;
  border:none;
  border-bottom: 1px solid var(--line-on-paper);
  padding: 8px 2px;
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus{
  outline:none;
  border-bottom-color: var(--teal);
}
.form-row textarea{ min-height: 90px; }

.form-status{
  min-height: 1em;
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-on-paper-muted);
}
.form-status[data-state="sending"]{ color: var(--text-on-paper-muted); }
.form-status[data-state="success"]{ color: var(--teal-deep); }
.form-status[data-state="error"]{ color: var(--amber-deep); }

@media (max-width: 860px){
  .cta-inner{ grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px){
  .cta-inner{ padding: 0 20px; }
  .contact-form{ padding: 24px; }
}

/* ============ Footer / title block ============ */
.site-footer{ background: var(--ink); color: var(--text-on-ink); padding: 56px 32px 28px; }
.title-block{
  max-width: var(--container);
  margin: 0 auto;
}
.title-block-brand{
  display:flex; align-items:center; gap:18px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-on-ink);
  margin-bottom: 30px;
  flex-wrap:wrap;
}
.title-block-brand .logo{ margin-right:0; }
.title-block-brand p{
  color: var(--text-on-ink-muted);
  font-size: 0.9rem;
}

.title-block-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-on-ink);
  margin-bottom: 24px;
}
.title-block-grid > div{
  padding-left: 16px;
  border-left: 1px solid var(--line-on-ink);
}
.title-block-grid > div:first-child{ padding-left:0; border-left:none; }
.tb-label{
  display:block;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--teal-light);
  margin-bottom: 8px;
}
.tb-value{
  display:block;
  font-size: 0.82rem;
  color: var(--text-on-ink);
  line-height:1.5;
}
.tb-value a:hover{ color: var(--amber); }

.title-block-legal{
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:16px;
}
.title-block-legal p{
  font-size: 0.8rem;
  color: var(--text-on-ink-muted);
}
.title-block-legal nav{ display:flex; gap:22px; }
.title-block-legal nav a{
  font-size: 0.8rem;
  color: var(--text-on-ink-muted);
  transition: color 0.18s ease;
}
.title-block-legal nav a:hover{ color: var(--teal-light); }

@media (max-width: 900px){
  .title-block-grid{ grid-template-columns: repeat(2, 1fr); }
  .title-block-grid > div:nth-child(3){ padding-left:0; border-left:none; }
}
@media (max-width: 560px){
  .title-block-grid{ grid-template-columns: 1fr; }
  .title-block-grid > div{ padding-left:0; border-left:none; }
}

/* ============ Responsive: hero & nav ============ */
@media (max-width: 900px){
  .hero{ padding: 130px 0 60px; }
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-inner{ order:1; max-width:none; }
  .schematic-anim{ order:2; max-width: 300px; justify-self:center; margin-top: 40px; opacity:0.9; }
  .hero-tags{ display:none; }

  .nav-menu{
    position:absolute; top:100%; left:0; right:0;
    background: var(--ink);
    flex-direction:column; align-items:flex-start;
    gap:0;
    max-height:0; overflow:hidden;
    border-bottom: 1px solid var(--line-on-ink);
    box-shadow: 0 12px 24px rgba(0,0,0,0.35);
    transition: max-height 0.3s ease;
  }
  .nav-menu.is-open{ max-height: 300px; }
  .nav-menu li{ width:100%; }
  .nav-menu a{ display:block; padding: 16px 32px; width:100%; }
  .nav-menu a::after{ display:none; }

  .header-cta{ display:none; }
  .nav-toggle{ display:flex; }
}

@media (max-width: 560px){
  .schematic-anim{ display:none; }
  .hero h1{ margin-bottom:18px; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .schematic-tangle{ display:none; }
  .schematic-clean path, .schematic-clean-2 path, .schematic-clean-3 path{ stroke-dashoffset:0; }
  .schematic-clean circle, .schematic-clean polygon,
  .schematic-clean-2 circle, .schematic-clean-2 polygon,
  .schematic-clean-3 circle, .schematic-clean-3 polygon{ opacity:1; }
  .signal-pulse, .node-ping{ opacity:0 !important; }
  .schematic-anim *{ animation:none !important; }
  .reveal{ opacity:1; transform:none; transition:none; }
  .btn, .nav-menu a, .direct-contact a{ transition:none; }
}
