/* GeoNep: shared design tokens, components, responsive layouts and accessibility. */
:root {
  color-scheme: light;
  --paper: #f7f7f2;
  --surface: #fff;
  --ink: #202e28;
  --muted: #5e6a62;
  --dark: #17251f;
  --red: #d71920;
  --red-hover: #b81118;
  --olive: #71816b;
  --line: #dce1d8;
  --light-line: #ffffff24;
  --font: "Segoe UI", Arial, sans-serif;
  --mono: "Consolas", "Courier New", monospace;
  --gutter: clamp(20px, 4.5vw, 72px);
  --section-space: clamp(64px, 7.5vw, 112px);
  --radius: 10px;
  --shadow: 0 20px 60px #17251f0c;
}

/* Base and shared elements */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.75 var(--font); -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; text-decoration: none; text-underline-offset: 5px; }
button { border: 0; font: inherit; color: inherit; cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:disabled { cursor: default; }
:where(a, button, summary):focus-visible { outline: 3px solid #e64b43; outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: #efc9be; color: var(--dark); }
.wrap { width: min(1240px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.wrap > *, :where(.about-grid, .services-grid, .contact-heading, .office-grid, .departments, .gallery) > * { min-width: 0; }
.skip-link { position: fixed; z-index: 50; top: 12px; left: 12px; transform: translateY(-150%); padding: 12px 20px; background: #fff; color: var(--ink); border-radius: 5px; }
.skip-link:focus { transform: none; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 11px; line-height: 1.5; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.display { font-size: clamp(34px, 4vw, 56px); line-height: 1.12; font-weight: 500; letter-spacing: -.045em; }
.display em { color: var(--olive); font-style: normal; }
.body-copy { color: var(--muted); line-height: 1.85; }
.section-marker { display: flex; justify-content: space-between; align-items: start; gap: 24px; border-top: 1px solid var(--line); padding-top: 20px; font: 500 11px/1.6 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.section-marker span:first-child { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; }
.section-marker span:first-child::before { content: ""; flex-shrink: 0; width: 20px; height: 2px; background: var(--red); }
.section-marker span:last-child { text-align: right; }
.arrow { flex-shrink: 0; display: inline-block; font: 400 22px/1 var(--font); }
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 56px; max-width: 100%; padding: 16px 22px; border: 1px solid var(--red); border-radius: 5px; background: var(--red); color: #fff; font-size: 14px; line-height: 1.4; font-weight: 600; text-align: left; }
.text-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; padding-block: 8px; font-size: 14px; line-height: 1.5; font-weight: 600; }
.text-link .arrow { color: var(--red); }
.cone-icon { flex-shrink: 0; width: 30px; height: 34px; }
.cone-icon svg { width: 100%; height: 100%; }
.cone-trace { stroke-dasharray: 1; stroke-dashoffset: 0; }

/* Header: menu participates in normal flow, including when expanded on mobile. */
.hero { position: relative; isolation: isolate; display: grid; grid-template-rows: auto 1fr auto; background: var(--dark); color: #fff; padding-bottom: 32px; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 95% 20%, #63765c30, transparent 62%), linear-gradient(135deg, #101e17, transparent 65%); }
.site-header { position: relative; z-index: 5; padding-top: 24px; }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 102px; padding: 12px 24px; border: 1px solid #ffffff26; border-radius: 8px; background: #17251f; }
.brand { flex-shrink: 0; }
.brand img { width: 178px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); margin-left: auto; }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 500; white-space: nowrap; color: #e1e6df; }
.nav a::after { content: ""; position: absolute; height: 2px; background: var(--red); inset: auto 0 4px; transform: scaleX(0); transform-origin: left; }
.header-contacts { display: grid; gap: 2px; flex-shrink: 0; padding-left: 24px; border-left: 1px solid var(--light-line); }
.header-contacts a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 24px; font-size: 12px; line-height: 1.5; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.header-contacts span { font-size: 10px; font-weight: 400; color: #bac7bb; }
.nav-toggle { display: none; }

/* Hero: separate photo panel with a compact CPTU illustration. */
.hero-content { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: center; padding-block: 56px 72px; }
.hero-copy { min-width: 0; }
.hero .eyebrow { color: #dfbdb0; margin-bottom: 26px; }
h1 { font-size: clamp(48px, 5.7vw, 78px); line-height: 1.06; font-weight: 500; letter-spacing: -.055em; }
h1 em { display: block; font-style: normal; color: #e9d9cc; }
.hero-intro { max-width: 49ch; margin-top: 28px; font-size: 16px; line-height: 1.85; color: #c6d1c6; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.hero-actions .text-link { color: #eef1e9; }
.hero-actions .arrow { color: inherit; }
.hero-visual { position: relative; isolation: isolate; min-width: 0; height: clamp(440px, 39vw, 540px); border-radius: var(--radius); background: #2b3c2e; box-shadow: 0 26px 60px #0003; }
.hero-visual::after { content: ""; position: absolute; z-index: 1; inset: 0; border: 1px solid #ffffff24; border-radius: inherit; background: linear-gradient(180deg, #0c180e38, transparent 40%, #0c180e26); pointer-events: none; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% center; border-radius: inherit; }
.hero-photo-label { position: absolute; z-index: 2; top: 20px; right: 20px; padding: 8px 12px; border: 1px solid #ffffff30; border-radius: 4px; background: #17251fe8; color: #f0f2e9; font: 500 10px/1.6 var(--font); letter-spacing: .08em; text-transform: uppercase; }
.hero-card { position: absolute; z-index: 2; bottom: -22px; left: -24px; display: block; min-width: 0; width: 234px; padding: 9px; border: 1px solid #ffffff36; border-radius: var(--radius); background: #17251ff5; box-shadow: 0 12px 44px #0003; }
.cpt-scene { overflow: hidden; border-radius: 5px; background: #223127; }
.cpt-scene svg { width: 100%; height: auto; }
.hero-card-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 6px 6px; font-size: 12px; line-height: 1.7; }
.hero-card-caption div > span { color: #c1cdbb; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.hero-card-caption > .arrow { color: #e7c4b7; }
.hero-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 70px; border-top: 1px solid #ffffff2b; color: #ced8c9; font-size: 10px; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; }
.hero-bottom a { display: inline-flex; align-items: center; gap: 22px; min-height: 48px; color: #f0f2e9; }
.hero-bottom .arrow { color: #e8b9aa; }

/* Key figures */
.facts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: -32px; padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.fact { display: flex; flex-direction: column; gap: 10px; padding-inline: 32px; border-left: 1px solid var(--line); min-width: 0; }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact:last-child { padding-right: 0; }
.fact strong { font-size: clamp(28px, 2.7vw, 38px); line-height: 1.15; letter-spacing: -.04em; font-weight: 500; font-variant-numeric: tabular-nums; }
.fact span { font-size: 12px; line-height: 1.6; color: var(--muted); }

/* Company */
.about { padding-block: var(--section-space); }
.about-grid { display: grid; grid-template-columns: .95fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-photo { overflow: hidden; background: var(--dark); border-radius: var(--radius); box-shadow: var(--shadow); }
.about-photo > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 45% center; }
.photo-tag { padding: 26px 30px 30px; color: #fff; font-size: clamp(19px, 1.9vw, 25px); line-height: 1.45; font-weight: 500; letter-spacing: -.02em; }
.photo-tag small { display: block; margin-bottom: 12px; color: #c0cdb9; font-size: 10px; line-height: 1.5; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; }
.about-copy .eyebrow { color: #68785e; margin-bottom: 22px; }
.about-copy .display { margin-bottom: 26px; }
.about-copy .body-copy + .body-copy { margin-top: 18px; }
.about-signoff { display: grid; gap: 4px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.about-signoff strong { font-size: 14px; font-weight: 600; }
.about-signoff span { color: var(--muted); font-size: 12px; }
.about-copy > .text-link { margin-top: 12px; }

/* Services */
.services { padding-bottom: var(--section-space); }
.services-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 5vw, 76px); align-items: start; padding-top: 46px; }
.services-intro .body-copy { max-width: 43ch; margin-top: 24px; }
.cross-section { margin-top: 32px; }
.cross-section a { display: block; overflow: hidden; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: var(--shadow); }
.cross-section img { width: 100%; height: auto; }
.diagram-hint { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; margin-top: 12px; padding: 12px 6px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.diagram-hint .arrow { color: var(--red); font-size: 20px; }
.cross-section figcaption { margin-top: 12px; color: var(--muted); font-size: 12px; }
.service-list { display: grid; gap: 12px; }
.service { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.service[open] { border-color: #bcc8b6; box-shadow: var(--shadow); }
.service summary { display: grid; grid-template-columns: 24px minmax(0, 1fr) 38px; align-items: start; gap: 16px; padding: 24px; border-radius: inherit; cursor: pointer; list-style: none; }
.service summary::-webkit-details-marker { display: none; }
.service-number { padding-top: 5px; color: #6e7b6b; font: 12px/1.8 var(--mono); }
.service h3 { font-size: clamp(22px, 2.1vw, 28px); line-height: 1.25; font-weight: 500; letter-spacing: -.025em; text-wrap: pretty; }
.service-subtitle { display: block; margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.75; letter-spacing: .035em; }
.service-hint { display: block; margin-top: 12px; color: #9e2c24; font-size: 12px; font-weight: 500; }
.service[open] .when-closed, .service:not([open]) .when-open { display: none; }
.service-plus { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #ccd4c7; border-radius: 50%; color: var(--ink); font: 400 23px/1 var(--font); }
.service-plus::before { content: "+"; }
.service[open] .service-plus { color: #fff; background: var(--red); border-color: var(--red); }
.service[open] .service-plus::before { content: "−"; }
.service[open] h3 { color: #182d20; }
.service-body { padding: 0 24px 26px 64px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.service-body .text-link { color: var(--ink); margin-top: 15px; }

/* Field work and equipment */
.field { padding-block: var(--section-space); background: var(--dark); color: #f1f3eb; }
.field .section-marker { border-color: var(--light-line); color: #b5c3b2; }
.field .section-marker span:first-child { color: #e2e9dc; }
.legacy-anchor { display: block; }
.field-feature { position: relative; isolation: isolate; display: flex; align-items: center; overflow: hidden; min-height: 430px; margin-top: 36px; border-radius: var(--radius); }
.field-feature > img { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.field-feature::after { content: ""; position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, #0d1b14eb, #0d1b147a 60%, #0d1b1420), linear-gradient(0deg, #0d1b1440, transparent); }
.field-feature-copy { padding: clamp(28px, 4vw, 56px); }
.field-feature .display { font-size: clamp(38px, 4.5vw, 62px); }
.field-feature .display em { color: #e8cbbb; }
.field-feature p { max-width: 38ch; margin-top: 26px; font-size: 15px; line-height: 1.8; color: #e0e7d8; }
.equipment-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 28px; margin-top: 44px; }
.equipment-item { min-width: 0; padding-block: 28px 32px; border-top: 1px solid var(--light-line); }
.equipment-number { color: #d9b09f; font: 12px/1 var(--mono); }
.equipment-item h3 { margin-top: 20px; font-size: 19px; line-height: 1.45; font-weight: 500; letter-spacing: -.015em; text-wrap: pretty; }
.equipment-item p { margin-top: 12px; color: #bfcdbd; font-size: 14px; line-height: 1.8; }
.gallery-intro { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-block: 48px 26px; padding-top: 32px; border-top: 1px solid var(--light-line); }
.gallery-intro h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; font-weight: 500; letter-spacing: -.025em; }
.gallery-intro p { color: #bfcdbd; font-size: 13px; }
.gallery { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 24px 28px; }
.gallery-item { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; border-radius: 7px; }
.gallery-item:first-child { grid-row: span 2; }
.gallery-image { display: block; position: relative; min-height: 0; aspect-ratio: 2 / 1; overflow: hidden; border-radius: 7px; background: #25382a; }
.gallery-item:first-child .gallery-image { aspect-ratio: auto; }
.gallery-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-zoom { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #ffffff70; border-radius: 50%; background: #17251fbb; font-size: 22px; }
.gallery-caption { display: flex; align-items: baseline; gap: 14px; padding-top: 18px; font-size: 14px; line-height: 1.6; }
.gallery-caption small { color: #c1b8a8; font: 11px/1 var(--mono); }

/* Projects */
.projects { padding-block: var(--section-space); }
.projects-content { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: center; margin-top: 42px; }
.projects-status { border-left: 2px solid #cbd4c3; padding-left: 28px; }
.status-label { display: inline-flex; align-items: center; gap: 10px; color: #78553d; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.status-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #aa7353; }
.projects-status p { margin-block: 16px 12px; color: var(--muted); font-size: 15px; line-height: 1.85; }

/* Contact */
.contact { padding-block: var(--section-space); background: #edf0e8; }
.contact-heading { display: grid; grid-template-columns: 1fr .85fr; align-items: start; gap: 80px; margin-top: 42px; }
.contact-heading .display { font-size: clamp(40px, 5vw, 68px); }
.contact-preparation { color: var(--muted); font-size: 15px; line-height: 1.85; }
.contact-preparation strong { color: var(--ink); font-weight: 600; }
.contact-preparation ul { padding-left: 20px; margin-block: 14px; }
.contact-preparation li + li { margin-top: 6px; }
.contact-preparation li::marker { color: var(--red); }
.contact-preparation a { color: var(--ink); text-decoration: underline; }
.departments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.department { position: relative; padding: 28px; border: 1px solid #d9dfd3; border-radius: var(--radius); background: var(--surface); }
.department::before { content: ""; position: absolute; top: -1px; left: 28px; width: 40px; height: 3px; background: var(--red); }
.department:focus-within { border-color: #9cae91; }
.department-label { color: #5e7057; font-size: 11px; line-height: 1.6; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.department h3 { min-height: 48px; margin-block: 14px 18px; font-size: 15px; line-height: 1.6; font-weight: 400; }
.department-phone { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; white-space: nowrap; font-size: clamp(25px, 2.4vw, 33px); font-weight: 500; line-height: 1.3; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.department-phone .arrow { color: var(--red); font-size: 20px; }
.department-email { display: table; min-height: 44px; padding-block: 8px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.office-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; margin-top: 30px; border: 1px solid #d9dfd3; border-radius: var(--radius); background: #fff9; overflow: hidden; }
.office-photo { position: relative; height: 100%; }
.office-photo img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; object-position: 50% 58%; }
.office-photo figcaption { position: absolute; bottom: 18px; left: 18px; padding: 8px 14px; border-radius: 3px; background: #17251fe8; color: #fff; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.office-details { padding: clamp(28px, 4vw, 54px); }
.office-details .eyebrow { color: #617457; margin-bottom: 22px; }
address { font-size: 18px; line-height: 1.8; font-style: normal; }
address strong { font-weight: 600; }
address small { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.office-details .text-link { margin-top: 12px; }
.office-map { overflow: hidden; margin-top: 30px; border: 1px solid #d9dfd3; border-radius: var(--radius); background: #fff9; }
.map-placeholder { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px 36px; padding: 30px; }
.map-placeholder .eyebrow { color: #617457; }
.map-placeholder h3 { margin-block: 10px 4px; font-size: 26px; line-height: 1.3; font-weight: 500; letter-spacing: -.025em; }
.map-placeholder p { color: var(--muted); font-size: 14px; }
.map-placeholder .map-note { grid-column: 1 / -1; font-size: 12px; }
.map-note a { display: inline-block; padding-block: 4px; color: var(--ink); text-decoration: underline; }
.map-load { display: none; }
.js .map-load { display: inline-flex; }
.map-load:disabled { background: #52654c; border-color: #52654c; color: #fff; }
.office-map iframe { display: block; width: 100%; height: 390px; border: 0; }
.office-map.is-loaded .map-instruction { display: none; }

/* Footer and mobile contact */
.footer { padding-block: 48px 26px; background: #101e17; color: #e3eadc; }
.footer-main { display: flex; align-items: center; gap: 44px; }
.footer-logo { width: 174px; height: auto; }
.footer-company { margin-left: auto; color: #bdcbb6; font-size: 12px; line-height: 1.9; }
.footer-company strong { display: block; color: #ecf0e6; font-weight: 500; }
.back-top { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border: 1px solid #ffffff40; border-radius: 50%; font-size: 23px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--light-line); font-size: 11px; line-height: 1.7; color: #aebfa6; }
.mobile-contact { display: none; }

/* Native gallery dialog: image always fits between controls and caption. */
.lightbox { width: min(1160px, calc(100% - 40px)); max-width: none; height: min(850px, calc(100dvh - 40px)); max-height: calc(100dvh - 40px); margin: auto; padding: 18px; border: 1px solid #ffffff40; border-radius: var(--radius); background: #14221a; color: #fff; box-shadow: 0 30px 100px #0005; }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 14px; }
.lightbox::backdrop { background: #071009e8; backdrop-filter: blur(8px); }
.lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 13px; line-height: 1.5; }
.lightbox-controls { display: flex; flex-shrink: 0; gap: 8px; }
.lightbox-controls button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #ffffff40; border-radius: 4px; background: transparent; color: #fff; font-size: 24px; }
.lightbox-controls button[hidden] { display: none; }
#lightbox-image { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #0d1811; border-radius: 3px; }
.lightbox.is-diagram #lightbox-image { background: #fff; }
#lightbox-caption { color: #d5dfcb; font-size: 13px; line-height: 1.6; }

/* Tablet and small laptop */
@media (max-width: 1179px) {
  .header-inner { gap: 22px; padding-inline: 20px; }
  .brand img { width: 154px; }
  .header-contacts { padding-left: 18px; }
  .header-contacts a { gap: 12px; font-size: 11px; }
  .nav { gap: 18px; }
  .hero-content { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; }
  .hero-card { left: -16px; width: 212px; }
  .facts { padding: 30px; }
  .fact { padding-inline: 22px; }
  .equipment-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .equipment-item:last-child { grid-column: 1 / -1; }
  .equipment-item:last-child p { max-width: 60ch; }
  .department { padding: 22px; }
  .department-phone { font-size: 27px; gap: 10px; }
}

/* Menu switches before desktop links or phone numbers become cramped. */
@media (max-width: 1020px) {
  .header-inner { flex-wrap: wrap; gap: 0 24px; min-height: 88px; padding: 14px 20px; }
  .brand img { width: 164px; }
  .js .nav-toggle { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-width: 96px; min-height: 46px; margin-left: auto; padding: 10px 14px; border: 1px solid #ffffff40; border-radius: 5px; background: #ffffff08; color: #fff; }
  .nav-toggle-label { font-size: 13px; line-height: 1; }
  .nav-toggle-icon { position: relative; display: block; width: 18px; height: 14px; }
  .nav-toggle-icon::before, .nav-toggle-icon::after { content: ""; position: absolute; left: 0; width: 18px; height: 1px; background: currentColor; }
  .nav-toggle-icon::before { top: 3px; }
  .nav-toggle-icon::after { bottom: 3px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { top: 6px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { bottom: 7px; transform: rotate(-45deg); }
  .nav { order: 3; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); flex-basis: 100%; gap: 8px; width: 100%; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--light-line); }
  .nav a { min-height: 48px; padding: 8px; font-size: 14px; }
  .nav a::after { display: none; }
  .header-contacts { order: 4; flex-basis: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 12px; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--light-line); }
  .header-contacts a { min-height: 44px; font-size: 13px; }
  .header-contacts span { font-size: 12px; }
  .js .nav:not(.is-open), .js .nav:not(.is-open) + .header-contacts { display: none; }
  .hero-content { padding-block: 52px 62px; }
  .hero-visual { height: 450px; }
  h1 { font-size: clamp(44px, 5.9vw, 60px); }
  .about-grid { gap: 40px; }
  .about-copy .body-copy { font-size: 15px; }
  .services-grid { gap: 36px; }
  .service summary { gap: 14px; }
  .service summary { padding: 22px; }
  .service-body { padding-left: 60px; padding-right: 22px; }
  .projects-content, .contact-heading { gap: 40px; }
  .departments { gap: 14px; }
  .department { padding: 22px 18px; }
  .department-phone { font-size: 24px; }
}

/* Tablet portrait */
@media (max-width: 860px) {
  .hero-content { grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
  .hero-copy { max-width: 660px; }
  h1 { font-size: clamp(44px, 8.8vw, 72px); }
  .hero-visual { height: clamp(320px, 49vw, 410px); }
  .hero-photo { object-position: center 56%; }
  .hero-card { bottom: 18px; left: 18px; display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; width: min(360px, calc(100% - 36px)); padding: 8px; }
  .hero-card-caption { padding: 10px 8px 10px 16px; }
  .hero-card-caption > .arrow { font-size: 20px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact strong { font-size: 34px; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
  .photo-tag { font-size: 19px; padding: 22px; }
  .services-grid { grid-template-columns: 1fr; gap: 36px; }
  .services-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-items: start; }
  .services-intro .display { grid-column: 1; }
  .services-intro .body-copy { grid-column: 1; margin-top: 20px; }
  .cross-section { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .equipment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .equipment-item:last-child { grid-column: auto; }
  .gallery { gap: 18px; }
  .gallery-caption { gap: 10px; font-size: 13px; }
  .projects-content, .contact-heading { grid-template-columns: 1fr; gap: 28px; }
  .projects-status { max-width: 620px; }
  .contact-preparation { max-width: 640px; }
  .departments { grid-template-columns: 1fr; gap: 14px; }
  .department { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 28px; align-items: center; padding: 24px; }
  .department-label { grid-column: 1; }
  .department h3 { grid-column: 1; min-height: 0; margin: 4px 0 0; }
  .department-phone { grid-column: 2; grid-row: 1 / 3; font-size: 29px; }
  .department-email { grid-column: 1 / -1; }
  .office-grid { grid-template-columns: 1fr 1fr; }
  .office-details { padding: 26px; }
  .office-details .eyebrow { font-size: 10px; letter-spacing: .09em; }
  .office-photo img { min-height: 360px; }
  .footer-main { gap: 28px; }
  .footer-logo { width: 150px; }
}

/* Phones */
@media (max-width: 620px) {
  :root { --gutter: 24px; --section-space: 64px; }
  body { font-size: 15px; }
  .display { font-size: clamp(33px, 8vw, 44px); }
  .section-marker { gap: 16px; font-size: 10px; letter-spacing: .09em; }
  .section-marker span:last-child { max-width: 48%; }
  .site-header { padding-top: 16px; }
  .header-inner { min-height: 78px; padding: 12px 14px; gap: 0 14px; }
  .brand img { width: 145px; }
  .js .nav-toggle { min-width: 82px; padding: 10px; gap: 9px; }
  .nav { grid-template-columns: 1fr 1fr; }
  .nav a { padding-inline: 4px; }
  .header-contacts { grid-template-columns: 1fr; gap: 0; padding-top: 10px; }
  .header-contacts a { min-height: 46px; padding-inline: 4px; border-bottom: 1px solid #ffffff0d; font-size: 14px; }
  .header-contacts a:last-child { border-bottom: 0; }
  .hero { padding-bottom: 24px; }
  .hero-content { padding-block: 44px 30px; gap: 30px; }
  .hero-visual { height: 320px; }
  .hero-photo { object-position: 48% center; }
  .hero-photo-label { top: 14px; right: 14px; font-size: 9px; }
  .hero .eyebrow { margin-bottom: 22px; font-size: 10px; gap: 9px; letter-spacing: .1em; }
  h1 { font-size: clamp(40px, 10.6vw, 65px); line-height: 1.07; }
  .hero-intro { margin-top: 24px; font-size: 15px; line-height: 1.85; }
  .hero-actions { gap: 12px; margin-top: 26px; align-items: stretch; flex-direction: column; }
  .hero-actions .btn { justify-content: space-between; }
  .hero-actions .text-link { align-self: start; }
  .hero-card { left: 14px; bottom: 14px; width: calc(100% - 28px); max-width: 340px; grid-template-columns: 100px minmax(0, 1fr); }
  .hero-card-caption { padding-inline: 12px 4px; font-size: 12px; gap: 6px; }
  .hero-card-caption div > span { font-size: 9px; letter-spacing: .06em; }
  .hero-bottom-inner { min-height: 65px; font-size: 10px; }
  .hero-bottom-inner > span { display: none; }
  .facts { margin-top: -24px; padding: 28px 24px; gap: 26px 0; }
  .fact { padding-inline: 18px; }
  .fact strong { font-size: clamp(23px, 6.4vw, 34px); }
  .fact span { font-size: 12px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-photo > img { aspect-ratio: 4 / 3; }
  .photo-tag { font-size: 21px; padding: 24px; }
  .about-copy .display { margin-bottom: 22px; }
  .about-signoff { margin-top: 24px; }
  .services-grid { padding-top: 32px; }
  .services-intro { display: block; }
  .services-intro .body-copy { max-width: none; }
  .cross-section { margin-top: 26px; }
  .cross-section a { padding: 10px; }
  .service summary { grid-template-columns: 20px minmax(0, 1fr) 34px; gap: 10px; padding: 22px 18px; }
  .service h3 { font-size: 22px; }
  .service-plus { width: 34px; height: 34px; }
  .service-subtitle { font-size: 11px; }
  .service-body { padding: 0 18px 22px; font-size: 14px; }
  .field-feature { min-height: 390px; margin-top: 28px; align-items: end; }
  .field-feature-copy { padding: 28px 24px; }
  .field-feature .display { font-size: 40px; }
  .field-feature::after { background: linear-gradient(0deg, #0d1b14f5, #0d1b1466), linear-gradient(90deg, #0d1b1470, transparent); }
  .field-feature p { font-size: 14px; margin-top: 22px; }
  .equipment-grid { gap: 0 24px; margin-top: 32px; }
  .equipment-item { padding-block: 24px 28px; }
  .equipment-item h3 { font-size: 18px; }
  .equipment-item p { font-size: 13px; }
  .gallery-intro { align-items: start; flex-direction: column; gap: 14px; margin-top: 30px; padding-top: 26px; }
  .gallery { grid-template-columns: 1fr; gap: 28px; }
  .gallery-item:first-child { grid-row: auto; }
  .gallery-image, .gallery-item:first-child .gallery-image { aspect-ratio: 3 / 2; }
  .gallery-caption { padding-top: 14px; font-size: 14px; }
  .projects-content, .contact-heading { margin-top: 32px; }
  .projects-status { padding-left: 22px; }
  .contact-heading .display { font-size: clamp(40px, 10vw, 52px); }
  .departments { margin-top: 32px; }
  .department { display: block; padding: 24px; }
  .department h3 { margin-block: 12px 16px; }
  .department-phone { font-size: 32px; }
  .department-email { margin-top: 2px; }
  .office-grid { grid-template-columns: 1fr; }
  .office-photo img { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .office-details { padding: 28px 24px; }
  .map-placeholder { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .map-placeholder .btn { justify-self: start; }
  .map-placeholder h3 { font-size: 24px; }
  .office-map iframe { height: 320px; }
  .footer { padding-block: 40px calc(108px + env(safe-area-inset-bottom, 0px)); }
  .footer-main { flex-wrap: wrap; gap: 26px; }
  .footer-company { order: 3; flex-basis: 100%; margin: 0; }
  .back-top { margin-left: auto; }
  .footer-bottom { flex-direction: column; gap: 8px; margin-top: 26px; }
  .mobile-contact { position: fixed; z-index: 10; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); left: 12px; right: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 12px 18px; border: 1px solid #ffffff30; border-radius: 8px; background: #14251ff5; color: #fff; box-shadow: 0 8px 32px #0003; backdrop-filter: blur(16px); }
  .mobile-contact > span:first-child { max-width: 112px; color: #c4d1bd; font-size: 11px; line-height: 1.45; }
  .mobile-contact strong { font-size: 17px; line-height: 1.3; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .mobile-contact > .arrow { color: #e3b8a7; }
  .lightbox { width: calc(100% - 20px); height: calc(100dvh - 20px); max-height: calc(100dvh - 20px); padding: 12px; }
  .lightbox-toolbar { gap: 12px; font-size: 11px; }
  .lightbox-controls { gap: 6px; }
  #lightbox-caption { font-size: 12px; }
}

@media (max-width: 380px) {
  :root { --gutter: 20px; }
  .brand img { width: 132px; }
  .js .nav-toggle { min-width: 72px; padding-inline: 9px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: .06em; }
  .hero-visual { height: 290px; }
  .hero-card { grid-template-columns: 80px minmax(0, 1fr); }
  .hero-card-caption { padding-left: 10px; }
  .hero-card-caption > .arrow { display: none; }
  .btn { padding-inline: 17px; gap: 16px; font-size: 13px; }
  .facts { padding-inline: 18px; }
  .fact { padding-inline: 12px; }
  .fact strong { font-size: 23px; }
  .photo-tag { padding: 22px; font-size: 20px; }
  .service summary { grid-template-columns: minmax(0, 1fr) 34px; gap: 10px; padding-inline: 16px; }
  .service summary > .service-number { display: none; }
  .service h3 { font-size: 20px; }
  .equipment-grid { grid-template-columns: 1fr; }
  .equipment-item { display: grid; grid-template-columns: 24px 1fr; gap: 0 16px; }
  .equipment-number { padding-top: 8px; grid-row: 1 / span 2; }
  .equipment-item h3 { margin-top: 0; }
  .equipment-item p { grid-column: 2; }
  .department { padding: 22px; }
  .department-phone { font-size: 29px; }
  .mobile-contact { padding-inline: 14px; gap: 8px; }
  .mobile-contact strong { font-size: 16px; }
  .mobile-contact > span:first-child { max-width: 90px; font-size: 10px; }
  .mobile-contact > .arrow { font-size: 18px; }
  .lightbox-toolbar { flex-wrap: wrap; gap: 10px; }
  .lightbox-controls { margin-left: auto; }
}

/* Short landscape screens: leave room for page content. */
@media (max-height: 500px) and (orientation: landscape) {
  .mobile-contact { display: none; }
  .hero-content { padding-top: 42px; }
}

/* Hover only on devices that actually support it. */
@media (hover: hover) {
  .btn:not(:disabled):hover { background: var(--red-hover); border-color: var(--red-hover); }
  .text-link:hover, .header-contacts a:hover, .department a:hover { text-decoration: underline; }
  .nav a:hover { color: #fff; }
  .nav a:hover::after { transform: scaleX(1); }
  .hero-card:hover { border-color: #ffffff80; background: #203329ee; }
  .cross-section a:hover { border-color: #9cae91; }
  .department:hover { border-color: #9cae91; }
  .service summary:hover .service-plus { border-color: var(--red); }
  .gallery-item:hover .gallery-image img { transform: scale(1.035); }
  .gallery-item:hover .gallery-zoom { background: var(--red); border-color: var(--red); }
  .back-top:hover, .lightbox-controls button:hover { background: #ffffff16; border-color: #ffffff90; }
}

/* Motion is entirely optional; static illustrations remain complete. */
@media (prefers-reduced-motion: no-preference) {
  :where(.btn, .hero-card, .service-plus, .gallery-zoom, .back-top, .lightbox-controls button) { transition: color .2s, background-color .2s, border-color .2s; }
  .nav a::after, .nav-toggle-icon::before, .nav-toggle-icon::after { transition: transform .2s; }
  .gallery-image img { transition: transform .45s ease; }
  .hero-copy { animation: enter .65s both; }
  .cpt-probe, .cpt-depth { animation: cpt-press 7s linear infinite; }
  .cpt-reveal { animation: cpt-record 7s linear infinite; }
  .cone-mark { animation: cone-press 7s linear infinite; }
  .cone-trace { animation: cone-record 7s linear infinite; }
  @keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes cpt-press { 0%, 8% { transform: translateY(-103px); } 82%, 100% { transform: translateY(0); } }
  @keyframes cpt-record { 0%, 8% { height: 0; } 82%, 100% { height: 103px; } }
  @keyframes cone-press { 0%, 8% { transform: translateY(-7px); } 82%, 100% { transform: translateY(0); } }
  @keyframes cone-record { 0%, 8% { stroke-dashoffset: 1; } 82%, 100% { stroke-dashoffset: 0; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (forced-colors: active) {
  .btn, .hero-card, .department, .gallery-zoom, .back-top { border: 1px solid ButtonText; }
  .service-plus { border-color: ButtonText; }
}

/* Print */
@media print {
  :root { --section-space: 24px; }
  body { font-size: 11pt; background: #fff; }
  .site-header, .hero-visual, .hero::before, .hero-bottom, .mobile-contact, .gallery-zoom, .back-top, .map-load, .map-note, .office-map iframe, dialog { display: none !important; }
  .wrap { width: 100%; }
  .hero { display: block; min-height: 0; background: #fff; color: #222; }
  .hero-content { display: block; padding-block: 20px; }
  h1 { font-size: 38pt; }
  h1 em, .hero-intro, .hero .eyebrow, .display em { color: #444; }
  .hero-actions { display: none; }
  .facts { margin-top: 0; padding: 20px; box-shadow: none; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-item:first-child { grid-row: auto; }
  .gallery-image, .gallery-item:first-child .gallery-image { aspect-ratio: 3 / 2; }
  .field, .contact, .footer { padding-block: 24px; background: #fff; color: #222; }
  .field-feature { min-height: 250px; }
  .equipment-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .equipment-item, .department { break-inside: avoid; border-color: #aaa; }
  .equipment-item p, .equipment-number, .gallery-caption, .gallery-intro p, .footer-company, .footer-company strong, .footer-bottom { color: #444; }
  .footer-logo { background: #17251f; }
  .about-photo, .cross-section a { box-shadow: none; }
  .office-grid { grid-template-columns: 1fr 1fr; }
  .office-photo img { min-height: 200px; }
}
