/* ---------- 0. Fonts (self-hosted, latin subset) --------------------------
   Neue Haas Grotesk is specified in the brand deck but is a licensed
   commercial family and is not bundled here. It is listed FIRST in the font
   stacks below, so if GTT installs a licensed webfont at
   /assets/fonts/ and adds its @font-face rules, it takes over automatically.
   Until then Inter carries the grotesk role, per the brief's fallback list.
   -------------------------------------------------------------------------- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/inter-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/inter-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/inter-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/inter-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/oswald-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/oswald-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/oswald-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/lora-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/lora-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-style: italic; font-weight: 400; font-display: swap; src: url('/assets/fonts/lora-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-style: italic; font-weight: 500; font-display: swap; src: url('/assets/fonts/lora-latin-500-italic.woff2') format('woff2'); }

/* ===========================================================================
   Global Tank Technologies — design system
   Tokens first, then primitives, then components, then page-specific blocks.
   =========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Brand core (from the brand deck) */
  --emerald:        #034A38;
  --gold:           #CB913B;
  --warm-white:     #EBE6E0;
  --graphite:       #262A29;
  --steel:          #646562;

  /* Derived surfaces */
  --emerald-deep:   #022B21;
  --emerald-soft:   #075442;
  --graphite-deep:  #1A1D1C;
  --paper:          #F4F2EE;
  --paper-sunk:     #E3DED7;

  /* Text — every pairing below is checked against WCAG 2.2 AA */
  --ink:            #1A1D1C;   /* on paper / warm-white  — 14.9:1 */
  --ink-muted:      #4E5250;   /* on paper / warm-white  —  7.3:1 */
  --ink-soft:       var(--steel); /* on warm-white       —  4.8:1 */
  --on-dark:        #EBE6E0;   /* on emerald / graphite  —  8.3:1 */
  --on-dark-muted:  #BDB9B3;   /* on emerald             —  5.4:1 */

  /* Gold has poor contrast as small text. Two tokens keep that honest:
     --gold is for fills, rules, icons and large display only;
     --gold-text is the only gold permitted for small text, and only on dark. */
  --gold-text:      #E8B462;   /* on emerald 5.5:1 / on graphite 7.6:1 */
  --gold-hover:     #DDA24A;

  /* Status */
  --alert:          #C1512F;
  --alert-dark:     #E2795A;
  --ok:             #4E8A63;

  /* Borders */
  --rule:           rgba(38, 42, 41, 0.14);
  --rule-strong:    rgba(38, 42, 41, 0.28);
  --rule-dark:      rgba(235, 230, 224, 0.18);
  --rule-dark-soft: rgba(235, 230, 224, 0.10);

  /* Type */
  --font-display: 'Neue Haas Grotesk Display Pro', 'Oswald', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --font-sans:    'Neue Haas Grotesk Text Pro', 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif:   'Lora', Georgia, 'Times New Roman', serif;
  --font-mono:    ui-monospace, 'SF Mono', 'Roboto Mono', Menlo, monospace;

  --step--2: clamp(0.75rem, 0.72rem + 0.16vw, 0.8125rem);
  --step--1: clamp(0.8125rem, 0.79rem + 0.12vw, 0.875rem);
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1:  clamp(1.125rem, 1.07rem + 0.28vw, 1.3125rem);
  --step-2:  clamp(1.375rem, 1.27rem + 0.52vw, 1.75rem);
  --step-3:  clamp(1.75rem, 1.55rem + 1vw, 2.5rem);
  --step-4:  clamp(2.25rem, 1.85rem + 2vw, 3.75rem);
  --step-5:  clamp(2.75rem, 2rem + 3.75vw, 5.5rem);
  --step-6:  clamp(3.25rem, 2.1rem + 5.75vw, 7.5rem);

  /* Layout */
  --container: 1240px;
  --container-narrow: 780px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-y: clamp(4rem, 8vw, 7.5rem);
  --section-y-lg: clamp(5rem, 10vw, 9.5rem);

  /* Radii — kept tight; this is industrial equipment, not a consumer app */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 6px;

  /* Motion */
  --dur-fast: 140ms;
  --dur: 260ms;
  --dur-slow: 620ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --shadow-sm: 0 1px 2px rgba(26, 29, 28, 0.06), 0 2px 8px rgba(26, 29, 28, 0.04);
  --shadow-md: 0 2px 6px rgba(26, 29, 28, 0.08), 0 12px 32px rgba(26, 29, 28, 0.10);
  --shadow-dark: 0 12px 40px rgba(2, 25, 19, 0.45);
}

/* ---------- 2. Reset & base ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--warm-white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }

a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.22em; }
a:hover { text-decoration-color: currentColor; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.04; letter-spacing: -0.005em; }
p  { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.15em; }
li { margin-bottom: 0.4em; }
strong { font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
.on-dark :focus-visible, .site-header :focus-visible { outline-color: var(--gold-text); }

::selection { background: var(--gold); color: var(--graphite-deep); }

/* ---------- 3. Typographic primitives ------------------------------------ */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.004em;
}
.d-1 { font-size: var(--step-6); }
.d-2 { font-size: var(--step-5); }
.d-3 { font-size: var(--step-4); }
.d-4 { font-size: var(--step-3); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 2px;
  background: var(--gold);
  flex: none;
}
.on-dark .eyebrow { color: var(--gold-text); }

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 58ch;
}
.on-dark .lede { color: var(--on-dark-muted); }

.pull {
  font-family: var(--font-serif);
  font-size: var(--step-2);
  font-style: italic;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.measure { max-width: 68ch; }
.measure-tight { max-width: 54ch; }

.meta {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.on-dark .meta { color: var(--on-dark-muted); }

/* ---------- 4. Layout primitives ----------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section-lg { padding-block: var(--section-y-lg); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.tone-paper    { background: var(--warm-white); color: var(--ink); }
.tone-paper-2  { background: var(--paper); color: var(--ink); }
.tone-emerald  { background: var(--emerald); color: var(--on-dark); }
.tone-graphite { background: var(--graphite); color: var(--on-dark); }
.tone-gold     { background: var(--gold); color: var(--graphite-deep); }

.tone-emerald a:not(.btn), .tone-graphite a:not(.btn) { color: var(--gold-text); }
.tone-gold .eyebrow { color: var(--graphite-deep); }
.tone-gold .eyebrow::before { background: var(--graphite-deep); }
.tone-gold .lede { color: color-mix(in srgb, var(--graphite-deep) 82%, transparent); }

.stack > * + * { margin-top: var(--stack-gap, 1.5rem); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}
.split-wide-left  { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.split-wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.split-sticky > :first-child { position: sticky; top: 7rem; }

@media (max-width: 900px) {
  .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split-wide-left, .split-wide-right { grid-template-columns: minmax(0, 1fr); }
  .split-sticky > :first-child { position: static; }
}
@media (max-width: 620px) {
  .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); }
}

.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .lede { margin-top: 1.25rem; }

/* ---------- 5. Signature: the level beam --------------------------------- */
/* The logo's central gold beam, reused as a level indicator. It appears as a
   section rail, as a divider, and inside the hero tank array. It is the one
   motif the site is meant to be remembered by, so nothing else competes. */

.beam-rail {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 3px;
  background: var(--rule);
  overflow: hidden;
}
.beam-rail::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: var(--beam-fill, 0%);
  background: var(--gold);
  transition: height var(--dur-slow) var(--ease);
}
.on-dark .beam-rail { background: var(--rule-dark-soft); }

.beam-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-block: clamp(2rem, 4vw, 3rem);
}
.beam-divider::before { content: ''; width: 3px; height: 2.25rem; background: var(--gold); flex: none; }
.beam-divider::after  { content: ''; height: 1px; flex: 1; background: var(--rule); }
.on-dark .beam-divider::after { background: var(--rule-dark); }

/* Vertical level column used in diagrams */
.level-col {
  --level: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 3;
  border: 2px solid currentColor;
  border-radius: var(--r-sm);
  overflow: hidden;
  opacity: 0.9;
}
.level-col::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: var(--level);
  background: var(--gold);
  transition: height var(--dur-slow) var(--ease);
}

/* ---------- 6. Buttons & links ------------------------------------------- */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--graphite-deep);
  --btn-bd: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--btn-bd);
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:hover { --btn-bg: var(--gold-hover); --btn-bd: var(--gold-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .arw { transition: transform var(--dur) var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--rule-strong); }
.btn-ghost:hover { --btn-bg: transparent; --btn-fg: var(--emerald); --btn-bd: var(--emerald); }
.on-dark .btn-ghost, .tone-emerald .btn-ghost, .tone-graphite .btn-ghost {
  --btn-fg: var(--on-dark); --btn-bd: var(--rule-dark);
}
.on-dark .btn-ghost:hover, .tone-emerald .btn-ghost:hover, .tone-graphite .btn-ghost:hover {
  --btn-fg: var(--graphite-deep); --btn-bg: var(--on-dark); --btn-bd: var(--on-dark);
}
.btn-emerald { --btn-bg: var(--emerald); --btn-fg: var(--on-dark); --btn-bd: var(--emerald); }
.btn-emerald:hover { --btn-bg: var(--emerald-soft); --btn-bd: var(--emerald-soft); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--emerald);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.3rem;
  transition: gap var(--dur) var(--ease);
}
.tlink:hover { gap: 0.85rem; }
.on-dark .tlink, .tone-emerald .tlink, .tone-graphite .tlink { color: var(--on-dark); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 200;
  padding: 0.85rem 1.25rem;
  background: var(--gold);
  color: var(--graphite-deep);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- 7. Header & navigation --------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--emerald) 96%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--rule-dark-soft);
  color: var(--on-dark);
  transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header[data-stuck='true'] { box-shadow: var(--shadow-dark); }

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

.brand { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; color: inherit; flex: none; }
.brand svg { height: 2.6rem; width: auto; }
.brand-words { display: flex; flex-direction: column; line-height: 1; }
.brand-words b {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--on-dark);
}
.brand-words span {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-top: 0.24rem;
}

.nav { display: flex; align-items: center; gap: clamp(0.4rem, 1.4vw, 1.4rem); }
.nav a {
  font-size: var(--step--1);
  font-weight: 500;
  text-decoration: none;
  color: var(--on-dark);
  padding: 0.5rem 0.25rem;
  position: relative;
  white-space: nowrap;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.1rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav a:hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); }
.nav a[aria-current='page'] { color: var(--gold-text); }

.header-cta { display: flex; align-items: center; gap: 0.75rem; flex: none; }
.header-cta .btn { padding: 0.7rem 1.15rem; font-size: var(--step--2); }

.nav-toggle {
  display: none;
  width: 2.9rem; height: 2.9rem;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--rule-dark);
  border-radius: var(--r-sm);
  color: var(--on-dark);
  cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: background var(--dur-fast) var(--ease); }
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded='true'] span { background: transparent; }
.nav-toggle[aria-expanded='true'] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  .nav {
    position: fixed;
    inset: 4.75rem 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--emerald);
    border-bottom: 1px solid var(--rule-dark-soft);
    padding: 1rem var(--gutter) 2rem;
    max-height: calc(100dvh - 4.75rem);
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  }
  .nav[data-open='true'] { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a { padding: 1rem 0; font-size: var(--step-1); border-bottom: 1px solid var(--rule-dark-soft); }
  .nav a::after { display: none; }
  .nav .btn { display: inline-flex; margin-top: 1.5rem; }
}

/* ---------- 8. Hero ------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--emerald);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* Telemetry grid — restrained, derived from the deck's dot field */
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, rgba(235, 230, 224, 0.09) 1px, transparent 1.6px);
  background-size: 26px 26px;
  mask-image: linear-gradient(115deg, transparent 8%, #000 45%, transparent 92%);
  z-index: -1;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 88% 12%, rgba(203, 145, 59, 0.16), transparent 58%);
  z-index: -1;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.hero h1 { font-size: var(--step-6); max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--gold); display: block; }
.hero .lede { margin-top: 1.75rem; max-width: 48ch; }
.hero .btn-row { margin-top: 2.5rem; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(1.5rem, 4vw, 3rem);
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule-dark);
}
.hero-stats div { padding-block: 0.35rem; }
.hero-stats dt { font-size: var(--step--2); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; }
.hero-stats dd { margin: 0.3rem 0 0; font-size: var(--step--1); color: var(--on-dark-muted); max-width: 22ch; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 16ch; }
}

/* Tank array — the hero's thesis: six assets, one glance */
.tank-array { position: relative; }
.tank-array figcaption {
  margin-top: 1.5rem;
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.tank-array figcaption b { color: var(--gold-text); font-weight: 600; }

.tanks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.6vw, 1.1rem);
  padding: clamp(1.1rem, 2.5vw, 1.75rem);
  background: rgba(2, 43, 33, 0.55);
  border: 1px solid var(--rule-dark-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-dark);
}
.tank {
  position: relative;
  padding: 0.85rem 0.7rem 0.7rem;
  border: 1px solid var(--rule-dark-soft);
  border-radius: var(--r-sm);
  background: rgba(235, 230, 224, 0.03);
}
.tank-id {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--on-dark-muted);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.55rem;
}
.tank-id b { color: var(--on-dark); font-weight: 600; font-size: 0.7rem; }
.tank-body {
  position: relative;
  height: clamp(72px, 12vw, 104px);
  border: 2px solid rgba(235, 230, 224, 0.42);
  border-radius: 3px 3px 2px 2px;
  overflow: hidden;
  background: rgba(2, 25, 19, 0.5);
}
.tank-fill {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 0;
  background: linear-gradient(180deg, rgba(235, 230, 224, 0.55), rgba(235, 230, 224, 0.32));
  transition: height 1.1s var(--ease);
}
.tank-body::after {
  /* shell courses */
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 15px, rgba(235, 230, 224, 0.12) 15px 16px);
  pointer-events: none;
}
.tank-mark {
  position: absolute;
  inset-inline: -1px;
  height: 2px;
  background: var(--gold);
  opacity: 0.55;
}
.tank[data-state='high'] { border-color: rgba(203, 145, 59, 0.75); background: rgba(203, 145, 59, 0.07); }
.tank[data-state='high'] .tank-fill { background: linear-gradient(180deg, var(--gold), rgba(203, 145, 59, 0.62)); }
.tank[data-state='high'] .tank-body { border-color: var(--gold); }
.tank[data-state='high'] .tank-id b { color: var(--gold-text); }
.tank-status {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.tank-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.tank[data-state='high'] .tank-status { color: var(--gold-text); font-weight: 600; }
.tank[data-state='high'] .tank-status::before { animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 180, 98, 0.6); }
  50%      { box-shadow: 0 0 0 5px rgba(232, 180, 98, 0); }
}

/* ---------- 9. Cards & modules ------------------------------------------- */
.card {
  position: relative;
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card > h3 { font-size: var(--step-2); margin-bottom: 0.75rem; letter-spacing: -0.015em; }
.card > p { color: var(--ink-muted); font-size: var(--step--1); }
.card-top-rule { border-top: 3px solid var(--gold); border-radius: 0 0 var(--r-md) var(--r-md); }
a.card:hover, .card-hover:hover { border-color: var(--emerald); transform: translateY(-3px); box-shadow: var(--shadow-md); }

.on-dark .card, .tone-emerald .card, .tone-graphite .card {
  background: rgba(235, 230, 224, 0.045);
  border-color: var(--rule-dark-soft);
  color: var(--on-dark);
}
.on-dark .card > p, .tone-emerald .card > p, .tone-graphite .card > p { color: var(--on-dark-muted); }
.tone-emerald a.card:hover, .tone-graphite a.card:hover { border-color: var(--gold); }

.cap-list { list-style: none; margin: 0; padding: 0; }
.cap-list li {
  display: flex;
  gap: 0.85rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--rule);
  font-size: var(--step--1);
  align-items: baseline;
}
.cap-list li:last-child { border-bottom: 0; }
.cap-list li::before {
  content: '';
  width: 0.5rem; height: 0.5rem;
  border: 2px solid var(--gold);
  flex: none;
  transform: translateY(-1px);
}
.on-dark .cap-list li, .tone-emerald .cap-list li, .tone-graphite .cap-list li { border-color: var(--rule-dark-soft); }

/* Numbered process flow — used only where order genuinely matters */
.flow { counter-reset: step; display: grid; gap: 0; }
.flow-step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--rule);
  align-items: start;
}
.flow-step:last-child { border-bottom: 1px solid var(--rule); }
.flow-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.flow-step h3 { font-size: var(--step-2); margin-bottom: 0.6rem; }
.flow-step p { color: var(--ink-muted); font-size: var(--step--1); max-width: 62ch; }
.on-dark .flow-step, .tone-emerald .flow-step, .tone-graphite .flow-step { border-color: var(--rule-dark-soft); }
.on-dark .flow-step p, .tone-emerald .flow-step p, .tone-graphite .flow-step p { color: var(--on-dark-muted); }
@media (max-width: 620px) {
  .flow-step { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
}

/* Stage chain — Visibility → Awareness → Intelligence → Action → Control */
.chain { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; }
.chain-link {
  position: relative;
  padding: 1.4rem 1.1rem 1.5rem;
  background: rgba(235, 230, 224, 0.05);
  border-top: 3px solid var(--gold);
}
.chain-link:nth-child(n+3) { border-top-color: var(--emerald-soft); background: rgba(235, 230, 224, 0.03); }
.chain-link:last-child { border-top-color: var(--on-dark-muted); }
.chain-link b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-1);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
}
.chain-link span { font-size: var(--step--1); color: var(--on-dark-muted); line-height: 1.5; display: block; }
@media (max-width: 860px) { .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .chain { grid-template-columns: minmax(0, 1fr); } }

/* Comparison panel: most systems tell / GTT shows */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule-strong); border: 1px solid var(--rule-strong); border-radius: var(--r-md); overflow: hidden; }
.compare > div { padding: clamp(1.6rem, 3vw, 2.5rem); background: var(--warm-white); }
.compare > div:last-child { background: var(--emerald); color: var(--on-dark); }
.compare h3 { font-size: var(--step-2); margin-bottom: 1rem; }
.compare .meta { margin-bottom: 1rem; display: block; }
.compare > div:last-child .meta { color: var(--gold-text); }
.compare ul { list-style: none; padding: 0; margin: 0; }
.compare li { padding-block: 0.55rem; border-bottom: 1px solid var(--rule); font-size: var(--step--1); }
.compare > div:last-child li { border-color: var(--rule-dark-soft); }
.compare li:last-child { border-bottom: 0; }
@media (max-width: 760px) { .compare { grid-template-columns: minmax(0, 1fr); } }

/* Pillar block */
.pillar { padding-block: clamp(1.5rem, 3vw, 2rem); border-top: 2px solid var(--gold); }
.pillar h3 { font-family: var(--font-display); font-size: var(--step-2); text-transform: uppercase; margin-bottom: 0.75rem; letter-spacing: 0.02em; }
.pillar p { font-size: var(--step--1); color: var(--ink-muted); }
.on-dark .pillar p, .tone-graphite .pillar p, .tone-emerald .pillar p { color: var(--on-dark-muted); }

/* Industry selector */
.ind-layout { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.ind-tabs { display: flex; flex-direction: column; gap: 0; position: sticky; top: 7rem; }
.ind-tab {
  appearance: none;
  text-align: left;
  background: transparent;
  border: 0;
  border-left: 3px solid var(--rule);
  padding: 1.05rem 1.25rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.ind-tab:hover { color: var(--emerald); background: var(--paper); }
.ind-tab[aria-selected='true'] { border-left-color: var(--gold); color: var(--emerald); background: var(--paper); }
.ind-panel[hidden] { display: none; }
.ind-panel h3 { font-size: var(--step-3); margin-bottom: 1rem; }
@media (max-width: 900px) {
  .ind-layout { grid-template-columns: minmax(0, 1fr); }
  .ind-tabs { position: static; flex-direction: row; overflow-x: auto; border-bottom: 1px solid var(--rule); padding-bottom: 0.25rem; }
  .ind-tab { border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; font-size: var(--step-0); padding: 0.8rem 1rem; }
  .ind-tab[aria-selected='true'] { border-bottom-color: var(--gold); }
}

/* Accordion */
.acc { border-top: 1px solid var(--rule); }
.acc-item { border-bottom: 1px solid var(--rule); }
.on-dark .acc, .on-dark .acc-item { border-color: var(--rule-dark-soft); }
.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  background: transparent;
  border: 0;
  font-family: var(--font-sans);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.4;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.acc-icon { position: relative; width: 1rem; height: 1rem; flex: none; }
.acc-icon::before, .acc-icon::after {
  content: ''; position: absolute; background: var(--gold); transition: transform var(--dur) var(--ease);
}
.acc-icon::before { inset: calc(50% - 1px) 0; height: 2px; }
.acc-icon::after  { inset: 0 calc(50% - 1px); width: 2px; }
.acc-trigger[aria-expanded='true'] .acc-icon::after { transform: scaleY(0); }
.acc-panel { overflow: hidden; height: 0; transition: height var(--dur) var(--ease); }
.acc-panel-inner { padding-bottom: 1.6rem; color: var(--ink-muted); max-width: 70ch; font-size: var(--step--1); }
.on-dark .acc-panel-inner { color: var(--on-dark-muted); }

/* ---------- 10. Forms ----------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; }
.field-full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.02em; }
.field .req { color: var(--alert); margin-left: 0.15rem; }
.field .hint { font-size: var(--step--2); color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: var(--step-0);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  padding: 0.8rem 0.9rem;
  width: 100%;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(3, 74, 56, 0.14);
  outline: none;
}
.field input[aria-invalid='true'], .field select[aria-invalid='true'], .field textarea[aria-invalid='true'] {
  border-color: var(--alert);
  box-shadow: 0 0 0 3px rgba(193, 81, 47, 0.14);
}
.field-error { font-size: var(--step--2); color: var(--alert); font-weight: 600; min-height: 1.1em; }
.field-error:empty { min-height: 0; }

.choice-set { border: 0; margin: 0; padding: 0; }
.choice-set legend { font-size: var(--step--1); font-weight: 600; margin-bottom: 0.75rem; padding: 0; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
@media (max-width: 620px) { .choices { grid-template-columns: minmax(0, 1fr); } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: var(--step--1);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.choice span::before {
  content: ''; width: 0.85rem; height: 0.85rem; flex: none;
  border: 2px solid var(--rule-strong); border-radius: 50%;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.choice input:checked + span { border-color: var(--emerald); background: rgba(3, 74, 56, 0.05); }
.choice input:checked + span::before { border-color: var(--gold); box-shadow: inset 0 0 0 3px var(--gold); }
.choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.consent { display: flex; gap: 0.75rem; align-items: flex-start; font-size: var(--step--1); }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: 0.25rem; flex: none; accent-color: var(--emerald); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: var(--step--2); color: var(--ink-soft); max-width: 60ch; }

.form-status { border-radius: var(--r-md); padding: 1.1rem 1.25rem; font-size: var(--step--1); border: 1px solid; }
.form-status[hidden] { display: none; }
.form-status[data-tone='error']   { border-color: var(--alert); background: rgba(193, 81, 47, 0.08); color: #7A2E19; }
.form-status[data-tone='warn']    { border-color: var(--gold); background: rgba(203, 145, 59, 0.12); color: #6B4A15; }
.form-status[data-tone='success'] { border-color: var(--ok); background: rgba(78, 138, 99, 0.1); color: #2C5138; }
.form-status a { color: inherit; font-weight: 600; }

/* ---------- 11. Footer ---------------------------------------------------- */
.site-footer { background: var(--graphite); color: var(--on-dark); padding-block: clamp(3.5rem, 6vw, 5.5rem) 2rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); }
@media (max-width: 980px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-top { grid-template-columns: minmax(0, 1fr); } }
.footer-brand svg { height: 3.6rem; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { font-size: var(--step--1); color: var(--on-dark-muted); max-width: 34ch; }
.footer-tag {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: var(--step-1);
  letter-spacing: 0.02em;
  color: var(--gold-text);
  margin-bottom: 1rem;
}
.footer-col h2 {
  font-size: var(--step--2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 1.1rem;
  font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a { font-size: var(--step--1); color: var(--on-dark-muted); text-decoration: none; }
.footer-col a:hover { color: var(--on-dark); text-decoration: underline; }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule-dark-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  font-size: var(--step--2);
  color: var(--on-dark-muted);
}
.footer-contact a { color: var(--gold-text); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }

/* ---------- 12. CTA band -------------------------------------------------- */
.cta-band { background: var(--emerald); color: var(--on-dark); position: relative; overflow: hidden; }
.cta-band::before {
  content: '';
  position: absolute;
  right: -6%;
  top: -30%;
  width: 44rem; height: 44rem;
  background: radial-gradient(circle, rgba(203, 145, 59, 0.18), transparent 62%);
  pointer-events: none;
}
.cta-band .inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.cta-band h2 { font-size: var(--step-4); max-width: 18ch; }
@media (max-width: 880px) { .cta-band .inner { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 13. Editorial / article --------------------------------------- */
.article-head { max-width: 46rem; }
.article-head h1 { font-size: var(--step-4); margin-bottom: 1.25rem; }
.article-body { max-width: 40rem; font-size: var(--step-1); line-height: 1.72; }
.article-body h2 { font-size: var(--step-2); margin: 2.75rem 0 1rem; }
.article-body h3 { font-size: var(--step-1); margin: 2rem 0 0.75rem; }
.article-body blockquote {
  margin: 2.25rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--gold);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--step-2);
  line-height: 1.45;
  color: var(--emerald);
}
.article-body ul { padding-left: 1.25rem; }
.article-body li { margin-bottom: 0.6em; }

.breadcrumbs { font-size: var(--step--2); color: var(--ink-soft); margin-bottom: 1.75rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; display: flex; gap: 0.5rem; align-items: center; }
.breadcrumbs li + li::before { content: '/'; color: var(--gold); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.on-dark .breadcrumbs { color: var(--on-dark-muted); }

.article-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.article-card .meta { margin-bottom: 0.9rem; }
.article-card h3 { font-size: var(--step-1); line-height: 1.28; margin-bottom: 0.7rem; }
.article-card p { font-size: var(--step--1); color: var(--ink-muted); flex: 1; }
.article-card .tlink { margin-top: 1.25rem; align-self: flex-start; }

/* ---------- 14. Small utilities ------------------------------------------ */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.text-gold { color: var(--gold); }
.on-dark .text-gold { color: var(--gold); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.notice {
  border-left: 3px solid var(--gold);
  background: var(--paper);
  padding: 1.1rem 1.35rem;
  font-size: var(--step--1);
  color: var(--ink-muted);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* ---------- 15. Scroll reveal -------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

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

/* ---------- 17. Print ----------------------------------------------------- */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
}
