/* Self-hosted latin subsets (was a render-blocking Google Fonts link).
   Fallback faces carry size-adjust metrics so the swap doesn't shift layout. */
/* Single 400 face declared across the range: display consumers ask for 600
   (see the 2026-07-23 weight decision) and must hit the real face, never a
   synthesized bold. */
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/anton-400-latin.woff2") format("woff2");
}

/* Variable wght file — glyph-subsetted only, full 100–900 axis retained, so
   700 requests render a true bold instead of clamping to 600. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/archivo-400-600-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-600-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Anton Fallback";
  src: local("Arial Narrow"), local("Arial");
  size-adjust: 85%;
  ascent-override: 105%;
  descent-override: 25%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial");
  size-adjust: 99%;
  ascent-override: 100%;
  descent-override: 26%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "IBM Plex Mono Fallback";
  src: local("Courier New");
  size-adjust: 100%;
  ascent-override: 102.5%;
  descent-override: 27.5%;
  line-gap-override: 0%;
}

/* Cross-document view transition (Chrome + Safari 18.2+, no-op elsewhere). */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

:root {
  /* Shared colour + radius + spacing/type/breakpoint scales live in tokens.css
     (linked first). Public-only tokens below. */
  --shadow-card: 0 1px 2px rgba(0, 30, 60, 0.04), 0 4px 12px rgba(0, 30, 60, 0.06);
  --shadow-tile-hover: 0 10px 20px rgba(0, 30, 60, 0.18), 0 30px 60px rgba(0, 30, 60, 0.28);
  --shadow-tile: 0 1px 2px rgba(0, 30, 60, 0.04), 0 6px 18px rgba(0, 30, 60, 0.05);
  --shadow-tile-rest: 0 1px 2px rgba(0, 30, 60, 0.04), 0 4px 10px rgba(0, 30, 60, 0.05);
  --shadow-tile-mag: 0 4px 12px rgba(0, 30, 60, 0.14), 0 18px 38px rgba(0, 30, 60, 0.22);
  --shadow-tag: 0 4px 14px rgba(0, 30, 60, 0.08);
  --font-display: "Anton", "Anton Fallback", sans-serif;
  --font-mono: "IBM Plex Mono", "IBM Plex Mono Fallback", "SFMono-Regular", monospace;
  --aspect-hero: 1188 / 780;
  --headline-clamp: clamp(3rem, 7.5vw, 4.4rem);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Archivo", "Archivo Fallback", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  color: var(--ink);
  line-height: 1.6;
}

.shell {
  width: min(100% - 1.4rem, 73rem);
  margin: 0 auto;
}

@media (min-width: 48rem) {
  .shell {
    width: min(100% - 2rem, 73rem);
  }
}

.site-header {
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, #ffffff 92%, transparent);
  backdrop-filter: blur(8px);
  z-index: 20;
  view-transition-name: site-header;
}

/* Identical header markup on both sides of every navigation — its own named
   group + zero-length animation = hard hold, no self-crossfade shimmer. */
::view-transition-group(site-header) {
  animation-duration: 0s;
}

.site-header .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-logo {
  display: block;
  width: clamp(8.6rem, 15.5vw, 11.2rem);
  height: auto;
}

.site-nav {
  display: none;
  width: 100%;
  padding-top: 0.4rem;
  flex-direction: column;
  gap: 0.85rem;
}

/* No-JS mobile fallback: the burger can't open the dialog, so show the links. */
html:not(.js) .site-nav {
  display: flex;
}

html:not(.js) .menu-toggle {
  display: none;
}

.site-nav a,
a {
  color: var(--brand);
}

.site-nav a {
  position: relative;
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.55rem 0.15rem;
  transition: color 140ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0.15rem;
  right: 0.15rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--brand-strong);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-toggle {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  height: 2.85rem;
  padding: 0 0.85rem;
  gap: 0.55rem;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  color: var(--brand);
}

.menu-toggle-icon {
  position: relative;
  width: 1.25rem;
  height: 0.92rem;
  display: inline-block;
}

.menu-toggle-icon span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 220ms ease, opacity 180ms ease, top 220ms ease;
}

.menu-toggle-icon span:nth-child(1) { top: 0; }
.menu-toggle-icon span:nth-child(2) { top: calc(50% - 1px); }
.menu-toggle-icon span:nth-child(3) { top: calc(100% - 2px); }

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) {
  top: calc(50% - 1px);
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) {
  top: calc(50% - 1px);
  transform: rotate(-45deg);
}

.section {
  padding: 1.5rem 0 2.4rem;
}

/* ---------- Hero build ----------
   Normal-flow full-viewport stage: the 28-part wrench assembles once on
   load under an authored camera turn; the headline reveals when the build
   completes and the model stays grabbable. No pin, no snap — page scroll
   is fully native. svh so the box doesn't resize when the mobile URL bar
   collapses. */
.hero-build {
  position: relative;
  min-height: calc(100vh - var(--header-h, 4.5rem));
  min-height: calc(100svh - var(--header-h, 4.5rem));
  overflow: hidden;
}

/* Raised: camera centers the model in this box, so lifting the box kills the
   dead band between the nav and the render without touching framing. */
.hero-build .hero-stage {
  position: absolute;
  inset: -9% 0 9%;
  z-index: 0;
}

/* Portrait: full-viewport on load like desktop (svh = URL bar expanded, so
   the fold lands exactly); the deeper raise keeps the wrench high in the
   taller box instead of centering into dead air. */
@media (max-width: 47.99rem) {
  .hero-build .hero-stage {
    inset: -13% 0 13%;
  }
}

.hero-model {
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
}

.js .hero-build .hero-model {
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-build.model-ready .hero-model {
  opacity: 1;
}

/* Legibility scrim under the copy; pointer events pass through to the model. */
.hero-build::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 42%, color-mix(in srgb, var(--bg) 92%, transparent) 100%);
}

/* The copy layer spans the stage bottom above the scrim — pointer-inert so
   the wrench stays grabbable through it, links re-enabled below. */
.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(2rem, 6vh, 4rem);
  z-index: 2;
  pointer-events: none;
}

.hero-copy .cta-row {
  margin: 1.1rem 0 0;
  pointer-events: auto;
}

.js .hero-copy {
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.1rem);
  transition:
    opacity 650ms cubic-bezier(0.22, 1, 0.36, 1) 120ms,
    transform 650ms cubic-bezier(0.22, 1, 0.36, 1) 120ms,
    visibility 0s linear 770ms;
}

.js .hero-build.is-built .hero-copy {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 650ms cubic-bezier(0.22, 1, 0.36, 1) 120ms,
    transform 650ms cubic-bezier(0.22, 1, 0.36, 1) 120ms,
    visibility 0s;
}

.hero-title {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw + 1rem, 4.4rem);
  line-height: 0.96;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--brand);
  text-wrap: balance;
}

/* Post-build drag nudge: floats beside the wrench (driver adds show-hint
   only while the render is untouched), dies on the first grab. */
.hero-hint {
  position: absolute;
  top: 36%;
  /* Anchored off the wrench's center, not the viewport edge — reads as a
     tag on the render at every width. */
  left: 50%;
  margin-left: clamp(4.25rem, 23vw, 24rem);
  z-index: 2;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: color-mix(in srgb, #fff 92%, transparent);
  background: color-mix(in srgb, var(--ink) 85%, transparent);
  padding: 0.45rem 0.85rem;
  opacity: 0;
  transition: opacity 400ms ease;
  animation: hero-hint-float 2.6s ease-in-out infinite;
}

.hero-build.show-hint .hero-hint {
  opacity: 1;
}

@keyframes hero-hint-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.3rem); }
}

/* Small viewports: the center-plus-offset anchor pushes the pill past the
   box edge (overflow: hidden eats it) — pin to the right gutter instead. */
@media (max-width: 47.99rem) {
  .hero-hint {
    left: auto;
    right: 0.75rem;
    margin-left: 0;
  }
}

/* No-JS: no model src is ever set — hide the stage, show the copy in flow. */
html:not(.js) .hero-build {
  min-height: 0;
  padding: 2.2rem 0 1.4rem;
}

html:not(.js) .hero-build .hero-stage {
  display: none;
}

html:not(.js) .hero-copy {
  position: static;
}

@media (prefers-reduced-motion: reduce) {
  .js .hero-copy,
  .js .hero-build.is-built .hero-copy {
    transition: opacity 0s, transform 0s, visibility 0s;
    transform: none;
  }
  .js .hero-build .hero-model {
    transition: none;
  }
  .hero-hint {
    animation: none;
  }
}

/* Content-to-content joints (no divider) read airier than the divider
   zones — pull these two in to 2.3rem (0.8 + the next section's 1.5). */
.video-section {
  padding-bottom: 0.8rem;
}

.video-section .hero-video {
  margin-top: 0.4rem;
}

.hero-video {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.hero-video-meta {
  display: flex;
  width: 100%;
}

.hero-video-meta-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  width: 100%;
  padding: 0.55rem 0.15rem 0.1rem;
  text-decoration: none;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.hero-video-meta-link:hover .hero-video-channel-name,
.hero-video-meta-link:focus-visible .hero-video-channel-name {
  color: var(--brand);
}

.hero-video-channel {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.hero-video-channel-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 60%, #001a3a) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.hero-video-channel-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero-video-channel-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: -0.005em;
  transition: color 160ms ease;
}

.hero-video-channel-handle {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.hero-video-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  align-items: center;
}

.hero-video-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero-video-stat svg {
  flex-shrink: 0;
  color: var(--brand);
}

h1 {
  margin: 0.55rem 0;
  line-height: 1.05;
  color: var(--brand);
  font-size: clamp(1.65rem, 4.2vw, 3.4rem);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

@keyframes hero-line-in {
  to {
    opacity: 1;
    transform: none;
  }
}

h2 {
  margin: 0.15rem 0 0.45rem;
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  letter-spacing: -0.01em;
}

.lead {
  color: var(--ink-muted);
  max-width: 60ch;
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  line-height: 1.55;
}

.cta-link {
  display: inline-block;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 76%, #ffffff) 0%, var(--brand) 100%);
  padding: 0.56rem 0.92rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--brand) 72%, #ffffff);
  font-weight: 600;
}

.text-link {
  text-decoration: none;
  color: var(--brand);
  font-weight: 600;
}

/* ---------- Stat tile cards (icon-led tile-card variant) ---------- */
.tile-stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 36rem) {
  .tile-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 48rem) {
  .tile-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tile-stat-card .tile-card-media {
  aspect-ratio: 5 / 4;
}

.tile-stat-card .tile-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tile-stat-card .tile-card-scrim {
  background: linear-gradient(180deg, rgba(0, 30, 60, 0) 0%, rgba(0, 30, 60, 0.55) 45%, rgba(0, 20, 45, 0.92) 100%);
}


.section-title {
  margin: 0 0 0.9rem;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: 0.005em;
  font-weight: 400;
}

.capabilities-layout {
  display: grid;
  gap: 1rem;
}

.capabilities-stack {
  display: grid;
  gap: 0.72rem;
  align-content: start;
}

.capability-item {
  position: relative;
  padding-left: 1.05rem;
  margin: 0;
}

.capability-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 84%, #ffffff);
}

.capability-item h2 {
  margin: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.capability-item p {
  margin: 0.22rem 0 0;
  color: var(--ink-muted);
  line-height: 1.42;
  font-size: 0.97rem;
}

.capabilities-image-wrap {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.capabilities-image {
  display: block;
  width: 100%;
  aspect-ratio: var(--aspect-hero);
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.section-alt {
  background: linear-gradient(180deg, #f4f8fd 0%, #edf3fb 100%);
  border-block: 1px solid var(--line);
}

.split-callout {
  display: grid;
  gap: 1rem;
}

.meta {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

.stack {
  display: grid;
  gap: 0.6rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 0.56rem 0.66rem;
  font: inherit;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.site-footer {
  border-top: 1px solid var(--line);
  /* 2.4rem section bottom + 1.5rem = the uniform 3.9rem joint. */
  margin-top: 1.5rem;
  background: #ffffff;
}

.footer-grid {
  display: grid;
  gap: 1rem;
  padding: 1.2rem 0 1.6rem;
}

.footer-grid h2 {
  font-size: 1rem;
}

.prose p:first-child {
  margin-top: 0;
}

.prose pre,
.prose code {
  font-family: var(--font-mono);
}

.prose pre {
  overflow-x: auto;
  padding: 0.75rem;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

@media (min-width: 48rem) {
  .menu-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    width: auto;
    padding-top: 0;
    flex-direction: row;
    align-items: center;
    gap: 1.1rem;
  }

  .site-nav a {
    font-size: 0.92rem;
  }

  .capabilities-layout {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: stretch;
    gap: 1.1rem;
  }

  .capabilities-stack {
    gap: 0.9rem;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .capabilities-image-wrap {
    grid-template-rows: repeat(2, minmax(0, 1fr));
    height: auto;
  }

  .capabilities-image {
    height: auto;
    aspect-ratio: var(--aspect-hero);
  }

  .split-callout {
    grid-template-columns: 1.3fr 1fr;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 2rem 0 3rem;
  }

}

/* ---------- Workflow section ---------- */
.section-lede {
  margin: 0.35rem 0 1.5rem;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.facility-section {
  padding-top: 0.4rem;
  padding-bottom: 0.8rem;
}

/* ---------- Program intake expansion ---------- */
.work-with-us-section .section-title {
  text-align: left;
}

.work-with-us-section .split-callout {
  align-items: stretch;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.intake-lead {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.intake-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 36rem) {
  .intake-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 48rem) {
  .intake-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.intake-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 2px;
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.intake-card .intake-subtitle {
  margin: 0;
  font-size: 1.05rem;
}

.intake-card .intake-list {
  margin: 0;
}

.intake-card .intake-copy {
  margin: 0;
}

.intake-card .cta-row {
  margin: auto 0 0;
}

.intake-subtitle {
  margin: 0.4rem 0 0;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.intake-subtitle:first-child {
  margin-top: 0;
}

.intake-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
}

.intake-list li + li {
  margin-top: 0.18rem;
}

.intake-list li::marker {
  color: var(--brand);
}

.intake-copy {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 56ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
  align-items: center;
  margin: 0.4rem 0 0.85rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 2px;
  padding: 1.55rem 1.55rem 1.4rem;
}

.contact-card-title {
  margin: 0;
  font-size: clamp(1.35rem, 1.9vw, 1.6rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.contact-lines {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.contact-lines > div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.3rem 0.85rem;
  align-items: baseline;
}

.contact-lines dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.contact-lines dd {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}

.contact-explore {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.contact-card-subtitle {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.contact-quicklinks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.9rem;
}

.contact-quicklinks a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.contact-quicklinks a:hover,
.contact-quicklinks a:focus-visible {
  border-bottom-color: var(--brand);
}

/* ---------- Footer expansion ---------- */
.footer-grid {
  padding: 1.8rem 0 1.2rem;
  gap: 1.6rem 1.2rem;
}

.footer-section h2 {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
}

.footer-section + .footer-section h2 {
  font-size: 0.92rem;
}

.footer-icon-list,
.footer-links,
.footer-cert-badges,
.footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .meta {
  font-size: 0.78rem;
  line-height: 1.45;
}

.footer-icon-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-icon-list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  color: var(--ink-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.footer-icon-list a {
  color: var(--ink);
}

.footer-icon {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  margin-top: 0.08rem;
}

.footer-icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem 0.85rem;
}

.footer-links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-block: 0.08rem;
  font-size: 0.8rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.footer-cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.footer-cert-badges li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  min-width: 4.2rem;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cert-badge {
  display: inline-flex;
  width: 1.6rem;
  height: 1.6rem;
  color: var(--brand);
}

.cert-badge svg {
  width: 100%;
  height: 100%;
}

.footer-social-label {
  margin-top: 0.75rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.footer-social a {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--brand);
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--brand-strong);
  border-color: color-mix(in srgb, var(--brand) 50%, var(--line));
}

.footer-social svg {
  width: 1rem;
  height: 1rem;
}

.footer-legal {
  padding: 0.5rem 0 1.2rem;
  margin-top: 0.4rem;
  border-top: 1px solid var(--line);
}

.footer-legal .meta {
  font-size: 0.72rem;
}

/* ---------- Desktop tune-up (>=64rem / ~1024px) ---------- */
@media (min-width: 64rem) {
  .footer-grid {
    grid-template-columns: 1.1fr 1fr 1.05fr;
    align-items: start;
  }
}

/* ---------- Hero mobile tuning ---------- */
@media (max-width: 47.99rem) {
  /* Hero stat row: cards on mobile, desktop-style head inside */
  .hero-stat-row {
    gap: 0.7rem;
    text-align: center;
  }

  /* Intake / contact card constraints */
  .work-with-us-section .split-callout {
    gap: 1rem;
    justify-items: center;
  }

  .intake-lead,
  .work-with-us-section .contact-card {
    width: 100%;
    max-width: 26rem;
    margin-inline: auto;
  }

  /* Mobile: split the two capability shots around the content — close-up
     leads the section above the heading, over-shoulder stays below the
     list. display: contents lifts both into the shell's column flow so
     order can hoist the close-up. */
  .capabilities-section .shell {
    display: flex;
    flex-direction: column;
  }

  .capabilities-section .capabilities-layout,
  .capabilities-section .capabilities-image-wrap {
    display: contents;
  }

  .capabilities-image {
    width: 100%;
    max-width: 32rem;
    margin-inline: auto;
  }

  .capabilities-image-closeup {
    order: -1;
    margin-bottom: 1.4rem;
  }

  .capabilities-image:not(.capabilities-image-closeup) {
    margin-top: 1rem;
  }

  .section-break-image {
    max-width: 32rem;
  }
}

/* Mid-screen normalization (~576-768px) */
@media (min-width: 36rem) and (max-width: 47.99rem) {
  .intake-lead,
  .work-with-us-section .contact-card {
    max-width: none;
  }
}

/* ---------- Mobile menu overlay ---------- */
html.menu-open {
  overflow: hidden;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: color-mix(in srgb, var(--bg) 96%, #ffffff);
  backdrop-filter: blur(12px);
  flex-direction: column;
}

.mobile-menu:not([open]) {
  display: none;
}

.mobile-menu[open] {
  display: flex;
  animation: menu-in 220ms ease;
}

.mobile-menu::backdrop {
  background: transparent;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu[open] .mobile-menu-nav li {
  opacity: 0;
  transform: translateY(0.5rem);
  animation: menu-link-in 360ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mobile-menu[open] .mobile-menu-nav li:nth-child(1) { animation-delay: 50ms; }
.mobile-menu[open] .mobile-menu-nav li:nth-child(2) { animation-delay: 100ms; }
.mobile-menu[open] .mobile-menu-nav li:nth-child(3) { animation-delay: 150ms; }
.mobile-menu[open] .mobile-menu-nav li:nth-child(4) { animation-delay: 200ms; }
.mobile-menu[open] .mobile-menu-nav li:nth-child(5) { animation-delay: 250ms; }

@keyframes menu-link-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu-inner {
  width: min(100% - 2rem, 32rem);
  margin: 0 auto;
  padding: 1rem 0 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0 1.1rem;
  border-bottom: 1px solid var(--line);
}

.mobile-menu-close {
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  width: 2.85rem;
  height: 2.85rem;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu-close:hover,
.mobile-menu-close:focus-visible {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
}

.mobile-menu-close svg {
  width: 1.25rem;
  height: 1.25rem;
}

.mobile-menu-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem 0 1.4rem;
}

.mobile-menu-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.mobile-menu-nav li + li {
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.mobile-menu-nav a {
  display: block;
  padding: 1.05rem 0.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.55rem;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: 0.005em;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a:focus-visible,
.mobile-menu-nav a[aria-current="page"] {
  color: var(--brand-strong);
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a:focus-visible {
  background: color-mix(in srgb, var(--surface-soft) 60%, #ffffff);
}

.mobile-menu-foot {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: center;
}

.mobile-menu-foot .cta-link {
  width: 100%;
  text-align: center;
  padding-block: 0.85rem;
  font-size: 1.05rem;
}

.mobile-menu-foot .text-link {
  font-size: 1.05rem;
}

@media (min-width: 48rem) {
  .mobile-menu,
  .menu-toggle {
    display: none;
  }
}

/* ---------- Section break image (shell-contained cinematic slab) ---------- */
/* Shop print stuck to the page: the old full-bleed band stretched the
   1188px source past native width (blurry on wide/retina screens) — cap
   near native, tilt a hair, tape the corners. */
.section-break-image {
  position: relative;
  display: block;
  margin: 1.95rem auto;
  width: min(100% - 1.4rem, 56rem);
  transform: rotate(-0.35deg);
}

@media (min-width: 48rem) {
  .section-break-image {
    width: min(100% - 2rem, 56rem);
  }
}

.section-break-print {
  position: relative;
  /* Room for the top tape overhang, so the gap from the divider to the
     tape edge matches the caption-to-divider gap below. */
  margin-top: 0.7rem;
}

.section-break-image img {
  display: block;
  width: 100%;
  aspect-ratio: var(--aspect-hero);
  height: auto;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* Tape straddles the top/bottom edges only — sideways overhang would
   overflow the 0.7rem mobile gutter. */
.section-break-tape {
  position: absolute;
  width: clamp(4.4rem, 13vw, 7rem);
  height: 1.6rem;
  background: color-mix(in srgb, #fff 62%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  box-shadow: var(--shadow-tag);
  z-index: 1;
  pointer-events: none;
}

.section-break-tape:nth-child(1) {
  top: -0.7rem;
  left: 6%;
  transform: rotate(-5deg);
}

.section-break-tape:nth-child(2) {
  top: -0.7rem;
  right: 6%;
  transform: rotate(4deg);
}

.section-break-tape:nth-child(3) {
  bottom: -0.7rem;
  left: 7%;
  transform: rotate(3.5deg);
}

.section-break-tape:nth-child(4) {
  bottom: -0.7rem;
  right: 7%;
  transform: rotate(-4deg);
}

/* Taped-on label under the print — same mono accent voice as the drag hint. */
.section-break-caption {
  display: table;
  margin: 1.1rem auto 0;
  padding: 0.5rem 1.1rem;
  transform: rotate(-1.2deg);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  background: color-mix(in srgb, #fff 62%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  box-shadow: var(--shadow-tag);
}


/* ---------- Hero video ---------- */
.hero-video .hud-corner-frame {
  position: relative;
}

.hero-video-sound {
  position: absolute;
  z-index: 4;
  right: 1.1rem;
  bottom: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  background: rgba(10, 37, 64, 0.78);
  border: 1px solid rgba(125, 205, 255, 0.45);
  color: rgba(210, 240, 255, 0.95);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 200ms ease, border-color 200ms ease;
}

.hero-video-sound:hover,
.hero-video-sound:focus-visible {
  background: rgba(10, 37, 64, 0.92);
  border-color: rgba(120, 220, 255, 0.85);
}

.hero-video-sound:focus-visible {
  outline: 2px solid rgba(120, 220, 255, 0.95);
  outline-offset: 2px;
}

.hero-video-sound-icon {
  width: 0.95rem;
  height: 0.95rem;
}

.hero-video-sound-icon--on { display: none; }

.hero-video-sound[aria-pressed="true"] .hero-video-sound-icon--muted { display: none; }
.hero-video-sound[aria-pressed="true"] .hero-video-sound-icon--on { display: inline; }

.hero-video .hud-corner-frame {
  background:
    repeating-linear-gradient(0deg,  rgba(125, 205, 255, 0.08) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(125, 205, 255, 0.08) 0 1px, transparent 1px 24px),
    linear-gradient(180deg, #0d2a4a 0%, #061a30 100%);
  padding: 0.85rem;
  border-radius: var(--radius);
  border: 1px solid rgba(125, 205, 255, 0.22);
  box-shadow:
    0 18px 30px -16px rgba(0, 20, 50, 0.45),
    inset 0 0 40px rgba(0, 0, 0, 0.35);
}

.hero-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border: 0;
  background: #000;
  position: relative;
  z-index: 1;
  opacity: 0.88;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

/* ---------- HUD corner-bracket utility (shared across hero video, tile-card-media, project-detail-media, contact-map, etc.) ---------- */
.hud-corner-frame {
  position: relative;
  padding: 0.55rem;
}

.hud-corner-frame > .hud-corner {
  position: absolute;
  width: 1.2rem;
  height: 1.2rem;
  border-color: var(--hud-corner-color, var(--brand));
  border-style: solid;
  border-width: 0;
  pointer-events: none;
  z-index: 2;
}

.hud-corner--tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.hud-corner--tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.hud-corner--bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.hud-corner--br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }


/* ---------- Floating accent tag (intake-card chrome — clips over media surfaces) ---------- */
.floating-accent-tag {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.4rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 2px;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: var(--shadow-tag);
  max-width: calc(100% - 1rem);
}

.floating-accent-tag--tl { top: 0.6rem; left: 0.6rem; }
.floating-accent-tag--tr { top: 0.6rem; right: 0.6rem; }

.floating-accent-tag-title {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.005em;
  line-height: 1.15;
}

.floating-accent-tag-specs {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  line-height: 1.2;
}


/* ---------- Reveal-fade utility (opt-in visual layer on top of .reveal-on-scroll IO hook) ----------
   Hidden state is gated behind the .js root class (stamped inline in <head>):
   if the reveal script never runs, content stays visible. */
.js .reveal-fade {
  opacity: 0;
  transform: translateY(0.85rem);
  transition: opacity 650ms cubic-bezier(0.22, 1, 0.36, 1), transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-fade.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal-fade.reveal-from-right {
  transform: translateX(1.2rem);
}

.js .reveal-fade.reveal-from-left {
  transform: translateX(-1.2rem);
}

.reveal-fade.reveal-from-right.is-visible,
.reveal-fade.reveal-from-left.is-visible {
  transform: none;
}

/* Stagger ladder — apply .reveal-stagger to any container; children with .reveal-fade cascade in. */
.reveal-stagger > .reveal-fade:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal-fade:nth-child(2) { transition-delay: 90ms; }
.reveal-stagger > .reveal-fade:nth-child(3) { transition-delay: 180ms; }
.reveal-stagger > .reveal-fade:nth-child(4) { transition-delay: 270ms; }
.reveal-stagger > .reveal-fade:nth-child(5) { transition-delay: 360ms; }
.reveal-stagger > .reveal-fade:nth-child(6) { transition-delay: 450ms; }
.reveal-stagger > .reveal-fade:nth-child(7) { transition-delay: 540ms; }
.reveal-stagger > .reveal-fade:nth-child(8) { transition-delay: 630ms; }
.reveal-stagger > .reveal-fade:nth-child(9) { transition-delay: 720ms; }

/* Prose-reveal — article variant: gentler cadence, children fade in once parent is visible. */
.js .prose-reveal > * {
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 600ms ease, transform 600ms ease;
}

.prose-reveal.is-visible > * {
  opacity: 1;
  transform: none;
}

.prose-reveal > *:nth-child(1) { transition-delay: 0ms; }
.prose-reveal > *:nth-child(2) { transition-delay: 60ms; }
.prose-reveal > *:nth-child(3) { transition-delay: 120ms; }
.prose-reveal > *:nth-child(4) { transition-delay: 180ms; }
.prose-reveal > *:nth-child(5) { transition-delay: 240ms; }
.prose-reveal > *:nth-child(6) { transition-delay: 300ms; }
.prose-reveal > *:nth-child(7) { transition-delay: 360ms; }
.prose-reveal > *:nth-child(8) { transition-delay: 420ms; }
.prose-reveal > *:nth-child(9) { transition-delay: 480ms; }
.prose-reveal > *:nth-child(10) { transition-delay: 540ms; }
.prose-reveal > *:nth-child(n+11) { transition-delay: 600ms; }

@supports (animation-timeline: view()) {
  .section-title {
    animation: section-title-in linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 28%;
  }

  @keyframes section-title-in {
    from { opacity: 0; transform: translateY(0.6rem); letter-spacing: 0.04em; }
    to   { opacity: 1; transform: none;             letter-spacing: 0.005em; }
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .mobile-menu {
    transition: none;
  }

  .menu-toggle-icon span {
    transition: none;
  }

  .headline-line {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .reveal-fade,
  .reveal-fade.reveal-from-right,
  .reveal-fade.reveal-from-left {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .prose-reveal > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .story-timeline::before,
  .section-divider,
  .capability-card .tile-card-media img {
    animation: none !important;
  }

  .mobile-menu[open],
  .mobile-menu[open] .mobile-menu-nav li {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  ::view-transition-group(*),
  ::view-transition-image-pair(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }

  .section-title {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Generic page hero ---------- */
.page-hero {
  padding-top: 1.7rem;
  padding-bottom: 0;
}

@media (min-width: 48rem) {
  .page-hero {
    padding-top: 3rem;
  }
}

.page-hero .section-lede {
  margin-bottom: 0.4rem;
}

.page-hero + .section {
  padding-top: 0.4rem;
}

@media (min-width: 48rem) {
  .page-hero + .section {
    padding-top: 0.6rem;
  }
}

.page-headline {
  margin: 0 0 0.4rem;
  margin-top: -0.22em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--headline-clamp);
  line-height: 0.92;
  letter-spacing: 0.005em;
  color: var(--brand);
  background: none;
  border-left: 0;
  text-shadow: none;
  text-transform: uppercase;
}

.headline-line {
  display: inline-block;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(0.6rem);
  animation: hero-line-in 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.headline-line:nth-child(2) { animation-delay: 180ms; }
.headline-line:nth-child(3) { animation-delay: 360ms; }
.headline-line:nth-child(4) { animation-delay: 540ms; }

.page-hero .meta-strip {
  margin: 0 0 0.9rem;
}

.page-hero-meta {
  margin: 0.6rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  opacity: 0.85;
}

/* ---------- Shared section divider (hairline rule) ---------- */
/* Symmetric by construction: every neighbor's facing padding/margin is zeroed
   below, so the divider's own margin is the entire gap on both sides. */
.section-divider {
  width: min(100% - 1.4rem, 73rem);
  height: 1px;
  /* 1.95rem each side ≈ the 3.9rem joint two divider-less sections make
     (2.4rem bottom + 1.5rem top padding) — uniform rhythm page-wide. */
  margin: 1.95rem auto;
  background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--brand) 45%, transparent) 20%, color-mix(in srgb, var(--brand) 45%, transparent) 80%, transparent 100%);
  border: 0;
}

@supports (animation-timeline: view()) {
  .section-divider {
    transform-origin: center;
    animation: divider-draw linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 35%;
  }

  @keyframes divider-draw {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
}

.section-break-image:has(+ .section-divider),
.section:has(+ .section-divider) {
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-divider + .section-break-image,
.section-divider + .section {
  margin-top: 0;
  padding-top: 0;
}

@media (min-width: 48rem) {
  .section-divider {
    width: min(100% - 2rem, 73rem);
  }
}

/* ---------- Shared meta strip (content-creator framing: eyebrow + mono chips) ---------- */
.meta-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0 0.85rem;
  margin: 0.55rem 0 0;
  overflow-x: auto;
  overflow-y: hidden;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.meta-strip::-webkit-scrollbar {
  display: none;
}

.meta-strip-eyebrow,
.meta-strip-chip {
  white-space: nowrap;
  flex-shrink: 0;
}

.meta-strip-eyebrow {
  font-weight: 600;
}

.meta-strip-chip {
  opacity: 0.72;
}

.meta-strip-chip + .meta-strip-chip::before {
  content: "·";
  margin-right: 0.85rem;
  margin-left: -0.4rem;
  opacity: 0.6;
}

@media (min-width: 48rem) {
  .meta-strip {
    font-size: 0.78rem;
  }
}

/* ---------- Shared tile card (image-led, overlay title, reveal-on-hover/scroll) ----------
   Used by capabilities, industries, projects, and (composed with spine) story timeline.
   Per-page CSS adds modifiers for grid layout + per-card scale magnitude.
------------------------------------------------------------------------------------- */
.tile-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
  box-shadow: var(--shadow-tile);
  color: var(--ink);
  text-decoration: none;
  isolation: isolate;
  transition: transform 350ms ease, box-shadow 350ms ease, z-index 0s linear 350ms;
  transform-origin: center center;
  will-change: transform;
}

.tile-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: color-mix(in srgb, var(--brand) 9%, #ffffff);
  color: var(--brand);
  overflow: hidden;
}

.tile-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@supports (animation-timeline: view()) {
  .capability-card .tile-card-media img {
    animation: media-color-in linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 55%;
  }

  @keyframes media-color-in {
    from { filter: grayscale(1); }
    to   { filter: grayscale(0); }
  }
}

.tile-card-media svg {
  width: 40%;
  height: 40%;
  display: block;
  margin: auto;
  position: absolute;
  inset: 0;
}

.tile-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.18) 45%, rgba(0, 0, 0, 0.55) 75%, rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
}

.tile-card-body {
  position: absolute;
  inset: 0;
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  z-index: 1;
}

.tile-card-eyebrow {
  margin: 0 0 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tile-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.tile-card-detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 450ms ease, opacity 350ms ease, margin-top 350ms ease;
  margin-top: 0;
}

.tile-card-detail p {
  margin: 0 0 0.5rem;
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tile-card-readmore {
  margin: 0.55rem 0 0;
  align-self: flex-end;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tile-card-attribution {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.7rem;
  margin: 0.35rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tile-card-attribution-chip + .tile-card-attribution-chip::before {
  content: "·";
  margin-right: 0.7rem;
  margin-left: -0.35rem;
  opacity: 0.6;
}

@media (min-width: 64rem) {
  .tile-card:hover .tile-card-detail,
  .tile-card:focus-within .tile-card-detail {
    max-height: 16rem;
    opacity: 1;
    margin-top: 0.55rem;
  }
}

@media (max-width: 63.99rem) {
  .tile-card-detail {
    max-height: 16rem;
    opacity: 1;
    margin-top: 0.55rem;
  }

  @supports (animation-timeline: view()) {
    .tile-card {
      animation: tile-scroll-mag linear both;
      animation-timeline: view();
      animation-range: cover 10% cover 90%;
    }

    @keyframes tile-scroll-mag {
      0%   { transform: scale(0.94); box-shadow: var(--shadow-tile-rest); }
      50%  { transform: scale(1.04); box-shadow: var(--shadow-tile-mag); }
      100% { transform: scale(0.94); box-shadow: var(--shadow-tile-rest); }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .tile-card,
  .tile-card-detail {
    transition: none;
    animation: none !important;
    transform: none !important;
  }
}

/* ---------- Capability grid (extends .tile-card) ---------- */
.capability-grid {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: 1fr;
}

@media (min-width: 36rem) {
  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .capability-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .capability-card:hover,
  .capability-card:focus-within {
    transform: scale(1.18);
    z-index: 3;
    box-shadow: var(--shadow-tile-hover);
    transition: transform 350ms ease, box-shadow 350ms ease, z-index 0s linear 0s;
  }
}

/* ---------- Certifications strip + documentation CTA (homepage Work With Us) ---------- */
.quality-certs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.quality-cert {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.9rem 0.55rem 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 2px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.quality-cert:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  border-left-color: var(--brand);
  box-shadow: var(--shadow-card);
}

.quality-cert-icon {
  width: 2.2rem;
  height: 2.2rem;
  margin-left: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--brand);
  flex: 0 0 auto;
}

.quality-cert-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.quality-cert-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.quality-cert-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--brand);
  line-height: 1.15;
  white-space: nowrap;
}

.quality-cert-meta {
  margin: 0.15rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 36rem) {
  .quality-certs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.work-with-us-section .quality-certs {
  margin-bottom: 1.6rem;
}

/* ---------- Industry stack (extends .tile-card) ---------- */
.industry-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 36rem) {
  .industry-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 64rem) {
  .industry-card:hover,
  .industry-card:focus-within {
    transform: scale(1.04);
    z-index: 3;
    box-shadow: var(--shadow-tile-hover);
    transition: transform 350ms ease, box-shadow 350ms ease, z-index 0s linear 0s;
  }
}

/* ---------- Project grid (extends .tile-card, matches capability sizing) ---------- */
.project-grid {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: 1fr;
}

.project-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

@media (min-width: 36rem) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-card:hover,
  .project-card:focus-within {
    transform: scale(1.18);
    z-index: 3;
    box-shadow: var(--shadow-tile-hover);
    transition: transform 350ms ease, box-shadow 350ms ease, z-index 0s linear 0s;
  }
}

/* ---------- Shared keyword-tag component (underlined, middot-separated) ---------- */
.kw-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin: 0 0 0.9rem;
  padding: 0;
  list-style: none;
  align-items: baseline;
}

.kw-tags li {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

.kw-tags li:not(:last-child)::after {
  content: "·";
  margin-left: 0.85rem;
  color: var(--ink-muted);
  text-decoration: none;
  display: inline-block;
}

.tile-card-detail .kw-tags {
  margin: 0.15rem 0 0;
}

.tile-card-detail .kw-tags li {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tile-card-detail .kw-tags li:not(:last-child)::after {
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ---------- Project detail (image-left / content-right) ---------- */
.project-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  padding-block: 0.5rem 1.5rem;
}

.project-detail-media {
  display: block;
  height: 100%;
}

.project-detail-media.hud-corner-frame {
  padding: 0;
}

.project-detail-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  border: 1px solid var(--line);
}

.project-detail-content {
  display: flex;
  flex-direction: column;
}

.project-detail-content .article-eyebrow {
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.project-detail-content h1 {
  margin: 0 0 0.6rem;
  color: var(--brand);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: 0.005em;
}

.project-detail-content .lead {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--ink-muted);
}

.project-detail-content .prose {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 0.4rem;
}

.project-detail-content .prose p {
  margin: 0 0 0.9rem;
}

.project-detail .article-back {
  display: inline-block;
  margin-top: 1.4rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.project-detail .article-back:hover,
.project-detail .article-back:focus-visible {
  text-decoration: underline;
}

@media (min-width: 64rem) {
  .project-detail {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.6rem 2.5rem;
    align-items: stretch;
  }

  .project-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .project-detail .project-spec-card,
  .project-detail > .article-back {
    grid-column: 1 / -1;
  }
}

/* ---------- Article (privacy + legacy article shell) ---------- */
.public-article {
  max-width: 44rem;
  margin: 0 auto;
  padding-block: 0.5rem 1.5rem;
}

.public-article .article-eyebrow {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: var(--brand);
  opacity: 0.78;
}

.public-article h1 {
  margin: 0 0 0.6rem;
  color: var(--brand);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: 0.005em;
}

.public-article .lead {
  margin: 0 0 1.1rem;
  font-size: 1.1rem;
  max-width: none;
  color: var(--ink-muted);
}

.public-article .prose {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink);
}

.public-article .prose p {
  margin: 0 0 0.95rem;
}

.public-article .prose h2,
.public-article .prose h3 {
  margin: 1.4rem 0 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.005em;
  color: var(--brand);
}

.public-article .prose h2:first-child {
  margin-top: 0;
}

.public-article .prose a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
}

.public-article .prose a:hover,
.public-article .prose a:focus-visible {
  border-bottom-color: var(--brand);
}

.public-article .article-back {
  display: inline-block;
  margin-top: 1.4rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.public-article .article-back:hover,
.public-article .article-back:focus-visible {
  text-decoration: underline;
}

/* ---------- Contact page ---------- */
.contact-section .split-callout {
  align-items: stretch;
  gap: 1rem;
}

.contact-form {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 2px;
  padding: 1.55rem 1.55rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.contact-form button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-color: var(--brand);
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.rfq-grid {
  display: grid;
  gap: 0.7rem;
}

@media (min-width: 48rem) {
  .rfq-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.contact-form .itar-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.contact-form .itar-check input {
  margin-top: 0.2em;
  accent-color: var(--brand);
}

.contact-form .itar-note {
  border-left: 2px solid var(--brand);
  padding-left: 0.7rem;
}

.contact-form h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 1.9vw, 1.6rem);
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.contact-form label {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  margin-top: 0.4rem;
}

.contact-form button[type="submit"] {
  margin-top: 0.8rem;
  align-self: stretch;
  width: 100%;
}

@media (min-width: 48rem) {
  .contact-form button[type="submit"] {
    align-self: flex-start;
    width: auto;
  }
}

.contact-form-status,
.contact-form-error {
  font-size: 0.92rem;
  padding: 0.55rem 0.7rem;
  border-radius: 2px;
  margin: 0;
}

.contact-form-status {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  border-left: 3px solid var(--brand);
}

.contact-form-error {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 8%, transparent);
  border-left: 3px solid var(--danger);
}

/* ---------- Story timeline — dossier records on a sticky era rail ----------
   Narrative text never overlays imagery (readability). Mobile: sticky era bar,
   single column. Desktop ≥48rem: era label + marker stick and travel the
   brand spine while the era's records scroll past. */
.story-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2.8rem;
}

.story-era-rail {
  position: sticky;
  top: var(--header-h, 4.35rem); /* set by public_base.html header measure; fallback = no-JS worst case */
  z-index: 4;
  margin: 0 0 1.1rem;
  padding: 0.6rem 0 0.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.story-era-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
}

.story-era-label::before {
  content: "//";
  margin-right: 0.55rem;
  color: color-mix(in srgb, var(--brand) 45%, var(--line));
}

.story-era-entries {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.story-rec {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow-tile);
  padding: 0.9rem;
}

.story-rec--featured {
  border-left: 3px solid var(--brand);
}

.story-rec-media {
  margin: 0 0 0.9rem;
}

.story-rec-media .hud-corner-frame {
  background: color-mix(in srgb, var(--brand) 7%, #ffffff);
}

.story-rec-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.story-rec--featured .story-rec-media img {
  aspect-ratio: 16 / 9;
}

.story-rec-caption {
  margin: 0.5rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.story-rec-id {
  margin: 0 0 0.6rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--brand);
}

.story-rec-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 4.2vw, 1.55rem);
  letter-spacing: 0.01em;
  color: var(--brand);
}

.story-rec-summary {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  max-width: 65ch;
}

.story-empty {
  margin: 0;
  color: var(--ink-muted);
}

@media (min-width: 48rem) {
  .story-timeline {
    gap: 3.4rem;
  }

  .story-era {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    column-gap: 1.6rem;
  }

  /* Rail column: static container carrying the spine; the label + marker
     inside it stick and slide along the spine as the era scrolls. */
  .story-era-rail {
    position: relative;
    top: auto;
    z-index: 1;
    margin: 0;
    padding: 0;
    background: none;
    border-bottom: 0;
  }

  .story-era-rail::before {
    content: "";
    position: absolute;
    top: 0.4rem;
    bottom: -3.4rem;
    left: 0.5rem;
    width: 2px;
    background: linear-gradient(180deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 30%, var(--line)) 100%);
    border-radius: 2px;
  }

  .story-era:last-child .story-era-rail::before {
    bottom: 0;
  }

  .story-era-label {
    position: sticky;
    top: var(--header-h, 5.3rem);
    padding-left: 1.5rem;
  }

  .story-era-label::before {
    content: "";
    position: absolute;
    left: 0.15rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.75rem;
    height: 0.75rem;
    margin: 0;
    background: var(--bg);
    border: 2px solid var(--brand);
    border-radius: 50%;
  }

  .story-era-entries {
    gap: 2rem;
  }

  .story-rec {
    padding: 1.2rem;
  }

  .story-rec--featured .story-rec-media img {
    aspect-ratio: 21 / 9;
  }

  .story-rec--featured .story-rec-title {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
  }
}

/* Two-col card (media | text) only above the era-rail tier: at 48-64rem the
   rail column already eats 8.5rem, leaving too little for a split card. */
@media (min-width: 64rem) {
  .story-rec {
    display: grid;
    grid-template-columns: minmax(0, 23rem) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
  }

  .story-rec-media {
    margin: 0;
  }

  .story-rec--text-only,
  .story-rec--featured {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .story-era-rail::before {
      transform-origin: top;
      animation: spine-draw linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 60%;
    }

    @keyframes spine-draw {
      from { transform: scaleY(0); }
      to   { transform: scaleY(1); }
    }

    .story-rec-media img {
      animation: media-color-in linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 45%;
    }
  }
}

/* ---------- Placeholder image block ---------- */
.project-spec-card {
  margin: 0.75rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}

.project-spec-row {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.project-spec-row:last-child {
  border-bottom: none;
}

.project-spec-row dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  align-self: center;
}

.project-spec-row dd {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
  align-self: center;
}

@media (max-width: 30rem) {
  .project-spec-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media (min-width: 48rem) {
  .project-spec-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-spec-row {
    padding: 0.85rem 1.2rem;
    border-right: 1px solid var(--line);
  }

  .project-spec-row:nth-child(even) {
    border-right: none;
  }

  .project-spec-row:nth-last-child(2):nth-child(odd) {
    border-bottom: none;
  }
}

.contact-map {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 2px;
  background: var(--surface-soft);
  overflow: hidden;
}

.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (min-width: 48rem) {
  .contact-map {
    aspect-ratio: 4 / 3;
  }
}

.footer-map {
  display: block;
  width: 100%;
  height: 8rem;
  border: 0;
  border-radius: 2px;
  margin-top: 0.6rem;
  background: var(--surface-soft);
}

/* Error pages (404/500) — standalone shell, no nav dependencies. */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  text-align: center;
  background: var(--bg, #fff);
  color: var(--ink, #0f1f34);
}
.error-page-code {
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--brand, #003366);
}
.error-page-title {
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  margin: 0;
  max-width: 34rem;
}
.error-page-link {
  margin-top: 0.5rem;
  color: var(--brand, #003366);
  font-weight: 600;
}

/* Skip link — first tab stop, visually hidden until focused. */
.skip-link {
  position: absolute;
  top: -3rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 4px 4px;
  transition: top 150ms ease;
}
.skip-link:focus-visible {
  top: 0;
}

/* ---------- Shop data tables (capabilities page) ---------- */
.shop-table-scroll {
  overflow-x: auto;
}
.shop-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.shop-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-align: left;
  padding: 0.55rem 1rem 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.shop-table td {
  padding: 0.62rem 1rem 0.62rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  line-height: 1.4;
}
.shop-table th.num,
.shop-table td.num {
  text-align: right;
  padding-right: 0;
}
.shop-table td.num {
  font-variant-numeric: tabular-nums;
}

/* ---------- FAQ page ---------- */
.faq-list {
  margin: 0;
  max-width: 46rem;
  display: grid;
  gap: 1.6rem;
}
.faq-item dt {
  font-weight: 600;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.35;
}
.faq-item dd {
  margin: 0.45rem 0 0;
  color: var(--ink-muted);
  line-height: 1.55;
}
