@import url('../fonts/ibm-plex-sans/fonts.css');
@import url('../fonts/ibm-plex-mono/fonts.css');

:root {
  --navy-950: #051226;
  --navy-900: #0a1d3a;
  --navy-850: #0d2547;
  --navy-800: #112f59;
  --navy-700: #1a4377;
  --blue: #4f9bd9;
  --blue-300: #8cc1ec;
  --ice: #e7f0f9;
  --gray-50: #f3f6fa;
  --gray-100: #e6ecf3;
  --gray-300: #c3cedb;
  --ink: #0b1a2e;
  --muted: #4f6077;
  --line: #d5dee9;
  --line-dark: rgba(255, 255, 255, 0.12);
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --wrap: 1200px;
  --pad: clamp(20px, 4vw, 40px);
  --header-h: 76px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 500; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 300; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); font-weight: 300; letter-spacing: -0.025em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
ul { padding-left: 1.2em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- labels ---------- */
.label {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-700);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.label::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.dark .label, .label--light { color: var(--blue-300); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; font-weight: 400; }
.dark .lead { color: #b9c8db; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 1rem/1 var(--sans);
  padding: 16px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--blue); color: var(--navy-950); }
.btn--primary:hover { background: #fff; color: var(--navy-950); }
.btn--navy { background: var(--navy-900); color: #fff; }
.btn--navy:hover { background: var(--navy-700); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); color: #fff; }
.btn--line { border-color: var(--navy-900); color: var(--navy-900); }
.btn--line:hover { background: var(--navy-900); color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; height: var(--header-h); gap: 24px; }
.brand { display: block; flex: none; }
.brand img { width: 176px; height: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 0.95rem; font-weight: 500; color: var(--ink); text-decoration: none;
  padding: 10px 12px; border-radius: var(--radius); position: relative;
}
.nav a:hover { color: var(--navy-700); background: var(--gray-50); }
.nav a[aria-current="page"] { color: var(--navy-700); }
.nav a[aria-current="page"]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--blue); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.lang { font-family: var(--mono); font-size: 0.8rem; display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lang a, .lang span { padding: 7px 9px; text-decoration: none; color: var(--muted); }
.lang span { background: var(--navy-900); color: #fff; }
.lang a:hover { background: var(--gray-50); color: var(--ink); }
.header-call { padding: 12px 16px; font-size: 0.92rem; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); width: 46px; height: 46px; align-items: center; justify-content: center; cursor: pointer; color: var(--navy-900); }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 1080px) {
  .header-call .num { display: none; }
}
@media (max-width: 920px) {
  :root { --header-h: 66px; }
  .brand img { width: 150px; }
  .menu-btn { display: inline-flex; }
  .header-call { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 20px;
    box-shadow: 0 20px 40px rgba(5,18,38,.18);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 15px 4px; border-bottom: 1px solid var(--gray-100); font-size: 1.05rem; border-radius: 0; }
  .nav a[aria-current="page"]::after { left: 4px; right: auto; width: 24px; bottom: 8px; }
  .header-tools { margin-left: auto; }
}

/* ---------- dark sections & blueprint grid ---------- */
.dark { background: var(--navy-900); color: #fff; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.grid-bg {
  background-color: var(--navy-900);
  background-image:
    radial-gradient(ellipse 70% 60% at 78% 30%, rgba(79,155,217,.20), transparent 70%),
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  background-position: center, -1px -1px, -1px -1px;
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.hero h1 { margin-bottom: 0.35em; }
.hero h1 em { font-style: normal; color: var(--blue-300); font-weight: 400; }
.hero .lead { margin-bottom: 32px; }
.hero-specs { display: flex; flex-wrap: wrap; gap: 0; margin-top: 40px; border-top: 1px solid var(--line-dark); }
.hero-specs div { padding: 16px 24px 0 0; margin-right: 24px; font-size: 0.92rem; color: #b9c8db; }
.hero-specs b { display: block; font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-300); margin-bottom: 4px; }
.hero-specs a { color: #fff; }

.frame { position: relative; }
.frame img { width: 100%; border-radius: 2px; }
.frame::before, .frame::after {
  content: ''; position: absolute; width: 22px; height: 22px; border: 1px solid var(--blue); pointer-events: none;
}
.frame::before { top: -10px; left: -10px; border-right: 0; border-bottom: 0; }
.frame::after { bottom: -10px; right: -10px; border-left: 0; border-top: 0; }
.frame figcaption, .caption {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--muted); margin-top: 14px; display: flex; justify-content: space-between; gap: 12px;
}
.dark .frame figcaption, .dark .caption { color: #93a7c0; }
.hero-figure img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 60%; }
.coord { color: var(--blue-300); white-space: nowrap; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure { max-width: 460px; }
  .hero-figure img { aspect-ratio: 5 / 4; object-position: 60% 62%; }
}

/* page hero (inner pages) */
.page-hero .wrap { padding-top: clamp(48px, 6vw, 84px); padding-bottom: clamp(44px, 5vw, 72px); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 18ch; }
.crumbs { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: #93a7c0; margin-bottom: 26px; }
.crumbs a { color: #93a7c0; text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tint { background: var(--gray-50); }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); }
.dark .section-head p { color: #b9c8db; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* split: practice <-> lab */
.split-diagram { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; border: 1px solid var(--line); background: #fff; }
.split-diagram .side { padding: clamp(24px, 3.5vw, 44px); }
.split-diagram h3 { font-size: 1.05rem; font-family: var(--mono); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy-700); }
.split-diagram ul { list-style: none; padding: 0; margin: 0; }
.split-diagram li { padding: 12px 0; border-top: 1px solid var(--gray-100); display: flex; gap: 14px; }
.split-diagram li span { font-family: var(--mono); font-size: 0.78rem; color: var(--blue); padding-top: 3px; }
.split-diagram .side--lab { background: var(--navy-900); color: #fff; }
.split-diagram .side--lab h3 { color: var(--blue-300); }
.split-diagram .side--lab li { border-top-color: var(--line-dark); }
.split-diagram .link {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 0 18px; background: linear-gradient(90deg, #fff 50%, var(--navy-900) 50%);
}
.split-diagram .link svg { width: 72px; height: 72px; }
@media (max-width: 760px) {
  .split-diagram { grid-template-columns: 1fr; }
  .split-diagram .link { padding: 14px 0; background: linear-gradient(180deg, #fff 50%, var(--navy-900) 50%); }
  .split-diagram .link svg { transform: rotate(90deg); }
}

/* service cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: #fff; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: background .2s; }
.card:hover { background: var(--gray-50); color: inherit; }
.card .ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-900); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .ph img { transform: scale(1.04); }
.card .body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.card .num { font-family: var(--mono); font-size: 0.75rem; color: var(--blue); letter-spacing: 0.1em; margin-bottom: 10px; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.card .more { margin-top: auto; font-weight: 500; font-size: 0.92rem; color: var(--navy-700); display: inline-flex; align-items: center; gap: 8px; }
.card .more svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .more svg { transform: translateX(4px); }
@media (max-width: 1020px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* feature (image + text) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature--wide-img { grid-template-columns: 1.2fr 0.8fr; }
.feature.rev > :first-child { order: 2; }
@media (max-width: 860px) { .feature, .feature--wide-img { grid-template-columns: 1fr; } .feature.rev > :first-child { order: 0; } }

.ticks { list-style: none; padding: 0; margin: 24px 0; }
.ticks li { position: relative; padding: 12px 0 12px 34px; border-top: 1px solid var(--line); }
.dark .ticks li { border-top-color: var(--line-dark); color: #d6e0ec; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 20px; width: 14px; height: 8px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; border-top: 1px solid var(--line); }
.dark .steps { border-top-color: var(--line-dark); }
.step { padding: 28px 24px 8px 0; position: relative; }
.step::before { content: ''; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--blue); border-radius: 50%; }
.step .n { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--blue); display: block; margin-bottom: 12px; }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); font-size: 0.95rem; }
.dark .step p { color: #b9c8db; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line); padding-left: 24px; }
  .dark .steps { border-left-color: var(--line-dark); }
  .step { padding: 0 0 20px; }
  .step::before { left: -29px; top: 4px; }
}

/* facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.fact { padding: 28px 24px 30px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.fact .big { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1; margin-bottom: 14px; color: #fff; display: block; }
.fact .big small { font-size: 0.45em; color: var(--blue-300); letter-spacing: 0; margin-left: 4px; }
.fact p { margin: 0; color: #b9c8db; font-size: 0.93rem; }
.fact a { color: #fff; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .facts { grid-template-columns: 1fr; } }

.motto { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 300; letter-spacing: -0.02em; margin: 0; }
.motto span { color: var(--blue-300); }

/* CTA band */
.cta-band { background: var(--navy-950); color: #fff; }
.cta-band .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #b9c8db; }
.contact-lines { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.contact-line { display: flex; align-items: center; gap: 18px; background: var(--navy-950); padding: 22px 24px; color: #fff; text-decoration: none; transition: background .2s; }
.contact-line:hover { background: var(--navy-850); color: #fff; }
.contact-line svg { width: 22px; height: 22px; color: var(--blue); flex: none; }
.contact-line small { display: block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: #93a7c0; }
.contact-line b { font-weight: 500; font-size: 1.15rem; word-break: break-word; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* service detail blocks */
.svc { padding: clamp(56px, 8vw, 104px) 0; border-bottom: 1px solid var(--line); }
.svc:nth-of-type(even) { background: var(--gray-50); }
.svc .meta { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.svc h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.svc-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.svc-imgs .frame:first-child { grid-column: 1 / -1; }
.svc-imgs img { aspect-ratio: 4 / 3; object-fit: cover; }
.svc-imgs.single { grid-template-columns: 1fr; }
.note { font-size: 0.92rem; color: var(--muted); border-left: 2px solid var(--blue); padding: 4px 0 4px 16px; margin-top: 20px; }
.dark .note { color: #b9c8db; }

/* toc */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.toc a { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em; color: #d6e0ec; text-decoration: none; border: 1px solid var(--line-dark); padding: 9px 14px; border-radius: var(--radius); }
.toc a:hover { border-color: var(--blue); color: #fff; }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 32px 32px; }
.timeline li::before { content: ''; position: absolute; left: -5px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.timeline .yr { font-family: var(--mono); font-size: 0.85rem; color: var(--navy-700); font-weight: 500; display: block; margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--muted); }
.timeline a { font-size: 0.9rem; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.gallery figure { margin: 0; grid-column: span 2; }
.gallery figure.w3 { grid-column: span 3; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 2px; }
.gallery figcaption { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--muted); margin-top: 10px; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery figure, .gallery figure.w3 { grid-column: span 1; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.value { background: #fff; padding: 32px 28px; }
.value .num { font-family: var(--mono); font-size: 0.75rem; color: var(--blue); letter-spacing: 0.1em; }
.value h3 { font-size: 1.5rem; font-weight: 400; margin: 12px 0 10px; }
.value p { color: var(--muted); margin: 0; font-size: 0.96rem; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

/* work order card */
.order { background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(5,18,38,.08); }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 26px; background: var(--navy-900); color: #fff; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.order-head span:last-child { color: var(--blue-300); }
.order ol { list-style: none; margin: 0; padding: 0; counter-reset: o; }
.order li { counter-increment: o; display: grid; grid-template-columns: 52px 1fr; gap: 0 12px; padding: 18px 26px; border-top: 1px solid var(--gray-100); }
.order li:first-child { border-top: 0; }
.order li::before { content: counter(o, decimal-leading-zero); font-family: var(--mono); font-size: 0.8rem; color: var(--blue); padding-top: 3px; grid-row: span 2; }
.order li b { font-weight: 600; }
.order li span { color: var(--muted); font-size: 0.94rem; }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 48px 22px 0; font-weight: 500; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--navy-700); border-bottom: 2px solid var(--navy-700); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 70ch; }

/* contact page */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cbox { background: #fff; padding: 28px; }
.cbox small { display: block; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.cbox .v { font-size: clamp(1.15rem, 1.7vw, 1.35rem); font-weight: 400; color: var(--ink); text-decoration: none; word-break: break-word; display: block; margin-bottom: 8px; }
a.v:hover { color: var(--navy-700); }
.cbox p { margin: 0; color: var(--muted); font-size: 0.93rem; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }

.map { position: relative; background: var(--navy-900); border: 1px solid var(--line); aspect-ratio: 4 / 3; overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 28px; color: #fff;
}
.map-placeholder .pin { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 56px; height: 56px; color: var(--blue); }
.map-placeholder p { margin: 0; font-size: 0.88rem; color: #b9c8db; max-width: 46ch; }
.legal { font-size: 0.93rem; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.legal dt { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.legal dd { margin: 0; }
@media (max-width: 520px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 10px; } }

/* footer */
.site-footer { background: var(--navy-950); color: #93a7c0; font-size: 0.92rem; border-top: 1px solid var(--line-dark); }
.site-footer .wrap { padding-top: 64px; padding-bottom: 32px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.foot-logo { display: inline-block; background: #fff; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px; }
.foot-logo img { width: 160px; }
.site-footer h2 { font-family: var(--mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-300); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #d6e0ec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-legal { padding-top: 24px; font-size: 0.8rem; line-height: 1.7; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* mobile action bar */
.mobile-bar { display: none; }
@media (max-width: 920px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(5,18,38,.97); border-top: 1px solid var(--line-dark);
  }
  .mobile-bar .btn { justify-content: center; padding: 14px 10px; }
  body { padding-bottom: 76px; }
}

/* reveal (content always visible without JS) */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* 404 */
.nf { min-height: 60vh; display: flex; align-items: center; }
.nf .code { font-family: var(--mono); color: var(--blue-300); font-size: 0.9rem; letter-spacing: 0.14em; }
@media (max-width: 520px) {
  .order li { grid-template-columns: 30px 1fr; padding: 16px 18px; }
  .order-head { padding: 16px 18px; }
}
.contact-grid { grid-template-columns: 1fr 1fr; }
.contact-grid .cbox--wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-main { align-items: stretch !important; }
.contact-main .map { aspect-ratio: auto; min-height: 440px; height: 100%; }
@media (max-width: 860px) { .contact-main .map { min-height: 360px; height: auto; } }

/* small blue labels on light backgrounds: darker blue for contrast */
.card .num, .step .n, .split-diagram .side:not(.side--lab) li span, .value .num, .svc .meta, .order li::before { color: #2a6aa8; }
.dark .step .n { color: var(--blue-300); }
@media (max-width: 860px) { .svc-imgs, .feature > .frame { max-width: 640px; } }
