/* ===========================================================
   core.css — Loaded on EVERY page (was: styles.css + mega-menu.css)
   =========================================================== */

/* ===========================================================
   Base: tokens, layout, header, footer, buttons   [from styles.css]
   =========================================================== */

/* Unibuild Software — Homepage
   Design system declared:
   - Type: Inter (body + display, headlines @ 700), Geist (accents and mono-style captions)
   - Palette: white paper, black ink, Oxford blue used sparingly as the accent
     (the accent token is still named --hazard for historical reasons; the
     yellow it once held was retired site-wide on 26 July 2026)
   - Hairline rules, no rounded corners >4px, no shadows, no gradients
*/

:root {
  --paper: #ffffff;
  --paper-2: #ffffff;
  --concrete: #ffffff;
  --rule: oklch(0.90 0 0);
  --rule-soft: oklch(0.94 0 0);
  --ink: #000000;
  --ink-2: oklch(0.34 0 0);
  --ink-mute: oklch(0.54 0 0);
  /* Accent: Oxford blue. Previously hazard yellow — retired site-wide.
     theme-oxford.css and home-circuit.css restate these identically, so those
     pages are unaffected; this makes blue the default for every page, including
     any new one that does not load a theme file. */
  --hazard: oklch(0.28 0.09 268);
  --hazard-ink: oklch(0.99 0.005 268);
  --grad-accent: linear-gradient(135deg, color-mix(in oklab, var(--hazard) 86%, white) 0%, var(--hazard) 45%, color-mix(in oklab, var(--hazard) 74%, black) 100%);
  --grad-edge: color-mix(in oklab, var(--hazard) 78%, black);
  --accent-on-dark: color-mix(in oklab, var(--hazard) 55%, white);
  --good: oklch(0.55 0.12 145);
  --bad: oklch(0.55 0.18 25);

  --f-display: "Google Sans Flex", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-serif: "Geist", "Google Sans Flex", Helvetica, Arial, sans-serif;
  --f-mono: "Google Sans Flex", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fw-display: 700;

  /* Boxed layout: content centres within this max width on large screens and
     stays fluid (viewport-limited) below it. Middle ground between a narrow
     box and the old full-bleed (--maxw: 100%). Section backgrounds live on the
     section, not .wrap, so they remain full-bleed while content is contained. */
  --maxw: 2040px;
  --gutter: clamp(24px, 5.2vw, 136px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

::selection { background: var(--hazard); color: var(--hazard-ink); }

/* ── layout primitives ── */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header and footer stay full-bleed: page content is boxed site-wide, but the
   top bar, mega-menu and footer span edge to edge (minus the standard gutter). */
.site-header,
.foot { --maxw: 100%; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

.hazard-mark {
  display: inline-flex;
  align-items: center;
  background: var(--hazard);
  color: var(--hazard-ink);
  padding: 6px 12px;
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
}
.hazard-mark::before { content: none; }
.final .hazard-mark, .sec-dark .hazard-mark { color: var(--hazard-ink); }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* ── header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.2s ease;
}
/* frost lives on a pseudo so the header itself never becomes a containing
   block for fixed descendants (mobile sheet, mega panel) — backdrop-filter
   on the element itself traps them at the header's size */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 8px 24px -16px rgba(0,0,0,0.18);
}

/* condensed state on scroll — instrument tightens, decoration recedes */
.site-header { --hdr-h: 108px; }
.site-header.is-scrolled { --hdr-h: 82px; }
.site-header.is-scrolled .bar { height: 82px; }

/* slim compliance strip on top */

/* main bar */
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 108px;
  gap: 24px;
  transition: height 0.25s ease;
}

/* brand — live asset-tag stamp */
.brand {
  display: flex; align-items: center; gap: 13px;
  flex-shrink: 0;
}
.brand-logo { display: block; height: 76px; width: auto; transition: height 0.25s ease; }
.site-header.is-scrolled .brand-logo { height: 60px; }

/* hazard register corner — the "stamped/certified" tell */

/* nav */
.nav {
  display: flex; align-items: center; gap: 28px;
  font-size: 16px;
  color: var(--ink-2);
  font-weight: 500;
  white-space: nowrap;
}
.nav a:not(.mega-trig) {
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
}
.nav a:not(.mega-trig)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav a:not(.mega-trig):hover { color: var(--ink); }
.nav a:not(.mega-trig):hover::after { transform: scaleX(1); }

.nav-cta {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  margin-right: calc(-1 * var(--gutter));
  width: clamp(200px, 15vw, 300px);
  flex-shrink: 0;
  white-space: nowrap;
}
/* ghost key — matches the nav control keys */

/* signature demo button — full-height block anchored to the header's right edge */
.btn-demo {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 100%;
  padding: 0 24px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.18s ease;
}
.btn-demo-edge {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--hazard);
  transition: width 0.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.btn-demo:hover { background: oklch(0.28 0.01 60); }
.btn-demo:hover .btn-demo-edge { width: 10px; }
.btn-demo .arr { font-size: 20px; transition: transform 0.15s ease; }
.btn-demo:hover .arr { transform: translateX(4px); }
.btn-demo-label { line-height: 1; }

/* hamburger */
.hamburger {
  display: none;
  width: 44px; height: 44px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.hamburger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 27px; }
.hamburger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* mobile sheet */
.mobile-sheet {
  position: fixed;
  left: 0; right: 0;
  top: var(--hdr-h, 84px); /* tracks the live header height */
  bottom: 0;
  background: var(--paper);
  z-index: 49;
  padding: 24px var(--gutter) 32px;
  display: flex; flex-direction: column;
  gap: 32px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.2s ease;
  overflow-y: auto;
}
.mobile-sheet.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-cta {
  display: flex; flex-direction: column; gap: 10px;
}
.mobile-cta .btn { justify-content: space-between; width: 100%; }
.mobile-meta {
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--f-mono);
  font-size: 14.5px;
  color: var(--ink-mute);
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.mobile-meta a { color: var(--ink-2); padding: 8px 0; margin: -8px 0; }
.mobile-meta span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
}

/* ── buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 3px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: transform 0.08s ease, background 0.15s ease;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .arr { transition: transform 0.15s ease; }
.btn:hover .arr { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover { border-color: var(--ink); background: transparent; }

.btn-sm { padding: 8px 12px; font-size: 15.5px; }
.btn-lg { padding: 16px 24px; font-size: 16px; }

/* ── hero ── */
.hero {
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper) 62%, var(--paper-2) 100%);
}
.hero .grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 20px 0 0;
  text-wrap: balance;
}
.hero h1 em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.hero .sub {
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 52ch;
  text-wrap: pretty;
}
.hero .ctas {
  margin-top: 28px;
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
}
/* Hero primary CTA gets the hazard treatment — committed accent, single shout */
.hero .ctas .btn:first-child {
  background: var(--hazard);
  color: var(--hazard-ink);
  border-color: var(--hazard);
}
.hero .ctas .btn:first-child:hover { filter: brightness(0.96); }
/* Secondary CTA reduced to an underlined text link, not a competing button */
.hero .ctas .btn-ghost {
  background: transparent;
  border: 0;
  padding: 14px 4px;
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 6px;
  font-weight: 500;
}
.hero .ctas .btn-ghost:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
  transform: none;
}

/* hero credentials — the four headline promises, as a dominant register block */

/* engage on hover — the cell darkens, tick punches forward */

/* hero side: live spec card */

@keyframes pulse { 50% { opacity: 0.35; } }
.spec-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule-soft);
  gap: 12px;
}
.spec-row:last-child { border-bottom: 0; }
.spec-row .k { color: var(--ink-mute); text-transform: uppercase; font-size: 14px; letter-spacing: 0.04em; }
.spec-row .v { color: var(--ink); font-size: 15.5px; text-align: right; }
.spec-row .v b { font-weight: 600; }

/* ── ticker ── */
.ticker {
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
  overflow: hidden;
  height: 44px;
}
.ticker-track {
  display: flex; align-items: center; gap: 48px;
  height: 100%;
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 14.5px;
  color: var(--ink-2);
  animation: scroll 60s linear infinite;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 12px; }
.ticker-track span::before {
  content: ""; width: 4px; height: 4px;
  background: var(--ink-mute); border-radius: 50%;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── section chrome ── */
.sec {
  padding: 128px 0;
  border-bottom: 1px solid var(--rule);
}

.sec-hd {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  margin-bottom: 80px;
  align-items: start;
}
.sec-hd .num {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--ink-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 0;
  border-top: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sec-hd .num > span:first-child {
  align-self: flex-start;
  background: var(--hazard);
  color: var(--hazard-ink);
  padding: 6px 12px;
  font-weight: 500;
}
.sec-hd h2 {
  font-family: var(--f-display);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}
.sec-hd h2 em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
}
.sec-hd .lede {
  margin-top: 22px;
  color: var(--ink-2);
  font-size: 18px;
  max-width: 56ch;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ── pain mirror grid ── */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.pain-cell {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 36px 32px 38px;
  background: var(--paper);
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
}
.pain-cell .tag {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pain-cell .what {
  font-size: 19px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-top: 16px;
}
.pain-cell .cost {
  font-family: var(--f-mono);
  font-size: 14.5px;
  color: var(--ink-2);
  margin-top: 28px;
  border-top: 1px solid var(--rule-soft);
  padding-top: 14px;
}
.pain-cell.heavy {
  background: var(--ink); color: var(--paper);
}
.pain-cell.heavy .tag { color: oklch(0.7 0.005 60); }
.pain-cell.heavy .cost { color: oklch(0.78 0.005 60); border-color: oklch(0.32 0.01 60); }

/* ── replacement strip ── */
.replace {
  margin-top: 80px;
  border: 0;
  background: transparent;
}

/* ── calculator ── */

/* ── modules ── */
.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.module {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 40px 36px 44px;
  display: flex; flex-direction: column;
  min-height: 320px;
  background: var(--paper);
  transition: background 0.2s;
  position: relative;
}
.module:hover { background: var(--paper-2); }
.module .num {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}
.module h3 {
  font-family: var(--f-display);
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 16px;
}
.module p {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  flex: 1;
}

.module .more {
  margin-top: 20px;
  font-size: 15.5px;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  align-self: flex-start;
}
.module .more .arr { transition: transform 0.15s; }
.module:hover .more .arr { transform: translateX(3px); }

/* ── scenarios ── */

/* ── risk reversal ── */
.risk {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.risk-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.risk-list .item {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 32px 28px;
  background: var(--paper);
  position: relative;
}
.risk-list .item .check {
  width: 24px; height: 24px;
  background: var(--ink);
  color: var(--paper);
  display: grid; place-items: center;
  font-size: 15.5px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.risk-list .item h4 {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.risk-list .item p {
  font-family: var(--f-mono);
  font-size: 14.5px;
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.5;
}

/* ── faq ── */
.faq-list {
  border-top: 1px solid var(--ink);
}
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 0;
}
.faq-q {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 16px;
  align-items: center;
  padding: 30px 0;
  cursor: pointer;
  user-select: none;
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--f-display);
  color: var(--ink);
}
.faq-q .num {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--ink-mute);
}
.faq-q .qtxt {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.faq-q .toggle {
  font-family: var(--f-mono);
  font-size: 18px;
  color: var(--ink);
  width: 28px; text-align: center;
}
.faq-a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 16px;
  padding: 0 0 22px;
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: none;
}
.faq-a .body { max-width: 64ch; }

/* ── final cta ── */
.final {
  background: var(--ink);
  color: var(--paper);
  padding: 124px 0 112px;
  border-bottom: 1px solid var(--ink);
}
.final h2 {
  font-family: var(--f-display);
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
  max-width: 18ch;
}
.final h2 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.final .row {
  margin-top: 40px;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.final .row .btn {
  background: var(--paper); color: var(--ink); border-color: var(--paper);
}
.final .row .btn-ghost { background: transparent; color: var(--paper); border-color: oklch(0.45 0.01 60); }
.final .row .btn-ghost:hover { border-color: var(--paper); }
.final .channels {
  margin-top: 72px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid oklch(0.32 0.01 60);
}
.final .channels a {
  padding: 24px 20px 24px 0;
  border-right: 1px solid oklch(0.32 0.01 60);
  display: block;
}
.final .channels a:last-child { border-right: 0; }
.final .channels a:not(:first-child) { padding-left: 24px; }
.final .channels .lbl {
  font-family: var(--f-mono);
  font-size: 14px;
  color: oklch(0.7 0.005 60);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.final .channels .val {
  margin-top: 8px;
  font-family: var(--f-display);
  font-size: 19px;
  letter-spacing: -0.01em;
}

/* ── sticky cta bar ── */
.sticky-cta {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
  display: flex; align-items: center; gap: 16px;
  font-size: 16px;
  z-index: 40;
  transition: transform 0.3s cubic-bezier(.2,.7,.1,1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.sticky-cta.show { transform: translateX(-50%) translateY(0); }
.sticky-cta b { font-weight: 500; }
.sticky-cta .btn { padding: 8px 14px; font-size: 15.5px; background: var(--hazard); color: var(--hazard-ink); border-color: var(--hazard); }
.sticky-cta .dot { width: 6px; height: 6px; background: var(--hazard); border-radius: 50%; animation: pulse 1.6s ease-in-out infinite; }

/* ── responsive ── */
@media (max-width: 1280px) {
  .nav { gap: 22px; font-size: 16px; }
}

@media (max-width: 1100px) {
  .nav { display: none; }
  .hamburger { display: block; }
  
  .nav-cta { width: auto; margin-right: 0; align-self: center; }
  .btn-demo { padding: 11px 16px; font-size: 16px; border-radius: 3px; }
  .btn-demo .arr { font-size: 17px; }
  .site-header .bar { gap: 14px; }
  .brand { min-width: 0; }
  .brand-logo, .site-header.is-scrolled .brand-logo { height: 48px; max-width: 100%; }
}
@media (max-width: 420px) {
  .btn-demo { padding: 10px 12px; font-size: 15px; gap: 8px; }
  .btn-demo .arr { display: none; }
  .site-header .bar { gap: 10px; }
  .brand-logo, .site-header.is-scrolled .brand-logo { height: 38px; }
}
@media (max-width: 1024px) {
  .hero .grid { grid-template-columns: 1fr; gap: 40px; }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .modules { grid-template-columns: repeat(2, 1fr); }
  
  
  
  .risk { grid-template-columns: 1fr; gap: 28px; }
  .sec-hd { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
  .final .channels { grid-template-columns: repeat(2, 1fr); }
  .final .channels a:nth-child(2n) { border-right: 0; }

}
@media (max-width: 900px) {
  :root { --maxw: 100%; }
  
  
}
@media (max-width: 720px) {
  .site-header .bar, .site-header.is-scrolled .bar { height: 64px; }
  .site-header, .site-header.is-scrolled { --hdr-h: 64px; }
  .mobile-sheet { top: 64px; }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; --maxw: 100%; }
  .pain-grid, .modules, .risk-list { grid-template-columns: 1fr; }
  .sec { padding: 56px 0; }
  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: clamp(36px, 9vw, 56px); }
  .hero .ctas .btn { width: 100%; justify-content: space-between; }
  

  .final .channels { grid-template-columns: 1fr; }
  .final .channels a { border-right: 0; padding-left: 0 !important; }
  .faq-q { grid-template-columns: 40px 1fr 24px; }
  .faq-a { grid-template-columns: 40px 1fr 24px; }
  .mobile-sheet { top: 64px; }
  
  .brand { font-size: 17px; gap: 10px; }
  
  
  .sticky-cta { left: 12px; right: 12px; bottom: 12px; padding: 8px 10px; gap: 8px; }
  .sticky-cta span:not(.dot) { font-size: 14.5px; }
}

/* ── v2 additions ────────────────────────────────────────────────────── */

/* Section header — centered variant for visual rhythm break */

/* Dark band: invert one mid-page section so the calculator isn't the lone visual peak */
.sec.sec-dark {
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.sec.sec-dark .modules {
  border-top-color: oklch(0.32 0.01 60);
  border-left-color: oklch(0.32 0.01 60);
}
.sec.sec-dark .module {
  background: var(--ink);
  border-right-color: oklch(0.32 0.01 60);
  border-bottom-color: oklch(0.32 0.01 60);
  color: var(--paper);
}
.sec.sec-dark .module:hover { background: oklch(0.22 0.01 60); }
.sec.sec-dark .module .num { color: oklch(0.65 0.005 60); }
.sec.sec-dark .module h3 { color: var(--paper); }
.sec.sec-dark .module p { color: oklch(0.78 0.005 60); }

.sec.sec-dark .module .more {
  color: var(--hazard);
  border-bottom-color: var(--hazard);
}

/* Sticky CTA v2 — no notification-dot prefix, includes a live signal */
.sticky-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 8px 8px 8px 16px;
  gap: 14px;
  border: 1px solid oklch(0.32 0.01 60);
}

/* Tighten responsive hero further */
@media (max-width: 1024px) {
  .hero { padding: 32px 0 40px; }
  .hero .grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   v3 — minimal editorial pass. Five sections, more air, two dark peaks.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── SHIFT (dark) ─────────────────────────────────────────────────────── */
.shift {
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.shift .hazard-mark { color: var(--hazard-ink); }

/* ── MODULES (light → hover-reveal photo) ─────────────────────────────── */

.module {
  padding: 38px 36px 40px;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* keep real content above the revealed background */
.module > h3, .module > p, .module > .more { position: relative; z-index: 1; }
/* AI-enabled badge — top-right register tag */

.module h3, .module p, .module .more, .module .more .arr {
  transition: color 0.4s ease, border-color 0.4s ease, transform 0.15s ease;
}
.module h3 { margin: 0 0 12px; font-size: 24px; }
.module p { font-size: 17px; }
.module .more { margin-top: 28px; }

/* the hover-revealed photo (real Unsplash construction imagery,
   unified with a dark near-monochrome treatment) */

.module:hover { background: var(--ink); }

.module:hover h3, .module:focus-visible h3,
.module:hover p, .module:focus-visible p,
.module:hover .more, .module:focus-visible .more { text-shadow: 0 1px 12px rgba(0,0,0,0.5); }
.module:hover h3 { color: var(--paper); }
.module:hover p { color: oklch(0.85 0.005 60); }
.module:hover .more { color: var(--paper); border-bottom-color: var(--hazard); }

.module:focus-visible h3 { color: var(--paper); }
.module:focus-visible p { color: oklch(0.85 0.005 60); }
.module:focus-visible .more { color: var(--paper); border-bottom-color: var(--hazard); }

/* ── PILLARS (light, concrete) ────────────────────────────────────────── */

/* ── FOOTER (rewrite) ─────────────────────────────────────────────────── */

/* ── v3 responsive ────────────────────────────────────────────────────── */

/* ════════════════════════════════════════════════════════════════════════
   FOOTER — "certification plate" (fz). Self-contained; overrides legacy .foot.
   ════════════════════════════════════════════════════════════════════════ */
.foot.fz {
  background: var(--paper);
  border-top: 1px solid var(--ink);
  padding: 0 0 30px;
  color: var(--ink-2);
  font-size: 16px;
}

/* compliance register plate — a hairline strip of stamped facts */
.foot.fz .fz-plate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 34px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.foot.fz .fz-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.foot.fz .fz-tick {
  width: 6px; height: 6px;
  background: var(--hazard);
  flex-shrink: 0;
}

/* index + contact */
.foot.fz .fz-main {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(300px, 1fr);
  gap: 72px;
  padding: 64px 0 72px;
}
.foot.fz .fz-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.foot.fz h5 {
  font-family: var(--f-mono);
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin: 0 0 20px;
  font-weight: 600;
  padding-bottom: 14px;
}
/* Footer column headings carry a small leading icon. inline-flex keeps the
   icon on the mono cap-height baseline rather than the line box. */
.foot.fz h5.fz-h5-ic {
  display: flex;
  align-items: center;
  gap: 9px;
}
.foot.fz .fz-h5-ic-svg {
  display: inline-flex;
  color: var(--hazard);
  flex-shrink: 0;
}
.foot.fz .fz-h5-ic-svg svg { display: block; }

.foot.fz .fz-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 13px;
}
/* header-grade underline-from-left on hover */
.foot.fz .fz-col a {
  position: relative;
  color: var(--ink-2);
  font-size: 16px;
  letter-spacing: -0.005em;
  transition: color 0.18s ease;
}
.foot.fz .fz-col a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.foot.fz .fz-col a:hover::after { transform: scaleX(1); }

/* contact instrument */
.foot.fz .fz-contact { display: flex; flex-direction: column; }
.foot.fz .fz-line {
  display: grid;
  grid-template-columns: 26px 1fr;
  column-gap: 12px;
  gap: 3px;
  padding: 14px 0;
  transition: padding-left 0.18s ease;
}
.foot.fz .fz-ic { grid-column: 1; grid-row: 1 / 3; align-self: center; color: var(--ink-mute); display: grid; place-items: center; }
.foot.fz .fz-line .k { grid-column: 2; }
.foot.fz .fz-line .v { grid-column: 2; }
.foot.fz .fz-line .k {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.foot.fz .fz-line .v {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.foot.fz .fz-line:hover { padding-left: 8px; }
.foot.fz .fz-demo {
  margin-top: 20px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  background: var(--hazard);
  color: var(--hazard-ink);
  border: 1px solid var(--hazard);
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 13px 20px;
  transition: filter 0.15s ease, transform 0.1s ease;
}
.foot.fz .fz-demo .arr { transition: transform 0.15s ease; }
.foot.fz .fz-demo:hover { filter: brightness(0.96); transform: translateY(-1px); }
.foot.fz .fz-demo:hover .arr { transform: translateX(3px); }

/* oversized wordmark signature */

/* ops / legal bar */
.foot.fz .fz-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  font-family: var(--f-mono);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
}
.foot.fz .fz-legal-l {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.foot.fz .fz-legal-r {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}
.foot.fz .fz-legal-r a { color: var(--ink-mute); transition: color 0.15s ease; padding: 12px 2px; margin: -12px -2px; }
.foot.fz .fz-top {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-family: var(--f-mono);
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
  padding: 12px 2px; margin: -12px -2px;
}
.foot.fz .fz-top span { transition: transform 0.18s ease; display: inline-block; }
.foot.fz .fz-top:hover span { transform: translateY(-3px); }

/* footer responsive */
@media (max-width: 1024px) {
  .foot.fz .fz-main { grid-template-columns: 1fr; gap: 52px; }
}
@media (max-width: 720px) {
  
  .foot.fz .fz-nav { grid-template-columns: 1fr 1fr; gap: 36px 40px; }
  
}
@media (max-width: 560px) {
  .foot.fz .fz-nav { grid-template-columns: 1fr; }
  .foot.fz .fz-legal { flex-direction: column; align-items: flex-start; gap: 14px; }
  .foot.fz .fz-legal-r { flex-wrap: wrap; gap: 16px; }
}

/* ── footer, reimagined: ink ground, big type, nothing whispered ── */
.foot.fz { background: var(--ink); color: var(--paper); }
.foot.fz .fz-plate { border-color: color-mix(in oklab, var(--paper) 16%, transparent); }
.foot.fz .fz-cell { font-size: 15px; color: color-mix(in oklab, var(--paper) 74%, transparent); }
footer.foot.fz .fz-tick { background: var(--accent-on-dark, var(--hazard)); }

.foot.fz h5 { font-size: 15px; color: color-mix(in oklab, var(--paper) 56%, transparent); border-bottom-color: color-mix(in oklab, var(--paper) 14%, transparent); }
/* --hazard is near-black against the ink ground; use the lightened accent, as
   .fz-tick above already does. */
.foot.fz .fz-h5-ic-svg { color: var(--accent-on-dark, var(--hazard)); }
.foot.fz .fz-col ul { gap: 16px; }
.foot.fz .fz-col a { font-size: 19px; color: color-mix(in oklab, var(--paper) 84%, transparent); }
.foot.fz .fz-col a::after { background: var(--accent-on-dark, var(--paper)); height: 1.5px; }
.foot.fz .fz-col a:hover { color: var(--paper); }
.foot.fz .fz-line { border-top-color: color-mix(in oklab, var(--paper) 12%, transparent); }
.foot.fz .fz-ic { color: color-mix(in oklab, var(--paper) 55%, transparent); }
.foot.fz .fz-line:hover .fz-ic { color: var(--accent-on-dark, var(--paper)); }
.foot.fz .fz-line .k { font-size: 14.5px; color: color-mix(in oklab, var(--paper) 56%, transparent); }
.foot.fz .fz-line .v { font-size: 22px; color: color-mix(in oklab, var(--paper) 94%, transparent); }
.foot.fz .fz-line:hover .v { color: var(--paper); }

.foot.fz .fz-legal { border-top-color: color-mix(in oklab, var(--paper) 14%, transparent); font-size: 15px; color: color-mix(in oklab, var(--paper) 58%, transparent); }

.foot.fz .fz-legal-r a { color: color-mix(in oklab, var(--paper) 62%, transparent); }
.foot.fz .fz-legal-r a:hover { color: var(--paper); }
.foot.fz .fz-top { color: color-mix(in oklab, var(--paper) 62%, transparent); }
.foot.fz .fz-top:hover { color: var(--paper); }
/* skyline set-piece: London riverside, every site on one system */
.foot.fz .fz-main { padding: 52px 0 48px; }
.fz-site { margin-top: 8px; margin-bottom: 26px; contain: layout paint;
  /* 4-tier grey ladder on the ink ground: dim = massing fills, line = architectural linework, kit = working machinery (cranes, vans, crates, lit windows, clock hands), text = badge labels */
  --lnd-dim: color-mix(in oklab, var(--paper) 26%, transparent);
  --lnd-line: color-mix(in oklab, var(--paper) 52%, transparent);
  --lnd-kit: color-mix(in oklab, var(--paper) 80%, transparent);
  --lnd-text: color-mix(in oklab, var(--paper) 92%, transparent);
}
.fz-site svg { display: block; width: 100%; height: auto; overflow: hidden; transform: translateZ(0); }
.fz-site:not(.is-live) :is(.fzc-troll, .fzc-fall, .fzc-luff, .fzc-plumb, .fzc-beacon, .fzc-van, .fzc-van2, .lnd-pods, .lnd-win, .lnd-pkt, .lnd-bxA, .lnd-bxB, .lnd-bxC, .lnd-bxD, .lnd-plate, .lnd-dot, .lnd-site text) { animation-play-state: paused !important; }
.fzc-van, .fzc-van2, .lnd-pkt, .lnd-pods, .fzc-luff, .fzc-plumb, .fzc-troll, .fzc-fall { will-change: transform; }
/* hammerhead: trolley out, lower, hold, raise, trolley home */
.fzc-troll { animation: fzTroll 26s ease-in-out infinite; }
.fzc-fall { animation: fzFall 26s ease-in-out infinite; }
@keyframes fzTroll { 0%, 12% { transform: translateX(0); } 30%, 58% { transform: translateX(-32px); } 78%, 100% { transform: translateX(0); } }
@keyframes fzFall { 0%, 32% { transform: translateY(0); } 44%, 56% { transform: translateY(42px); } 68%, 100% { transform: translateY(0); } }
/* luffer: vertical-plane rotation is the real motion; hook counter-rotates to hang plumb */
.fzc-luff { transform-box: view-box; transform-origin: 1146px 98px; animation: fzLuff 24s ease-in-out infinite alternate; }
.fzc-plumb { transform-box: view-box; transform-origin: 1081px 44px; animation: fzPlumb 24s ease-in-out infinite alternate; }
@keyframes fzLuff { from { transform: rotate(0deg); } to { transform: rotate(9deg); } }
@keyframes fzPlumb { from { transform: rotate(0deg); } to { transform: rotate(-9deg); } }
.fzc-beacon { animation: fzBeacon 2.8s ease-in-out infinite; }
@keyframes fzBeacon { 0%, 100% { opacity: 0.15; } 50% { opacity: 1; } }
/* Eye structure is static; only the capsules ride the rim */
.lnd-pods { transform-box: view-box; transform-origin: 395px 136px; animation: lndPods 120s linear infinite; }
@keyframes lndPods { to { transform: rotate(360deg); } }
.lnd-win { animation: lndWin 11s steps(1, end) infinite; }
@keyframes lndWin { 0%, 100% { opacity: 1; } 46% { opacity: 0.2; } 60% { opacity: 1; } }
.lnd-pkt { animation: lndPkt 26s linear infinite; }
@keyframes lndPkt { from { transform: translateX(0); } to { transform: translateX(1352px); } }
/* delivery rounds: one 48s master clock, tight turnarounds so both vans stay in view. Van 1 (west>east) calls at B then D; van 2 follows close behind (east>west), calling at C then A. Badges go green while a van is on site. */
.fzc-van { animation: fzVan 48s infinite; }
@keyframes fzVan { 0% { transform: translateX(-70px); animation-timing-function: cubic-bezier(0.45, 0, 0.12, 1); } 13%, 28% { transform: translateX(719px); animation-timing-function: cubic-bezier(0.45, 0, 0.12, 1); } 44%, 80% { transform: translateX(1347px); animation-timing-function: cubic-bezier(0.55, 0, 0.7, 0.45); } 88%, 100% { transform: translateX(1470px); } }
.fzc-van2 { animation: fzVan2 48s infinite; }
@keyframes fzVan2 { 0% { transform: translateX(1470px); animation-timing-function: cubic-bezier(0.45, 0, 0.12, 1); } 13%, 28% { transform: translateX(1075px); animation-timing-function: cubic-bezier(0.45, 0, 0.12, 1); } 44%, 80% { transform: translateX(46px); animation-timing-function: cubic-bezier(0.55, 0, 0.7, 0.45); } 88%, 100% { transform: translateX(-70px); } }
/* goods: B and C take a delivery, A and D have a collection waiting */
.lnd-bxA { animation: fzBxA 48s linear infinite; }
.lnd-bxB { animation: fzBxB 48s linear infinite; }
.lnd-bxC { animation: fzBxC 48s linear infinite; }
.lnd-bxD { animation: fzBxD 48s linear infinite; }
@keyframes fzBxA { 0%, 52% { opacity: 1; } 54%, 100% { opacity: 0; } }
@keyframes fzBxB { 0%, 17% { opacity: 0; } 19%, 32% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes fzBxC { 0%, 17% { opacity: 0; } 19%, 32% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes fzBxD { 0%, 52% { opacity: 1; } 54%, 100% { opacity: 0; } }
/* the registry polls each site in turn: A > B > C > D, west to east, 20s round */
.lnd-dot { opacity: 0.25; }
@keyframes lndDot { 0%, 18% { opacity: 1; } 24%, 100% { opacity: 0.25; } }
@keyframes lndPlate { 0%, 18% { stroke: var(--accent-on-dark, var(--hazard)); } 24%, 100% { stroke: color-mix(in oklab, var(--paper) 42%, transparent); } }
.lnd-siteA .lnd-plate { animation: lndPlate 20s ease-in-out infinite, fzPlateA 48s linear infinite; }
.lnd-siteA .lnd-dot { animation: lndDot 20s ease-in-out infinite, fzDotA 48s linear infinite; }
.lnd-siteA text:not(.lnd-op) { animation: fzTxtA 48s linear infinite; }
.lnd-siteB .lnd-plate { animation: lndPlate 20s ease-in-out infinite 5s, fzPlateB 48s linear infinite; }
.lnd-siteB .lnd-dot { animation: lndDot 20s ease-in-out infinite 5s, fzDotB 48s linear infinite; }
.lnd-siteB text:not(.lnd-op) { animation: fzTxtB 48s linear infinite; }
.lnd-siteC .lnd-plate { animation: lndPlate 20s ease-in-out infinite 10s, fzPlateC 48s linear infinite; }
.lnd-siteC .lnd-dot { animation: lndDot 20s ease-in-out infinite 10s, fzDotC 48s linear infinite; }
.lnd-siteC text:not(.lnd-op) { animation: fzTxtC 48s linear infinite; }
.lnd-siteD .lnd-plate { animation: lndPlate 20s ease-in-out infinite 15s, fzPlateD 48s linear infinite; }
.lnd-siteD .lnd-dot { animation: lndDot 20s ease-in-out infinite 15s, fzDotD 48s linear infinite; }
.lnd-siteD text:not(.lnd-op) { animation: fzTxtD 48s linear infinite; }
/* on-site windows match each van's stop */
@keyframes fzPlateA { 0%, 44% { fill: color-mix(in oklab, var(--paper) 10%, transparent); } 44.6%, 79.4% { fill: oklch(0.55 0.14 152); } 80%, 100% { fill: color-mix(in oklab, var(--paper) 10%, transparent); } }
@keyframes fzTxtA { 0%, 44% { fill: color-mix(in oklab, var(--paper) 85%, transparent); } 44.6%, 79.4% { fill: #fff; } 80%, 100% { fill: color-mix(in oklab, var(--paper) 85%, transparent); } }
@keyframes fzDotA { 0%, 44% { fill: var(--accent-on-dark, var(--hazard)); } 44.6%, 79.4% { fill: #fff; } 80%, 100% { fill: var(--accent-on-dark, var(--hazard)); } }
@keyframes fzPlateB { 0%, 13% { fill: color-mix(in oklab, var(--paper) 10%, transparent); } 13.6%, 27.4% { fill: oklch(0.55 0.14 152); } 28%, 100% { fill: color-mix(in oklab, var(--paper) 10%, transparent); } }
@keyframes fzTxtB { 0%, 13% { fill: color-mix(in oklab, var(--paper) 85%, transparent); } 13.6%, 27.4% { fill: #fff; } 28%, 100% { fill: color-mix(in oklab, var(--paper) 85%, transparent); } }
@keyframes fzDotB { 0%, 13% { fill: var(--accent-on-dark, var(--hazard)); } 13.6%, 27.4% { fill: #fff; } 28%, 100% { fill: var(--accent-on-dark, var(--hazard)); } }
@keyframes fzPlateC { 0%, 13% { fill: color-mix(in oklab, var(--paper) 10%, transparent); } 13.6%, 27.4% { fill: oklch(0.55 0.14 152); } 28%, 100% { fill: color-mix(in oklab, var(--paper) 10%, transparent); } }
@keyframes fzTxtC { 0%, 13% { fill: color-mix(in oklab, var(--paper) 85%, transparent); } 13.6%, 27.4% { fill: #fff; } 28%, 100% { fill: color-mix(in oklab, var(--paper) 85%, transparent); } }
@keyframes fzDotC { 0%, 13% { fill: var(--accent-on-dark, var(--hazard)); } 13.6%, 27.4% { fill: #fff; } 28%, 100% { fill: var(--accent-on-dark, var(--hazard)); } }
@keyframes fzPlateD { 0%, 44% { fill: color-mix(in oklab, var(--paper) 10%, transparent); } 44.6%, 79.4% { fill: oklch(0.55 0.14 152); } 80%, 100% { fill: color-mix(in oklab, var(--paper) 10%, transparent); } }
@keyframes fzTxtD { 0%, 44% { fill: color-mix(in oklab, var(--paper) 85%, transparent); } 44.6%, 79.4% { fill: #fff; } 80%, 100% { fill: color-mix(in oklab, var(--paper) 85%, transparent); } }
@keyframes fzDotD { 0%, 44% { fill: var(--accent-on-dark, var(--hazard)); } 44.6%, 79.4% { fill: #fff; } 80%, 100% { fill: var(--accent-on-dark, var(--hazard)); } }
/* green-window operation callouts */
.lnd-opA { animation: fzOpA 48s linear infinite; }
.lnd-opB { animation: fzOpB 48s linear infinite; }
.lnd-opC { animation: fzOpC 48s linear infinite; }
.lnd-opD { animation: fzOpD 48s linear infinite; }
@keyframes fzOpA { 0%, 44% { opacity: 0; } 44.6%, 79.4% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes fzOpB { 0%, 13% { opacity: 0; } 13.6%, 27.4% { opacity: 1; } 28%, 100% { opacity: 0; } }
@keyframes fzOpC { 0%, 13% { opacity: 0; } 13.6%, 27.4% { opacity: 1; } 28%, 100% { opacity: 0; } }
@keyframes fzOpD { 0%, 44% { opacity: 0; } 44.6%, 79.4% { opacity: 1; } 80%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fz-site svg * { animation: none !important; } }

/* stacked section header: label above big h2, left aligned */
.sec-hd.stack{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:32px}
.sec-hd.stack .num{display:inline-flex;margin-bottom:22px}
.sec-hd.stack h2{font-size:clamp(40px,4.6vw,62px)}
.sec-hd.stack .lede{margin-top:20px;font-size: 18px;max-width:56ch}
.sec.sec-dark .sec-hd .num{border:0}
.sec.sec-dark .sec-hd .lede{color:oklch(0.78 0.005 60)}
@media (max-width:1024px){.sec-hd.stack{grid-template-columns:1fr;align-items:start}}

/* THE POINT bar: paper strip punchline for dark sections */
.point-bar{margin-top:64px;display:grid;grid-template-columns:auto 1fr auto;gap:24px;align-items:center;padding:18px 24px;border:1px solid var(--hazard);background:var(--paper);color:var(--ink)}
.point-bar .pb-l,.point-bar .pb-r{font-family:var(--f-mono);font-size:13.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-mute)}
.point-bar .pb-r{text-align:right}
.point-bar .pb-v{text-align:center;font-family:var(--f-display);font-size:clamp(26px,3.2vw,38px);letter-spacing:-.02em;font-weight:500}
.point-bar .pb-v b{color:var(--hazard-ink);background:var(--hazard);padding:2px 10px}
@media (max-width:800px){.point-bar{grid-template-columns:1fr;gap:12px;text-align:center}.point-bar .pb-r{text-align:center}}

/* ===========================================================
   Mega-menu + mobile nav   [from mega-menu.css]
   =========================================================== */

/* mega-menu.css — Header mega menu styles.
   Panels are dark: near-black ground, white type, hazard accents.
   Local tokens are scoped to .mega-panel-wrap as --mx-*. */

/* ── trigger row (desktop) ─────────────────────────────────────────────── */
.mega-nav-triggers {
  display: flex;
  align-items: stretch;
  gap: 20px;
}
/* ── control keys ─────────────────────────────────────────────────────────
   Each nav item is a tactile, bordered instrument key: label,
   a hazard "engage" bar that slides up on hover, and a corner register tick.
   When open, the key goes dark — bridging into the dark panel below. */
.mega-trig {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 16px 26px 15px;
  font: inherit;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  position: relative;
  overflow: hidden;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.12s ease;
  white-space: nowrap;
}
/* engage bar — hazard signal sweeping up from the base edge */
.mega-trig::after {
  content: "";
  position: absolute;
  left: -1px; right: -1px; bottom: -1px;
  height: 2px;
  background: var(--hazard);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.mega-trig:hover,
.mega-trig:focus-visible {
  color: var(--ink);
  transform: translateY(-1px);
}
.mega-trig:hover::after,
.mega-trig:focus-visible::after,
.mega-trig.is-open::after { transform: scaleX(1); }

/* open state — key inverts to the panel's black */
.mega-trig.is-open {
  background: #0a0a0a;
  border-color: #0a0a0a;
  color: #ffffff;
  transform: translateY(-1px);
}

.mega-trig-label { line-height: 1; }

/* corner register tick — appears top-right on engage (blueprint detail) */
.mega-trig-tick {
  position: absolute;
  top: 5px; right: 5px;
  width: 5px; height: 5px;
  border-top: 1.5px solid var(--hazard);
  border-right: 1.5px solid var(--hazard);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.mega-trig:hover .mega-trig-tick,
.mega-trig.is-open .mega-trig-tick { opacity: 1; }

.mega-chev {
  transition: transform 0.24s ease, color 0.18s ease;
  color: var(--ink-mute);
  margin-top: 1px;
}
.mega-trig.is-open .mega-chev { transform: rotate(180deg); color: #ffffff; }
.mega-trig:hover .mega-chev { color: currentColor; }

/* ── backdrop ──────────────────────────────────────────────────────────── */
.mega-backdrop {
  position: fixed;
  left: 0; right: 0;
  top: var(--mega-top, 104px);
  bottom: 0;
  background: oklch(0.08 0 0 / 0.5);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 48;
}
.mega-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ── panel wrapper — the dark instrument ───────────────────────────────── */
.mega-panel-wrap {
  --mx-bg: #0a0a0a;
  --mx-ink: #ffffff;
  --mx-ink-2: oklch(0.93 0 0);
  --mx-mute: oklch(0.7 0 0);
  --mx-rule: oklch(1 0 0 / 0.13);

  position: fixed;
  left: 0; right: 0;
  top: var(--mega-top, 104px);
  z-index: 49;
  background: var(--mx-bg);
  border-bottom: 1px solid oklch(1 0 0 / 0.09);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.mega-panel-wrap.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* a single panel */
.mega-panel {
  display: none;
}
.mega-panel.is-active {
  display: block;
  animation: megaIn 0.24s ease both;
}
@keyframes megaIn {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* staggered content entrance — columns and feature settle in sequence */
@keyframes megaChildIn {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mega-panel.is-active .mega-grid > * {
  animation: megaChildIn 0.34s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.mega-panel.is-active .mega-grid > *:nth-child(1) { animation-delay: 0.04s; }
.mega-panel.is-active .mega-grid > *:nth-child(2) { animation-delay: 0.09s; }
.mega-panel.is-active .mega-grid > *:nth-child(3) { animation-delay: 0.14s; }
.mega-panel.is-active .mega-grid > *:nth-child(4) { animation-delay: 0.19s; }
@media (prefers-reduced-motion: reduce) {
  .mega-panel.is-active .mega-grid > * { animation: none; }
}
.mega-panel-inner {
  padding: 52px var(--gutter) 56px;
}

/* ── grid layouts ──────────────────────────────────────────────────────── */
.mega-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(300px, 380px);
  gap: 64px;
  align-items: start;
}
/* hairline dividers centred in the gaps between link columns */
.mega-col + .mega-col {
  border-left: 1px solid var(--mx-rule);
  margin-left: -32px;
  padding-left: 32px;
}
.mega-grid-modules {
  grid-template-columns: minmax(0, 3fr) minmax(280px, 360px);
  gap: 48px;
}

/* ── column header ─────────────────────────────────────────────────────── */
.mega-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mega-col-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ── single mega item — pure type, no chrome ───────────────────────────── */
.mega-item {
  display: block;
  padding: 15px 16px;
  margin: 0 -16px;
  border-radius: 5px;
  text-decoration: none;
  color: var(--mx-ink);
  transition: background 0.15s ease;
}
.mega-item:hover {
  background: oklch(1 0 0 / 0.07);
}
.mega-item-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.mega-item-title {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.012em;
  color: var(--mx-ink-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}
.mega-item:hover .mega-item-title { color: var(--mx-ink); }
.mega-item-title .arr {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 17px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  color: var(--hazard);
}
.mega-item:hover .mega-item-title .arr {
  opacity: 1;
  transform: translateX(0);
}
.mega-item-desc {
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--mx-mute);
}

/* Leading icon on standard mega-menu items. Only .has-ic switches to two
   columns, so an item without an icon keeps the original single-column block.
   Colour and hover match .mm-module-ic so the Modules panel and the Platform /
   Resources panels behave identically. */
.mega-item.has-ic {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.mega-item-ic {
  display: inline-flex;
  margin-top: 2px;          /* optical align to the 18px title, not its box */
  color: var(--mx-mute);
  transition: color 0.15s ease;
}
.mega-item-ic svg { display: block; }
.mega-item:hover .mega-item-ic { color: var(--mx-ink); }

/* ── feature card — hazard block, the one loud thing in the panel ──────── */
.mega-feature {
  position: relative;
  overflow: hidden;
  background: var(--grad-accent, var(--hazard));
  color: var(--hazard-ink);
  border-radius: 6px;
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 300px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mega-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px -20px color-mix(in oklab, var(--hazard) 45%, transparent);
}
/* black corner stamp — echoes the brand mark, signals "this is the action" */
.ft-stamp {
  position: absolute;
  top: 0; right: 0;
  width: 44px; height: 44px;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(225deg, #0a0a0a 0 13px, transparent 13px);
}

.ft-top { position: relative; z-index: 1; }
.ft-eyebrow {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 14.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hazard-ink);
  margin-bottom: 10px;
}
.mega-feature h3 {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.16;
  margin: 0 0 10px;
  color: #0a0a0a;
  text-wrap: pretty;
}
.mega-feature p {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: color-mix(in oklab, var(--hazard-ink) 72%, var(--hazard));
}
.ft-cta {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  font-family: var(--f-mono);
  font-size: 15.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0a0a0a;
  border-bottom: 1px solid oklch(0 0 0 / 0.35);
  padding-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.15s ease, gap 0.15s ease;
}
.ft-cta .arr { font-size: 15.5px; }
.mega-feature:hover .ft-cta {
  border-color: #0a0a0a;
  gap: 10px;
}

/* ── modules layout ────────────────────────────────────────────────────── */
.mm-modules {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mm-modules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.mm-module-card {
  position: relative;
  display: grid;
  grid-template-areas:
    "icon"
    "title"
    "desc";
  grid-template-columns: 1fr;
  gap: 4px 12px;
  padding: 22px 22px 20px;
  border: 1px solid var(--mx-rule);
  border-radius: 5px;
  background: oklch(1 0 0 / 0.03);
  text-decoration: none;
  color: var(--mx-ink);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.mm-module-card:hover {
  border-color: var(--hazard);
  background: oklch(1 0 0 / 0.05);
  transform: translateY(-1px);
}
/* bare stroke icon — no tile chrome */
.mm-module-ic {
  grid-area: icon;
  display: inline-flex;
  color: oklch(0.8 0 0);
  transition: color 0.15s ease;
}
/* 34, not 26: the cards are ~333×169 and a 26px mark floated in the corner,
   leaving the space above the title looking empty. */
.mm-module-ic svg { width: 34px; height: 34px; display: block; }
.mm-module-card:hover .mm-module-ic { color: var(--hazard); }
.mm-module-title {
  grid-area: title;
  margin-top: 12px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.012em;
  color: var(--mx-ink-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}
.mm-module-card:hover .mm-module-title { color: var(--mx-ink); }
.mm-module-title .arr {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 15.5px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  color: var(--hazard);
}
.mm-module-card:hover .mm-module-title .arr {
  opacity: 1; transform: translateX(0);
}
.mm-module-desc {
  grid-area: desc;
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--mx-mute);
}

/* ── responsive: collapse to mobile flow ───────────────────────────────── */
@media (max-width: 1180px) {
  .mega-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }
  .mega-col + .mega-col {
    margin-left: -20px;
    padding-left: 20px;
  }
  .mega-grid > .mega-feature {
    grid-column: 1 / -1;
    min-height: 0;
    padding: 22px 24px;
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
  .mega-grid > .mega-feature .ft-top { flex: 1; }
  .mega-grid > .mega-feature h3 { font-size: 20px; }
  .mega-grid-modules { grid-template-columns: 1fr; }
  .mm-modules-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  /* desktop mega is hidden — hamburger takes over */
  .mega-nav-triggers,
  .mega-panel-wrap,
  .mega-backdrop { display: none !important; }
}

/* ── mobile accordion (lives in the light mobile sheet) ────────────────── */
.mm-mobile {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}
.mm-section {
  border-bottom: 1px solid var(--rule);
}
.mm-section-hd {
  appearance: none;
  background: transparent;
  border: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 24px;
  gap: 16px;
  align-items: center;
  padding: 22px 4px;
  font: inherit;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.mm-section.mm-section-link {
  display: grid;
  grid-template-columns: 1fr 24px;
  gap: 16px;
  align-items: center;
  padding: 22px 4px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.mm-chev {
  transition: transform 0.2s ease;
  color: var(--ink-mute);
  justify-self: end;
}
.mm-section.is-open .mm-chev {
  transform: rotate(180deg);
  color: var(--ink);
}
.mm-section-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease, visibility 0s linear 0.28s;
  overflow: hidden;
  visibility: hidden; /* keep collapsed links out of tab order / taps */
}
.mm-section.is-open .mm-section-body {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.28s ease;
}
.mm-section-body > * {
  min-height: 0;
}
.mm-mobile-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px 14px 24px;
  text-decoration: none;
  color: var(--ink);
  border-top: 1px solid var(--rule-soft);
}
.mm-mobile-item:first-child { border-top: 0; }
.mm-mobile-text {
  display: flex; flex-direction: column; gap: 2px;
}
.mm-mobile-text b {
  font-family: var(--f-sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.mm-mobile-text span {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-mute);
}
.mm-section-body {
  padding-bottom: 0;
}
.mm-section.is-open .mm-section-body {
  padding-bottom: 14px;
}

@media (max-width: 640px) {
  .mm-section-hd,
  .mm-section.mm-section-link {
    font-size: 19px;
    padding: 18px 4px;
  }
  .mm-mobile-item {
    padding: 12px 12px 12px 20px;
  }
}

/* ===========================================================
   SHARED PAGE FURNITURE
   Extracted 3 August 2026 from content.css, health-safety.css,
   module-page.css and timesheets.css, which each carried an
   identical copy of everything below.

   It lives at the end of core.css rather than in a page
   stylesheet because core.css loads first and none of the
   page stylesheets set these properties, so the cascade result
   is unchanged. The .pf-hero rules are descendant-scoped, so
   pages without a .pf-hero are unaffected.
   =========================================================== */

/* hero call-to-action row on module and written pages
   (.hero .ctas above is the homepage's separate variant) */
.pf-hero .ctas { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.pf-hero .ctas .btn:first-child { background: var(--grad-accent); color: var(--hazard-ink); border-color: var(--grad-edge); }
.pf-hero .ctas .btn:first-child:hover { filter: brightness(0.96); }
.pf-hero .ctas .btn-ghost { background: transparent; border: 0; padding: 14px 4px; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 6px; font-weight: 500; }
.pf-hero .ctas .btn-ghost:hover { color: var(--ink); text-decoration-color: var(--ink); transform: none; }

/* FAQ built on <details>/<summary>. The .faq-* base rules are in the
   FAQ section above; these are the interaction states. */
summary.faq-q { list-style: none; }
summary.faq-q::-webkit-details-marker { display: none; }
summary.faq-q:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.faq-item { transition: background 0.15s ease; }
.faq-item:hover { background: color-mix(in oklab, var(--ink) 2%, transparent); }
.faq-q .toggle { transition: transform 0.18s ease; }
.faq-item[open] .toggle { transform: rotate(45deg); }

/* inline link inside a section lede */
.sec .lede a { color: var(--ink); font-weight: 600; border-bottom: 1.5px solid var(--hazard); }

/* clear the sticky header when an in-page anchor is targeted */
section[id] { scroll-margin-top: 110px; }

@media (max-width: 640px) {
  .pf-hero .ctas .btn { width: 100%; justify-content: space-between; }
}
