:root {
  --bg: #f5f5f2;
  --paper: rgba(255, 255, 255, 0.45);
  --text: #1f1f1f;
  --muted: #4a4a4a;
  --accent: #3e5366;
  --border: rgba(0, 0, 0, 0.08);

  --max: 1280px;
  --container-px: 3rem;

  /* reading widths */
  --measure: 740px;
  --measure-wide: 920px;

  /* === Institutional slate system === */
  --slate-900: #1f2a32;
  --slate-850: #24313a;
  --slate-800: #2a3a44;
  --on-slate: rgba(255, 255, 255, 0.92);
  --on-slate-muted: rgba(255, 255, 255, 0.68);
  --rule-on-slate: rgba(255, 255, 255, 0.18);

  /* === Signal / warm precision tokens === */
  --signal: #0e8a7c;
  --signal-text: #087367;
  --signal-dim: rgba(14, 138, 124, 0.1);
  --signal-border: rgba(14, 138, 124, 0.28);
  --warm: #c17d3c;
  --warm-text: #7a4910;
  --warm-dim: rgba(193, 125, 60, 0.1);
  --warm-border: rgba(193, 125, 60, 0.28);
  --signal-hover: #0a7068;
  --warm-hover: #a8682e;
  --radius: 3px;

  /* === Typography families === */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* === Measurement decoration tokens === */
  --tick-color: rgba(14, 138, 124, 0.35);
  --size-display: clamp(52px, 7vw, 92px);
  --size-label: 11px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Global focus styling */
:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid rgba(14, 138, 124, 0.6);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Links */
a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(62, 83, 102, 0.35);
}
a:hover {
  color: var(--signal);
  border-bottom-color: rgba(14, 138, 124, 0.75);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* Visually hidden (screen-reader only) */
.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;
}

/* ========================
   Header / Nav
   ======================== */
.header {
  --headerH: 76px;

  padding: 22px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 245, 242, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

/* Brand lockup */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  border-bottom: none;
  color: var(--text);
  min-height: 32px;
}
.brand:hover {
  color: var(--text);
}

.brand-icon {
  width: 30px;
  height: 30px;
  display: block;
  flex: 0 0 auto;
}

.brandtext {
  letter-spacing: 0.18em;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  font-family: var(--font-body);
}

.brand-future {
  font-weight: 300;
  color: rgba(31, 31, 31, 0.72);
}
.brand-gaz {
  font-weight: 700;
  color: rgba(31, 31, 31, 0.98);
}

.footerbrand {
  margin-bottom: 10px;
}

/* ========================
   Desktop Nav
   ======================== */
.navlinks-desktop {
  display: flex;
  gap: 22px;
  font-size: 13px;
  letter-spacing: 0.01em;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.navlinks-desktop a {
  border-bottom: none;
  color: rgba(31, 31, 31, 0.7);
  position: relative;
}

.navlinks-desktop a:hover {
  color: var(--signal);
}
.navlinks-desktop a.active {
  color: var(--text);
}

.navlinks-desktop a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 1px;
  background: var(--signal);
}

/* CTA */
.navlinks-desktop .cta-link {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--signal-border);
  padding: 7px 12px;
  border-radius: 3px;
  color: var(--signal-text);
}
.navlinks-desktop .cta-link:hover {
  background: var(--signal-dim);
  border-color: var(--signal-text);
  color: var(--signal-text);
}

/* ========================
   Dropdown Navigation
   ======================== */
.navitem {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.has-dropdown {
  position: relative;
  padding-bottom: 18px;
  margin-bottom: -18px;
}

.navlinks-desktop .navlink {
  border-bottom: none;
  color: rgba(31, 31, 31, 0.7);
  position: relative;
}

.has-dropdown > .navlink::after {
  content: '';
  display: inline-block;
  margin-left: 8px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(31, 31, 31, 0.55);
  transform: translateY(-1px);
}

.navlinks-desktop .navlink.active::after {
  display: none;
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 300px;
  background: var(--slate-900);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 10px 0;
  display: none;
  z-index: 120;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.78);
  border-bottom: none;
  white-space: nowrap;
}

/* Ensure dropdown link colour always wins over .navlink colour rule */
.navlinks-desktop .dropdown a {
  color: rgba(255, 255, 255, 0.78);
}

.dropdown a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
}

.dropdown a.active {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
}
.dropdown a.active:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dropdown a.active::after {
  display: none;
}

.dropdown a + a {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ========================
   Mobile overlay menu
   ======================== */
.iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: rgba(31, 31, 31, 0.7);
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  text-decoration: none;
}
.iconbtn:hover {
  border-color: rgba(14, 138, 124, 0.4);
  color: rgba(31, 31, 31, 0.9);
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hamburger {
  display: none;
}
.navlinks-mobile {
  display: none;
}
.mobilepanel,
.mobiledim {
  display: none;
}

/* Main */
main {
  padding: 0 0 96px;
}

/* ========================
   Hero
   ======================== */
.hero {
  padding: 170px 0 190px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -120px -120px -120px -120px;
  background:
    radial-gradient(
      800px 500px at 50% 35%,
      rgba(62, 83, 102, 0.1),
      transparent 60%
    ),
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.35),
      rgba(255, 255, 255, 0)
    );
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('grid.svg');
  background-repeat: no-repeat;
  background-position: center 42%;
  background-size: 1200px auto;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0 auto 34px;
  max-width: var(--measure-wide);
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-style: italic;
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.hero p {
  margin: 0 auto;
  max-width: 780px;
  font-size: clamp(16px, 1.55vw, 18px);
  color: rgba(31, 31, 31, 0.88);
}

.rule {
  margin: 74px auto 0;
  width: 160px;
  height: 1px;
  background: rgba(62, 83, 102, 0.55);
}

/* Hero anchor chain */
.system-chain {
  position: absolute;
  left: 50%;
  bottom: 56px;
  transform: translateX(-50%);
  display: flex;
  gap: 56px;
  opacity: 0.09;
  pointer-events: none;
  z-index: 0;
}
.system-chain span {
  width: 150px;
  height: 44px;
  border: 1px solid var(--rule-on-slate);
  border-radius: 10px;
}
.system-chain span:not(:last-child) {
  position: relative;
}
.system-chain span:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -56px;
  width: 56px;
  height: 1px;
  background: var(--rule-on-slate);
}

/* Slate hero — image rendered as <img> for LCP preload scanning */
.hero.hero-slate {
  background: var(--slate-900);
  isolation: isolate;
  color: var(--on-slate);
}
.hero-bg-picture {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  display: block;
}
.hero.hero-slate .container,
.hero.hero-slate .system-chain {
  position: relative;
  z-index: 1;
}
.hero.hero-slate::before {
  background:
    radial-gradient(
      ellipse 700px 520px at 18% 55%,
      rgba(14, 138, 124, 0.1) 0%,
      transparent 65%
    ),
    linear-gradient(
      110deg,
      rgba(31, 42, 50, 0.94) 0%,
      rgba(31, 42, 50, 0.88) 35%,
      rgba(31, 42, 50, 0.6) 60%,
      rgba(31, 42, 50, 0.38) 100%
    );
}
.hero.hero-slate::after {
  opacity: 0.04;
  filter: invert(1);
  mix-blend-mode: soft-light;
}
.hero.hero-slate p {
  color: var(--on-slate-muted);
}
.hero.hero-slate h1 {
  color: var(--on-slate);
}
.hero.hero-slate .rule {
  background: var(--rule-on-slate);
}

/* ========================
   Hero Instrument (asymmetric 2-col layout)
   ======================== */
.hero.hero-instrument {
  text-align: center;
  padding: 140px 0 160px;
}

.hero-instrument .hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}

.hero-instrument h1 {
  margin: 0;
  max-width: none;
  font-family: var(--font-body);
  font-size: clamp(56px, 7.2vw, 118px);
  font-style: normal;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.055em;
  color: #f4f7f3;
}

.h1-nowrap {
  white-space: nowrap;
}

.hero-copy {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-brand-stamp {
  margin: 0 0 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: clamp(10px, 0.9vw, 13px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 247, 243, 0.5);
  animation: heroFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.hero-dot {
  color: rgba(244, 247, 243, 0.25);
}

.hero-subtitle {
  margin: 26px 0 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 1.8vw, 27px);
  font-style: italic;
  font-weight: 400;
  color: rgba(244, 247, 243, 0.78);
  line-height: 1.25;
  max-width: 680px;
  animation: heroFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.hero-subtitle-brand {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.72em;
  letter-spacing: 0.18em;
  vertical-align: baseline;
}

.hsbf {
  font-weight: 300;
  color: rgba(244, 247, 243, 0.65);
}

.hsbg {
  font-weight: 700;
  color: rgba(244, 247, 243, 0.92);
}

.hero-subtitle-sep {
  font-family: var(--font-body);
  font-style: normal;
  color: rgba(244, 247, 243, 0.28);
  letter-spacing: 0;
}

.hero-lede {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.2vw, 20px);
  color: rgba(244, 247, 243, 0.76);
  max-width: 760px;
  line-height: 1.55;
  margin: 24px 0 0;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Annotation panel (right column) */
.hero-annotation {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  padding: 22px 20px 20px;
  background: rgba(20, 30, 36, 0.32);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  position: relative;
  margin-top: 8px;
}

.hero-annotation::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--tick-color) 0px,
    var(--tick-color) 1px,
    transparent 1px,
    transparent 8px
  );
}

.annotation-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin: 0 0 18px;
  display: block;
}

/* Stat readout rows */
.stat-readout {
  margin: 14px 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.stat-readout:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 500;
  color: var(--on-slate);
  line-height: 1;
  display: block;
}
.stat-value.signal {
  color: var(--signal);
}

/* In the hero annotation panel, signal values read as white —
   teal blends into the ocean background; white has clean contrast */
.hero-annotation .stat-value.signal {
  color: var(--on-slate);
}
.stat-value.warm {
  color: var(--warm);
}

.stat-unit {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.62);
  display: block;
  margin-top: 4px;
}

.stat-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  margin: 5px 0 0;
  line-height: 1.45;
  max-width: none;
}

.coord-annotation {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Hero rule */
.hero-instrument .rule {
  margin: 64px 0 0;
}

/* ========================
   Stats Strip
   ======================== */
.stats-strip {
  background: rgba(255, 255, 255, 0.35);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0;
  overflow: hidden;
  position: relative;
}

.stats-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--signal) 0px,
    var(--signal) 1px,
    transparent 1px,
    transparent 40px
  );
}

.stats-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-cell {
  padding: 26px 22px;
  border-right: 1px solid var(--border);
}
.stat-cell:last-child {
  border-right: none;
}

.stat-cell .kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

.stat-cell .value {
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  color: var(--text);
  display: block;
  line-height: 1;
}
.stat-cell .value.signal {
  color: var(--signal);
}
.stat-cell .value.warm {
  color: var(--warm);
}

.stat-cell .sublabel {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
  line-height: 1.4;
}

/* ========================
   Sections
   ======================== */
.section {
  padding: 110px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
main > .section:first-of-type {
  border-top: none;
}
main > .section:last-of-type {
  padding-bottom: 72px;
}

.section.section-compact {
  padding: 56px 0;
}

.section.narrow h2 {
  max-width: 820px;
}
.section.narrow p {
  max-width: var(--measure);
}

/* Slate band section */
.section.section-slate {
  background: var(--slate-800);
  color: var(--on-slate);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.section.section-slate h2 {
  color: var(--on-slate);
}
.section.section-slate .lede,
.section.section-slate p {
  color: var(--on-slate-muted);
}
.section.section-slate .card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.09);
}
.section.section-slate .card::before {
  background: rgba(255, 255, 255, 0.08);
}
.section.section-slate .card.card-signal::before {
  background: var(--signal);
}
.section.section-slate .card.card-warm::before {
  background: var(--warm);
}
.section.section-slate .card h3 {
  color: var(--on-slate);
}
.section.section-slate .card p {
  color: rgba(255, 255, 255, 0.68);
}
.section.section-slate .card-kicker {
  color: rgba(255, 255, 255, 0.62);
}
.section.section-slate .card-action {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* Instrument panel section */
.section.section-instrument {
  background: var(--slate-900);
  color: var(--on-slate);
  border-top: none;
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}

.section.section-instrument::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.07) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.section.section-instrument::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    rgba(14, 138, 124, 0.55) 0px,
    rgba(14, 138, 124, 0.55) 1px,
    transparent 1px,
    transparent 40px
  );
  z-index: 1;
}

.section.section-instrument > .container {
  position: relative;
  z-index: 1;
}

.section.section-instrument h2 {
  color: var(--on-slate);
}
.section.section-instrument p,
.section.section-instrument .lede {
  color: var(--on-slate-muted);
}
.section.section-instrument .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.09);
}
.section.section-instrument .card::before {
  background: rgba(255, 255, 255, 0.08);
}
.section.section-instrument .card.card-signal::before {
  background: var(--signal);
}
.section.section-instrument .card.card-warm::before {
  background: var(--warm);
}
.section.section-instrument .card h3 {
  color: var(--on-slate);
}
.section.section-instrument .card p {
  color: rgba(255, 255, 255, 0.65);
}
.section.section-instrument .card-kicker {
  color: rgba(255, 255, 255, 0.62);
}
.section.section-instrument .card-action {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* ========================
   Typography
   ======================== */
h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.01em;
}

h3 {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.04em;
  font-weight: 500;
  text-transform: uppercase;
}

.lede {
  font-size: clamp(16px, 1.55vw, 18px);
  color: rgba(31, 31, 31, 0.9);
  margin: 0 0 10px;
}

p {
  margin: 14px 0;
  font-size: clamp(16px, 1.55vw, 18px);
  color: rgba(31, 31, 31, 0.86);
  max-width: var(--measure);
}

/* Page label heading (inner pages) */
h1.page-label {
  font-family: var(--font-mono);
  font-size: var(--size-label);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 16px;
  display: block;
}

/* Section label utility */
.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal-text);
  margin: 0 0 14px;
  display: block;
}
.section-label.warm {
  color: var(--warm);
}
.section-label.muted {
  color: var(--muted);
  letter-spacing: 0.14em;
}
.section-label.on-slate {
  color: rgba(255, 255, 255, 0.72);
}

/* Type badge (service type identifier) */
.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 2px;
  margin-bottom: 16px;
  border-bottom: none;
}
.type-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.type-badge.type-1 {
  color: var(--signal);
  background: var(--signal-dim);
  border: 1px solid var(--signal-border);
}
.type-badge.type-2 {
  color: var(--warm);
  background: var(--warm-dim);
  border: 1px solid var(--warm-border);
}
.type-badge.type-3 {
  color: var(--accent);
  background: rgba(62, 83, 102, 0.08);
  border: 1px solid rgba(62, 83, 102, 0.25);
}

/* Ruler bar (decorative measurement ruler) */
.ruler-bar {
  height: 20px;
  position: relative;
  margin: 56px 0;
}
.ruler-bar::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}
.ruler-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background:
    repeating-linear-gradient(
      to right,
      transparent 0px,
      transparent 9px,
      var(--border) 9px,
      var(--border) 10px
    ),
    repeating-linear-gradient(
      to right,
      transparent 0px,
      transparent 49px,
      rgba(14, 138, 124, 0.3) 49px,
      rgba(14, 138, 124, 0.3) 50px
    );
}
.ruler-bar.on-slate::before {
  background: rgba(255, 255, 255, 0.1);
}
.ruler-bar.on-slate::after {
  background:
    repeating-linear-gradient(
      to right,
      transparent 0px,
      transparent 9px,
      rgba(255, 255, 255, 0.09) 9px,
      rgba(255, 255, 255, 0.09) 10px
    ),
    repeating-linear-gradient(
      to right,
      transparent 0px,
      transparent 49px,
      rgba(14, 138, 124, 0.5) 49px,
      rgba(14, 138, 124, 0.5) 50px
    );
}

/* Pull quote */
.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 36px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
  margin: 0;
  padding: 0 0 0 24px;
  border-left: 2px solid var(--signal);
  max-width: 680px;
}

/* Tension stack */
.tension {
  padding: 95px 0;
  position: relative;
}
.tension::before {
  content: '';
  position: absolute;
  top: 80px;
  bottom: 80px;
  left: 28px;
  width: 2px;
  background: var(--signal);
}
.tension .container {
  padding-left: 56px;
}
.tension .line {
  margin: 14px 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  font-style: italic;
  color: rgba(31, 31, 31, 0.82);
  max-width: 600px;
  line-height: 1.5;
}
.tension .line strong {
  font-weight: 600;
  font-style: normal;
  color: var(--text);
}

/* ========================
   Grid cards
   ======================== */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 34px;
}

/* Card — new structure requires .card-body wrapper */
.card {
  border: 1px solid var(--border);
  background: var(--paper);
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

/* Top stripe */
.card::before {
  content: '';
  display: block;
  height: 2px;
  background: var(--border);
}
.card.card-signal::before {
  background: var(--signal);
}
.card.card-warm::before {
  background: var(--warm);
}

.card-body {
  padding: 20px 22px 22px;
}

.card-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal-text);
  display: block;
  margin-bottom: 8px;
}
.card-kicker.warm {
  color: var(--warm-text);
}
.card-kicker.muted {
  color: var(--muted);
}

.card h3 {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text);
}

.card p {
  margin: 0;
  font-size: 15px;
  color: rgba(31, 31, 31, 0.78);
  max-width: none;
  line-height: 1.6;
}

.card-action {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.card-email {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-top: 10px;
  display: block;
}

.card-email a {
  color: inherit;
  border-bottom-color: currentColor;
}

/* Panel */
.panel {
  margin-top: 34px;
  padding: 22px 22px 18px;
  border: 1px solid rgba(0, 0, 0, 0.09);
  background: rgba(255, 255, 255, 0.4);
}
.panel .kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(31, 31, 31, 0.6);
  margin-bottom: 10px;
}

/* Hero panel (slate hero) */
.hero.hero-slate .panel {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
.hero.hero-slate .panel .kicker {
  color: rgba(255, 255, 255, 0.62);
}
.hero.hero-slate .panel p {
  color: rgba(255, 255, 255, 0.74);
}

.hero-panel {
  max-width: 820px;
  margin: 48px auto 0;
  text-align: left;
}

/* Gas compound readout row */
.gas-readout-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  background: var(--paper);
  width: fit-content;
}

.gas-readout-row .compound {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gas-readout-row .compound-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--signal);
}

.gas-readout-row .compound-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* Type badge row (for "what we do" split header) */
.type-pair {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.type-pair .sep {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--border);
}

/* ========================
   Footer
   ======================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 34px 0 44px;
  font-size: 13px;
  color: rgba(31, 31, 31, 0.68);
  font-family: var(--font-body);
}

.footer .row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.footer .links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer .links a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: none;
  color: var(--muted);
}
.footer .links a:hover {
  color: var(--signal);
}

.footer-copy {
  margin-top: 10px;
  font-family: var(--font-body);
}

/* ========================
   Buttons
   ======================== */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--signal-border);
  padding: 10px 16px;
  border-radius: var(--radius);
  color: var(--signal-text);
  background: transparent;
}
.btn:hover {
  background: var(--signal-dim);
  border-color: var(--signal-text);
  color: var(--signal-text);
  border-bottom-color: var(--signal-text);
}

.section-slate .btn,
.section-instrument .btn {
  color: rgba(255, 255, 255, 0.86);
  border-color: rgba(255, 255, 255, 0.28);
}
.section-slate .btn:hover,
.section-instrument .btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn.btn-signal {
  background: var(--signal);
  color: rgba(255, 255, 255, 0.95);
  border-color: var(--signal);
  border-bottom-color: var(--signal);
}
.btn.btn-signal:hover {
  background: var(--signal-hover);
  border-color: var(--signal-hover);
  color: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--signal-hover);
}

.btn.btn-slate {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--on-slate);
  border-bottom-color: rgba(255, 255, 255, 0.22);
}
.btn.btn-slate:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--on-slate);
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

/* Primary / Secondary — hero & shared use */
.btn-primary {
  background: var(--signal);
  border-color: var(--signal);
  color: #061b1f;
}
.btn-primary:hover {
  background: var(--signal-hover);
  border-color: var(--signal-hover);
  color: #061b1f;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(244, 247, 243, 0.38);
  color: #f4f7f3;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(244, 247, 243, 0.6);
  color: #f4f7f3;
}

/* Hero-specific button sizing */
.hero-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 28px;
  font-size: 12px;
  letter-spacing: 0.11em;
  border-radius: 2px;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}
.hero-actions .btn:hover {
  transform: translateY(-1px);
}

/* ========================
   Contact Form
   ======================== */
form {
  margin-top: 28px;
  max-width: 820px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
}

label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(31, 31, 31, 0.65);
}

input,
textarea,
select {
  font: inherit;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 12px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.55);
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--signal);
  box-shadow: 0 0 0 4px rgba(14, 138, 124, 0.12);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.form-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.smallnote {
  font-size: 12px;
  color: rgba(31, 31, 31, 0.62);
  max-width: 520px;
}

button.btn {
  cursor: pointer;
}

.form-panel {
  margin-top: 80px;
  padding: 32px 28px 28px;
  border: 1px solid var(--border);
  border-top: 2px solid var(--signal);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.4);
}

.form-panel .section-label {
  margin-bottom: 18px;
}

.form-panel .lede {
  max-width: 560px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid .field.full {
  grid-column: 1 / -1;
}

.heading-spaced {
  margin-top: 80px;
}

/* ========================
   Responsive
   ======================== */
@media (max-width: 860px) {
  .container {
    padding: 0 2rem; /* ~32px — tablet range */
  }

  .hero {
    padding: 120px 0 140px;
  }

  .hero.hero-instrument {
    padding: 90px 0 110px;
  }

  .hero-instrument .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-instrument h1 {
    font-size: clamp(48px, 13vw, 72px);
    letter-spacing: -0.055em;
  }

  .hero-copy {
    text-align: left;
    align-items: flex-start;
  }

  .hero-brand-stamp {
    justify-content: flex-start;
    gap: 8px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .hero-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
  }

  .stats-strip .container {
    grid-template-columns: 1fr 1fr;
  }

  .stat-cell:nth-child(2) {
    border-right: none;
  }
  .stat-cell:nth-child(3) {
    border-top: 1px solid var(--border);
  }
  .stat-cell:nth-child(4) {
    border-top: 1px solid var(--border);
    border-right: none;
  }

  .grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }

  .tension::before {
    left: 2rem;
  }
  .tension .container {
    padding-left: 4rem;
  }

  /* desktop nav hidden, hamburger visible */
  .navlinks-desktop {
    display: none;
  }
  .hamburger {
    display: inline-flex;
  }

  .mobiledim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    z-index: 80;
  }

  .mobilepanel {
    display: block;
    position: fixed;
    left: 14px;
    right: 14px;
    top: calc(var(--headerH) + 10px);
    background: rgba(245, 245, 242, 0.985);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    z-index: 90;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition:
      opacity 0.18s ease,
      transform 0.18s ease;
    overflow: hidden;
  }

  .nav-toggle:checked ~ .mobiledim {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle:checked ~ .mobilepanel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobilebar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 12px 12px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(245, 245, 242, 0.985);
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
  }

  .navlinks-mobile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px 12px;
  }

  .navlinks-mobile > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 10px;
    border-radius: 12px;
    color: rgba(31, 31, 31, 0.86);
    border-bottom: none;
  }

  .navlinks-mobile > a:hover {
    background: rgba(0, 0, 0, 0.03);
  }

  .navlinks-mobile .cta-link {
    margin-top: 8px;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.35);
  }

  .acc {
    border-radius: 12px;
    overflow: hidden;
  }

  .acc-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .acc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 10px;
    border-radius: 12px;
    color: rgba(31, 31, 31, 0.86);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
  }

  .acc-head:hover {
    background: rgba(0, 0, 0, 0.03);
  }

  .acc-head .chev {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid rgba(31, 31, 31, 0.55);
    transform: translateY(1px);
    transition: transform 0.16s ease;
  }

  .acc-body {
    display: none;
    padding: 6px 0 8px;
    margin: 0 0 6px;
  }

  .acc-body a {
    display: block;
    padding: 10px 10px 10px 24px;
    border-radius: 12px;
    border-bottom: none;
    color: rgba(31, 31, 31, 0.76);
  }

  .acc-body a:hover {
    background: rgba(0, 0, 0, 0.03);
    color: rgba(31, 31, 31, 0.9);
  }

  .acc-body .acc-go {
    color: rgba(31, 31, 31, 0.88);
    font-weight: 500;
  }

  .acc-toggle:checked ~ .acc-body {
    display: block;
  }
  .acc-toggle:checked + .acc-head {
    background: rgba(0, 0, 0, 0.03);
  }
  .acc-toggle:checked + .acc-head .chev {
    transform: rotate(180deg) translateY(-1px);
  }
}

/* Mobile: tighter side padding */
@media (max-width: 640px) {
  .container {
    padding: 0 1.25rem; /* 20px — mobile range (16–24px) */
  }

  .tension::before {
    left: 1.25rem;
  }
  .tension .container {
    padding-left: 2.75rem;
  }
}

/* Optional: stop page scrolling when menu open */
@supports selector(body:has(input)) {
  body:has(#nav-toggle:checked) {
    overflow: hidden;
  }
}

/* ========================
   Hero entrance animations
   ======================== */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-instrument .section-label {
  animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.05s;
}

.hero-instrument h1 {
  animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.15s;
}

.hero-instrument .hero-lede {
  animation: heroFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.38s;
}

.hero-actions {
  animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.55s;
}

.hero-annotation {
  animation: heroFadeIn 0.9s ease both;
  animation-delay: 0.55s;
}

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

/* ========================
   Hero inner full-width override (no annotation panel)
   ======================== */
.hero-inner.hero-inner-full {
  grid-template-columns: 1fr;
}

/* Pull quote followed by body copy */
.pull-quote + p {
  margin-top: 28px;
}

/* Industry mini-grid followed by see-all link */
.industry-grid-mini + p {
  margin-top: 20px;
}

/* ========================
   3-column grid modifier
   ======================== */
.grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

/* ========================
   Card accent variant (slate-blue stripe)
   ======================== */
.card.card-accent::before {
  background: var(--accent);
}
.card-kicker.accent {
  color: var(--accent);
}

/* ========================
   Card tags row
   ======================== */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.04);
  padding: 3px 8px;
  border-radius: 2px;
}

/* ========================
   How We Work strip (Assess / Design / Deliver)
   ======================== */
.work-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin-top: 48px;
}
.work-step {
  padding: 44px 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.work-step:last-child {
  border-right: none;
}
.work-step-number {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  display: block;
  margin-bottom: 16px;
}
.work-step h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--on-slate);
  text-transform: none;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.work-step p {
  color: var(--on-slate-muted);
  font-size: 15px;
  max-width: none;
  margin: 0;
  line-height: 1.6;
}

/* ========================
   Industries mini-grid (homepage teaser)
   ======================== */
.industry-grid-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 28px;
}
.industry-tile-mini {
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--paper);
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  display: block;
  line-height: 1.35;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}
.industry-tile-mini:hover {
  border-color: var(--signal-border);
  background: var(--signal-dim);
  color: var(--signal);
  border-bottom-color: var(--signal-border);
}
.industry-tile-mini .tile-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}

/* ========================
   Contact CTA section
   ======================== */
.contact-cta {
  background: var(--slate-900);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: none;
}
.contact-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    rgba(14, 138, 124, 0.55) 0px,
    rgba(14, 138, 124, 0.55) 1px,
    transparent 1px,
    transparent 40px
  );
}
.contact-cta h2 {
  color: var(--on-slate);
  max-width: 520px;
  margin: 0 auto 16px;
}
.contact-cta .cta-lede {
  color: var(--on-slate-muted);
  font-size: clamp(15px, 1.4vw, 17px);
  max-width: 460px;
  margin: 0 auto 36px;
}
.contact-cta .email-direct {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.48);
  display: block;
  margin-top: 18px;
  border-bottom: none;
}
.contact-cta .email-direct:hover {
  color: rgba(255, 255, 255, 0.78);
}

/* ========================
   Industries full-page grid
   ======================== */
.industries-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 48px;
  background: var(--border);
}
.industry-card {
  background: var(--bg);
  padding: 32px 28px;
}
.industry-card-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}
.industry-card h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 10px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
}
.industry-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
  max-width: none;
  line-height: 1.55;
}
.industry-card .service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  background: var(--signal-dim);
  border: 1px solid var(--signal-border);
  padding: 3px 9px;
  border-radius: 2px;
  border-bottom: none;
  text-decoration: none;
  display: inline-block;
}
.service-pill:hover {
  background: var(--signal);
  color: rgba(255, 255, 255, 0.95);
  border-color: var(--signal);
}

/* ========================
   Service crosslinks (within service pages)
   ======================== */
.crosslinks {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.crosslinks-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 16px;
}
.crosslink-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.crosslink-card {
  padding: 18px 20px;
  border: 1px solid var(--border);
  background: var(--paper);
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  display: block;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.crosslink-card:hover {
  border-color: var(--signal-border);
  background: var(--signal-dim);
  border-bottom-color: var(--signal-border);
}
.crosslink-card .cl-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  display: block;
  margin-bottom: 5px;
}
.crosslink-card .cl-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

/* ========================
   Dropdown overview link separator
   ======================== */
.dropdown a.dropdown-overview {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2px;
  padding-bottom: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

/* ========================
   Responsive — new components
   ======================== */
@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .work-strip {
    grid-template-columns: 1fr;
  }
  .work-step {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 32px 24px;
  }
  .work-step:last-child {
    border-bottom: none;
  }
  .industry-grid-mini {
    grid-template-columns: repeat(2, 1fr);
  }
  .industries-grid {
    grid-template-columns: 1fr;
  }
  .crosslink-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .industry-grid-mini {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========================
   Card icons
   ======================== */
.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  opacity: 0.82;
  display: block;
}

.card-warm .card-icon {
  color: var(--warm);
}

.card-signal .card-icon {
  color: var(--signal);
}

.card-accent .card-icon {
  color: var(--accent);
}

/* ========================
   Hero credibility tokens
   ======================== */
.hero-credentials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.65s;
}

.hero-credentials span {
  color: rgba(255, 255, 255, 0.32);
}

/* ========================
   Hero — second CTA button (outline on slate)
   ======================== */
.btn-outline-slate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: var(--on-slate);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--radius);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.btn-outline-slate:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.48);
  color: #fff;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ========================
   Credibility band
   ======================== */
.credibility-band {
  background: var(--slate-800);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.credibility-band .container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.credibility-item {
  padding: 44px 36px;
  border-left: 2px solid var(--signal);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.credibility-item:last-child {
  border-right: none;
}

.credibility-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.credibility-item p {
  font-size: 14px;
  color: var(--on-slate-muted);
  line-height: 1.65;
  margin: 0;
  max-width: 280px;
}

/* ========================
   Ghost step numbers (How We Work)
   ======================== */
.work-step {
  position: relative;
  overflow: hidden;
}

.work-step::before {
  content: attr(data-step);
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 88px;
  font-weight: 600;
  font-style: italic;
  line-height: 1;
  color: rgba(255, 255, 255, 0.055);
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  letter-spacing: -0.02em;
}

/* ========================
   Industry tile icons
   ======================== */
.industry-tile-mini svg {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.industry-tile-mini:hover svg,
.industry-tile-mini:focus-visible svg {
  color: var(--signal);
}

/* ========================
   Service page hero
   ======================== */
.hero-service {
  background-color: var(--slate-900);
  background-size: cover;
  background-position: center 40%;
  padding: 120px 0 80px;
  position: relative;
}

.hero-service::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    rgba(18, 26, 32, 0.88) 0%,
    rgba(18, 26, 32, 0.6) 100%
  );
}

.hero-service .container {
  position: relative;
  z-index: 1;
}

.hero-service .section-label {
  color: var(--signal);
}

.hero-service h1 {
  font-family: var(--font-body);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--on-slate);
  margin: 12px 0 18px;
  max-width: 680px;
  line-height: 1.1;
}

.hero-service .hero-lede {
  color: var(--on-slate-muted);
  font-size: clamp(15px, 1.5vw, 17px);
  max-width: 540px;
  line-height: 1.65;
  margin: 0;
}

/* Image slots — drop photo paths here when available */
.hero-service-mr {
  background-image: url('/assets/service-measurement.jpg');
}

.hero-service-efm {
  background-image: url('/assets/service-emissions.jpg');
}

.hero-service-aao {
  background-image: url('/assets/service-audit.jpg');
}

/* ========================
   Responsive — visual redesign additions
   ======================== */
@media (max-width: 860px) {
  .credibility-band .container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .credibility-item {
    padding: 28px 24px;
    border-right: none;
  }

  .hero-service {
    padding: 80px 0 56px;
  }

  .work-step::before {
    font-size: 64px;
    top: 10px;
    right: 12px;
  }
}

/* ========================
   Pass 2 — engineered identity
   ======================== */

/* Hero accent tagline (above h1) */
.hero-accent-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 14px;
  animation: heroFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

/* Hero background: measurement grid overlay */
.hero-grid-overlay {
  position: absolute;
  right: 0;
  top: 0;
  width: 420px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  opacity: 0.06;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Hero background: ghosted brandmark */
.hero-ghost-mark {
  position: absolute;
  right: 6%;
  bottom: 12%;
  width: 300px;
  opacity: 0.04;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  filter: invert(1);
}

@media (max-width: 860px) {
  .hero-grid-overlay,
  .hero-ghost-mark {
    display: none;
  }
}

/* Service card — engineered panel treatment */
.card {
  border-left: 3px solid transparent;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.card-warm {
  border-left-color: rgba(193, 125, 60, 0.35);
}

.card-signal {
  border-left-color: rgba(14, 138, 124, 0.35);
}

.card-accent {
  border-left-color: rgba(62, 83, 102, 0.35);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.card-warm:hover {
  border-left-color: var(--warm);
}

.card-signal:hover {
  border-left-color: var(--signal);
}

.card-accent:hover {
  border-left-color: var(--accent);
}

.card-kicker {
  background: rgba(0, 0, 0, 0.04);
  padding: 2px 6px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 10px;
}

/* How We Work — process connector line */
.work-strip {
  position: relative;
}

.work-strip::before {
  content: '';
  position: absolute;
  top: 57px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 4%,
    rgba(255, 255, 255, 0.08) 14%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.08) 86%,
    transparent 96%
  );
  pointer-events: none;
}

.work-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  margin-bottom: 16px;
}

@media (max-width: 860px) {
  .work-strip::before {
    display: none;
  }
}

/* Industry tile service area badges */
.tile-services {
  display: flex;
  gap: 4px;
  margin-top: 7px;
  flex-wrap: wrap;
}

.tile-svc {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  padding: 2px 5px;
  border-radius: 2px;
}

.tile-svc-mr {
  background: rgba(193, 125, 60, 0.12);
  color: var(--warm-text);
}

.tile-svc-efm {
  background: rgba(14, 138, 124, 0.12);
  color: var(--signal-text);
}

.tile-svc-aao {
  background: rgba(62, 83, 102, 0.15);
  color: var(--accent);
}

/* Technical diagram blocks (service pages) */
.diagram-block {
  background: var(--slate-900);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px 24px;
  margin: 40px 0;
  overflow-x: auto;
}

.diagram-block svg {
  display: block;
  min-width: 680px;
  width: 100%;
  height: auto;
}

/* ========================
   Pass 3 — motion & depth
   ======================== */

/* Card inner surface depth */
.card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Work strip connector — animates in on scroll */
.work-strip::before {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.25s;
}

.work-strip.is-visible::before {
  transform: scaleX(1);
}

/* Scroll reveal — animation plays once when .is-visible is added by JS */
/* Default state is visible; no flash risk for above-fold content */
[data-reveal].is-visible {
  animation: revealUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.grid-3 > [data-reveal]:nth-child(2).is-visible {
  animation-delay: 0.12s;
}

.grid-3 > [data-reveal]:nth-child(3).is-visible {
  animation-delay: 0.24s;
}

.credibility-band [data-reveal]:nth-child(2).is-visible {
  animation-delay: 0.1s;
}

.credibility-band [data-reveal]:nth-child(3).is-visible {
  animation-delay: 0.2s;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal].is-visible {
    animation: none;
  }

  .work-strip::before {
    transform: scaleX(1);
    transition: none;
  }
}
