:root {
  --ink: #071b1c;
  --ink-2: #0b2928;
  --forest: #103d39;
  --teal: #167f75;
  --teal-bright: #22a697;
  --teal-pale: #dcefeb;
  --safety: #f4b63e;
  --safety-bright: #ffc858;
  --slate: #526866;
  --mist: #e9f0ef;
  --paper: #f6f8f7;
  --white: #ffffff;
  --line: rgba(7, 27, 28, 0.14);
  --line-light: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 70px rgba(7, 27, 28, 0.17);
  --shell: min(1220px, calc(100% - 3rem));
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Aptos, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.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-link {
  position: fixed;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 0.75rem 1rem;
  color: var(--ink);
  background: var(--safety);
  font-weight: 850;
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--safety-bright);
  outline-offset: 4px;
}

.shell { width: var(--shell); margin-inline: auto; }
.section { padding: clamp(5rem, 8.5vw, 8.5rem) 0; }

h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { margin-top: 0; line-height: 1.06; letter-spacing: -0.035em; }
h2 { margin-bottom: 0; font-size: clamp(2.4rem, 4.8vw, 4.7rem); font-weight: 790; }

.section-kicker,
.eyebrow {
  margin: 0 0 1.15rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.section-kicker-light { color: #79d3c9; }

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.86rem 1.25rem;
  border: 1px solid transparent;
  color: inherit;
  font-size: 0.91rem;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 170ms ease, background 170ms ease, border-color 170ms ease, color 170ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--safety); }
.button-primary:hover { background: var(--safety-bright); }
.button-ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.06); }
.button-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.13); }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--line);
  box-shadow: 0 10px 34px rgba(7, 27, 28, 0.1);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  color: inherit;
  text-decoration: none;
}

.logo-tile {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.logo-tile img { width: 54px; height: 54px; object-fit: contain; }
.site-header.is-scrolled .logo-tile { border-color: var(--line); box-shadow: 0 7px 20px rgba(7, 27, 28, 0.12); }

.brand-copy { display: grid; line-height: 1.05; letter-spacing: 0.02em; }
.brand-copy strong { font-size: 0.9rem; font-weight: 900; text-transform: uppercase; }
.brand-copy span { margin-top: 0.3rem; color: var(--teal-bright); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.22em; text-transform: uppercase; }

.primary-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 1.9rem); }
.primary-nav a { position: relative; color: inherit; font-size: 0.86rem; font-weight: 780; text-decoration: none; }
.primary-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  inset: auto 0 -0.48rem;
  height: 2px;
  background: var(--safety);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.primary-nav a:not(.nav-cta):hover::after,
.primary-nav a:not(.nav-cta):focus-visible::after { transform: scaleX(1); }
.nav-cta { padding: 0.68rem 0.95rem; border: 1px solid currentColor; }
.nav-cta:hover { color: var(--ink); border-color: var(--safety); background: var(--safety); }
.menu-toggle { display: none; }

/* Hero */
.hero {
  position: relative;
  min-height: min(900px, 100svh);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-media,
.hero-overlay,
.hero-lines { position: absolute; inset: 0; }

.hero-media {
  background: url("assets/refinery-hero.jpg") center / cover no-repeat;
  transform: scale(1.015);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(4, 20, 21, 0.98) 0%, rgba(4, 20, 21, 0.92) 38%, rgba(4, 20, 21, 0.5) 69%, rgba(4, 20, 21, 0.3) 100%),
    linear-gradient(0deg, rgba(4, 20, 21, 0.72), transparent 54%);
}

.hero-lines {
  opacity: 0.12;
  background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000, transparent 75%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: 7px;
  background: var(--teal-bright);
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: center;
  gap: clamp(3rem, 8vh, 5.5rem);
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.hero-copy { max-width: 860px; }
.eyebrow { display: flex; align-items: center; gap: 0.8rem; color: rgba(255,255,255,.84); }
.eyebrow span { width: 2.7rem; height: 2px; background: var(--safety); }

h1 {
  max-width: 13ch;
  margin-bottom: 1.65rem;
  font-size: clamp(3.25rem, 6.6vw, 6.6rem);
  font-weight: 800;
}

.hero-lede {
  max-width: 735px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.25rem; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 780px;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,.34);
}

.hero-facts div { padding: 1.15rem 1.6rem 0 0; border-right: 1px solid rgba(255,255,255,.18); }
.hero-facts div + div { padding-left: 1.6rem; }
.hero-facts div:last-child { border-right: 0; }
.hero-facts dt { color: var(--safety); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 900; line-height: 1; }
.hero-facts dd { margin: 0.45rem 0 0; color: rgba(255,255,255,.72); font-size: 0.82rem; font-weight: 760; letter-spacing: 0.05em; text-transform: uppercase; }

.hero-sector-bar {
  position: absolute;
  inset: auto 0 0;
  z-index: 4;
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,.15);
  background: rgba(5, 30, 29, 0.78);
  backdrop-filter: blur(10px);
}

.hero-sector-bar .shell { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-sector-bar span { padding: 1rem 1.2rem; border-right: 1px solid rgba(255,255,255,.14); font-size: 0.77rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-sector-bar span:first-child { padding-left: 0; }
.hero-sector-bar span:last-child { border-right: 0; }

/* Company */
.company { background: var(--white); }
.company-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.company-heading h2 { max-width: 13ch; }
.company-copy { padding-top: 2.1rem; border-top: 1px solid var(--line); }
.company-copy > p { margin: 0; color: var(--slate); font-size: 1.04rem; }
.company-copy > p + p { margin-top: 1.1rem; }
.company-copy .lead { color: var(--ink); font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 720; line-height: 1.5; }

.company-note {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0.4rem 2rem;
  margin-top: 2.5rem;
  padding: 1.8rem;
  overflow: hidden;
  color: var(--white);
  background: var(--forest);
}
.company-note::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--safety); }
.company-note span { color: #8ecfc6; font-size: 0.72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.company-note strong { grid-row: 1 / 3; grid-column: 2; color: var(--safety); font-size: clamp(2.5rem, 5vw, 4.4rem); line-height: .9; }
.company-note p { margin: 0; font-weight: 760; }

/* Shared headings */
.section-heading { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 3rem; align-items: end; margin-bottom: 3.4rem; }
.section-heading h2 { max-width: 14ch; }
.section-heading > p { margin: 0 0 .55rem; color: var(--slate); font-size: 1.03rem; }
.section-heading.compact { margin-bottom: 3rem; }

/* Services */
.services { background: var(--mist); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--white); }
.service-card { position: relative; min-height: 360px; display: flex; flex-direction: column; padding: clamp(2rem, 3.5vw, 2.7rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-card:nth-child(3n) { border-right: 0; }
.service-card:nth-last-child(-n+3) { border-bottom: 0; }
.service-card::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 0; height: 4px; background: var(--teal); transition: width 220ms ease; }
.service-card:hover::before { width: 100%; }
.service-number { position: absolute; top: 1.5rem; right: 1.5rem; color: #8b9b99; font-size: 0.72rem; font-weight: 900; letter-spacing: .13em; }
.service-icon { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 3rem; color: var(--safety); background: var(--ink); }
.service-icon svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin-bottom: .85rem; font-size: clamp(1.4rem, 2.1vw, 1.8rem); }
.service-card p { margin: 0; color: var(--slate); }
.service-tag { margin-top: auto; padding-top: 1.5rem; color: var(--teal); font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }

/* Technologies */
.technologies { position: relative; overflow: hidden; color: var(--white); background: var(--ink); }
.technologies::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .06;
  background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.technology-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); gap: clamp(4rem, 8vw, 8rem); align-items: center; }
.technology-copy h2 { max-width: 13ch; }
.technology-copy > p:not(.section-kicker) { max-width: 65ch; margin: 1.5rem 0 0; color: rgba(255,255,255,.68); font-size: 1.03rem; }
.technology-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 2.4rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-light); }
.technology-list li { min-height: 98px; padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line-light); }
.technology-list li:nth-child(odd) { margin-right: 1.2rem; border-right: 1px solid var(--line-light); }
.technology-list strong { display: block; margin-bottom: .25rem; color: var(--white); font-size: .92rem; }
.technology-list span { display: block; color: rgba(255,255,255,.58); font-size: .78rem; line-height: 1.5; }

.technology-visual { position: relative; min-height: 620px; }
.technology-image { position: absolute; margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.18); box-shadow: var(--shadow); background: var(--white); }
.technology-image img { width: 100%; height: 100%; object-fit: contain; }
.technology-image-main { inset: 3rem 0 auto 12%; width: 88%; aspect-ratio: 1.55; background: #020606; }
.technology-image-main img { object-fit: cover; object-position: center 38%; }
.technology-image-secondary { inset: auto 14% 1.5rem 0; width: 62%; aspect-ratio: 1.15; }
.technology-image-secondary img { object-fit: cover; object-position: center 36%; }
.technology-stamp { position: absolute; right: 0; bottom: 3.4rem; width: 170px; height: 170px; display: grid; place-content: center; text-align: center; color: var(--ink); border: 7px solid var(--ink); outline: 1px solid rgba(255,255,255,.18); background: var(--safety); }
.technology-stamp strong { font-size: 3rem; line-height: .9; letter-spacing: -.06em; }
.technology-stamp span { margin-top: .55rem; font-size: .66rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }

/* Scope */
.scope { background: var(--white); }
.scope-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 3px solid var(--ink); border-left: 1px solid var(--line); }
.scope-grid li { position: relative; min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.scope-grid li::after { content: ""; position: absolute; inset: -3px auto auto 0; width: 38%; height: 3px; background: var(--teal); }
.scope-grid span { color: #7c908e; font-size: .72rem; font-weight: 900; letter-spacing: .13em; }
.scope-grid strong { max-width: 18ch; font-size: 1.05rem; line-height: 1.35; }

/* Team */
.team { color: var(--white); background: var(--forest); }
.team .section-kicker { color: #82d6cd; }
.team-intro { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 4rem; align-items: end; }
.team-intro h2 { max-width: 13ch; }
.team-total { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center; padding: 1.5rem 0; border-block: 1px solid var(--line-light); }
.team-total strong { color: var(--safety); font-size: clamp(3.2rem, 6vw, 5.4rem); line-height: .82; }
.team-total span { color: rgba(255,255,255,.67); font-size: .82rem; line-height: 1.5; }

.team-photo { position: relative; margin: 3.4rem 0 0; overflow: hidden; border: 1px solid var(--line-light); background: #061918; box-shadow: var(--shadow); }
.team-photo img { width: 100%; aspect-ratio: 16 / 7; display: block; object-fit: cover; object-position: center 43%; }
.team-photo figcaption { position: absolute; inset: auto 0 0; padding: 2.6rem 1.4rem 1rem; color: rgba(255,255,255,.86); font-size: .78rem; font-weight: 760; letter-spacing: .035em; background: linear-gradient(transparent, rgba(3,16,16,.86)); }

.people-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 2.2rem; border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light); }
.people-grid div { min-height: 145px; padding: 1.45rem; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.people-grid strong { display: block; margin-bottom: 1.7rem; color: var(--safety); font-size: 1.55rem; line-height: 1; }
.people-grid span { color: rgba(255,255,255,.78); font-size: .84rem; font-weight: 700; line-height: 1.45; }

.leadership-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); margin-top: 3rem; padding: clamp(2rem, 5vw, 4.5rem); color: var(--ink); background: var(--white); }
.leadership-title > span,
.leadership-background > span { display: block; margin-bottom: 1rem; color: var(--teal); font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.leadership-title h3 { margin-bottom: .5rem; font-size: clamp(2rem, 4vw, 3.3rem); }
.leadership-title p { margin: 0; color: var(--slate); font-weight: 720; }
.leadership-signature { display: inline-block; margin-top: 1rem; color: #0b716a; font-weight: 800; text-underline-offset: .25em; }
.leadership-background { padding-left: 2rem; border-left: 1px solid var(--line); }
.leadership-background ul { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.leadership-background li { position: relative; padding-left: 1.3rem; color: var(--slate); }
.leadership-background li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; background: var(--safety); }

/* Field gallery */
.field-gallery { background: var(--mist); }
.field-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 1.1rem; }
.field-gallery-grid figure { position: relative; min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); background: var(--ink); box-shadow: 0 18px 45px rgba(7,27,28,.08); }
.field-gallery-grid img { width: 100%; aspect-ratio: 3 / 4; display: block; object-fit: cover; transition: transform 420ms ease; }
.field-gallery-grid .field-gallery-wide { grid-column: span 2; }
.field-gallery-grid .field-gallery-wide img { aspect-ratio: 8 / 5; }
.field-gallery-grid figure:hover img { transform: scale(1.025); }
.field-gallery-grid figcaption { position: absolute; inset: auto 0 0; display: grid; gap: .22rem; padding: 3.5rem 1.25rem 1.15rem; color: var(--white); background: linear-gradient(transparent, rgba(3,16,16,.92)); }
.field-gallery-grid figcaption strong { font-size: .94rem; letter-spacing: .01em; }
.field-gallery-grid figcaption span { color: rgba(255,255,255,.7); font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }

/* Commitments */
.commitments { position: relative; overflow: hidden; color: var(--white); background: var(--ink); }
.commitment-image,
.commitment-overlay { position: absolute; inset: 0; }
.commitment-image img { width: 100%; height: 100%; object-fit: cover; }
.commitment-overlay { background: linear-gradient(90deg, rgba(4, 20, 21, .98) 0%, rgba(4, 20, 21, .9) 48%, rgba(4, 20, 21, .72) 100%); }
.commitment-content { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(4rem, 9vw, 9rem); align-items: start; }
.commitment-heading h2 { max-width: 11ch; }
.commitment-list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light); }
.commitment-list article { min-height: 240px; padding: 1.7rem; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); background: rgba(9, 46, 43, .56); backdrop-filter: blur(8px); }
.commitment-list article > span { color: var(--safety); font-size: .7rem; font-weight: 900; letter-spacing: .14em; }
.commitment-list h3 { margin: 2.3rem 0 .8rem; font-size: 1.25rem; }
.commitment-list p { margin: 0; color: rgba(255,255,255,.68); font-size: .9rem; }

/* PGT-25 / LM2500 inspection: preserve the full frame of each photograph. */
.inspection-gallery { background: var(--paper); }
.inspection-gallery .section-heading h2 { max-width: 820px; font-size: clamp(2rem, 4.2vw, 3.8rem); }
.inspection-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.inspection-gallery-grid figure { margin: 0; min-width: 0; }
.inspection-gallery-grid a { position: relative; display: block; color: var(--white); background: var(--ink); border: 1px solid var(--line); text-decoration: none; }
.inspection-gallery-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.inspection-photo-label { position: absolute; left: .8rem; right: .8rem; bottom: .8rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .72rem; font-weight: 750; pointer-events: none; }
.inspection-photo-label, .inspection-photo-label span { text-shadow: 0 1px 5px #000; }
.inspection-photo-label span { padding: .35rem .65rem; border: 1px solid #ffffff55; border-radius: 4px; background: #071b1cd9; }
.inspection-gallery-grid a:hover .inspection-photo-label span,
.inspection-gallery-grid a:focus-visible .inspection-photo-label span { background: var(--forest); border-color: var(--safety); }
@media (max-width: 650px) {
  .inspection-gallery-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* Featured inspection film: show the complete portrait frame. */
.inspection-film { color: var(--white); background: var(--ink); scroll-margin-top: 90px; }
.inspection-film-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.inspection-film-copy { min-width: 0; }
.inspection-film-copy h2 { max-width: 18ch; font-size: clamp(2rem, 4.2vw, 3.9rem); line-height: 1.1; }
.inspection-film-description { max-width: 46ch; margin: 1.6rem 0 1rem; color: #c5d7d4; font-size: 1.05rem; }
.inspection-film-meta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 2rem; color: #86c6bd; font-size: .8rem; letter-spacing: .04em; }
.inspection-film-player { width: min(100%, 368px); min-width: 0; margin: 0; justify-self: center; }
.inspection-film-player video { display: block; width: 100%; height: auto; aspect-ratio: 576 / 1024; object-fit: contain; background: #000; border: 1px solid var(--line-light); box-shadow: 0 24px 60px #0005; }
.inspection-film-player figcaption { margin-top: .9rem; color: #b5cbc6; font-size: .8rem; line-height: 1.5; }
@media (max-width: 760px) {
  .inspection-film-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .inspection-film-copy h2 { max-width: 24ch; font-size: clamp(1.9rem, 7.7vw, 3rem); }
}

/* References */
.references { background: var(--mist); }
.reference-table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--white); box-shadow: 0 18px 50px rgba(7,27,28,.07); }
.reference-table-wrap:focus-visible { outline-offset: 5px; }
table { width: 100%; min-width: 880px; border-collapse: collapse; }
th, td { padding: 1rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { color: var(--white); background: var(--forest); font-size: .73rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
td { color: var(--slate); font-size: .88rem; }
td:first-child { color: var(--ink); font-weight: 760; }
tbody tr:nth-child(even) { background: #f2f6f5; }
tbody tr:last-child td { border-bottom: 0; }

/* Contact */
.contact { padding-top: 0; background: var(--mist); }
.contact-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(350px, .85fr); gap: clamp(3rem, 8vw, 7rem); padding: clamp(3rem, 7vw, 6.5rem); overflow: hidden; color: var(--white); background: var(--ink); }
.contact-panel::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7px; background: var(--safety); }
.contact-panel::after { content: "TCS"; position: absolute; right: -.04em; bottom: -.34em; color: rgba(255,255,255,.035); font-size: clamp(12rem, 26vw, 25rem); font-weight: 950; line-height: 1; letter-spacing: -.09em; pointer-events: none; }
.contact-copy,
.contact-details { position: relative; z-index: 1; }
.contact-copy h2 { max-width: 12ch; }
.contact-copy > p:not(.section-kicker) { max-width: 62ch; margin: 1.35rem 0 2rem; color: rgba(255,255,255,.7); font-size: 1.02rem; }
.contact-details { display: grid; align-self: end; margin: 0; font-style: normal; border-top: 1px solid var(--line-light); }
.contact-details div { padding: 1.05rem 0; border-bottom: 1px solid var(--line-light); }
.contact-details span { display: block; margin-bottom: .35rem; color: #79cfc5; font-size: .68rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.contact-details a { color: var(--white); font-size: clamp(.95rem, 1.5vw, 1.1rem); font-weight: 720; text-decoration-color: var(--safety); text-underline-offset: .28em; }
.contact-details p { margin: 0; color: rgba(255,255,255,.78); }

/* Footer */
.site-footer { padding: 3rem 0; color: rgba(255,255,255,.67); background: #031010; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto auto; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.footer-brand { color: var(--white); }
.site-footer p { margin: 0; font-size: .8rem; }
.footer-links { display: flex; gap: 1.2rem; }
.footer-links a { color: var(--white); font-size: .8rem; font-weight: 750; text-underline-offset: .3em; }
.copyright { text-align: right; }

/* Progressive reveal */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 520ms ease, transform 520ms ease; }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .primary-nav { gap: 1rem; }
  .primary-nav a { font-size: .8rem; }
  .technology-layout { grid-template-columns: minmax(0, 1fr) minmax(350px, .82fr); gap: 4rem; }
  .technology-visual { min-height: 540px; }
  .people-grid { grid-template-columns: repeat(3, 1fr); }
  .commitment-content { grid-template-columns: .75fr 1.25fr; gap: 4rem; }
}

@media (max-width: 900px) {
  :root { --shell: min(100% - 2rem, 760px); }
  .header-inner { min-height: 72px; }
  .menu-toggle {
    width: 44px;
    height: 44px;
    display: grid;
    place-content: center;
    gap: 5px;
    border: 1px solid currentColor;
    color: inherit;
    background: transparent;
  }
  .menu-toggle span:not(.sr-only) { width: 20px; height: 2px; background: currentColor; transition: transform 160ms ease, opacity 160ms ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
  .primary-nav {
    position: fixed;
    inset: 72px 0 auto;
    display: grid;
    gap: 0;
    padding: 1rem;
    color: var(--ink);
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    visibility: hidden;
    transition: transform 200ms ease, visibility 200ms ease;
  }
  .primary-nav.is-open { transform: translateY(0); visibility: visible; }
  .primary-nav a { padding: .95rem .4rem; border-bottom: 1px solid var(--line); font-size: .92rem; }
  .primary-nav .nav-cta { margin-top: .75rem; padding: .9rem 1rem; text-align: center; border: 0; background: var(--safety); }
  .hero { min-height: 880px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(4,20,21,.98), rgba(4,20,21,.78) 75%, rgba(4,20,21,.52)); }
  .hero-inner { padding-top: 7rem; padding-bottom: 7rem; }
  .company-grid,
  .section-heading,
  .technology-layout,
  .team-intro,
  .commitment-content,
  .contact-panel { grid-template-columns: 1fr; }
  .company-grid { gap: 3rem; }
  .section-heading { gap: 1.5rem; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .service-card:nth-child(2n) { border-right: 0; }
  .service-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .service-card:nth-last-child(-n+2) { border-bottom: 0; }
  .technology-visual { min-height: 620px; max-width: 650px; width: 100%; margin-inline: auto; }
  .scope-grid { grid-template-columns: repeat(2, 1fr); }
  .team-intro { gap: 2.5rem; }
  .team-total { max-width: 520px; }
  .people-grid { grid-template-columns: repeat(3, 1fr); }
  .field-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commitment-heading h2 { max-width: 13ch; }
  .contact-panel { gap: 3.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-links, .copyright { justify-self: start; text-align: left; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 1.4rem); }
  .section { padding: 4.7rem 0; }
  .logo-tile { width: 48px; height: 48px; }
  .logo-tile img { width: 45px; height: 45px; }
  .brand-copy strong { font-size: .78rem; }
  .brand-copy span { font-size: .64rem; }
  .hero { min-height: 900px; }
  .hero-media { background-position: 57% center; }
  .hero-inner { gap: 3.5rem; }
  h1 { font-size: clamp(2.95rem, 14vw, 4.35rem); }
  h2 { font-size: clamp(2.25rem, 11vw, 3.35rem); }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts div { border-bottom: 1px solid rgba(255,255,255,.16); }
  .hero-facts div:nth-child(2) { border-right: 0; }
  .hero-facts div:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-right: 0; border-bottom: 0; }
  .hero-sector-bar .shell { grid-template-columns: repeat(2, 1fr); }
  .hero-sector-bar span { padding: .72rem .8rem; font-size: .66rem; }
  .hero-sector-bar span:nth-child(2) { border-right: 0; }
  .hero-sector-bar span:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.14); }
  .company-note { grid-template-columns: 1fr; }
  .company-note strong { grid-row: auto; grid-column: auto; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .service-card:last-child { border-bottom: 0 !important; }
  .service-icon { margin-bottom: 2.3rem; }
  .technology-list { grid-template-columns: 1fr; }
  .technology-list li:nth-child(odd) { margin-right: 0; border-right: 0; }
  .technology-visual { min-height: 480px; }
  .technology-image-main { inset: 1rem 0 auto 4%; width: 96%; }
  .technology-image-secondary { inset: auto auto 1rem 0; width: 68%; }
  .technology-stamp { right: 0; bottom: 2rem; width: 125px; height: 125px; border-width: 5px; }
  .technology-stamp strong { font-size: 2.2rem; }
  .scope-grid { grid-template-columns: 1fr; }
  .scope-grid li { min-height: 150px; }
  .team-photo img { aspect-ratio: 4 / 3; object-position: center 42%; }
  .team-photo figcaption { position: static; padding: .9rem 1rem; background: #061918; }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .people-grid div { min-height: 138px; padding: 1.15rem; }
  .leadership-card { grid-template-columns: 1fr; }
  .leadership-background { padding: 2rem 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .field-gallery-grid { grid-template-columns: 1fr; }
  .field-gallery-grid .field-gallery-wide { grid-column: auto; }
  .field-gallery-grid .field-gallery-wide img { aspect-ratio: 4 / 3; }
  .commitment-list { grid-template-columns: 1fr; }
  .commitment-list article { min-height: 210px; }
  .contact-panel { width: 100%; padding-inline: 1.5rem; }
  .contact-details a { font-size: .9rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}

/* Domain launch: readable type and consistent narrow-screen layout. */
.hero-copy{max-width:920px}
h1{max-width:16ch;letter-spacing:-.045em;font-size:clamp(3rem,6.4vw,6.1rem);line-height:1.05}
.hero-lede{max-width:660px}
.primary-nav a{font-size:.9rem}
.brand-copy span{font-size:.8rem}
.footer-grid .copyright a{overflow-wrap:anywhere}
.contact-details a{overflow-wrap:anywhere}
@media(max-width:600px){h1{font-size:clamp(2.65rem,11vw,3.7rem)}.brand-copy strong{font-size:.8rem}.brand-copy span{font-size:.75rem}.hero-facts dd{font-size:.875rem}}
