/* ============================================================
   TRIZAC PROCESS SOLUTIONS — "Calibration" design system
   Art direction: technical drawing sheet / calibration certificate.
   Swiss grid, hairline rules, measured annotations, monospace data.
   Brand anchored to the logo: blue #5C79B5, charcoal #3F3736, taupe #7E6D65.
   Hazard amber is reserved for action + alarm semantics only.
   ============================================================ */

/* ---------- 1. TOKENS ----------
   Dark, cinematic, industrial. The site IS dark — it does not follow the
   OS light preference, because the photography and the amber/blue signal
   language are built for a night control room, not a sheet of paper.
   A light palette is kept as an explicit [data-theme="light"] override. */
:root {
  /* Ground */
  --paper:        #0B1220;
  --paper-2:      #0E1628;
  --surface:      #131C30;
  --surface-2:    #172238;

  /* Ink */
  --ink:          #F2F4F8;
  --ink-2:        #B8BFCD;   /* 9.9:1 on paper */
  --ink-3:        #8C95A8;   /* 5.9:1 on paper */

  /* Brand blue (from logo), brightened for a dark ground */
  --blue:         #3D7BFF;   /* vivid — buttons, accents, icon fills */
  --blue-deep:    #8FB3FF;   /* accent TEXT on dark — 7.9:1 */
  --blue-ink:     #C9DBFF;
  --blue-tint:    rgba(61, 123, 255, .14);
  --blue-glow:    rgba(61, 123, 255, .38);
  --charcoal:     #C9C2C0;
  --taupe:        #A99790;
  --taupe-tint:   rgba(169, 151, 144, .12);

  /* Cyan — live data only. Readouts, sparklines, pulses. */
  --cyan:         #4CD3F5;
  --cyan-tint:    rgba(76, 211, 245, .12);

  /* Signal — action + alarm ONLY */
  --signal:       #F0951F;   /* fill; carries DARK text at 9.6:1 */
  --signal-fg:    #0A0D13;
  --signal-ink:   #FFB24A;   /* amber TEXT on dark — 9.6:1 */
  --signal-hot:   #FFA23A;
  --signal-tint:  rgba(240, 149, 31, .14);
  --signal-glow:  rgba(240, 149, 31, .30);

  /* CTA band — brand-blue gradient slab */
  --band-bg:      linear-gradient(135deg, #1B2C52 0%, #2B4576 55%, #345693 100%);
  --band-fg:      #FFFFFF;
  --band-muted:   rgba(255, 255, 255, .90);

  /* Status */
  --ok:           #5FD39A;
  --ok-tint:      rgba(95, 211, 154, .12);

  /* Structure — rules are light, grid is blue-tinted */
  --rule:         rgba(242, 244, 248, .10);
  --rule-soft:    rgba(242, 244, 248, .06);
  --rule-strong:  rgba(242, 244, 248, .24);
  --grid-line:    rgba(61, 123, 255, .0);

  /* Type */
  --ff-display: 'Plus Jakarta Sans', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --ff-body:    'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  /* No monospace anywhere: labels are bold small caps in the body face. */
  --ff-mono:    'Inter', ui-sans-serif, system-ui, sans-serif;

  /* Rhythm — 4/8 base */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px;  --s-6: 32px;  --s-7: 48px;  --s-8: 64px;
  --s-9: 96px;  --s-10: 128px;

  --gutter:  clamp(20px, 5vw, 72px);
  --section: clamp(64px, 9vw, 128px);
  --maxw:    1320px;
  --measure: 68ch;

  /* Motion */
  --ease:     cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast:   160ms;
  --t-base:   240ms;
  --t-slow:   420ms;

  --radius: 16px;
  color-scheme: dark;
}

/* Explicit light override only — never automatic. */
[data-theme="light"] {
  --paper:#F4F3F0; --paper-2:#EAE8E2; --surface:#FFFFFF; --surface-2:#FAFAF8;
  --ink:#16181C; --ink-2:#4C5058; --ink-3:#686C74;
  --blue:#5C79B5; --blue-deep:#35528A; --blue-ink:#22375E; --blue-tint:#EDF1F8; --blue-glow:rgba(92,121,181,.2);
  --charcoal:#3F3736; --taupe:#7E6D65; --taupe-tint:#F1EEEB;
  --cyan:#0E87A6; --cyan-tint:rgba(14,135,166,.1);
  --signal:#B85309; --signal-fg:#FFFFFF; --signal-ink:#A94B07; --signal-hot:#E8850C;
  --signal-tint:#FDF1E4; --signal-glow:rgba(184,83,9,.18);
  --band-bg:linear-gradient(135deg,#1B2C52,#35528A); --band-fg:#F4F3F0; --band-muted:rgba(255,255,255,.78);
  --ok:#2E6B4F; --ok-tint:#E9F3ED;
  --rule:rgba(22,24,28,.16); --rule-soft:rgba(22,24,28,.075); --rule-strong:rgba(22,24,28,.30);
  --grid-line:rgba(22,24,28,.045);
  color-scheme: light;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.022em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6.2vw, 5rem); letter-spacing: -.032em; }
h2 { font-size: clamp(1.9rem, 3.9vw, 3.1rem); letter-spacing: -.026em; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); }
h4 { font-size: 1.0rem; letter-spacing: -.01em; }
p  { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }

::selection { background: var(--blue); color: #fff; }

/* Focus — visible, never removed. 3px ring per accessibility spec. */
:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
  border-radius: var(--radius);
}
:focus:not(:focus-visible) { outline: none; }

.skip {
  position: absolute; left: var(--s-4); top: -100px; z-index: 999;
  background: var(--ink); color: var(--paper);
  padding: var(--s-3) var(--s-5); font-family: var(--ff-mono);
  font-size: .8rem; text-decoration: none;
  transition: top var(--t-base) var(--ease);
}
.skip:focus { top: var(--s-4); }

.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;
}

/* ---------- 3. LAYOUT ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sec  { padding-block: var(--section); position: relative; }
.sec--tight { padding-block: clamp(48px, 6vw, 80px); }
.sec--alt { background: var(--surface-2); border-block: 1px solid var(--rule-soft); }

.grid { display: grid; gap: var(--s-5); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-12 { grid-template-columns: repeat(12, 1fr); }
@media (max-width: 980px) {
  .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-12 { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 620px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .g-12 { grid-template-columns: repeat(2, 1fr); }
}

/* Drawing-sheet grid overlay — the signature ground texture */
/* z-index:-1 keeps this behind all content without having to force a
   position/stacking context onto every other child of <body> — doing that
   overrides position:sticky/fixed on the nav, drawer and skip link. */
.sheet-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right,  var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 25%, transparent 78%);
}

/* ---------- 4. TECHNICAL TYPOGRAPHY ---------- */
.tag {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--ff-mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.tag::before {
  content: ""; width: 18px; height: 1px; background: var(--signal); flex: none;
}
.tag--plain::before { display: none; }
.tag--blue::before { background: var(--blue); }

.idx {
  font-family: var(--ff-mono); font-size: .7rem; font-weight: 500;
  color: var(--blue); letter-spacing: .1em;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.55; color: var(--ink-2); max-width: 60ch;
}

.mono { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; }

/* Section header with measured rule */
.sec-head { margin-bottom: var(--s-8); }
.sec-head__rule {
  display: flex; align-items: center; gap: var(--s-4);
  margin-bottom: var(--s-5); padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--rule);
}
.sec-head h2 { margin-bottom: var(--s-4); }
.sec-head .lead { margin: 0; }

/* Tick marks — the calibration motif */
.ticks { display: flex; gap: 3px; align-items: flex-end; height: 12px; }
.ticks i { width: 1px; background: var(--rule-strong); height: 5px; display: block; }
.ticks i:nth-child(5n+1) { height: 11px; background: var(--blue); }

/* ---------- 5. BUTTONS ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-3); min-height: 48px; padding: 0 var(--s-6);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: var(--radius);
  font-family: var(--ff-mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; position: relative; overflow: hidden;
  transition: background var(--t-base) var(--ease),
              color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              transform var(--t-fast) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Signal = the single conversion action. Used sparingly by design. */
.btn--signal { --btn-bg: var(--signal); --btn-fg: var(--signal-fg); --btn-bd: var(--signal); }
.btn--signal:hover { --btn-bg: #9C4507; --btn-bd: #9C4507; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--rule-strong); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink); }

.btn--sm { min-height: 40px; padding: 0 var(--s-5); font-size: .72rem; }

.btn .arw { transition: transform var(--t-base) var(--ease); flex: none; }
.btn:hover .arw { transform: translateX(3px); }

/* Text link with animated rule */
.tlink {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--ff-mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; padding-bottom: 3px;
  background-image: linear-gradient(var(--signal), var(--signal));
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.tlink:hover { background-size: 100% 1px; color: var(--signal-ink); }
.tlink .arw { transition: transform var(--t-base) var(--ease); }
.tlink:hover .arw { transform: translateX(3px); }

/* ---------- 6. NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--rule-soft);
  transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--rule); }
.nav__in {
  display: flex; align-items: center; gap: var(--s-6);
  min-height: 72px; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gutter);
}
.nav__brand {
  display: flex; align-items: center; gap: var(--s-3);
  text-decoration: none; color: var(--ink); flex: none;
}
.nav__mark {
  font-family: var(--ff-display); font-weight: 700; font-size: 1.35rem;
  letter-spacing: -.04em; color: var(--blue-deep);
}
.nav__word {
  display: flex; flex-direction: column; line-height: 1.1;
  font-family: var(--ff-mono); font-size: .58rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
  padding-left: var(--s-3); border-left: 1px solid var(--rule);
}
.nav__word b { font-weight: 600; color: var(--ink-2); }

.nav__links { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.nav__links a {
  position: relative; display: flex; align-items: center; gap: 6px;
  padding: var(--s-3) var(--s-3); text-decoration: none;
  font-size: .85rem; font-weight: 500; color: var(--ink-2);
  transition: color var(--t-fast) var(--ease); white-space: nowrap;
}
.nav__links a em {
  font-family: var(--ff-mono); font-style: normal; font-size: .62rem;
  color: var(--blue); opacity: .8;
}
.nav__links a::after {
  content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: 6px;
  height: 1px; background: var(--signal); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-base) var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); background: var(--blue); }

.nav__cta { margin-left: var(--s-4); flex: none; }
.nav__burger {
  display: none; margin-left: auto;
  width: 48px; height: 48px; background: none; border: 1px solid var(--rule);
  border-radius: var(--radius); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav__burger span {
  display: block; width: 18px; height: 1.5px; background: var(--ink);
  transition: transform var(--t-base) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(6.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child  { transform: translateY(-6.5px) rotate(-45deg); }

/* Seven links + CTA: tighten between the burger breakpoint and roomy desktop */
@media (min-width: 1081px) and (max-width: 1240px) {
  .nav__links { gap: 0; }
  .nav__links a { padding-inline: 9px; font-size: .82rem; }
  .nav__links a::after { left: 9px; right: 9px; }
  .nav__links a em { display: none; }
  .nav__cta { margin-left: var(--s-3); }
}
@media (max-width: 1080px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

/* Mobile drawer */
.drawer {
  position: fixed; inset: 72px 0 0; z-index: 99;
  background: var(--paper); border-top: 1px solid var(--rule);
  padding: var(--s-6) var(--gutter) var(--s-9);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity var(--t-base) var(--ease),
              transform var(--t-base) var(--ease),
              visibility var(--t-base);
}
.drawer.is-open { transform: none; opacity: 1; visibility: visible; }
.drawer a {
  display: flex; align-items: baseline; gap: var(--s-4);
  padding: var(--s-4) 0; border-bottom: 1px solid var(--rule-soft);
  text-decoration: none; color: var(--ink);
  font-family: var(--ff-display); font-size: 1.35rem; font-weight: 600;
  letter-spacing: -.02em;
}
.drawer a em {
  font-family: var(--ff-mono); font-style: normal; font-size: .7rem; color: var(--blue);
}
.drawer .btn { width: 100%; margin-top: var(--s-6); }

/* ---------- 7. HERO ---------- */
.hero { position: relative; padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 96px); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--s-8); align-items: center; }
@media (max-width: 1080px) { .hero__in { grid-template-columns: 1fr; gap: var(--s-7); } }

.hero h1 { margin-bottom: var(--s-5); }
.hero h1 .em {
  color: var(--blue-deep); font-style: normal;
  display: inline-block; position: relative;
}
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.32rem); color: var(--ink-2); max-width: 54ch; margin-bottom: var(--s-7); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }

/* Stat strip */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule); margin-top: var(--s-8);
}
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: var(--s-5) var(--s-4) 0 0; border-right: 1px solid var(--rule-soft); }
.stat:last-child { border-right: 0; }
.stat__n {
  font-family: var(--ff-display); font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 600; letter-spacing: -.03em; line-height: 1; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat__n sup { font-size: .45em; color: var(--signal-ink); vertical-align: super; margin-left: 2px; }
.stat__l {
  font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); margin-top: var(--s-3);
  max-width: 22ch;
}

/* ---------- 8. SIGNAL-CHAIN SCHEMATIC (hero graphic) ---------- */
.schematic {
  border: 1px solid var(--rule); background: var(--surface);
  border-radius: var(--radius); padding: var(--s-6);
  position: relative;
}
.schematic::before, .schematic::after {
  content: ""; position: absolute; width: 9px; height: 9px;
  border: 1px solid var(--blue); pointer-events: none;
}
.schematic::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.schematic::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.schematic__head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: var(--s-4); margin-bottom: var(--s-5);
  border-bottom: 1px solid var(--rule-soft);
}
.schematic__title {
  font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-2);
}
.live {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--ff-mono); font-size: .64rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ok);
}
.live__dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.chain { display: flex; flex-direction: column; gap: 0; }
.node {
  display: grid; grid-template-columns: 34px 1fr auto; gap: var(--s-4);
  align-items: center; padding: var(--s-4) 0; position: relative;
}
.node + .node { border-top: 1px solid var(--rule-soft); }
.node__ico {
  width: 34px; height: 34px; border: 1px solid var(--rule);
  border-radius: var(--radius); display: grid; place-items: center;
  color: var(--blue-deep); background: var(--blue-tint); flex: none;
}
.node__name { font-size: .9rem; font-weight: 500; color: var(--ink); }
.node__desc {
  font-family: var(--ff-mono); font-size: .66rem; color: var(--ink-3);
  letter-spacing: .04em; margin-top: 2px;
}
.node__val {
  font-family: var(--ff-mono); font-size: .78rem; color: var(--ink-2);
  font-variant-numeric: tabular-nums; text-align: right;
}
.node--alarm .node__ico { color: var(--signal); background: var(--signal-tint); border-color: var(--signal); }
.node--alarm .node__val { color: var(--signal-ink); font-weight: 600; }

/* Flowing signal indicator down the chain */
.chain__flow {
  position: absolute; left: 16px; top: 0; bottom: 0; width: 1px;
  background: var(--rule-soft); overflow: hidden;
}
.chain__flow i {
  position: absolute; left: 0; width: 1px; height: 28%;
  background: linear-gradient(180deg, transparent, var(--blue), transparent);
  animation: flow 3.2s linear infinite;
}
@keyframes flow { from { top: -30%; } to { top: 100%; } }

/* ---------- 9. CARDS ---------- */
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: var(--s-6);
  text-decoration: none; color: inherit; position: relative;
  transition: border-color var(--t-base) var(--ease),
              transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
}
a.card:hover, .card--int:hover {
  border-color: var(--blue); transform: translateY(-3px);
  box-shadow: 0 12px 32px -18px rgba(22, 24, 28, .35);
}
.card__ico {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--rule); border-radius: var(--radius);
  color: var(--blue-deep); background: var(--blue-tint);
  margin-bottom: var(--s-5); flex: none;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
a.card:hover .card__ico { background: var(--blue-deep); color: #fff; }
.card h3 { margin-bottom: var(--s-3); }
.card p { color: var(--ink-2); font-size: .93rem; margin-bottom: var(--s-5); }
.card__foot { margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--rule-soft); }

/* Numbered index in card corner */
.card__idx {
  position: absolute; top: var(--s-5); right: var(--s-6);
  font-family: var(--ff-mono); font-size: .68rem; color: var(--ink-3);
  letter-spacing: .1em;
}

/* Spec list inside cards */
.specs { list-style: none; margin: 0 0 var(--s-5); padding: 0; }
.specs li {
  display: flex; gap: var(--s-3); align-items: baseline;
  padding: var(--s-2) 0; border-bottom: 1px dotted var(--rule-soft);
  font-size: .86rem; color: var(--ink-2);
}
.specs li::before {
  content: ""; width: 4px; height: 4px; flex: none; margin-top: .5em;
  background: var(--blue); border-radius: 50%;
}
.specs--kv li { justify-content: space-between; }
.specs--kv li::before { display: none; }
.specs--kv b {
  font-family: var(--ff-mono); font-size: .78rem; font-weight: 500;
  color: var(--ink); text-align: right; font-variant-numeric: tabular-nums;
}
.specs--kv span { color: var(--ink-3); font-size: .82rem; }

/* ---------- 10. PROOF STRIP (certifications / partners) ---------- */
.proof {
  border-block: 1px solid var(--rule); padding-block: var(--s-6);
  background: var(--surface-2);
}
.proof__row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s-4) var(--s-7); justify-content: center;
}
.cert {
  display: inline-flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4); border: 1px solid var(--rule);
  border-radius: var(--radius); background: var(--surface);
  font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-2);
}
.cert svg { color: var(--blue); flex: none; }

/* ---------- 11. CASE STUDY ---------- */
.case {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-6);
  align-items: center; padding: var(--s-6) 0;
  border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit;
  transition: background var(--t-base) var(--ease), padding var(--t-base) var(--ease);
}
.case:hover { background: var(--surface); padding-inline: var(--s-5); }
.case__idx { font-family: var(--ff-mono); font-size: .72rem; color: var(--blue); }
.case h3 { margin-bottom: var(--s-2); transition: color var(--t-base) var(--ease); }
.case:hover h3 { color: var(--blue-deep); }
.case__meta {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4);
  font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3);
}
.case__res {
  font-family: var(--ff-display); font-size: 1.5rem; font-weight: 600;
  letter-spacing: -.02em; color: var(--ink); text-align: right; white-space: nowrap;
}
.case__res small {
  display: block; font-family: var(--ff-mono); font-size: .62rem; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px;
}
@media (max-width: 860px) {
  .case { grid-template-columns: 1fr; gap: var(--s-4); }
  .case__res { text-align: left; }
}

/* ---------- 12. TABLE ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
table.tbl { width: 100%; border-collapse: collapse; min-width: 640px; }
.tbl th, .tbl td { padding: var(--s-4) var(--s-5); text-align: left; border-bottom: 1px solid var(--rule-soft); }
.tbl th {
  font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 500;
  background: var(--surface-2); position: sticky; top: 0;
}
.tbl td { font-size: .9rem; color: var(--ink-2); }
.tbl td:first-child { color: var(--ink); font-weight: 500; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background var(--t-fast) var(--ease); }
.tbl tbody tr:hover { background: var(--blue-tint); }

/* ---------- 13. PROCESS / TIMELINE ---------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 64px 1fr; gap: var(--s-5);
  padding: var(--s-6) 0; border-top: 1px solid var(--rule); position: relative;
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step__n {
  font-family: var(--ff-mono); font-size: .72rem; color: var(--blue);
  letter-spacing: .1em; padding-top: 4px;
}
.step h3 { margin-bottom: var(--s-3); }
.step p { color: var(--ink-2); font-size: .93rem; margin: 0; }
@media (max-width: 620px) { .step { grid-template-columns: 1fr; gap: var(--s-3); } }

/* ---------- 14. CTA BAND ---------- */
.cta-band {
  background: var(--band-bg); color: var(--band-fg);
  padding-block: clamp(56px, 8vw, 104px); position: relative; overflow: hidden;
  border-block: 1px solid var(--rule);
}
.cta-band h2 { color: var(--band-fg); margin-bottom: var(--s-5); }
.cta-band p { color: var(--band-muted); font-size: 1.05rem; }
.cta-band .tag { color: var(--band-muted); }
.cta-band .btn--ghost { --btn-fg: var(--band-fg); --btn-bd: rgba(255,255,255,.34); }
.cta-band .btn--ghost:hover { --btn-bg: var(--band-fg); --btn-fg: var(--band-bg); --btn-bd: var(--band-fg); }
.cta-band__grid {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(to right,  rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
}
.cta-band__in { position: relative; display: grid; grid-template-columns: 1.4fr auto; gap: var(--s-7); align-items: end; }
@media (max-width: 860px) { .cta-band__in { grid-template-columns: 1fr; align-items: start; } }

/* ---------- 15. FORM ---------- */
.form { display: grid; gap: var(--s-5); }
.field { display: grid; gap: var(--s-2); }
.field label {
  font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-2);
}
.field label .req { color: var(--signal-ink); }
.field input, .field select, .field textarea {
  min-height: 48px; padding: var(--s-3) var(--s-4);
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--rule); border-radius: var(--radius);
  font-size: .95rem; width: 100%;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.6; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--rule-strong); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); outline: none;
}
.field__hint { font-size: .78rem; color: var(--ink-3); }
.field__err {
  font-family: var(--ff-mono); font-size: .72rem; color: var(--signal-ink);
  display: none; align-items: center; gap: 6px;
}
.field.is-err input, .field.is-err select, .field.is-err textarea { border-color: var(--signal); }
.field.is-err .field__err { display: flex; }

.form__summary {
  display: none; padding: var(--s-4) var(--s-5);
  border: 1px solid var(--signal); background: var(--signal-tint);
  border-radius: var(--radius);
}
.form__summary.is-on { display: block; }
.form__summary h3 { font-size: .95rem; color: var(--signal-ink); margin-bottom: var(--s-2); }
.form__summary ul { margin: 0; padding-left: 1.2em; font-size: .88rem; }
.form__summary a { color: var(--signal-ink); }

.form__ok {
  display: none; padding: var(--s-5);
  border: 1px solid var(--ok); background: var(--ok-tint); border-radius: var(--radius);
}
.form__ok.is-on { display: block; }
.form__fail {
  display: none; padding: var(--s-5); border-radius: var(--radius);
  border: 1px solid var(--signal); background: rgba(240,149,31,.08);
}
.form__fail.is-on { display: block; }
.form button[disabled] { opacity: .6; cursor: progress; }
/* Spam trap: invisible to people, filled in by bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 16. FOOTER ---------- */
.foot { border-top: 1px solid var(--rule); background: var(--surface-2); padding-block: var(--s-8) var(--s-6); }
.foot__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--s-7); }
@media (max-width: 960px) { .foot__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot__top { grid-template-columns: 1fr; } }
.foot h4 {
  font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 500;
  margin-bottom: var(--s-4);
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.foot a { color: var(--ink-2); text-decoration: none; font-size: .9rem; transition: color var(--t-fast) var(--ease); }
.foot a:hover { color: var(--signal-ink); }
.foot__bar {
  display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between;
  margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--rule-soft);
  font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .06em; color: var(--ink-3);
}

/* ---------- 17. BREADCRUMB + PAGE HEAD ---------- */
.crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2);
  font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s-5);
}
.crumb a { color: var(--ink-3); text-decoration: none; }
.crumb a:hover { color: var(--signal-ink); }
.crumb span[aria-current] { color: var(--ink-2); }

.phead { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--rule); }
.phead h1 { font-size: clamp(2.1rem, 5vw, 3.9rem); margin-bottom: var(--s-5); }
.phead .lead { margin: 0; }

/* ---------- 18. MOTION — reveal on scroll ----------
   Content is visible by default; JS opts in to hiding it.
   That keeps text readable with JS disabled and for crawlers. */
.js .rv { opacity: 0; transform: translateY(12px); }
.js .rv.is-in {
  opacity: 1; transform: none;
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
}
.js .rv-d1 { transition-delay: 60ms; }
.js .rv-d2 { transition-delay: 120ms; }
.js .rv-d3 { transition-delay: 180ms; }
.js .rv-d4 { transition-delay: 240ms; }
.js .rv-d5 { transition-delay: 300ms; }
/* When GSAP owns the motion (html.gsap), CSS transitions must be off: a leftover
   transition-delay makes the browser report the old (hidden) value for a beat,
   and GSAP would record "invisible" as the end state of the hero entrance. */
.gsap .rv, .gsap .rv-d1, .gsap .rv-d2, .gsap .rv-d3, .gsap .rv-d4, .gsap .rv-d5 { transition: none !important; }

/* Failsafe: if site.js never runs (blocked, 404, parse error) the inline head
   script still flips this on after 3s, so content can never stay invisible. */
.rv-safe .rv { opacity: 1 !important; transform: none !important; }

/* Counter numerals hold their box so they don't reflow while animating */
.stat__n { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .rv.is-in { opacity: 1; transform: none; transition: none; }
  .live__dot, .chain__flow i { animation: none; }
  .chain__flow i { opacity: 0; }
  .btn:hover, a.card:hover, .card--int:hover { transform: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}

/* ---------- 19. UTILITIES ---------- */
.mb-0 { margin-bottom: 0; }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.muted { color: var(--ink-2); }
.center { text-align: center; }
.flow > * + * { margin-top: var(--s-4); }
.stack-6 { display: grid; gap: var(--s-6); }
.row { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }

/* Print — the sheet metaphor pays off here */
@media print {
  /* Sections never scrolled into view must still print. */
  .rv { opacity: 1 !important; transform: none !important; }
  .nav, .drawer, .sheet-grid, .cta-band, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .schematic { border-color: #999; break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}

/* ============================================================
   20. PHOTOGRAPHY
   Real hardware carries the credibility; motion lives in the data
   layer on top. Every photo surface defines its own light-on-dark
   tokens so contrast survives in BOTH themes — a photo does not
   invert when the theme does.
   ============================================================ */
.on-photo {
  --op-fg:    #FFFFFF;
  --op-muted: rgba(255, 255, 255, .78);
  --op-faint: rgba(255, 255, 255, .58);
  --op-rule:  rgba(255, 255, 255, .18);
  --op-glass: rgba(12, 14, 19, .82);
  color: var(--op-fg);
}

.shot { position: relative; overflow: hidden; background: #0D0F13; }
.shot > img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Grading — cools the shadows toward the brand blue so stock photos
   from different photographers read as one set. */
.grade { position: absolute; inset: 0; pointer-events: none; }
.grade--cool { background: linear-gradient(180deg, rgba(20,30,55,.40), rgba(10,12,18,.55)); mix-blend-mode: multiply; }
.grade--lift { background: radial-gradient(ellipse 70% 55% at 42% 40%, rgba(120,150,210,.16), transparent 70%); }
/* Scrims — measured so white text clears 4.5:1 over the photo. */
.grade--left { background: linear-gradient(90deg, rgba(8,10,16,.92) 0%, rgba(8,10,16,.78) 36%, rgba(8,10,16,.34) 66%, rgba(8,10,16,.12) 100%); }
.grade--btm  { background: linear-gradient(0deg, rgba(8,10,16,.92) 0%, rgba(8,10,16,.55) 45%, rgba(8,10,16,.25) 100%); }

/* ---------- Photo hero ---------- */
.hero--photo { padding: 0; }
.hero--photo .shot { position: absolute; inset: 0; }
.hero--photo .hero__body {
  position: relative;
  padding-block: clamp(72px, 11vw, 150px);
}
.hero--photo h1 { color: var(--op-fg); }
.hero--photo h1 .em { color: #A8BBE2; }
.hero--photo .hero__lead { color: var(--op-muted); }
.hero--photo .tag { color: var(--op-faint); }
.hero--photo .btn--ghost { --btn-bg: transparent; --btn-fg: var(--op-fg); --btn-bd: var(--op-rule); }
.hero--photo .btn--ghost:hover { --btn-bg: var(--op-fg); --btn-fg: #0D0F13; --btn-bd: var(--op-fg); }
.hero--photo .stats { border-top-color: var(--op-rule); }
.hero--photo .stat { border-right-color: var(--op-rule); }
.hero--photo .stat__n { color: var(--op-fg); }
.hero--photo .stat__l { color: var(--op-faint); }

/* Schematic becomes a glass panel when it sits on a photo */
.hero--photo .schematic {
  background: var(--op-glass); border-color: var(--op-rule);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
.hero--photo .schematic__head { border-bottom-color: var(--op-rule); }
.hero--photo .schematic__title { color: var(--op-muted); }
.hero--photo .node + .node { border-top-color: rgba(255,255,255,.10); }
.hero--photo .node__name { color: var(--op-fg); }
.hero--photo .node__desc { color: var(--op-faint); }
.hero--photo .node__val  { color: var(--op-muted); }
.hero--photo .node__ico  { background: rgba(92,121,181,.22); border-color: var(--op-rule); color: #A8BBE2; }
.hero--photo .node--alarm .node__ico { background: rgba(232,133,12,.18); border-color: var(--signal-hot); color: var(--signal-hot); }
.hero--photo .node--alarm .node__val { color: var(--signal-hot); }
.hero--photo .chain__flow { background: rgba(255,255,255,.12); }
.hero--photo .live { color: #6FBF95; }

/* ---------- Split: photo beside copy ---------- */
.split {
  display: grid; grid-template-columns: 1.02fr .98fr;
  border: 1px solid var(--rule); background: var(--surface);
}
.split--flip { direction: rtl; }
.split--flip > * { direction: ltr; }
.split .shot { aspect-ratio: 4 / 5; min-height: 100%; }
.split__body { padding: clamp(28px, 3.4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 860px) {
  .split, .split--flip { grid-template-columns: 1fr; direction: ltr; }
  .split .shot { aspect-ratio: 16 / 10; }
}

/* ---------- Wide photo band ---------- */
.band { position: relative; overflow: hidden; border-block: 1px solid var(--rule); }
.band .shot { position: absolute; inset: 0; }
.band__in {
  position: relative; padding-block: clamp(56px, 8vw, 112px);
  max-width: 640px;
}
.band h2 { color: var(--op-fg); }
.band p  { color: var(--op-muted); }
.band .tag { color: var(--op-faint); }
.band .btn--ghost { --btn-bg: transparent; --btn-fg: var(--op-fg); --btn-bd: var(--op-rule); }
.band .btn--ghost:hover { --btn-bg: var(--op-fg); --btn-fg: #0D0F13; --btn-bd: var(--op-fg); }

/* ---------- Glass data card over a photo ---------- */
.dcard {
  position: absolute; left: 18px; right: 18px; bottom: 18px;
  background: var(--op-glass); border: 1px solid var(--op-rule);
  padding: 15px 17px; border-radius: var(--radius);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
.dcard__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; }
.dcard__lbl {
  font-family: var(--ff-mono); font-size: 9.5px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--op-faint);
}
.dcard__val {
  font-family: var(--ff-display); font-size: clamp(26px, 3vw, 34px); font-weight: 600;
  color: var(--op-fg); letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums;
}
.dcard__val i { font-style: normal; font-size: .42em; color: var(--op-faint); margin-left: 5px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-family: var(--ff-mono); font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase; padding: 4px 9px; border: 1px solid #6FBF95; color: #6FBF95;
}
.chip__d { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

.spark { margin-top: 11px; display: block; width: 100%; height: 32px; }
.spark .line {
  fill: none; stroke: #A8BBE2; stroke-width: 1.6;
  stroke-dasharray: 620; stroke-dashoffset: 620;
}
.is-in .spark .line { animation: draw 2.2s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Pinned marker ---------- */
.mark { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; }
.mark b { position: absolute; inset: 0; border-radius: 50%; background: var(--signal-hot); box-shadow: 0 0 0 2px rgba(0,0,0,.45); }
.mark i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--signal-hot); animation: ring 2.6s var(--ease-out) infinite; }
.mark i:nth-of-type(2) { animation-delay: 1.3s; }
.mark em {
  position: absolute; left: 24px; top: -4px; white-space: nowrap; font-style: normal;
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: rgba(12,14,19,.82); padding: 3px 8px;
}
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(4.2); opacity: 0; } }

/* ---------- Telemetry ticker on a band ---------- */
.ticker { position: absolute; right: 0; bottom: 0; display: flex; border-left: 1px solid var(--op-rule); }
.ticker > div {
  padding: 12px 20px; border-right: 1px solid var(--op-rule);
  background: rgba(8,10,16,.55); backdrop-filter: blur(8px);
}
.ticker span { display: block; font-family: var(--ff-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--op-faint); margin-bottom: 3px; }
.ticker b { font-family: var(--ff-display); font-size: 19px; color: var(--op-fg); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .ticker { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .mark i, .chip__d { animation: none; }
  .spark .line { stroke-dashoffset: 0; animation: none; }
}
@media print { .grade, .mark, .dcard, .ticker { display: none !important; } }

/* ---------- 21. FIGURES ---------- */
.fig { position: relative; overflow: hidden; border: 1px solid var(--rule); background: #0D0F13; }
.fig > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fig--wide { aspect-ratio: 21 / 9; }
.fig--card { aspect-ratio: 16 / 9; }
@media (max-width: 700px) { .fig--wide { aspect-ratio: 16 / 9; } }
.fig__cap {
  position: absolute; left: 0; bottom: 0; padding: 8px 14px;
  background: rgba(12, 14, 19, .82); color: #fff;
  font-family: var(--ff-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  backdrop-filter: blur(8px);
}
@media (max-width: 860px) {
  .step > div[style*="grid-template-columns:1fr .8fr"] { grid-template-columns: 1fr !important; }
}

/* Light grade for figures — they carry no overlaid body text, so they only
   need enough cool tint to join the set, not the darkening a scrim applies. */
.grade--tint { background: linear-gradient(180deg, rgba(30,45,80,.16), rgba(12,16,24,.20)); mix-blend-mode: multiply; }

/* ============================================================
   22. MOTION LAYER (GSAP + ScrollTrigger + Lenis)
   Progressive enhancement. If the CDN fails, site.js's
   IntersectionObserver reveals take over and nothing below applies.
   ============================================================ */

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Preloader — only shown by motion.js on a first visit per session */
.ldr {
  position: fixed; inset: 0; z-index: 1000; background: var(--band-bg); color: var(--band-fg);
  display: grid; place-items: center;
}
.ldr__in { width: min(360px, 78vw); text-align: left; }
.ldr__mark {
  font-family: var(--ff-display); font-weight: 700; font-size: 2.2rem; letter-spacing: -.04em;
  color: #A8BBE2; opacity: 0; transform: translateY(14px);
}
.ldr__row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 22px; font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
}
.ldr__n { color: #fff; font-size: .8rem; font-variant-numeric: tabular-nums; }
.ldr__bar { height: 1px; background: rgba(255,255,255,.14); margin-top: 10px; overflow: hidden; }
.ldr__fill { height: 100%; width: 0; background: var(--signal-hot); }

/* Masked line reveal for the hero headline */
.ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.ln__in { display: block; }

/* Hero photo gets slack so it can parallax without exposing edges */
.hero--photo .shot > img { height: 120%; top: -10%; position: absolute; will-change: transform; }
.band .shot > img        { height: 114%; top: -7%;  position: absolute; will-change: transform; }

/* Scroll-driven progress rail on numbered step lists */
.steps { position: relative; }
.steps__rail { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--rule-soft); }
.steps__rail i {
  display: block; width: 100%; height: 100%; background: var(--blue);
  transform-origin: top; transform: scaleY(0);
}
.steps .step__n { padding-left: 16px; transition: color var(--t-base) var(--ease); }
.steps .step.on .step__n { color: var(--signal-ink); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .steps__rail i { transform: none; }
  .ldr { display: none !important; }
}

/* Author styles outrank the UA's [hidden] rule, so say it explicitly —
   otherwise the loader paints before motion.js decides whether to run it. */
.ldr[hidden] { display: none !important; }

/* Hero lines: hidden only while GSAP is going to animate them. */
.js .ln__in { opacity: 0; }
.js:not(.gsap) .ln__in { opacity: 1; }
.rv-safe .ln__in { opacity: 1 !important; transform: none !important; }

/* ============================================================
   23. COLOUR & LIGHT — dark-ground enrichment
   ============================================================ */

/* Ambient glows behind sections: blue top-left, amber bottom-right. */
.sec--glow { position: relative; isolation: isolate; overflow: hidden; overflow: clip; }
.sec--glow::before, .sec--glow::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  border-radius: 50%; filter: blur(80px);
}
.sec--glow::before { width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; left: -18vw; top: -10%; background: var(--blue-glow); opacity: .75; }
.sec--glow::after  { width: 42vw; height: 42vw; max-width: 520px; max-height: 520px; right: -12vw; bottom: -10%; background: var(--signal-glow); opacity: .6; }
@media (prefers-reduced-motion: no-preference) {
  .sec--glow::before { animation: drift 18s ease-in-out infinite alternate; }
  .sec--glow::after  { animation: drift 22s ease-in-out infinite alternate-reverse; }
}
@keyframes drift { to { transform: translate(6%, 8%); } }

/* Live data reads in cyan — the SCADA-screen colour */
.node__val, .dcard__val, .ticker b, .specs--kv b { color: var(--cyan); }
.spark .line { stroke: var(--cyan); }
.chain__flow i { background: linear-gradient(180deg, transparent, var(--cyan), transparent); }
.stat__n { color: var(--ink); }
.stat__n sup { color: var(--signal-ink); }

/* Cards get a glow on hover instead of a grey shadow */
a.card:hover, .card--int:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue-glow), 0 24px 60px -24px var(--blue-glow);
}
.card__ico { background: linear-gradient(135deg, var(--blue-tint), var(--cyan-tint)); color: var(--blue-deep); }
a.card:hover .card__ico { background: var(--blue); color: #fff; }

/* Section-head rule picks up the brand */
.sec-head__rule { border-bottom-color: var(--rule); }
.ticks i:nth-child(5n+1) { background: var(--blue); }

/* ---------- Photo card: image-led capability / sector card ---------- */
.pcard {
  position: relative; overflow: hidden; display: flex; align-items: flex-end;
  aspect-ratio: 4 / 5; border: 1px solid var(--rule); border-radius: var(--radius);
  background: #0D0F13; color: #fff; text-decoration: none;
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.pcard > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease-out), filter var(--t-slow) var(--ease);
  filter: saturate(.85);
}
.pcard__grade {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8,10,16,.96) 0%, rgba(8,10,16,.62) 42%, rgba(8,10,16,.18) 72%, rgba(8,10,16,.05) 100%);
}
.pcard__in { position: relative; padding: var(--s-5); width: 100%; }
.pcard__idx {
  position: absolute; top: var(--s-4); right: var(--s-5);
  font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .12em; color: rgba(255,255,255,.7);
}
.pcard__ico {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius);
  background: rgba(8,10,16,.55); color: #fff; margin-bottom: var(--s-4);
  backdrop-filter: blur(8px);
  transition: background var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.pcard h3 { color: #fff; margin-bottom: var(--s-2); }
.pcard p { color: rgba(255,255,255,.78); font-size: .9rem; margin: 0 0 var(--s-4); max-width: 34ch; }
.pcard .tlink { color: #fff; }
.pcard:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: 0 30px 70px -30px var(--blue-glow); }
.pcard:hover > img { transform: scale(1.06); filter: saturate(1); }
.pcard:hover .pcard__ico { background: var(--signal); border-color: var(--signal); color: var(--signal-fg); }

/* ---------- Photo tile: compact image + label ---------- */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-4); }
@media (max-width: 1080px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px)  { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--rule);
  border-radius: var(--radius); display: flex; align-items: flex-end; text-decoration: none; color: #fff;
  background: #0D0F13; transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); filter: saturate(.85); }
.tile__grade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,10,16,.92) 0%, rgba(8,10,16,.35) 55%, rgba(8,10,16,.05) 100%); }
.tile__in { position: relative; padding: var(--s-4); }
.tile__in b { display: block; font-family: var(--ff-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.015em; line-height: 1.15; }
.tile__in span { display: block; font-family: var(--ff-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.62); margin-top: 6px; }
.tile:hover { border-color: var(--blue); transform: translateY(-3px); }
.tile:hover > img { transform: scale(1.07); filter: saturate(1); }

/* ---------- Case rows get a thumbnail ---------- */
.case { grid-template-columns: auto 168px 1fr auto; }
.case__thumb { width: 168px; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--rule); border-radius: var(--radius); position: relative; }
.case__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.case:hover .case__thumb img { transform: scale(1.06); }
@media (max-width: 860px) {
  .case { grid-template-columns: 1fr; }
  .case__thumb { width: 100%; }
}

/* Proof strip chips pick up colour on hover */
.cert { transition: border-color var(--t-base) var(--ease), color var(--t-base) var(--ease); }
.cert:hover { border-color: var(--blue); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .pcard:hover > img, .tile:hover > img, .case:hover .case__thumb img { transform: none; }
  .sec--glow::before, .sec--glow::after { animation: none; }
}

/* Actuator shot: keep the unit centred, push the desk/window edges out of frame */
img[src*="automation-actuator"] { object-position: 50% 44%; }

/* ============================================================
   24. EDITORIAL LAYOUT — breaks the card-grid rhythm.
   Fewer containers, asymmetric placement, scale contrast, bleed.
   ============================================================ */

/* Section rhythm variation */
.sec--xl { padding-block: clamp(96px, 14vw, 200px); }
.sec--flush-top { padding-top: 0; }

/* Editorial heading: no tag, no rule, just scale */
.eh { font-size: clamp(2.2rem, 5.2vw, 4.6rem); letter-spacing: -.035em; line-height: .98; max-width: 14ch; }
.eh--wide { max-width: 22ch; }
.eh .dim { color: var(--ink-3); }
.eh .amber { color: var(--signal-ink); }
.eh .blue { color: var(--blue-deep); }

/* Kicker: a tiny mono line, used sparingly */
.kick { font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Marquee (certifications) ---------- */
.marq { overflow: hidden; border-block: 1px solid var(--rule-soft); padding-block: 18px; position: relative; }
.marq::before, .marq::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none;
}
.marq::before { left: 0; background: linear-gradient(90deg, var(--paper), transparent); }
.marq::after  { right: 0; background: linear-gradient(270deg, var(--paper), transparent); }
.marq__track { display: flex; width: max-content; animation: marq 46s linear infinite; }
.marq:hover .marq__track, .marq:focus-within .marq__track { animation-play-state: paused; }
.marq__item {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
  font-family: var(--ff-display); font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 600;
  letter-spacing: -.01em; color: var(--ink-2); white-space: nowrap;
}
.marq__item::after { content: ""; width: 6px; height: 6px; background: var(--signal); transform: rotate(45deg); }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marq__track { animation: none; } }

/* ---------- Manifest: capabilities as editorial rows ---------- */
.manifest { border-top: 1px solid var(--rule); }
.man {
  display: grid; grid-template-columns: 72px 1fr 340px; gap: var(--s-6); align-items: center;
  padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--rule);
  text-decoration: none; color: inherit; position: relative;
}
.man__n { font-family: var(--ff-mono); font-size: .8rem; color: var(--ink-3); letter-spacing: .1em; padding-top: 6px; align-self: start; }
.man__t {
  font-family: var(--ff-display); font-weight: 600; font-size: clamp(1.7rem, 3.6vw, 3.2rem);
  letter-spacing: -.03em; line-height: 1.02; color: var(--ink); margin: 0 0 12px;
  transition: color var(--t-base) var(--ease), transform var(--t-slow) var(--ease-out);
}
.man__d { color: var(--ink-2); max-width: 46ch; margin: 0; font-size: .98rem; }
.man__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); transition: color var(--t-base) var(--ease); }
.man__img {
  aspect-ratio: 4 / 3; overflow: hidden; background: #0D0F13; position: relative;
  transform: rotate(-1.2deg); transition: transform var(--t-slow) var(--ease-out);
}
.man:nth-child(even) .man__img { transform: rotate(1.1deg); }
.man__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); transition: transform 1.1s var(--ease-out), filter var(--t-slow); }
.man:hover .man__t { color: var(--blue-deep); transform: translateX(8px); }
.man:hover .man__go { color: var(--signal-ink); }
.man:hover .man__img { transform: rotate(0deg) scale(1.02); }
.man:hover .man__img img { transform: scale(1.06); filter: saturate(1); }
@media (max-width: 900px) {
  .man { grid-template-columns: 48px 1fr; }
  .man__img { grid-column: 2; transform: none; aspect-ratio: 16 / 9; max-width: 520px; }
}

/* ---------- Statement: giant type, no container ---------- */
.statement { padding-block: clamp(80px, 12vw, 160px); position: relative; }
.statement__t {
  font-family: var(--ff-display); font-weight: 600; font-size: clamp(2.4rem, 6.8vw, 6.2rem);
  letter-spacing: -.04em; line-height: .96; max-width: 16ch; margin: 0;
}
.statement__t em { font-style: normal; color: var(--signal-ink); }
.statement__aside {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-7) var(--s-8);
  margin-top: clamp(48px, 7vw, 96px); padding-top: var(--s-6); border-top: 1px solid var(--rule);
}
.statement__aside > div { display: grid; grid-template-columns: 56px 1fr; gap: var(--s-4); }
.statement__aside .big { font-family: var(--ff-display); font-size: 2.4rem; font-weight: 600; letter-spacing: -.04em; color: var(--ink-3); line-height: 1; }
.statement__aside h3 { margin-bottom: 8px; }
.statement__aside p { color: var(--ink-2); font-size: .95rem; margin: 0; }
@media (max-width: 760px) { .statement__aside { grid-template-columns: 1fr; } }

/* ---------- Bleed split: image touches the viewport edge ---------- */
.bleed {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--maxw)) minmax(0, 1fr);
  align-items: center; overflow: hidden; overflow: clip;
}
.bleed__img { grid-column: 1 / 3; aspect-ratio: 16 / 10; overflow: hidden; background: #0D0F13; min-height: 100%; min-width: 0; }
.bleed__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.bleed__body { grid-column: 3; padding: var(--s-8) var(--gutter) var(--s-8) clamp(32px, 5vw, 80px); max-width: 560px; }
.bleed--r .bleed__img { grid-column: 2 / 4; grid-row: 1; }
.bleed--r .bleed__body { grid-column: 1 / 2; grid-row: 1; justify-self: end; padding: var(--s-8) clamp(32px, 5vw, 80px) var(--s-8) var(--gutter); }
@media (max-width: 1080px) {
  .bleed, .bleed--r { grid-template-columns: 1fr; }
  .bleed__img, .bleed--r .bleed__img { grid-column: 1; grid-row: auto; aspect-ratio: 16 / 9; }
  .bleed__body, .bleed--r .bleed__body { grid-column: 1; grid-row: auto; max-width: none; padding: var(--s-7) var(--gutter); justify-self: start; }
}

/* ---------- Feature project: large + two small ---------- */
.feat { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 64px); align-items: end; text-decoration: none; color: inherit; }
.feat__img { aspect-ratio: 16 / 10; overflow: hidden; background: #0D0F13; }
.feat__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform 1.2s var(--ease-out), filter var(--t-slow); }
.feat:hover .feat__img img { transform: scale(1.05); filter: saturate(1); }
.feat__res { font-family: var(--ff-display); font-size: clamp(3.4rem, 8vw, 7rem); font-weight: 600; letter-spacing: -.05em; line-height: .9; color: var(--ink); }
.feat__res small { display: block; font-family: var(--ff-mono); font-size: .68rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 12px; }
.feat h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin: var(--s-6) 0 var(--s-3); transition: color var(--t-base); }
.feat:hover h3 { color: var(--blue-deep); }
.feat p { color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .feat { grid-template-columns: 1fr; } }
.case--plain { grid-template-columns: auto 1fr auto; border-bottom: 1px solid var(--rule-soft); }
.case--plain:hover { background: transparent; padding-inline: 0; }
.case--plain:hover h3 { color: var(--blue-deep); }

/* ---------- Strip: five sector tiles, centred, staggered heights ----------
   Desktop: all five fit inside the content width and bottom-align, so the
   tops form a skyline. Narrow screens: becomes a snap scroller. */
.strip-wrap { overflow: hidden; overflow: clip; }
.strip {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-4); align-items: end;
  max-width: var(--maxw); margin-inline: auto; padding: 0 var(--gutter) var(--s-4);
}
.strip .tile { border: 0; width: auto; aspect-ratio: 4 / 5; }
.strip .tile:nth-child(2), .strip .tile:nth-child(4) { aspect-ratio: 4 / 5.8; }
.strip .tile:nth-child(3) { aspect-ratio: 4 / 6.4; }
.strip__hint { display: flex; align-items: center; gap: 10px; font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s-5); }
.strip__hint i { display: block; width: 40px; height: 1px; background: var(--rule-strong); }
@media (max-width: 1080px) {
  .strip {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    max-width: none; padding-inline: var(--gutter);
  }
  .strip::-webkit-scrollbar { display: none; }
  .strip .tile { flex: 0 0 auto; width: clamp(220px, 44vw, 320px); scroll-snap-align: start; }
  .strip .tile:nth-child(n) { aspect-ratio: 4 / 5; }
  .strip::after { content: ""; flex: 0 0 var(--gutter); }
}

/* ---------- Typographic CTA: no slab ---------- */
.cta-type { padding-block: clamp(96px, 14vw, 200px); border-top: 1px solid var(--rule); }
.cta-type a.big {
  display: block; text-decoration: none; color: var(--ink);
  font-family: var(--ff-display); font-weight: 600; font-size: clamp(2.8rem, 9vw, 8.4rem);
  letter-spacing: -.05em; line-height: .92; max-width: 12ch;
  transition: color var(--t-base) var(--ease);
}
.cta-type a.big:hover { color: var(--signal-ink); }
.cta-type a.big .arw { display: inline-block; width: .8em; height: .8em; vertical-align: -.05em; margin-left: .15em; transition: transform var(--t-slow) var(--ease-out); }
.cta-type a.big:hover .arw { transform: translate(.18em, -.18em); }
.cta-type__meta { display: flex; flex-wrap: wrap; gap: var(--s-6) var(--s-8); margin-top: clamp(32px, 5vw, 64px); padding-top: var(--s-5); border-top: 1px solid var(--rule-soft); }
.cta-type__meta a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.cta-type__meta a:hover { color: var(--signal-ink); }
.cta-type__meta span { display: block; font-family: var(--ff-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }

/* Home-only: kill the schematic's boxed feel a touch */
.hero--photo .schematic { border-color: rgba(255,255,255,.10); }

/* ---------- 25. Centred balance for the editorial home ---------- */
.center-block { text-align: center; }
.center-block .eh, .center-block .statement__t, .center-block .kick { margin-left: auto; margin-right: auto; }
.center-block .eh { max-width: 20ch; }
.center-block .statement__t { max-width: 15ch; }
.center-block .kick { display: block; }

/* Manifest: contained width, images alternate sides so weight balances */
.manifest { max-width: 1120px; margin-inline: auto; }
.man { grid-template-columns: 72px 1fr 340px; }
.man:nth-child(even) { grid-template-columns: 340px 1fr 72px; }
.man:nth-child(even) .man__img { grid-column: 1; grid-row: 1; }
.man:nth-child(even) > div:not(.man__img) { grid-column: 2; grid-row: 1; }
.man:nth-child(even) .man__n { grid-column: 3; grid-row: 1; text-align: right; }
@media (max-width: 900px) {
  .man, .man:nth-child(even) { grid-template-columns: 48px 1fr; }
  .man:nth-child(even) .man__n { grid-column: 1; grid-row: 1; text-align: left; }
  .man:nth-child(even) > div:not(.man__img) { grid-column: 2; grid-row: 1; }
  .man:nth-child(even) .man__img { grid-column: 2; grid-row: 2; }
}

/* Statement aside: centred, contained */
.statement__aside { max-width: 980px; margin-inline: auto; text-align: left; }

/* Feature project: centred container */
.feat { max-width: 1120px; margin-inline: auto; }
.case-list { max-width: 1120px; margin-inline: auto; }

/* Typographic CTA: centred */
.cta-type.center-block a.big { margin-inline: auto; max-width: 14ch; }
.cta-type.center-block .cta-type__meta { justify-content: center; text-align: center; }
.cta-type.center-block .arw { display: inline-block; }

/* Strip hint centred */
.strip__hint.center-block { justify-content: center; }


/* ============================================================
   26. RETHEME — bold corporate register
   Plus Jakarta Sans headings, no monospace, rounded filled cards
   with soft elevation, vivid blue accent, pill buttons, filled icon
   discs, centred section headings with coloured eyebrows.
   ============================================================ */

/* Type */
h1, h2, h3, h4, .eh, .statement__t, .man__t, .feat__res, .stat__n, .nav__mark,
.dcard__val, .ticker b, .case__res, .tile__in b, .ldr__mark, .marq__item, .cta-type a.big {
  font-family: var(--ff-display); font-weight: 700; letter-spacing: -.025em;
}
h1 { font-weight: 800; letter-spacing: -.035em; }
.eh, .statement__t, .cta-type a.big { font-weight: 800; }
body { font-size: 17px; line-height: 1.65; }
p { color: var(--ink-2); }

/* Eyebrows: bold, coloured, small caps — replaces every mono label */
.tag, .kick, .idx, .card__idx, .man__n, .step__n, .case__idx, .crumb, .schematic__title,
.node__desc, .stat__l, .dcard__lbl, .ticker span, .tile__in span, .foot h4, .field label,
.strip__hint, .cta-type__meta span, .case__meta, .man__go, .feat__res small, .case__res small,
.live, .chip, .mark em, .fig__cap, .ldr__row, .cert, .btn, .tlink, .nav__word, .foot__bar,
.field__hint, .field__err, .specs--kv b, .specs--kv span, .tbl th, .node__val, .sec-head__rule .idx {
  font-family: var(--ff-body); font-weight: 600; letter-spacing: .08em;
}
.tag, .kick, .strip__hint, .foot h4, .field label, .tbl th, .cta-type__meta span,
.dcard__lbl, .ticker span, .stat__l, .feat__res small, .case__res small, .tile__in span {
  color: var(--blue-deep); font-size: .72rem; letter-spacing: .14em;
}
.tag::before { display: none; }
.sec-head__rule .ticks { display: none; }
.node__val, .specs--kv b, .dcard__val, .ticker b { font-variant-numeric: tabular-nums; }

/* Buttons: pill, filled, confident */
.btn { border-radius: 999px; padding: 0 30px; min-height: 52px; font-size: .84rem; letter-spacing: .04em; text-transform: none; font-weight: 700; }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: .8rem; }
.btn--signal { --btn-bg: var(--signal); --btn-fg: var(--signal-fg); --btn-bd: var(--signal); box-shadow: 0 10px 30px -12px var(--signal-glow); }
.btn--signal:hover { --btn-bg: #FFA63A; --btn-bd: #FFA63A; }
.btn--ghost { --btn-bd: rgba(255,255,255,.22); --btn-fg: var(--ink); }
.btn--ghost:hover { --btn-bg: rgba(255,255,255,.08); --btn-fg: var(--ink); --btn-bd: rgba(255,255,255,.4); }
.tlink { text-transform: none; letter-spacing: 0; font-size: .92rem; font-weight: 700; color: var(--blue-deep); background-image: none; }
.tlink:hover { color: #fff; }

/* Cards: filled, rounded, soft elevation, no hard border */
.card, .card--int, a.card {
  background: var(--surface); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius);
  padding: var(--s-6); box-shadow: 0 18px 50px -30px rgba(0,0,0,.7);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
a.card:hover, .card--int:hover { transform: translateY(-5px); border-color: rgba(61,123,255,.5); box-shadow: 0 30px 70px -30px var(--blue-glow); }
.card__foot { border-top: 1px solid var(--rule-soft); }

/* Icon discs */
.card__ico, .node__ico, .pcard__ico {
  width: 52px; height: 52px; border-radius: 14px; border: 0;
  background: linear-gradient(135deg, var(--blue), #6A9BFF); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 24px -10px var(--blue-glow);
}
.card__ico svg, .node__ico svg { width: 24px; height: 24px; }
a.card:hover .card__ico { background: linear-gradient(135deg, var(--signal), #FFB24A); color: var(--signal-fg); }
.node__ico { width: 40px; height: 40px; border-radius: 11px; }
.node--alarm .node__ico { background: linear-gradient(135deg, var(--signal), #FFB24A); color: var(--signal-fg); border: 0; }
.pcard__ico { background: rgba(255,255,255,.14); backdrop-filter: blur(8px); }

/* Lists: check-style bullets */
.specs li { border-bottom: 0; padding: 8px 0; gap: 12px; font-size: .95rem; }
.specs li::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none; margin-top: .15em;
  background: var(--blue-tint) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238FB3FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7'/></svg>") center / 12px no-repeat;
}
.specs--kv li { border-bottom: 1px solid var(--rule-soft); padding: 11px 0; }
.specs--kv li::before { display: none; }

/* Section heads: centred, eyebrow + big heading */
.sec-head { text-align: center; }
.sec-head__rule { border: 0; padding: 0; margin-bottom: var(--s-3); justify-content: center; }
.sec-head h2 { margin-inline: auto; max-width: 22ch; }
.sec-head .lead { margin-inline: auto; }

/* Photo cards + tiles + figures: rounded */
.pcard, .tile, .fig, .man__img, .feat__img, .bleed__img, .split .shot, .case__thumb, .schematic, .dcard, .shot { border-radius: var(--radius); }
.hero--photo .shot, .band .shot { border-radius: 0; }
.pcard { border: 0; box-shadow: 0 24px 60px -30px rgba(0,0,0,.8); }
.pcard:hover { box-shadow: 0 34px 80px -30px var(--blue-glow); }
.man__img { transform: none; box-shadow: 0 20px 50px -28px rgba(0,0,0,.8); }
.man:nth-child(even) .man__img { transform: none; }
.man:hover .man__img { transform: translateY(-4px); }
.man__t { font-weight: 800; }
.tile { border: 0; }

/* Glass panels: softer, rounder */
.schematic, .dcard { background: rgba(13,19,34,.78); border-color: rgba(255,255,255,.12); }
.hero--photo .schematic { border-radius: 20px; }

/* Stats: accent numerals */
.stat__n { color: #fff; font-size: clamp(2.2rem, 4vw, 3.4rem); }
.stat__n sup { color: var(--signal-ink); }
.feat__res { color: var(--blue-deep); }

/* Step numbers → filled discs */
.step__n {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-tint); color: var(--blue-deep); font-size: .78rem; padding: 0; letter-spacing: .04em;
}
.steps .step__n { padding-left: 0; }
.steps__rail { left: 19px; }
.steps .step.on .step__n { background: var(--signal); color: var(--signal-fg); }
.statement__aside .big { color: var(--blue-deep); font-weight: 800; }

/* Marquee: bolder, coloured diamonds */
.marq__item { font-weight: 800; color: var(--ink); }
.marq__item::after { background: var(--blue); }

/* Nav */
.nav__links a { font-weight: 600; font-size: .9rem; }
.nav__links a em { display: none; }
.nav__links a::after { background: var(--blue); height: 2px; border-radius: 2px; }
.nav__word { display: none; }
.nav__mark { font-size: 1.6rem; font-weight: 800; color: #fff; }
.drawer a em { display: none; }

/* CTA band: gradient card, rounded, inside the wrap */
.cta-band { background: transparent; border: 0; padding-block: var(--s-8) clamp(64px, 9vw, 120px); }
.cta-band .cta-band__in {
  background: linear-gradient(135deg, #1D3F8F 0%, #2F62D9 60%, #3D7BFF 100%);
  border-radius: 24px; padding: clamp(40px, 6vw, 80px); box-shadow: 0 40px 100px -40px var(--blue-glow);
}
.cta-band__grid { display: none; }
.cta-band .btn--signal { box-shadow: 0 14px 34px -12px rgba(0,0,0,.5); }

/* Typographic CTA: give it a little accent */
.cta-type a.big:hover { color: var(--blue-deep); }

/* Forms: filled rounded fields */
.field input, .field select, .field textarea {
  background: var(--surface); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding-inline: var(--s-4);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint); }
.form__ok, .form__summary { border-radius: 12px; }

/* Tables: rounded container */
.tbl-wrap { border-radius: var(--radius); border-color: rgba(255,255,255,.06); }
.tbl th { background: var(--surface-2); }

/* Chips / marks */
.chip { border-radius: 999px; padding: 5px 11px; }
.cert { border-radius: 999px; }

/* Kill the drawing-sheet grid: it reads technical, not corporate */
.sheet-grid { display: none; }

/* ---------- 27. Brand lockup: TPS + Trizac Process Solutions, logo colours ---------- */
.nav__word { display: flex; }
.nav__mark { color: #5C79B5; font-weight: 800; letter-spacing: -.04em; font-size: 1.7rem; }
.nav__word {
  font-family: var(--ff-body); font-weight: 700; font-size: .6rem; letter-spacing: .16em;
  text-transform: uppercase; line-height: 1.15; color: #A99790;          /* logo taupe, lifted for dark */
  border-left: 1px solid rgba(255,255,255,.18); padding-left: var(--s-3);
}
.nav__word b { color: #E6E1DE; font-weight: 800; }                        /* logo charcoal, lifted for dark */

/* ---------- 28. Video hero ---------- */
/* 1:1 — no upscaling slack. The parallax rides the poster <img>, not the video,
   so the video stays at native size and stays sharp. */
video.js-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s var(--ease); pointer-events: none;
}
video.js-video.is-playing { opacity: 1; }
.bleed__img, .split .shot { position: relative; }

/* ============================================================
   SITE 2 — components built around the real TPS scope
   ============================================================ */

/* WhatsApp floating button */
.wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 14px 34px -10px rgba(37,211,102,.6);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.wa:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 18px 40px -10px rgba(37,211,102,.75); }
@media print { .wa { display: none; } }

/* Footer contact list */
.foot__contact { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: 10px; }
.foot__contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.foot__contact svg { flex: none; margin-top: 3px; color: var(--blue-deep); }
.foot__contact a { color: var(--ink-2); }

/* ---------- Flow: Measure → Control → Protect / Ship → Tank → Truck ---------- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); position: relative; margin-top: clamp(40px, 6vw, 72px); }
.flow__line {
  position: absolute; left: 8%; right: 8%; top: 118px; height: 2px; z-index: 0;
  background: linear-gradient(90deg, transparent, var(--blue) 12%, var(--blue) 88%, transparent);
  opacity: .5; overflow: hidden;
}
.flow__line i {
  position: absolute; top: -1px; left: -20%; width: 20%; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: flowpulse 3.2s linear infinite;
}
@keyframes flowpulse { to { left: 100%; } }
.stage { position: relative; z-index: 1; background: var(--surface); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px -30px rgba(0,0,0,.8); }
.stage__img { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.stage__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.stage:hover .stage__img img { transform: scale(1.05); }
.stage__n {
  position: absolute; left: 16px; top: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(11,18,32,.82); backdrop-filter: blur(8px); color: #fff;
  padding: 6px 12px 6px 8px; border-radius: 999px; font-weight: 700; font-size: .8rem;
}
.stage__n span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); font-size: .72rem; }
.stage__body { padding: var(--s-6); }
.stage__body h3 { margin-bottom: 8px; }
.stage__body p { font-size: .95rem; margin-bottom: var(--s-4); }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow__line { left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, transparent, var(--blue) 8%, var(--blue) 92%, transparent); }
  .flow__line i { display: none; }
}
@media (prefers-reduced-motion: reduce) { .flow__line i { animation: none; display: none; } }
.stage--ico .stage__body { padding-top: var(--s-7); }
.stage__disc {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-bottom: var(--s-5);
  color: #fff; background: linear-gradient(140deg, var(--blue), #2A5FD6);
  box-shadow: 0 0 0 6px var(--surface), 0 0 0 7px rgba(61,123,255,.35), 0 12px 30px -10px rgba(61,123,255,.7);
}
.stage__disc--alarm { background: linear-gradient(140deg, var(--signal), #C8700C); color: var(--signal-fg);
  box-shadow: 0 0 0 6px var(--surface), 0 0 0 7px rgba(240,149,31,.4), 0 12px 30px -10px rgba(240,149,31,.6); }
.stage--ico .kick { display: block; margin-bottom: 6px; }
@media (max-width: 900px) { .stage--ico ~ .flow__line, .flow:has(.stage--ico) .flow__line { display: none; } }


/* ---------- Brand logo wall ---------- */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 1080px) { .logos { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 620px)  { .logos { grid-template-columns: repeat(2, 1fr); } }
.logo {
  background: #fff; border-radius: 14px; height: 92px; display: grid; place-items: center;
  padding: 18px 22px; transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  text-decoration: none;
}
.logo:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -18px rgba(0,0,0,.7); }
.logo img { max-height: 40px; max-width: 100%; width: auto; height: auto; }
/* Square-ish marks need more height to read at the same visual weight as wordmarks */
.logo img[src$="gpe.png"], .logo img[src$="psg.svg"], .logo img[src$="vimec.svg"] { max-height: 56px; }
.logo b {
  font-family: var(--ff-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em;
  color: #16213A; text-align: center; line-height: 1.1;
}
.logo b small { display: block; font-family: var(--ff-body); font-weight: 600; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: #5C6B85; margin-top: 4px; }
.logos--marq { display: flex; width: max-content; gap: 12px; animation: marq 48s linear infinite; }
.logos--marq .logo { width: 190px; flex: none; }
.logo-strip { overflow: hidden; position: relative; padding-block: 6px; }
.logo-strip::before, .logo-strip::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none; }
.logo-strip::before { left: 0; background: linear-gradient(90deg, var(--paper), transparent); }
.logo-strip::after { right: 0; background: linear-gradient(270deg, var(--paper), transparent); }
.logo-strip:hover .logos--marq { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .logos--marq { animation: none; flex-wrap: wrap; width: auto; } }

/* Brand chips inline on service pages */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-4); }
.chips span, .chips a {
  padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: var(--blue-tint); color: var(--blue-deep); text-decoration: none; border: 1px solid rgba(143,179,255,.18);
}

/* ---------- 8-step timeline ---------- */
.tl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: tl; }
@media (max-width: 980px) { .tl { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tl { grid-template-columns: 1fr; } }
.tl__item {
  position: relative; background: var(--surface); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius); padding: var(--s-5) var(--s-5) var(--s-6);
}
.tl__item::before {
  counter-increment: tl; content: counter(tl, decimal-leading-zero);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: var(--s-4);
  background: linear-gradient(135deg, var(--blue), #6A9BFF); color: #fff; font-weight: 800; font-family: var(--ff-display);
  box-shadow: 0 10px 24px -10px var(--blue-glow);
}
.tl__item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.tl__item p { font-size: .9rem; margin: 0; }
.tl__item:last-child::before { background: linear-gradient(135deg, var(--signal), #FFB24A); color: var(--signal-fg); }

/* ---------- Product / model grids ---------- */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 980px) { .models { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .models { grid-template-columns: 1fr; } }
.model { background: var(--surface); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); padding: var(--s-5); }
.model__code { display: inline-block; font-family: var(--ff-display); font-weight: 800; font-size: 1.05rem; color: #fff; background: var(--blue); padding: 3px 10px; border-radius: 8px; margin-bottom: 10px; }
.model h4 { font-size: 1rem; margin-bottom: 6px; }
.model p { font-size: .88rem; margin: 0; }

.group-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: clamp(40px, 6vw, 64px) 0 var(--s-5); border-bottom: 1px solid var(--rule); padding-bottom: var(--s-3); }
.group-h h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
.group-h span { color: var(--ink-3); font-size: .85rem; font-weight: 600; }

/* Two-column list blocks */
.cols2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .cols2 { grid-template-columns: minmax(0, 1fr); } }

/* Map */
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.08); aspect-ratio: 16 / 10; background: var(--surface); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3) invert(.92) hue-rotate(180deg); }

/* Hero quick facts */
.hero__chain .node__val { color: var(--cyan); }

/* Six-tile industries strip: tallest in the middle */
@media (min-width: 1081px) {
  .strip--6 { grid-template-columns: repeat(6, 1fr); }
  .strip--6 .tile:nth-child(n) { aspect-ratio: 4 / 5; }
  .strip--6 .tile:nth-child(2), .strip--6 .tile:nth-child(5) { aspect-ratio: 4 / 5.8; }
  .strip--6 .tile:nth-child(3), .strip--6 .tile:nth-child(4) { aspect-ratio: 4 / 6.4; }
}
@media (max-width: 860px) {
  .step > div[style*="grid-template-columns:1fr .8fr"] { grid-template-columns: 1fr !important; }
}

/* ---------- Project slots (empty until the owner sends details) ---------- */
.pslots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 900px) { .pslots { grid-template-columns: 1fr; } }
.pslot {
  display: flex; flex-direction: column; overflow: hidden; color: inherit; text-decoration: none;
  border: 1px dashed rgba(143,179,255,.35); border-radius: var(--radius); background: rgba(19,28,48,.55);
  transition: border-color .3s var(--ease-out), transform .3s var(--ease-out);
}
.pslot:hover { border-color: var(--blue); transform: translateY(-3px); }
.pslot--filled { border-style: solid; border-color: rgba(255,255,255,.08); background: var(--surface); }
.pslot__img, .slot-photo {
  display: grid; place-items: center; align-content: center; gap: 10px; color: var(--ink-3);
  font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.028) 0 12px, transparent 12px 24px);
}
.pslot__img { aspect-ratio: 16 / 10; border-bottom: 1px dashed rgba(143,179,255,.25); }
.pslot__img--photo { display: block; border: 0; }
.pslot__img--photo img { width: 100%; height: 100%; object-fit: cover; }
.slot-photo { aspect-ratio: 21 / 8; border: 1px dashed rgba(143,179,255,.35); border-radius: var(--radius); }
.pslot__body { flex: 1; display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6); }
.pslot__body p { font-size: .92rem; margin: 0; color: var(--ink-2); }
.pslot__n { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-deep); }
.pslot h3 { margin: 0; }
.pslot__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: var(--s-2); }
.pslot__meta span { font-size: .74rem; padding: 4px 10px; border-radius: 99px; border: 1px dashed rgba(255,255,255,.18); color: var(--ink-3); }
.soon { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--signal); }
.slot-text { color: var(--ink-3); font-style: italic; }

/* ---------- Spectrum product cards ---------- */
.sprods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 980px) { .sprods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .sprods { grid-template-columns: 1fr; } }
.sprod {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 20px 50px -30px rgba(0,0,0,.8); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.sprod:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); }
.sprod__img {
  position: relative; height: 260px; display: grid; place-items: center; align-content: center; gap: 10px; padding: 22px;
  background: radial-gradient(120% 90% at 50% 40%, #fff 55%, #EEF2F8 100%);
}
.sprod__img img { max-height: 216px; max-width: 100%; width: auto; height: auto; object-fit: contain; transition: transform .6s var(--ease-out); }
.sprod:hover .sprod__img img { transform: scale(1.04); }
.sprod__code {
  position: absolute; top: 14px; left: 14px; font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  color: #2A5FD6; background: rgba(61,123,255,.1); border-radius: 99px; padding: 4px 10px;
}
.sprod__ico { color: #2A5FD6; }
.sprod__soon { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #5C6B85; }
.sprod__body { flex: 1; display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-6); }
.sprod__body h3 { margin: 0; }
.sprod__body p { font-size: .95rem; margin: 0 0 var(--s-3); }

/* ---------- Home: Spectrum product shelf ---------- */
.shelf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shelf__item { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink-2); }
.shelf__img {
  height: 170px; border-radius: 14px; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(120% 90% at 50% 40%, #fff 55%, #EEF2F8 100%); transition: transform .35s var(--ease-out);
}
.shelf__img img { max-height: 138px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.shelf__item:hover .shelf__img { transform: translateY(-4px); }
.shelf__item:hover { color: var(--ink); }
.shelf__name { font-size: .85rem; font-weight: 600; text-align: center; }

/* ---------- Plain text pages (privacy) ---------- */
.prose h3 { margin: var(--s-7) 0 var(--s-3); }
.prose h3:first-child { margin-top: 0; }
.prose p { max-width: 68ch; }

/* ---------- Phones: comfortable tap targets and readable small print ---------- */
.field select { max-width: 100%; }
@media (max-width: 760px) {
  .foot ul { gap: 0; }
  .foot ul a { display: inline-block; padding-block: 10px; }
  .foot__contact li { padding-block: 6px; }
  .foot__contact a { display: inline-block; padding-block: 6px; }
  .specs--kv b a { display: inline-block; padding-block: 10px; }
  .foot__bar { font-size: .78rem; }
  .foot__bar a { display: inline-block; padding-block: 8px; }
}
/* Key/value rows: let long values (emails, model lists) wrap instead of widening the card */
.specs--kv b { min-width: 0; overflow-wrap: anywhere; }
.stack-6 > * { min-width: 0; }

/* Messages shown after a no-JavaScript form post (send.php redirects to #sent / #not-sent) */
.note-target:target { display: block; margin-bottom: var(--s-5); }
