/* ==========================================================================
   FrontRunner — editorial-tech
   The shop floor as editorial subject.
   ========================================================================== */

:root {
  --ink: #0a0f16;
  --panel: #121a26;
  --panel-raised: #18212f;
  --paper: #eef1f4;
  --paper-dim: #dde4ea;

  --text: #eef1f4;
  --text-soft: #9aa7b8;
  --text-faint: #5c6b80;

  --dark-text: #0e1420;
  --dark-soft: #4b5563;

  --line: rgba(238, 241, 244, 0.1);
  --line-strong: rgba(238, 241, 244, 0.18);
  --line-dark: rgba(10, 15, 22, 0.1);

  --accent: #2bb6e8;
  --accent-ink: #061018;

  --font-display: 'Newsreader', serif;
  --font-body: 'Hanken Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1320px;
  --radius: 2px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body, h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font: inherit; }
html, body { overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Lenis sets this up; keep a sane fallback */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
}

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

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 160ms !important;
  }
}

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.section { padding: 140px 0; }
.section--tight { padding: 88px 0; }
.section--paper { background: var(--paper); color: var(--dark-text); }
.section--paper h2, .section--paper h3 { color: var(--dark-text); }
.section--panel { background: var(--panel); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 22px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.section--paper .eyebrow { color: var(--dark-soft); }

.section-head { max-width: 680px; margin-bottom: 72px; }
.section-head h2 { font-size: clamp(32px, 4vw, 52px); font-style: italic; margin-bottom: 18px; }
.section-head p { color: var(--text-soft); font-size: 17px; max-width: 54ch; font-family: var(--font-body); }
.section--paper .section-head p { color: var(--dark-soft); }

.eyebrow-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.section--paper .eyebrow-index { color: var(--dark-soft); }

/* word-stagger reveal targets — visible by default (no-JS / reduced-motion safe);
   only hidden pre-animation once .motion-ready confirms GSAP actually took over.
   NOTE: only `opacity` is pre-set here, never `transform` — GSAP does not reliably
   parse a transform applied via a stylesheet class on first touch (it only tracks
   transforms it has itself applied via inline style), so any transform used in a
   GSAP tween must start from a clean slate and be set with gsap.set()/fromTo(). */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; }
.split-word > * { display: inline-block; will-change: transform; }
.motion-ready .split-word > * { opacity: 0; }

.reveal { opacity: 1; }
.motion-ready .reveal { opacity: 0; }

/* ---------- Buttons / tags ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: transform 180ms var(--ease-soft), background 180ms var(--ease-soft), border-color 180ms var(--ease-soft), color 180ms var(--ease-soft);
}
.btn:active { transform: scale(0.97); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #55c9ef; }
.btn-line { border: 1px solid var(--line-strong); color: var(--text); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.section--paper .btn-line { border-color: rgba(14,20,32,0.2); color: var(--dark-text); }
.section--paper .btn-line:hover { border-color: var(--accent); color: #0e8bb3; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 11px;
  border-radius: 999px;
  text-transform: uppercase;
  background: rgba(238,241,244,0.08);
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  backdrop-filter: blur(6px);
}

/* ---------- Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 26px 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
/* Always-on scrim so nav text stays legible over whatever part of the hero
   photo happens to sit behind it (e.g. the light machine panel on the right),
   independent of scroll state. */
.site-header::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 170px;
  background: linear-gradient(180deg, rgba(10, 15, 22, 0.8) 0%, rgba(10, 15, 22, 0.55) 45%, rgba(10, 15, 22, 0) 100%);
  opacity: 1;
  transition: opacity 240ms var(--ease-soft);
  z-index: -2;
  pointer-events: none;
}
.site-header.is-scrolled::after { opacity: 0; }

.site-header::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(10, 15, 22, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 240ms var(--ease-soft);
  z-index: -1;
}
.site-header.is-scrolled { padding: 16px 0; }
.site-header.is-scrolled::before { opacity: 1; }

.brand img { height: 26px; width: auto; }

.nav-list { display: flex; align-items: center; gap: 32px; }
.nav-list a:not(.btn) {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
  position: relative;
  padding: 4px 0;
  transition: color 160ms var(--ease-soft);
}
.nav-list a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms var(--ease-soft);
}
.nav-list a:not(.btn):hover,
.nav-list a:not(.btn).active { color: var(--text); }
.nav-list a:not(.btn):hover::after,
.nav-list a:not(.btn).active::after { transform: scaleX(1); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 600; }
.nav-toggle span { width: 22px; height: 1px; background: var(--text); transition: transform 180ms var(--ease-soft), opacity 180ms var(--ease-soft); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-media .frame {
  position: absolute; inset: -4%;
  overflow: hidden;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
  transition: transform 1400ms var(--ease);
}
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(10,15,22,0.92) 0%, rgba(10,15,22,0.5) 46%, rgba(10,15,22,0.25) 100%),
    linear-gradient(100deg, rgba(10,15,22,0.5) 0%, rgba(10,15,22,0.05) 50%);
}

.hero-inner { position: relative; z-index: 2; width: 100%; padding: 160px 0 72px; }
.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  margin-bottom: 28px;
}
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.hero h1 {
  font-size: clamp(44px, 7.4vw, 104px);
  font-weight: 400;
  line-height: 0.98;
  max-width: 16ch;
  margin-bottom: 32px;
}
.hero h1 em { font-style: italic; color: var(--accent); }

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-sub { max-width: 42ch; color: var(--text-soft); font-size: 16.5px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-scroll-cue {
  position: absolute;
  right: 32px; bottom: 32px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hero-scroll-cue .line { width: 1px; height: 32px; background: linear-gradient(var(--accent), transparent); }

/* ---------- Cinematic proof band ---------- */
.proof-band { position: relative; background: var(--ink); padding: 0; overflow: hidden; }
.proof-track {
  display: flex;
  gap: 2px;
  will-change: transform;
}
.proof-track .cell {
  flex: 0 0 auto;
  width: 320px;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.proof-track .cell img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) contrast(1.02); }
.proof-track .cell span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--text-soft);
  background: linear-gradient(0deg, rgba(10,15,22,0.85), transparent);
}

/* ---------- Capabilities (asymmetric editorial) ---------- */
.capability {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 80px;
  align-items: center;
}
.capability.is-reversed { grid-template-columns: 0.58fr 0.42fr; }
.capability.is-reversed .cap-copy { order: 2; }
.capability.is-reversed .cap-media { order: 1; }
.capability + .capability { margin-top: 140px; }

.cap-copy h3 { font-size: clamp(26px, 3vw, 38px); font-weight: 400; margin-bottom: 20px; font-style: italic; }
.cap-copy p { color: var(--text-soft); font-size: 16px; margin-bottom: 16px; max-width: 46ch; }
.cap-copy p:last-of-type { margin-bottom: 0; }

.cap-media { position: relative; overflow: hidden; aspect-ratio: 4/5; }
.cap-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) contrast(1.02); }

/* Grades a saturated CAD/render asset (bright rainbow part-colors) toward the
   site's navy/cyan palette, rather than leaving it fighting the editorial
   photography's restrained desaturated treatment. */
.img-toned {
  filter: grayscale(0.92) sepia(0.35) hue-rotate(180deg) saturate(2.4) brightness(0.85) contrast(1.1) !important;
}
.cap-media .tag { position: absolute; left: 18px; bottom: 18px; }
.capability.is-reversed .cap-media { aspect-ratio: 5/4; }

/* ---------- Shop floor (technical panel) ---------- */
.equip-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--line);
  margin-bottom: 56px;
}
.equip-item { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--panel); cursor: pointer; }
.equip-item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) contrast(1.05); transition: transform 260ms var(--ease-soft); }
@media (hover: hover) and (pointer: fine) { .equip-item:hover img { transform: scale(1.05); } }
.equip-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(10,15,22,0.92);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 8px 10px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 160ms var(--ease-soft);
}
.equip-item:hover .equip-caption { clip-path: inset(0 0 0 0); }

.spec-panel { border: 1px solid var(--line); background: var(--panel-raised); }
.spec-panel-head { padding: 30px 34px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.spec-panel-head h3 { font-size: 20px; font-weight: 400; font-style: italic; }
.spec-panel-head p { color: var(--text-soft); font-size: 14px; max-width: 42ch; }
.spec-table { display: grid; grid-template-columns: 1fr 1fr; }
.spec-table li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 34px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 13px; }
.spec-table li:nth-child(odd) { border-right: 1px solid var(--line); }
.spec-table li span:first-child { color: var(--text-soft); }
.spec-table li span:last-child { font-weight: 500; text-align: right; color: var(--text); }

/* ---------- Stat rail ---------- */
.stat-rail { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 36px 32px; border-left: 1px solid var(--line); }
.stat-item:first-child { border-left: none; }
.stat-value { font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; font-size: clamp(24px, 2.4vw, 34px); color: var(--accent); }
.stat-label { margin-top: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-faint); }

/* ---------- Work gallery ---------- */
.work-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); }
.work-item { position: relative; aspect-ratio: 4/3.3; overflow: hidden; cursor: pointer; background: var(--panel); }
.work-item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) contrast(1.02); transition: transform 260ms var(--ease-soft); }
@media (hover: hover) and (pointer: fine) { .work-item:hover img { transform: scale(1.05); } }
.work-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(10,15,22,0.92);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 8px 10px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 160ms var(--ease-soft);
}
.work-item:hover .work-caption { clip-path: inset(0 0 0 0); }

/* ---------- Process steps ---------- */
.process-list { display: flex; flex-direction: column; }
.process-row {
  display: grid;
  grid-template-columns: 90px 1fr 1.4fr;
  gap: 32px;
  align-items: start;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.process-list > .process-row:last-child { border-bottom: 1px solid var(--line); }
.process-row .num { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); padding-top: 4px; }
.process-row h4 { font-size: 20px; font-weight: 400; font-style: italic; }
.process-row p { color: var(--text-soft); font-size: 15px; max-width: 58ch; }

/* ---------- Timeline ---------- */
.timeline-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.timeline-entry { background: var(--panel); padding: 32px; }
.timeline-photo { aspect-ratio: 16/10; overflow: hidden; margin-bottom: 20px; }
.timeline-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) contrast(1.02); }
.timeline-year { font-family: var(--font-mono); font-weight: 500; color: var(--accent); font-size: 14px; margin-bottom: 8px; }
.timeline-entry h4 { font-size: 18px; font-weight: 400; font-style: italic; margin-bottom: 8px; }
.timeline-entry p { font-size: 13.5px; color: var(--text-soft); }

/* ---------- Final CTA band ---------- */
.cta-band { position: relative; text-align: left; overflow: hidden; }
.cta-band .frame { position: absolute; inset: 0; }
.cta-band img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.75) contrast(1.05); }
.cta-band .frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,15,22,0.92) 0%, rgba(10,15,22,0.78) 42%, rgba(10,15,22,0.5) 100%);
}
.cta-band-inner { position: relative; z-index: 1; padding: 160px 0; }
.cta-band h2 { font-size: clamp(32px, 5vw, 64px); font-weight: 400; font-style: italic; max-width: 14ch; margin-bottom: 36px; }

/* ---------- Contact (paper panel) ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
.contact-info .tag { margin-bottom: 24px; color: var(--dark-soft); background: rgba(14,20,32,0.05); border-color: rgba(14,20,32,0.12); }
.info-row { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line-dark); }
.info-row:last-of-type { border-bottom: 1px solid var(--line-dark); }
.info-row iconify-icon { color: var(--dark-soft); font-size: 18px; margin-top: 2px; }
.info-row h4 { font-size: 11.5px; letter-spacing: 0.05em; margin-bottom: 6px; color: var(--dark-soft); font-family: var(--font-mono); text-transform: uppercase; font-weight: 500; }
.info-row p, .info-row a { font-size: 15px; display: block; color: var(--dark-text); }
.info-row a { font-family: var(--font-mono); font-size: 13.5px; transition: color 140ms var(--ease-soft); }
.info-row a:hover { color: #0e8bb3; }
.info-row .map-link { margin-top: 6px; color: #0e8bb3; font-weight: 500; font-size: 12.5px; }

.map-embed { margin-top: 28px; border: 1px solid var(--line-dark); min-height: 220px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 220px; border: 0; display: block; filter: grayscale(0.25) contrast(1.02); }

.contact-form { border: 1px solid var(--line-dark); background: #ffffff; padding: 40px; }
.contact-form h3 { font-size: 22px; font-weight: 400; font-style: italic; margin-bottom: 8px; color: var(--dark-text); }
.contact-form > p { color: var(--dark-soft); font-size: 14.5px; margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--dark-soft); }
.form-field input, .form-field textarea {
  padding: 13px 14px;
  border: 1px solid rgba(14,20,32,0.16);
  background: var(--paper);
  font-size: 15px;
  color: var(--dark-text);
  transition: border-color 140ms var(--ease-soft);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); }
.form-field textarea { resize: vertical; min-height: 120px; }

.form-foot { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.form-foot .btn-content { transition: opacity 120ms ease; }
.form-foot .btn-content.is-transitioning { opacity: 0.55; }
.form-msg { font-size: 13px; font-family: var(--font-mono); opacity: 0; transition: opacity 180ms var(--ease-soft); }
.form-msg.is-visible { opacity: 1; }
.form-msg.success { color: #1b7a43; }
.form-msg.error { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); padding: 72px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.footer-brand img { height: 22px; margin-bottom: 18px; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; color: var(--text-soft); max-width: 36ch; }
.footer-col h4 { color: var(--text); font-size: 11.5px; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.05em; margin-bottom: 18px; text-transform: uppercase; }
.footer-col p, .footer-col a { font-size: 13.5px; line-height: 1.9; color: var(--text-soft); }
.footer-col a { font-family: var(--font-mono); font-size: 12.5px; transition: color 140ms var(--ease-soft); }
.footer-col a:hover { color: var(--accent); }

.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 15px;
  transition: background 140ms var(--ease-soft), border-color 140ms var(--ease-soft);
}
.social-row a:active { transform: scale(0.95); }
.social-row a:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; font-size: 12px; font-family: var(--font-mono); color: var(--text-faint); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,15,22,0.97);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms var(--ease-soft), visibility 0ms linear 220ms;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 220ms var(--ease-soft), visibility 0ms linear 0ms; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 86vh; display: block; transform: scale(0.97); transition: filter 160ms var(--ease-soft), opacity 160ms var(--ease-soft), transform 220ms var(--ease-soft); }
.lightbox.is-open img { transform: scale(1); }
.lightbox img.is-swapping { filter: blur(6px); opacity: 0.5; }
.lightbox-close, .lightbox-nav {
  position: absolute;
  color: var(--text);
  font-size: 18px;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(238,241,244,0.08);
  border: 1px solid var(--line-strong);
  transition: background 140ms var(--ease-soft);
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(238,241,244,0.16); }
.lightbox-close:active, .lightbox-nav:active { transform: scale(0.94); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-caption { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: var(--text-soft); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .capability, .capability.is-reversed { grid-template-columns: 1fr; gap: 36px; }
  .capability .cap-media, .capability.is-reversed .cap-media { order: 1; aspect-ratio: 4/3 !important; }
  .capability .cap-copy, .capability.is-reversed .cap-copy { order: 2; }
  .capability + .capability { margin-top: 88px; }
  .equip-grid { grid-template-columns: repeat(4, 1fr); }
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(3) { border-left: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .process-row { grid-template-columns: 60px 1fr; }
  .process-row p { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 860px) {
  .nav-list { display: none; }
  .nav-toggle { display: flex; }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(10,15,22,0.6); z-index: 540;
    opacity: 0; visibility: hidden; transition: opacity 220ms var(--ease-soft), visibility 0ms linear 220ms;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity 220ms var(--ease-soft), visibility 0ms linear 0ms; }
  .nav-list {
    display: flex; flex-direction: column;
    position: fixed; top: 0; right: 0;
    width: min(320px, 82vw); height: 100vh;
    background: var(--panel);
    padding: 100px 32px 32px; gap: 26px; align-items: flex-start;
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 260ms var(--ease);
    z-index: 550;
  }
  .nav-list.is-open { transform: translateX(0); }
  .equip-grid { grid-template-columns: repeat(3, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-strip { grid-template-columns: 1fr; }
  .spec-table { grid-template-columns: 1fr; }
  .spec-table li:nth-child(odd) { border-right: none; }
  .section { padding: 88px 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .equip-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-form { padding: 26px 20px; }
  .proof-track .cell { width: 220px; }
}
