/* Critical Energy Services Ltd · Production site
   Technical precision system: monospace labelling, margin rail indices,
   registration marks, service ticker, inverting cards.
   White canvas, grey panels, ink bands, signal orange. */

:root {
  --canvas: #ffffff;
  --paper: #f4f4f5;
  --panel: #e8e9eb;
  --panel-deep: #dfe1e4;
  --ink: #1d1e1a;
  --ink-soft: #34352e;
  --muted: #5f6266;
  --faint: #b0b2b5;
  --hair: #dee0e3;
  --accent: #f04400;
  --accent-soft: #ff8a50;
  --max: 1280px;
  --rail: 32px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(calc(100% - 64px), var(--max)); margin: 0 auto; }

/* margin rail: section index set in the left margin */
.section .wrap,
.cta .wrap,
.hero .wrap,
.detail-hero .wrap { position: relative; padding-left: var(--rail); }
.sec-no {
  display: none;
  position: absolute;
  left: -22px;
  top: 6px;
  width: 44px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--accent);
}
.sec-no::after {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  background: var(--faint);
  margin-top: 12px;
}

/* registration marks at section seams */
.section::before {
  content: "+";
  position: absolute;
  top: 0;
  left: 28px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1;
  transform: translateY(-50%);
  color: var(--accent);
}

.rule { display: block; width: 40px; height: 2px; background: var(--accent); margin: 26px 0 30px; }

/* ---------- display type ---------- */
.txt-h1, .txt-h2 {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.02;
  letter-spacing: -.028em;
}
.txt-h1 {
  font-size: clamp(2.9rem, 5.4vw, 4.9rem);
  text-transform: uppercase;
}
.txt-h2 { font-size: clamp(2.05rem, 3.4vw, 2.95rem); line-height: 1.09; letter-spacing: -.035em; text-wrap: balance; }
.txt-h3 {
  font-family: var(--sans);
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  margin: 0;
}

/* ---------- body copy ---------- */
.txt-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}
.txt-eyebrow::before { content: "// "; color: var(--accent); }
.txt-lead { font-size: 1.12rem; line-height: 1.6; color: #4d4c46; max-width: 56ch; margin: 0 0 14px; }
.txt-body { font-size: .95rem; line-height: 1.75; color: #595951; margin: 0 0 12px; }
.txt-small { font-size: .85rem; line-height: 1.55; color: var(--muted); margin: 0; }
.txt-li { font-size: .95rem; color: #4d4c46; }
/* text links: the marker is a small plotted square that spins and fills,
   not an underline */
.txt-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 22px;
  font-weight: 700;
  font-size: .88rem;
  color: var(--ink);
  transition: color .2s, gap .3s var(--ease);
}
.txt-link::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  border: 1px solid var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1;
  color: var(--accent);
  transition: transform .4s var(--ease), background .25s, color .25s, border-color .25s;
}
.txt-link:hover, a:hover > .txt-link { color: var(--accent); gap: 15px; }
.txt-link:hover::before, a:hover > .txt-link::before { transform: rotate(90deg); background: var(--accent); border-color: var(--accent); color: #fff; }
.txt-email { font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--faint); padding-bottom: 2px; transition: border-color .2s, color .2s; }
.txt-email:hover { border-color: var(--accent); color: var(--accent); }

.btn-t {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  margin-top: 30px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-t:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-t.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-t.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* corner registration brackets: draw out to the corners on hover */
.btn-t::before,
.btn-t::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .38s var(--ease);
}
.btn-t::before {
  top: -6px;
  left: -6px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  transform: translate(6px, 6px);
}
.btn-t::after {
  bottom: -6px;
  right: -6px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: translate(-6px, -6px);
}
.btn-t:hover::before,
.btn-t:hover::after { opacity: 1; transform: translate(0, 0); }
.btn-t:active, .head-cta:active { transform: translateY(1px); }

.chip-t {
  border: 1px solid var(--hair);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
  background: var(--canvas);
  transition: border-color .2s, color .2s;
}
.chip-t:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- imagery ---------- */
/* one consistent grade across every photograph: desaturated, warm-neutral,
   matched contrast. Full colour returns on hover. */
.img-frame {
  border: 1px solid var(--hair);
  overflow: hidden;
  position: relative;
  clip-path: none;
}
.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(240, 68, 0, .10), rgba(29, 30, 26, .12));
  mix-blend-mode: multiply;
  opacity: 1;
  transition: opacity .5s ease;
  pointer-events: none;
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(.2) contrast(1.02);
  transform: scale(1.001);
  transition: filter .55s ease, transform .8s var(--ease);
}
.img-frame:hover img { filter: grayscale(0) sepia(0) contrast(1.02); transform: scale(1.03); }
.img-frame:hover::after { opacity: 0; }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--hair);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 82px; gap: 32px; }
.brand img { display: block; width: 232px; max-height: 52px; object-fit: contain; object-position: left center; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  position: relative;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 0;
  transition: color .2s, letter-spacing .25s var(--ease);
}
/* plotted diamond marker, not a line */
.nav a::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--accent);
  opacity: 0;
  transform: translateY(-50%) translateX(-8px) rotate(45deg);
  transition: opacity .2s ease, transform .35s var(--ease);
}
.nav a:hover { color: var(--ink); letter-spacing: .14em; }
.nav a:hover::before { opacity: 1; transform: translateY(-50%) translateX(0) rotate(45deg); }
.nav a.current { color: var(--ink); }
.nav a.current::before { opacity: 1; transform: translateY(-50%) translateX(0) rotate(45deg); }
.head-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.head-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.head-cta::before,
.head-cta::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .38s var(--ease);
}
.head-cta::before {
  top: -5px;
  left: -5px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  transform: translate(5px, 5px);
}
.head-cta::after {
  bottom: -5px;
  right: -5px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: translate(-5px, -5px);
}
.head-cta:hover::before,
.head-cta:hover::after { opacity: 1; transform: translate(0, 0); }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: 104px 0; border-top: 1px solid var(--hair); }
.band { background: var(--panel); }
.band-deep { background: var(--panel-deep); }

.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
.split.even { grid-template-columns: 1fr 1fr; }
.split.head { grid-template-columns: 1fr 1fr; align-items: end; margin-bottom: 64px; }

/* ---------- hero (full-bleed immersive) ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 860px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 45px;
  background: var(--ink);
  border-bottom: 1px solid var(--hair);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(102deg, rgba(20, 21, 17, .94) 0%, rgba(20, 21, 17, .66) 44%, rgba(20, 21, 17, .20) 74%, rgba(20, 21, 17, .42) 100%),
    linear-gradient(to top, rgba(20, 21, 17, .82) 0%, rgba(20, 21, 17, 0) 42%);
  outline: 1px solid rgba(255, 255, 255, .10);
  outline-offset: -25px;
}
.hero::before,
.hero::after {
  content: "+";
  position: absolute;
  z-index: 3;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--accent);
  line-height: 1;
}
.hero::before { top: 17px; left: 20px; }
.hero::after { top: 17px; right: 20px; }
.hero-fig {
  position: absolute;
  top: 54px;
  right: 30px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}
/* live-status marker: a small plotted square with a soft pulse */
.hero-fig::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent);
  /* Static brand marker: no implied live system status. */
}
@keyframes figPing {
  0% { box-shadow: 0 0 0 0 rgba(240, 68, 0, .5); }
  70% { box-shadow: 0 0 0 9px rgba(240, 68, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 68, 0, 0); }
}
.hero-inner { position: relative; z-index: 2; padding-bottom: 48px; }
.hero .txt-eyebrow { color: rgba(255, 255, 255, .72); }
.hero .txt-h1 { color: #fff; max-width: 15ch; font-size: clamp(2.9rem, 5.6vw, 4.7rem); }
.hero .txt-h1 em { font-style: normal; color: var(--accent-soft); }
.hero .rule { background: var(--accent); }
.hero .txt-lead { color: rgba(255, 255, 255, .82); max-width: 52ch; }
.hero .btn-t { border-color: rgba(255, 255, 255, .45); color: #fff; }
.hero .btn-t.primary { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-actions .btn-t { margin-top: 34px; }

/* compact variant for sub-pages: the statement stays with the home hero */
.hero.compact { min-height: min(74vh, 720px); }
.hero.compact .txt-h1 { font-size: clamp(2.3rem, 4.4vw, 3.7rem); max-width: 20ch; }
.hero.compact .hero-inner { padding-bottom: 56px; }

.hero-spec {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 104px), calc(var(--max) - 40px));
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .22);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}
.hero-spec span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 20px 44px 20px 0;
}
/* plotted square marker, echoing the link chips */
.hero-spec span::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border: 1px solid var(--accent);
}

/* vertical page label, right edge of the hero frame */
.hero-side {
  position: absolute;
  z-index: 3;
  right: 30px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  white-space: nowrap;
  pointer-events: none;
}

/* ---------- service index (expanding columns, no JS) ---------- */
.svc-index {
  display: flex;
  border-bottom: 1px solid var(--hair);
  background: var(--canvas);
}
.svc-col {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  padding: 34px 30px 36px;
  border-right: 1px solid var(--hair);
  overflow: hidden;
  transition: background .25s ease, box-shadow .25s ease;
}
.svc-col:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.svc-col:last-child { border-right: 0; }
.svc-col::after {
  content: "+";
  position: absolute;
  top: 30px;
  right: 26px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1;
  color: var(--faint);
  transition: color .3s, transform .45s var(--ease);
}
.svc-col .idx {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--accent);
  margin-bottom: auto;
  transition: color .3s;
}
.svc-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--ink);
  transition: color .3s;
}
.svc-more {
  display: block;
  max-height: none;
  opacity: 1;
  transform: none;
  margin-top: 18px;
  overflow: hidden;
  font-size: .85rem;
  line-height: 1.55;
  color: var(--muted);
  transition: max-height .5s var(--ease), opacity .4s ease .05s, transform .5s var(--ease), margin-top .4s var(--ease);
}
.svc-go {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color .3s;
}
.svc-col:hover, .svc-col:focus-visible {
  flex-grow: 1;
  background: var(--paper);
  box-shadow: inset 0 2px 0 var(--accent);
}
.svc-col:hover::after, .svc-col:focus-visible::after { color: var(--accent); transform: rotate(90deg); }
.svc-col:hover .svc-more, .svc-col:focus-visible .svc-more {
  max-height: 200px;
  opacity: 1;
  transform: none;
  margin-top: 18px;
}

/* ---------- statement band ---------- */
.state-line {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.08;
  color: var(--ink);
}
.state-line em { font-style: normal; color: #c83b06; }
.state { overflow: hidden; }
.state .wrap::after {
  content: "+";
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 320px;
  line-height: 1;
  color: rgba(29, 30, 26, .05);
  pointer-events: none;
}

/* ---------- cards (numbered, inverting) ---------- */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: card; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: card; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; counter-reset: card; }
.card {
  position: relative;
  display: block;
  background: var(--canvas);
  border: 1px solid var(--hair);
  counter-increment: card;
  transition: background .3s, border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.card:hover {
  border-color: #c4c7cb;
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(29, 30, 26, .08);
}
.card:hover::after { transform: scaleX(1); }
.card .txt-h3, .card .txt-body, .card .txt-link { transition: color .3s; }
.card-body::before { transition: color .3s; }
.card .img-frame { border: 0; border-bottom: 1px solid var(--hair); aspect-ratio: 4 / 3; transition: border-color .3s; clip-path: none; }
.card.wide-img .img-frame { aspect-ratio: 16 / 10; }
.card:hover .img-frame img { filter: grayscale(0) contrast(1.02); transform: scale(1.04); }
.card:hover .img-frame::after { opacity: 0; }
.card-body { padding: 26px; }
.card-body::before {
  content: counter(card, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--accent);
  margin-bottom: 16px;
}
.card:hover .txt-link { color: var(--accent); }

/* sector detail: factual spec strip under the hero, per-sector terms */
.sector-spec {
  margin-top: 68px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  counter-reset: sspec;
  border-top: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.sector-spec span {
  counter-increment: sspec;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 22px 2px 22px;
  margin-right: 22px;
  border-left: 1px solid var(--hair);
}
.sector-spec span:first-child { border-left: 0; padding-left: 0; }
.sector-spec span::before {
  content: counter(sspec, decimal-leading-zero);
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--accent);
}

/* ---------- process steps ---------- */
.steps { border-top: 1px solid var(--hair); counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 180px 1fr 1.2fr;
  gap: 48px;
  align-items: baseline;
  padding: 34px 0;
  border-bottom: 1px solid var(--hair);
  counter-increment: step;
  transition: background .25s, padding-left .3s var(--ease);
}
.step:hover { background: var(--paper); }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--accent);
}
.step .txt-h3 { font-size: 1.12rem; text-transform: uppercase; letter-spacing: .01em; }
.step p { margin: 0; }

/* ---------- editorial devices ---------- */
/* ghost registration frame: an offset accent outline behind key imagery */
.plot { position: relative; }
.plot > .img-frame { position: relative; z-index: 1; }
.plot::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 1px solid rgba(240, 68, 0, .35);
  clip-path: none;
  pointer-events: none;
}
.plot.flip::after { top: -20px; left: -20px; right: 20px; bottom: 20px; }

/* image columns that break past the page rail, desktop only */
@media (min-width: 901px) {
  .bleed-r { margin-right: -56px; }
  .bleed-l { margin-left: -56px; }
}

/* ---------- standards strip ---------- */
.standards {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 0;
  padding: 26px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.standards b { color: var(--ink); font-weight: 700; padding: 0 28px; border-right: 1px solid var(--hair); }
.standards b:last-of-type { border-right: 0; }
.standards .std-lead { padding-right: 28px; color: var(--muted); }
.standards .std-lead::before { content: "// "; color: var(--accent); }

/* ---------- callout panel (reactive support) ---------- */
.callout {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 56px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--accent);
  padding: 52px 56px;
}
.callout .txt-h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.callout .rule { margin: 20px 0 22px; }
.callout .txt-lead { margin-bottom: 0; }
.callout-side { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.callout-side .btn-t { margin-top: 0; }

/* ---------- values / tiles ---------- */
.chips-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
.chips-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }

/* ---------- contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; margin-bottom: 88px; }
.form-panel {
  background: var(--canvas);
  border: 1px solid var(--hair);
  border-top: 3px solid var(--accent);
  padding: 42px;
}
.form-panel h2 { margin: 0; font-size: 1.3rem; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 34px; }
.field.full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.field label .opt { color: var(--faint); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid var(--faint);
  border-radius: 0;
  background: var(--paper);
  font-family: var(--sans);
  font-size: .92rem;
  color: var(--ink);
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--canvas); }
.form-status { margin-top: 16px; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- sector detail ---------- */
.detail-hero { padding: 96px 0; border-bottom: 1px solid var(--hair); }
.detail-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: start; }
.detail-hero .img-frame { aspect-ratio: 4 / 3; }
.back-line {
  display: inline-block;
  margin-bottom: 30px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.back-line:hover { color: var(--accent); }
.back-line::before { content: "← "; color: var(--accent); }

.sys-list { display: grid; gap: 0; padding: 0; margin: 0; border-top: 1px solid var(--hair); counter-reset: sys; }
.sys-list li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--hair);
  counter-increment: sys;
  font-size: .95rem;
  color: #4d4c46;
}
.sys-list li::before {
  content: counter(sys, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--accent);
}

.outcome {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--hair);
  padding: 18px 20px;
  background: var(--canvas);
  transition: border-color .2s;
}
.outcome:hover { border-color: var(--accent); }
.outcome .tick {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 1px solid var(--accent);
  position: relative;
}
.outcome .tick::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(40deg);
}
.outcome strong { font-size: .9rem; font-weight: 700; color: var(--ink); }
.outcomes { display: grid; gap: 12px; margin-top: 26px; }

/* ---------- dark feature band ---------- */
.dark-band { background: var(--ink); }
.dark-band .txt-h2, .dark-band .txt-h3 { color: var(--paper); }
.dark-band .txt-eyebrow { color: #a3a29a; }
.dark-band .txt-eyebrow::before { color: var(--accent-soft); }
.dark-band .txt-lead, .dark-band .txt-body { color: #b9b8b0; }
.dark-band .txt-small { color: #a3a29a; }
.dark-band .sec-no { color: var(--accent-soft); }
.dark-band .sec-no::after { background: #4c4b44; }
.dark-band .rule { background: var(--accent-soft); }
.dark-band .sys-list { border-top-color: #34352e; }
.dark-band .sys-list li { border-bottom-color: #34352e; color: #cfcec6; }
.dark-band .sys-list li::before { color: var(--accent-soft); }
.dark-band::before { color: var(--accent-soft); }
.dark-band .steps { border-top-color: #34352e; }
.dark-band .step { border-bottom-color: #34352e; }
.dark-band .step:hover { background: #26271f; }
.dark-band .step::before { color: var(--accent-soft); }
.dark-band .step .txt-body { color: #b9b8b0; }

/* ---------- bottom CTA (inverted) ---------- */
.cta { padding: 96px 0; background: var(--ink); }
.cta .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; }
.cta .txt-h2 { color: var(--paper); }
.cta .txt-eyebrow { color: #a3a29a; }
.cta .txt-eyebrow::before { color: var(--accent-soft); }
.cta .txt-small { color: #a3a29a; }
.cta .sec-no { color: var(--accent-soft); }
.cta .sec-no::after { background: #4c4b44; }
.cta .rule { background: var(--accent-soft); }
.cta-side { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.cta .btn-t { border-color: rgba(255, 255, 255, .45); color: #fff; }
.cta .btn-t.primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta .txt-email { color: var(--paper); border-color: #55544d; }
.cta .txt-email:hover { border-color: var(--accent-soft); color: var(--accent-soft); }

/* ---------- footer (dark, multi-column) ---------- */
footer { background: var(--ink); border-top: 1px solid #34352e; position: relative; }
.foot-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 56px;
  padding: 72px 0 56px;
}
.foot-brand img { width: 210px; max-height: 46px; object-fit: contain; object-position: left center; }
.foot-brand p { margin: 22px 0 0; font-size: .85rem; line-height: 1.65; color: #a3a29a; max-width: 34ch; }
.foot-col h2 {
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-soft);
  font-weight: 400;
}
.foot-col a {
  display: block;
  padding: 6px 0;
  font-size: .88rem;
  color: #cfcec6;
  transition: color .2s, padding-left .2s;
}
.foot-col a:hover { color: var(--accent-soft); }
.foot-col .txt-email { color: var(--paper); border-color: #55544d; font-size: .88rem; overflow-wrap: anywhere; }
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid #34352e;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: #8f8e86;
}
.foot-bottom a { color: #8f8e86; }
.foot-bottom a:hover { color: var(--accent-soft); }
.foot-links { display: flex; gap: 28px; }
.site-credit { white-space: nowrap; padding: 8px 0; }

/* ---------- global refinements ---------- */
section[id] { scroll-margin-top: 92px; }

/* sticky header: compact state once scrolled */
.site-head { transition: box-shadow .3s; }
.site-head .wrap { transition: height .3s var(--ease); }
.site-head.scrolled { box-shadow: 0 4px 18px rgba(29, 30, 26, .04); }
.site-head.scrolled .wrap { height: 76px; }

/* buttons: tactile press lives with .btn-t; head-cta keeps its own tracking shift */

/* scroll reveal (JS-gated; content is visible without JS) */
.js .rv { opacity: 0; transform: translateY(26px); }
.js .rv.rv-in {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--rv-d, 0s);
}

/* ---------- FAQ (details/summary, no JS required) ---------- */
.faq { border-top: 1px solid var(--hair); counter-reset: qa; }
.faq details { border-bottom: 1px solid var(--hair); counter-increment: qa; }
.faq summary {
  display: grid;
  grid-template-columns: 60px 1fr 30px;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  transition: color .2s, padding-left .3s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q·" counter(qa, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--accent);
  font-weight: 400;
}
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 18px;
  color: var(--accent);
  justify-self: end;
  transition: transform .3s var(--ease);
}
.faq summary:hover { color: var(--accent); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 84px 30px; }
.faq .faq-a p { margin: 0; }

/* ---------- legal / prose pages ---------- */
.prose { max-width: 760px; }
.prose h2 {
  margin: 48px 0 16px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
}
.prose h2:first-of-type { margin-top: 0; }
.prose p, .prose li { font-size: .95rem; line-height: 1.7; color: #4d4c46; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }

/* ---------- motion & atmosphere ---------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(30px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes headIn { from { opacity: 0; transform: translateY(-10px); } }
@keyframes heroDrift { to { transform: scale(1.07); } }

/* page load choreography */
.site-head { animation: headIn .7s var(--ease) both; }
.hero-media { animation: fadeIn 1.2s ease both; }
.hero-inner > * { animation: riseIn .9s var(--ease) both; }
.hero-inner > *:nth-child(1) { animation-delay: .08s; }
.hero-inner > *:nth-child(2) { animation-delay: .16s; }
.hero-inner > *:nth-child(3) { animation-delay: .26s; }
.hero-inner > *:nth-child(4) { animation-delay: .36s; }
.hero-inner > *:nth-child(5) { animation-delay: .46s; }
.hero-spec { animation: fadeIn .8s ease .4s both; }
.hero-spec span { animation: riseIn .7s var(--ease) both; }
.hero-spec span:nth-child(1) { animation-delay: .48s; }
.hero-spec span:nth-child(2) { animation-delay: .56s; }
.hero-spec span:nth-child(3) { animation-delay: .64s; }
.hero-spec span:nth-child(4) { animation-delay: .72s; }
.hero-fig, .hero-side { animation: fadeIn 1s ease .8s both; }

/* slow ambient drift on hero imagery */
.hero-media img { animation: none; }

/* technical margin rails: faint vertical lines spanning the page */
body::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: min(calc(100% - 64px), var(--max));
  margin: 0 auto;
  border-left: 1px solid #f2f1ea;
  border-right: 1px solid #f2f1ea;
  background: linear-gradient(90deg,
    transparent calc(50% - .5px), #f2f1ea calc(50% - .5px),
    #f2f1ea calc(50% + .5px), transparent calc(50% + .5px));
  pointer-events: none;
  z-index: 0;
}

/* second registration mark: faint, bottom-right of each section seam */
.section::after {
  content: "+";
  position: absolute;
  right: 28px;
  bottom: 0;
  transform: translateY(50%);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1;
  color: var(--faint);
}
.dark-band::after { color: #4c4b44; }

/* subtle orange wash on selected white sections */
.section.tint {
  background:
    radial-gradient(720px 520px at 88% 10%, rgba(240, 68, 0, .025), transparent 72%),
    var(--canvas);
}
.section.tint.alt {
  background:
    radial-gradient(760px 540px at 4% 92%, rgba(240, 68, 0, .02), transparent 72%),
    var(--canvas);
}

@media (max-width: 1000px) {
  .foot-main { grid-template-columns: 1fr 1fr; gap: 40px; }
  .step { grid-template-columns: 90px 1fr; gap: 24px; }
  .step p { grid-column: 2; }
}

@media (max-width: 900px) {
  :root { --rail: 0px; }
  .sec-no { display: none; }
  .split, .split.even, .split.head, .contact-grid, .cta .wrap, .detail-hero-grid, .callout { grid-template-columns: 1fr; gap: 40px; }
  .callout { padding: 36px 28px; }
  .hero { min-height: min(78vh, 720px); }
  .hero .txt-h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .hero-fig, .hero-side { display: none; }
  .cards-4, .cards-3, .cards-2 { grid-template-columns: 1fr 1fr; }
  .nav { gap: 18px; overflow-x: auto; }
  .svc-index { flex-direction: column; }
  .svc-col { flex: none; min-height: 0; border-right: 0; border-bottom: 1px solid var(--hair); padding: 26px 30px 30px; }
  .svc-col:last-child { border-bottom: 0; }
  .svc-more { max-height: none; opacity: 1; transform: none; margin-top: 14px; }
  .brand img { width: 180px; }
  .head-cta { display: none; }
}

@media (max-width: 620px) {
  .hero-spec { width: calc(100% - 72px); }
  .hero-spec span { width: 50%; padding: 14px 0; }
  .cards-4, .cards-3, .cards-2, .chips-2, .chips-3, .form-grid, .foot-main { grid-template-columns: 1fr; }
  .state-line br { display: none; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .step p { grid-column: 1; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- restrained corporate refinements ---------- */
.nav-toggle { display: none; }
.nav a { font-size: 11px; }
.head-cta, .btn-t { font-size: 11px; }
.hero .txt-h1 { font-weight: 750; letter-spacing: -.035em; }
.hero-actions .btn-t { min-height: 50px; }
.svc-col .idx { margin-bottom: 32px; }
.svc-name { min-height: 3.6em; font-weight: 700; }
.svc-more { overflow: visible; }
.svc-col::after { content: "↗"; font-size: 18px; }
.svc-col:hover::after, .svc-col:focus-visible::after { transform: none; }
.svc-go { margin-top: 22px; }
.section::before, .section::after { opacity: .5; }
.plot::after { border-color: rgba(240, 68, 0, .2); }
.txt-link::before { content: "↗"; border: 0; font-size: 17px; }
.txt-link:hover::before, a:hover > .txt-link::before { transform: none; background: none; color: var(--accent); }
.btn-t::before, .btn-t::after, .head-cta::before, .head-cta::after { display: none; }
.card:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }
.txt-email { overflow-wrap: anywhere; }
.form-panel { border-top-width: 2px; }
.form-note { margin-top: 18px; max-width: 42ch; }
.field label { color: #55564f; }
.field label .opt { color: #6f6e66; }
.foot-col h2 { color: #d0cfc8; }
.foot-bottom, .foot-bottom a { color: #aaa9a1; }
section[id], article[id], .card[id] { scroll-margin-top: 110px; }

@media (min-width: 901px) and (max-width: 1150px) {
  .svc-col { padding: 28px 20px; }
  .svc-name { font-size: 1.05rem; }
  .svc-index { flex-wrap: wrap; }
  .svc-col { flex-basis: 30%; }
  .svc-col:nth-child(3) { border-right: 0; }
  .svc-col:nth-child(n+4) { border-top: 1px solid var(--hair); }
}
@media (max-width: 900px) {
  .site-head .wrap, .site-head.scrolled .wrap { height: 74px; }
  .site-head .wrap { position: relative; }
  .brand img { width: 190px; }
  .js .nav-toggle { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; padding: 8px 0 8px 18px; border: 0; background: none; color: var(--ink); font: 12px var(--sans); cursor: pointer; }
  .nav-toggle::after { content: "+"; font-size: 24px; font-weight: 300; }
  .nav-toggle[aria-expanded="true"]::after { content: "−"; }
  .js .nav { display: none; position: absolute; top: 100%; left: -32px; right: -32px; padding: 20px 32px 30px; background: var(--canvas); border-bottom: 1px solid var(--hair); box-shadow: 0 12px 20px #1d1e1a0a; }
  .js .nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 16px 18px; font-size: 12px; }
  .nav a::before { left: 0; }
  .svc-col { padding: 28px 32px; display: grid; grid-template-columns: 35px 1fr; gap: 0 18px; }
  .svc-col .idx { margin: 4px 0 0; }
  .svc-name { min-height: 0; padding-right: 30px; }
  .svc-more { grid-column: 2; max-width: 60ch; }
  .svc-go { margin-top: 12px; }
  .section { padding: 80px 0; }
  .split.head { margin-bottom: 42px; }
  .hero .txt-h1 { font-size: clamp(2.9rem, 8vw, 4.7rem); }
  .hero.compact .txt-h1 { font-size: clamp(2.5rem, 6vw, 3.7rem); }
  .hero { padding-top: 72px; }
  .hero.compact { min-height: 590px; }
  .detail-hero { padding: 64px 0; }
  .detail-hero .txt-h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 40px); }
  .js .nav { left: -20px; right: -20px; padding-left: 20px; padding-right: 20px; }
  .site-head .wrap, .site-head.scrolled .wrap { height: 68px; }
  .brand img { width: 165px; }
  html:not(.js) .site-head .wrap { flex-wrap: wrap; height: auto; padding: 14px 0; gap: 8px; }
  html:not(.js) .nav { width: 100%; gap: 18px; flex-wrap: wrap; overflow: visible; }
  html:not(.js) .nav a { padding: 10px 0; font-size: 10px; }
  html:not(.js) .nav a::before { display: none; }
  .hero { min-height: 660px; padding-top: 70px; padding-bottom: 16px; }
  .hero.compact { min-height: 570px; }
  .hero-inner, .hero.compact .hero-inner { padding-bottom: 34px; }
  .hero .txt-lead { font-size: 1rem; max-width: 32ch; }
  .hero-media img { object-position: 59% center; }
  .hero-media::after { outline: none; background: linear-gradient(90deg, rgba(20,21,17,.88), rgba(20,21,17,.4)); }
  .hero-spec { width: calc(100% - 40px); font-size: 9px; letter-spacing: .1em; }
  .hero-spec span { gap: 8px; padding: 14px 8px 14px 0; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn-t { padding: 0 19px; }
  .section { padding: 64px 0; }
  .txt-h2 { font-size: 2rem; }
  .txt-lead { font-size: 1.04rem; }
  .svc-col { padding: 25px 20px; grid-template-columns: 26px 1fr; gap: 0 12px; }
  .plot::after { display: none; }
  .card-body { padding: 25px 22px; }
  .form-panel { padding: 28px 20px; }
  .contact-grid { margin-bottom: 0; }
  .faq summary { grid-template-columns: 35px 1fr 18px; gap: 12px; font-size: .95rem; }
  .faq .faq-a { padding: 0 0 26px 47px; }
  .standards { gap: 18px 0; }
  .standards .std-lead { flex-basis: 100%; }
  .standards b { padding: 0 16px 0 0; margin-right: 16px; }
  .sector-spec { grid-template-columns: 1fr 1fr; gap: 0; margin-top: 40px; }
  .sector-spec span { margin-right: 0; padding: 14px 10px; font-size: 9px; }
  .sector-spec span:nth-child(odd) { border-left: 0; padding-left: 0; }
  .cta { padding: 64px 0; }
  .cta .wrap { gap: 30px; }
  .cta-side .txt-email { font-size: .9rem; }
  .foot-main { padding-top: 48px; }
  .foot-col a { padding: 9px 0; }
  .foot-links a { display: inline-block; padding: 8px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; }
}

/* ---------- print ---------- */
@media print {
  .site-head, .cta, .foot-main, .hero-media, .hero-side, .hero-fig,
  .btn-t, .head-cta, body::before, .section::before, .section::after,
  .img-frame { display: none !important; }

  .js .rv { opacity: 1 !important; transform: none !important; }

  .svc-index { display: block; }
  .svc-col { min-height: 0; border: 0; border-bottom: 1px solid #999; padding: 10px 0; }
  .svc-col::after { display: none; }
  .svc-more { max-height: none; opacity: 1; transform: none; margin-top: 6px; }

  body { font-size: 12px; }
  .wrap { width: 100%; padding-left: 0; }
  .sec-no { position: static; display: block; margin-bottom: 6px; color: #000; }
  .sec-no::after { display: none; }
  .section { padding: 32px 0; border-top: 1px solid #999; }
  .hero { min-height: 0; padding: 24px 0; background: #fff; border-bottom: 2px solid #000; }
  .hero .txt-h1, .hero .txt-h1 em, .hero .txt-lead, .hero .txt-eyebrow { color: #000; }
  .hero .rule { background: #000; }
  .hero-spec { width: 100%; border-color: #999; color: #000; }
  .hero-spec span::before { border-color: #000; }
  .band, .band-deep, .section.tint, .section.tint.alt,
  .dark-band { background: #fff; }
  .dark-band .txt-h2, .dark-band .txt-h3, .dark-band .txt-lead,
  .dark-band .txt-body, .dark-band .txt-eyebrow { color: #000; }
  .dark-band .step { border-color: #999; }
  .dark-band .step .txt-body { color: #222; }
  .dark-band .sys-list li { color: #000; border-color: #999; }
  .card, .card:hover { background: #fff; border: 1px solid #999; transform: none; box-shadow: none; }
  .card::after { display: none; }
  .card:hover .txt-h3, .card:hover .txt-body { color: #000; }
  .split, .split.head, .split.even { grid-template-columns: 1fr; gap: 16px; }
  footer { background: #fff; border-top: 2px solid #000; }
  .foot-bottom { border: 0; color: #000; }
  .foot-bottom a { color: #000; }
  a { color: inherit; }
}

/* Cookie notice */
.cookie-notice {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 560px;
  padding: 18px 20px 18px 24px;
  background: var(--canvas);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--accent);
  box-shadow: 0 12px 32px rgba(29, 30, 26, .12);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.cookie-notice p { color: var(--ink-soft); }
.cookie-notice a { color: var(--ink); border-bottom: 1px solid var(--faint); }
.cookie-notice a:hover { color: var(--accent); border-color: var(--accent); }
.cookie-notice .btn-t { margin-top: 0; flex: none; min-height: 42px; padding: 0 22px; }
.cookie-notice.is-hidden { opacity: 0; transform: translateY(12px); }
@media (max-width: 640px) {
  .cookie-notice { left: 16px; right: 16px; bottom: 16px; max-width: none; flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 18px 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-notice { transition: none; }
}

/* ---------- image heroes: corporate layout ----------
   One statement, one supporting line, and a link index along the foot of the
   image. Applies to the home hero and the compact page heroes. */
.hero { padding-bottom: 0; }
.hero-home { min-height: min(86vh, 820px); }
.hero.compact { min-height: min(72vh, 680px); }
.hero::before, .hero::after { content: none; }
.hero-fig, .hero-side { display: none; }
.hero .hero-media::after {
  outline: none;
  background:
    linear-gradient(90deg, rgba(20, 21, 17, .9) 0%, rgba(20, 21, 17, .72) 38%, rgba(20, 21, 17, .28) 70%, rgba(20, 21, 17, .18) 100%),
    linear-gradient(to top, rgba(20, 21, 17, .7) 0%, rgba(20, 21, 17, 0) 38%);
}
.hero .hero-inner, .hero.compact .hero-inner { padding-bottom: clamp(96px, 15vh, 150px); }
.hero.compact .hero-inner { padding-bottom: clamp(72px, 11vh, 110px); }
.hero .txt-h1 {
  max-width: 18ch;
  font-size: clamp(2.7rem, 5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.hero .txt-h1 em { color: var(--accent-soft); }
.hero .txt-lead { margin-top: 26px; max-width: 46ch; font-size: 1.08rem; line-height: 1.6; }
.hero .hero-actions .btn-t { margin-top: 38px; }

.hero-index {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border-top: 1px solid rgba(255, 255, 255, .2);
  animation: fadeIn .8s ease .4s both;
}
.hero-index .hs-label,
.hero-index a {
  padding: 22px 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero-index .hs-label { padding-left: 0; padding-right: 32px; color: rgba(255, 255, 255, .5); }
.hero-index a {
  position: relative;
  color: rgba(255, 255, 255, .82);
  border-left: 1px solid rgba(255, 255, 255, .14);
  transition: color .2s, background .2s;
}
.hero-index a::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.hero-index a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.hero-index a:hover::before { transform: scaleX(1); }

@media (max-width: 1100px) {
  .hero-index { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .hero-index .hs-label { grid-column: 1 / -1; padding: 18px 0 10px; }
  .hero-index a { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); padding: 16px 12px 16px 0; }
}
@media (max-width: 640px) {
  .hero, .hero.compact { min-height: 0; padding-top: 120px; }
  .hero .hero-inner, .hero.compact .hero-inner { padding-bottom: 56px; }
  .hero-home .txt-h1 { font-size: clamp(2.3rem, 10vw, 3rem); }
  .hero .txt-lead { font-size: 1rem; max-width: 34ch; }
  .hero .hero-actions .btn-t { margin-top: 28px; }
  .hero-index { grid-template-columns: repeat(2, 1fr); }
  .hero-index a { font-size: 9.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-index { animation: none; }
  .hero-index a::before { transition: none; }
}

/* Hero call to action: orange fill sweeps in from the left and an arrow slides in. */
.hero .hero-cta { isolation: isolate; overflow: hidden; transition: color .3s, border-color .3s, padding .35s var(--ease); }
.hero .hero-cta:hover { background: var(--paper); border-color: var(--accent); color: #fff; padding-left: 14px; padding-right: 38px; }
.hero .hero-cta::before {
  display: block;
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  opacity: 1;
  z-index: -1;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.hero .hero-cta:hover::before { transform: scaleX(1); }
.hero .hero-cta::after {
  display: block;
  content: "\2192";
  position: absolute;
  top: 50%;
  right: 16px;
  bottom: auto;
  margin-top: -.6em;
  width: auto;
  height: auto;
  border: 0;
  opacity: 0;
  overflow: hidden;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.2;
  transform: translateX(-10px);
  transition: opacity .25s ease, transform .35s var(--ease);
}
.hero .hero-cta:hover::after { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero .hero-cta::before, .hero .hero-cta::after { transition: none; }
}

/* Sector page heroes: full-bleed image hero, like the other pages. The foot
   strip lists the sector's key systems (plain text, not links). */
.hero-sector .txt-h1 { max-width: 22ch; font-size: clamp(2.1rem, 3.7vw, 3.3rem); }
.hero-sector .back-line { margin-bottom: 26px; color: rgba(255, 255, 255, .7); }
.hero-sector .back-line:hover { color: #fff; }
.hero-index.is-static span:not(.hs-label) {
  padding: 22px 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  border-left: 1px solid rgba(255, 255, 255, .14);
}
@media (max-width: 1100px) {
  .hero-index.is-static span:not(.hs-label) { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); padding: 16px 12px 16px 0; }
}
@media (max-width: 640px) {
  .hero-sector .txt-h1 { font-size: clamp(1.9rem, 8.4vw, 2.5rem); }
  .hero-index.is-static span:not(.hs-label) { font-size: 9.5px; }
}
