:root {
  --ink: #06121c;
  --ink-2: #0b1c2a;
  --ink-3: #112638;
  --line: rgba(230, 238, 244, 0.09);
  --line-2: rgba(230, 238, 244, 0.18);
  --text: #e6eef4;
  --muted: #93a8b8;
  --accent: #5fe0d0;
  --accent-ink: #032621;
  --display: 'Archivo', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --radius: 14px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
h4 { font-size: 1rem; letter-spacing: 0; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
strong { font-weight: 500; color: var(--text); }

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

.wrap { width: min(1200px, 100% - 3rem); margin-inline: auto; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.i {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

.label {
  font: 500 0.75rem/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center; gap: 0.6em;
}
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 40ch; }

.live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(95, 224, 208, 0.6);
  display: inline-block;
}
@media (prefers-reduced-motion: no-preference) {
  .live { animation: pulse 2.4s infinite; }
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(95, 224, 208, 0); }
  100% { box-shadow: 0 0 0 0 rgba(95, 224, 208, 0); }
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.6rem 1rem; border-radius: 8px; font-weight: 500; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.75rem 1.4rem;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 1rem/1 var(--body); text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #8aeadf; }
.btn-primary .i { transition: transform 0.2s var(--ease); }
.btn-primary:hover .i { transform: translateX(3px); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(6, 18, 28, 0.35); }
.btn-ghost:hover { border-color: var(--text); }
.btn-lg { min-height: 56px; padding-inline: 1.6rem; font-size: 1.05rem; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.nav.solid {
  background: rgba(6, 18, 28, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: block; position: relative; z-index: 2; }
.brand img { height: 32px; width: auto; }
@media (max-width: 860px) { .brand img { height: 24px; } }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.95rem;
  position: relative; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav-links a[aria-current]:not(.nav-cta)::after {
  content: ""; position: absolute; left: 50%; bottom: -10px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
  transform: translateX(-50%);
}
.nav-links .nav-cta {
  color: var(--text); border: 1px solid var(--line-2);
  padding: 0.55rem 1.1rem; border-radius: 999px;
}
.nav-links .nav-cta:hover, .nav-links .nav-cta[aria-current] { border-color: var(--accent); color: var(--accent); }
.nav-toggle {
  display: none; position: relative; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); background: transparent; color: var(--text);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .i { width: 20px; height: 20px; }
.nav-toggle .i-shut, .nav.open .nav-toggle .i-open { display: none; }
.nav.open .nav-toggle .i-shut { display: block; }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 3rem) 0 clamp(3rem, 7vw, 5.5rem);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.75) contrast(1.05);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-bg { animation: drift 40s ease-in-out infinite alternate; }
}
@keyframes drift { to { transform: scale(1.12) translate(-1.5%, 1%); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 90% 70% at 15% 75%, rgba(6, 18, 28, 0.88), transparent 72%),
    linear-gradient(180deg, rgba(6, 18, 28, 0.7) 0%, rgba(6, 18, 28, 0.45) 40%, rgba(6, 18, 28, 0.92) 82%, var(--ink) 100%);
}
.hero .lead { color: #c3d1dc; }
.nowrap { white-space: nowrap; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; align-items: end; }
.hero-copy { max-width: 780px; }
.hero h1 { margin: 1.25rem 0 1.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

.readout {
  min-width: 260px; padding: 1.4rem 1.5rem;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: rgba(6, 18, 28, 0.55);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.readout-num {
  font: 700 clamp(4rem, 7vw, 5.75rem)/0.9 var(--display); font-stretch: 112%;
  letter-spacing: -0.04em; color: var(--accent);
  margin-top: 0.9rem; font-variant-numeric: tabular-nums;
}
.readout-unit { color: var(--text); margin-top: 0.4rem; }
.readout-src {
  font: 500 0.72rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--line);
}

/* Stats */
.stats {
  position: relative;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--ink);
}
.stats::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 20%, var(--ink) 80%);
}
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(2rem, 4vw, 3rem) 1.5rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num {
  font: 600 clamp(2.4rem, 4.4vw, 3.6rem)/1 var(--display); font-stretch: 112%;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: 0.4rem; flex-wrap: wrap;
}
.stat-num small { font: 500 0.9rem/1 var(--mono); letter-spacing: 0.04em; color: var(--accent); }
.stat-label { color: var(--muted); margin-top: 0.75rem; font-size: 0.95rem; }
.certs {
  position: relative; color: var(--muted); font-size: 0.95rem;
  padding: 1.25rem 0 1.5rem; border-top: 1px solid var(--line);
}

/* Sections */
.section { padding-block: clamp(5rem, 11vw, 9rem); }
.section-alt { background: var(--ink-2); border-block: 1px solid var(--line); }
.section-head { max-width: 820px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin: 1rem 0 1.25rem; }
.section-head .lead { max-width: 56ch; }

/* Farm */
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.spec {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.spec img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.spec-body { padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.spec-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.spec-body > p { color: var(--muted); }
.tag {
  font: 500 0.7rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(95, 224, 208, 0.35);
  padding: 0.45rem 0.7rem; border-radius: 999px;
}
.spec dl { margin: auto 0 0; }
.spec dl div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.75rem 0; border-top: 1px solid var(--line);
}
.spec dt { font: 500 0.78rem/1.6 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 0; text-align: right; }
.spec .hl dd {
  font: 600 1.35rem/1.2 var(--display); font-stretch: 112%; color: var(--accent);
}

.control {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  margin-top: clamp(4rem, 8vw, 6.5rem);
}
.console {
  margin: 0; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--ink-2); overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(95, 224, 208, 0.06);
}
.console-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line);
}
.console-bar > span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.console-bar p {
  margin-left: auto; display: flex; align-items: center; gap: 0.5em;
  font: 500 0.7rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.console img { width: 100%; }
.control-copy > p { color: var(--muted); margin: 1rem 0 2rem; max-width: 52ch; }
.control-copy h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.features {
  list-style: none; margin: 0; padding: 0; counter-reset: f;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem;
}
.features li { padding-top: 1rem; border-top: 1px solid var(--line); }
.features p { color: var(--muted); font-size: 0.95rem; margin-top: 0.35rem; }

/* Consultancy */
.services {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.services li {
  padding: 2rem 1.75rem 2.25rem;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background-color 0.25s;
  position: relative;
}
.services li::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.services li:hover { background: var(--ink-3); }
.services li:hover::before { transform: scaleX(1); }
.services p { color: var(--muted); margin-top: 0.6rem; }

.fit {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(3rem, 6vw, 4.5rem); padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(95, 224, 208, 0.07), transparent 55%), var(--ink);
}
.fit h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.fit p { color: var(--muted); margin: 1rem 0 1.75rem; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 0.95rem 0 0.95rem 2rem; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: ""; position: absolute; left: 0.2rem; top: 1.45rem;
  width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* Press */
.quote { margin: 0 0 clamp(2.5rem, 5vw, 3.5rem); max-width: 1000px; }
.quote blockquote { margin: 0; }
.quote p {
  font: 500 clamp(1.9rem, 4.2vw, 3.4rem)/1.12 var(--display); font-stretch: 112%;
  letter-spacing: -0.02em; text-indent: -0.45em;
}
.quote p::before { content: "\201C"; color: var(--accent); }
.quote p::after { content: "\201D"; color: var(--accent); }
figcaption {
  font: 500 0.75rem/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-top: 1rem;
}
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.quotes figure {
  margin: 0; padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: space-between;
}
.quotes blockquote { margin: 0; font-size: 1.1rem; }

.pubs { list-style: none; margin: clamp(3rem, 6vw, 4.5rem) 0; padding: 0; border-top: 1px solid var(--line-2); }
.pubs li {
  display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 1.5rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.pub { font-weight: 500; display: flex; flex-direction: column; gap: 0.2rem; }
.pub em {
  font: 500 0.68rem/1.4 var(--mono); font-style: normal;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.pubs li > span:last-child { color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; }
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top;
  transition: transform 0.6s var(--ease), filter 0.3s;
  filter: saturate(0.85);
}
.gallery a:hover img { transform: scale(1.04); filter: none; }
.gallery figcaption { margin-top: 0.75rem; }

.refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
.refs article { padding-top: 1.25rem; border-top: 2px solid var(--accent); }
.refs h3 { font-size: 1.15rem; }
.refs p { color: var(--muted); margin-top: 0.6rem; font-size: 0.97rem; }

/* Story */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.portrait {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line-2);
  position: sticky; top: calc(var(--nav-h) + 2rem);
}
.story-copy h2 { margin: 1rem 0 1.5rem; }
.story-copy > p:not(.label) { color: var(--muted); margin-bottom: 1rem; max-width: 60ch; }
.creds { margin: 2rem 0; }
.creds div {
  display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 1rem;
  padding: 1rem 0; border-top: 1px solid var(--line);
}
.creds dt { font: 500 0.75rem/1.6 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.creds dd { margin: 0; }
.partner {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 5.5rem); align-items: start;
  margin-top: clamp(4rem, 9vw, 7rem); padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}
.partner-head { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2rem); margin-bottom: 1.5rem; }
.partner-head h2 { margin-top: 0.75rem; }
/* ponytail: source photo is only 238px wide, so it stays small to stay sharp */
.partner-photo {
  flex: none; width: clamp(104px, 14vw, 150px); aspect-ratio: 4 / 5;
  object-fit: cover; object-position: top;
  border-radius: var(--radius); border: 1px solid var(--line-2);
}
.partner-lede { font-size: clamp(1.15rem, 1.7vw, 1.35rem); max-width: 52ch; margin-bottom: 1.5rem; }
.partner-copy > p:not(.label):not(.partner-lede) { color: var(--muted); max-width: 62ch; margin-bottom: 1rem; }
.partner-copy a { color: var(--accent); text-underline-offset: 3px; }
.partner-quote { margin: 2rem 0 0; padding-left: 1.25rem; border-left: 2px solid var(--accent); }
.partner-quote blockquote { margin: 0; font: 500 1.3rem/1.35 var(--display); font-stretch: 112%; letter-spacing: -0.01em; }
.partner-quote figcaption { margin-top: 0.75rem; }
.partner-panel { position: sticky; top: calc(var(--nav-h) + 2rem); background: var(--ink); }
.partner-panel dl { margin: 1.25rem 0 0; }
.partner-panel dl div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.9rem 0; border-top: 1px solid var(--line);
}
.partner-panel dt { color: var(--muted); font-size: 0.92rem; }
.partner-panel dd {
  margin: 0; font: 700 1.9rem/1 var(--display); font-stretch: 112%;
  letter-spacing: -0.02em; color: var(--accent); font-variant-numeric: tabular-nums;
}
.partner-link {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.1rem;
  color: var(--text); font-weight: 500; text-decoration: none;
}
.partner-link:hover { color: var(--accent); }

/* Contact */
.contact {
  position: relative; overflow: hidden; text-align: center;
  background: radial-gradient(ellipse 60% 70% at 50% 110%, rgba(95, 224, 208, 0.16), transparent 70%);
}
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact h2 { font-size: clamp(2.6rem, 7vw, 5.5rem); margin: 1.25rem 0; }
.contact .lead { max-width: 44ch; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2.5rem; }
.contact-meta { margin-top: 2rem; color: var(--muted); font-size: 0.95rem; }
.contact-meta a { color: var(--text); text-underline-offset: 3px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 1.75rem 0; color: var(--muted); font-size: 0.875rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Floating CTA (mobile) */
.float-cta {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 40;
  display: none; align-items: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.2rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 500; text-decoration: none;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.6);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
body.past-hero:not(.at-contact) .float-cta { opacity: 1; transform: none; pointer-events: auto; }

/* Lightbox */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 4.5rem 1.5rem 2rem; border: 0;
  background: rgba(3, 9, 14, 0.92); color: var(--text);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-height: 100%; }
.lightbox img { max-width: min(1100px, 100%); max-height: calc(100svh - 10rem); width: auto; object-fit: contain; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--ink-2); color: var(--text);
  display: grid; place-items: center; cursor: pointer;
}
.lightbox-close .i { width: 20px; height: 20px; }

/* Reveal on scroll (only when JS runs and motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .readout { justify-self: start; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.5rem;
    padding: 0 2rem; background: var(--ink);
    opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s;
  }
  .nav.open .nav-links { opacity: 1; visibility: visible; }
  .nav-links a { font: 600 2rem/1.1 var(--display); font-stretch: 112%; color: var(--text); }
  .nav-links a[aria-current]:not(.nav-cta)::after { display: none; }
  .nav-links .nav-cta { font-size: 2rem; border: 0; padding: 0; color: var(--accent); }
  .float-cta { display: inline-flex; }
  .hero::after {
    background: linear-gradient(180deg, rgba(6, 18, 28, 0.78) 0%, rgba(6, 18, 28, 0.72) 50%, rgba(6, 18, 28, 0.94) 80%, var(--ink) 100%);
  }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding-left: 1.25rem; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .specs, .control, .fit, .quotes, .story, .refs, .partner { grid-template-columns: 1fr; }
  .partner-panel { position: static; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .pubs li { grid-template-columns: 1fr; gap: 0.35rem; }
  .portrait { position: static; max-width: 420px; }
  .creds div { grid-template-columns: 1fr; gap: 0.25rem; }
}

@media (max-width: 560px) {
  .wrap { width: min(1200px, 100% - 2.5rem); }
  .services { grid-template-columns: 1fr; }
  .actions .btn, .contact-actions .btn { width: 100%; }
  .contact-actions { width: 100%; }
  .readout { width: 100%; }
  .gallery { grid-template-columns: 1fr; }
}
