/* Stowe Holdings: enterprise concept pages (enterprise-classic / -balanced / -colour.html).
   One stylesheet for all three; the palette is picked by <html data-palette>. */
/* =========================================================
   Tokens
   ========================================================= */
:root {
  --ink: #0b1626;          /* midnight: primary dark */
  --ink-2: #111f33;        /* raised dark surface */
  --ink-3: #1a2b44;        /* dark hairline-adjacent */
  --slate: #3c4a5e;        /* body text on white */
  --mute: #6b778a;         /* secondary text */
  --line: #dde2ea;         /* 1px rules on light */
  --line-dk: rgba(255, 255, 255, 0.12); /* 1px rules on dark */
  --paper: #ffffff;
  --mist: #f4f6f9;         /* alternate light section */
  --accent: #1f5bff;       /* electric cobalt: interactive + primary CTA only */
  --accent-hi: #3d74ff;
  --accent-ink: #ffffff;
  --ok: #18a058;
  /* Stowe brand colours, used for supporting colour (never for buttons) */
  --gold: #d8b979;
  --gold-ink: #94712d;
  --teal: #2a9d8f;
  --teal-lt: #75b9b0;
  --teal-ink: #1f7a6f;
  --grad: linear-gradient(90deg, #d8b979, #75b9b0);
  --grad-deep: linear-gradient(90deg, #b8944f, #2a9d8f);
  --util: 38px;

  --edge: clamp(20px, 4vw, 120px);              /* even side margin at every width */
  --wrap: min(calc(100vw - 2 * var(--edge)), 2200px);
  --gut: clamp(20px, 2vw, 40px);                 /* grid gutter */
  --sec: clamp(72px, 9vw, 152px);                /* section vertical padding */
  --head: 72px;

  --f: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
/* scroll-reveals slide in from the right; don't let them widen the page (phones zoom out to fit it) */
main, footer { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--accent); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: var(--wrap); margin: 0 auto; }

/* Type scale: deliberate, 1.25-ish steps */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--grad); }
.eyebrow b { font-weight: 500; color: var(--ink); }
.h2 { font-size: clamp(32px, 3.4vw, 60px); font-weight: 500; letter-spacing: -0.03em; }
.h2 em { font-style: normal; color: var(--mute); }
.lead { font-size: clamp(17px, 1.15vw, 20px); line-height: 1.6; color: var(--slate); max-width: 38em; }

/* Section header: Swiss split, label left / statement right */
.sec { padding: var(--sec) 0; }
.sec-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gut);
  padding-bottom: clamp(40px, 4vw, 72px);
}
.sec-head .eyebrow { grid-column: 1 / span 3; align-self: start; padding-top: 0.6em; }
.sec-head .sec-title { grid-column: 4 / span 9; display: grid; gap: 24px; }

/* Buttons: sharp, flat, deliberate */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  min-height: 52px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 2px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.005em; text-decoration: none;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  cursor: pointer;
}
.btn .arr { transition: transform 0.18s; }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hi); }
.btn-line { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-line:hover { color: var(--accent); }
.on-dark .btn-line { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.on-dark .btn-line:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.06); }
.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--accent); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
}
.link:hover { border-bottom-color: currentColor; }

/* =========================================================
   Utility bar + header
   ========================================================= */
.util { background: var(--ink); color: #b7c1d1; font-size: 13px; }
.util .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.util a { color: #fff; text-decoration: none; }
.util a:hover { color: var(--accent-hi); }
.util-l, .util-r { display: flex; align-items: center; gap: 24px; }
.util-l span { color: var(--gold); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.dot { display: inline-block; width: 6px; height: 6px; margin-right: 8px; background: var(--ok); border-radius: 50%; vertical-align: middle; }

.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}
.hdr .wrap { display: flex; align-items: center; gap: 40px; height: var(--head); }
.brand { flex: none; display: block; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: stretch; height: 100%; gap: 0; margin-right: auto; }
.nav > a, .nav-trig {
  display: flex; align-items: center; gap: 6px; height: 100%; white-space: nowrap;
  padding: 0 clamp(10px, 0.9vw, 18px);
  border: 0; background: none; cursor: pointer;
  font-size: 14.5px; font-weight: 500; color: var(--ink); text-decoration: none;
  box-shadow: inset 0 -2px 0 transparent; transition: box-shadow 0.18s, color 0.18s;
}
.nav > a:hover, .nav-trig:hover, .nav-trig[aria-expanded="true"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.nav-trig svg { transition: transform 0.18s; }
.nav-trig[aria-expanded="true"] svg { transform: rotate(180deg); }
.hdr-act { display: flex; align-items: center; gap: 20px; }
.hdr-act .txt { font-size: 14.5px; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; }
.hdr-act .txt:hover { color: var(--accent); }
.hdr-act .btn { min-height: 44px; gap: 14px; white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 2px; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 1.5px; margin: 0 auto; background: var(--ink); position: relative; content: ""; }
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }

/* Mega panels: white, ruled, full width */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(11, 22, 38, 0.25);
  display: none;
}
.mega.open { display: block; }
.mega .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: auto; gap: 0; align-items: stretch; }
.mega-col { padding: 32px 32px 36px 0; border-right: 1px solid var(--line); }
.mega-col + .mega-col { padding-left: 32px; }
.mega-col h4 { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin-bottom: 14px; }
.mega-col a { display: block; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; }
.mega-col a:first-of-type { border-top: 0; }
.mega-col b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.mega-col small { display: block; font-size: 13px; color: var(--mute); }
.mega-col a:hover b { color: var(--accent); }
.soon { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); border: 1px solid var(--line); padding: 1px 5px; margin-left: 6px; vertical-align: 2px; }
.mega-feat { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 32px; background: var(--ink); color: #fff; text-decoration: none; position: relative; overflow: hidden; }
.mega-feat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.mega-feat > * { position: relative; }
.mega-feat em { font-family: var(--mono); font-style: normal; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #b7c1d1; }
.mega-feat b { font-size: 20px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.mega-feat span { font-size: 14px; font-weight: 600; color: #fff; }
.mega-feat:hover span { text-decoration: underline; }

/* Mobile sheet */
.sheet { display: none; }

/* =========================================================
   Hero / landing
   One screen: the story on the left, "What Stowe looks after" on the right
   (one set of slides, two layouts: html[data-hero="wide"|"portrait"], see
   hero-layout.js), the facts on one line, and the client logos as the foot.
   Rhythm: every vertical gap is a step of the same scale, capped by screen
   height so short laptops keep the logo strip in view.
   ========================================================= */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: #fff;
  display: flex; flex-direction: column;
  /* exactly the first screen (1px = header rule); no fixed floor, so short browser windows still
     end on the logo strip. Content that can't fit simply makes it taller. */
  min-height: calc(100svh - var(--util) - var(--head) - 1px);
}
/* architectural column grid drawn behind the content */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--line-dk) 1px, transparent 1px) calc(var(--edge)) 0 / calc((var(--wrap) + var(--gut)) / 12) 100% repeat-x;
  opacity: 0.35;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%);
  mask-image: linear-gradient(180deg, #000, transparent 80%);
}
/* soft light: behind the console, and low left */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(36% 50% at 78% 42%, var(--glow-a), transparent 70%),
    radial-gradient(34% 46% at 0% 100%, var(--glow-b), transparent 70%);
}
.hero-photo {
  position: absolute; z-index: -2; inset: 0;
  background: url("../../images/hero-forecourt.webp") center 40% / cover no-repeat;
  filter: var(--photo-filter, none);
  opacity: var(--photo-o, 1);
}
/* darker on the left behind the words, and at the foot behind the facts */
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 22, 38, 0.94) 0%, rgba(11, 22, 38, 0.82) 45%, rgba(11, 22, 38, 0.6) 100%),
    linear-gradient(180deg, rgba(11, 22, 38, 0) 55%, rgba(11, 22, 38, 0.85) 100%);
}
.hero-main { flex: 1; display: flex; flex-direction: column; }
.hero-in {
  flex: 1;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut);
  align-items: center;
  padding: clamp(14px, 2.4vh, 72px) 0 clamp(14px, 2.4vh, 64px);
}
/* wide: words on columns 1-7, the picture on 8-12. portrait: words on 1-6, the cards on 7-12
   (six columns so the headline keeps the same size and three lines as the wide layout) */
.hero-copy { grid-column: 1 / span 7; }
[data-hero="portrait"] .hero-copy { grid-column: 1 / span 6; }
.hero .eyebrow { color: #9aa7bb; flex-wrap: wrap; row-gap: 6px; }
.hero .eyebrow b { white-space: nowrap; }
.hero .eyebrow b { color: var(--gold); }
.hero h1 {
  margin-top: clamp(10px, 1.6vh, 24px);
  font-size: clamp(40px, min(5.4vw, 8vh), 120px);
  font-weight: 500; letter-spacing: -0.045em; line-height: 1;
  color: #fff;
}
.hero h1 span {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.hero .lead {
  margin-top: clamp(12px, 2vh, 30px);
  font-size: clamp(16px, min(1.35vw, 2.4vh), 23px); line-height: 1.5;
  color: #c3ccda; max-width: 34em;
}
.hero .lead b { color: #fff; font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: clamp(18px, 2.6vh, 40px); }
.hero-cta .btn { min-width: 200px; border-radius: 999px; padding: 0 24px; }
/* the hero's own buttons: a warm gold pill, and a glass pill */
.hero-cta .btn-primary {
  background: linear-gradient(180deg, #e6c88d, #c9a35f); color: var(--ink);
  box-shadow: 0 12px 32px -10px rgba(216, 185, 121, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.hero-cta .btn-primary:hover { background: linear-gradient(180deg, #f0d59f, #d4b06c); }
.hero-cta .btn-line {
  background: rgba(61, 116, 255, 0.22); border-color: rgba(143, 176, 255, 0.45); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 12px 32px -14px rgba(61, 116, 255, 0.7);
}
.hero-cta .btn-line:hover { background: rgba(61, 116, 255, 0.36); border-color: #8fb0ff; color: #fff; }

/* partner colour keys (used by the Integrations section) */
.pay { --c: var(--cat-pay); }
.fc { --c: var(--cat-fc); }
.key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #8796ad; }
.key span { display: inline-flex; align-items: center; gap: 6px; }
.key span::before { content: ""; width: 7px; height: 7px; background: var(--c); }

/* =========================================================
   What Stowe looks after (.show): seven slides, two layouts
   ========================================================= */
.show { grid-column: 8 / span 5; position: relative; min-width: 0; }
[data-hero="portrait"] .show { grid-column: 7 / span 6; }
.show-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.show-label { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #c3ccda; }
.show-label::before { content: ""; width: 24px; height: 2px; background: var(--grad); }
.show-ctl { display: flex; align-items: center; gap: 6px; }
.show-step { width: 34px; height: 28px; padding: 0; border: 1px solid var(--line-dk); border-radius: 2px; background: transparent; color: #c3ccda; font-size: 14px; line-height: 1; cursor: pointer; }
.show-step:hover { border-color: #fff; color: #fff; }
.show-view { position: relative; overflow: hidden; }
.show-item figure { position: relative; overflow: hidden; background: var(--ink-2); }
.show-item img { width: 100%; height: 100%; object-fit: cover; }
.show-txt { display: grid; gap: 8px; align-content: start; }
.show-txt small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--gold-ink); }
.show-t { font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
.show-d { line-height: 1.55; color: var(--slate); }
.show-txt .link { justify-self: start; }
.go-w, [data-hero="portrait"] .go-w { display: none; }
[data-hero="portrait"] .go-p { display: inline; }
[data-hero="wide"] .go-w { display: inline; }
[data-hero="wide"] .go-p { display: none; }
/* progress: a bar under each picture fills while it's showing */
.show-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.25); }
.show-bar i { display: block; width: 0; height: 100%; background: var(--grad); }
.show-item.on .show-bar i { width: 100%; }
.show.running .show-item.on .show-bar i { animation: tab-fill var(--dur, 5s) linear both; }
@keyframes tab-fill { from { width: 0; } to { width: 100%; } }
/* seven short segments: tabs and progress (wide layout). Done ones turn gold, the current one fills white. */
.show-seg { display: flex; gap: 6px; align-items: center; }
.show-seg button { position: relative; width: 28px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.show-seg button::before, .show-seg button::after { content: ""; position: absolute; left: 0; top: 10px; height: 4px; border-radius: 2px; }
.show-seg button::before { right: 0; background: rgba(255, 255, 255, 0.28); transition: background 0.2s; }
.show-seg button.done::before { background: var(--gold); }
.show-seg button::after { width: 0; background: #fff; }
.show-seg button:hover::before { background: rgba(255, 255, 255, 0.6); }
.show-seg button[aria-pressed="true"]::after { width: 100%; }
.show.running .show-seg button[aria-pressed="true"]::after { animation: tab-fill var(--dur, 5s) linear both; }
.show-seg button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Option 1, "wide" (the mock-up): a square picture, its title and an Explore pill beneath,
   then the segments with a small pause button */
[data-hero="wide"] .show { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; row-gap: 14px; }
[data-hero="wide"] .show-view { grid-column: 1 / -1; grid-row: 1; }
[data-hero="wide"] .show-seg { grid-column: 1; grid-row: 2; }
[data-hero="wide"] .show-top { grid-column: 2; grid-row: 2; margin: 0; }
[data-hero="wide"] .show-label, [data-hero="wide"] .show-step { display: none; }
[data-hero="wide"] .show-track { display: grid; }
[data-hero="wide"] .show-item { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.7s, visibility 0.7s; }
[data-hero="wide"] .show-item.on { opacity: 1; visibility: visible; }
/* the cap leaves room for the header, the facts bar and the logo strip, so the logos stay on the
   first screen (measured: 1536x864 through 2560x1440) */
[data-hero="wide"] .show-item figure { aspect-ratio: 1 / 1; max-height: min(52vh, calc(72svh - 270px)); width: 100%; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8); }
[data-hero="wide"] .show-item img { transform: scale(1.04); transition: transform 6s linear; }
[data-hero="wide"] .show-item.on img { transform: scale(1); }
[data-hero="wide"] .show-bar, [data-hero="wide"] .show-txt small, [data-hero="wide"] .show-d { display: none; }
[data-hero="wide"] .show-txt { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; }
[data-hero="wide"] .show-t { color: #fff; font-size: clamp(22px, 1.9vw, 32px); font-weight: 400; letter-spacing: -0.01em; }
[data-hero="wide"] .show-txt .link {
  flex: none; gap: 12px; padding: 10px 22px; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 999px;
  color: #fff; font-size: clamp(15px, 1.15vw, 18px); font-weight: 500;
}
[data-hero="wide"] .show-txt .link:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Option 2, "portrait": a strip of portrait cards; the first is the one showing */
[data-hero="portrait"] .show-seg { display: none; }
[data-hero="portrait"] .show-track { --gap: 16px; display: flex; gap: var(--gap); transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
[data-hero="portrait"] .show-item { flex: 0 0 calc((100% - 2 * var(--gap)) / 3); min-width: 0; background: #fff; }
/* a little shorter than 3:4, and capped by the screen height, so the logo strip stays on the first screen */
[data-hero="portrait"] .show-item figure { aspect-ratio: 4 / 5; max-height: min(40vh, calc(68svh - 340px)); width: 100%; }
[data-hero="portrait"] .show-item:not(.on) img { opacity: 0.72; transition: opacity 0.4s; }
[data-hero="portrait"] .show-item:not(.on):hover img { opacity: 1; }
[data-hero="portrait"] .show-txt { padding: 16px 18px 20px; }
[data-hero="portrait"] .show-t { font-size: 18px; }
[data-hero="portrait"] .show-d { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
[data-hero="portrait"] .show-txt .link { font-size: 14px; margin-top: 4px; }

.mbtn {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 2px; background: #fff; cursor: pointer;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate);
}
.mbtn:hover { border-color: var(--accent); color: var(--accent); }
.mbtn::before { content: ""; width: 8px; height: 9px; border-left: 2.5px solid currentColor; border-right: 2.5px solid currentColor; box-sizing: border-box; }
.mbtn[aria-pressed="true"]::before { border: 0; border-left: 8px solid currentColor; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; width: 0; height: 0; }
.on-dark .mbtn { background: transparent; border-color: var(--line-dk); color: #c3ccda; }
.on-dark .mbtn:hover { border-color: #fff; color: #fff; }


/* Facts on one line: a glass bar along the base of the hero. Every item has a left rule; the bar
   clips the rule of whichever item starts a line, so it stays tidy when small screens wrap it. */
.ledger {
  display: flex; flex-wrap: wrap; overflow: hidden;
  margin-bottom: clamp(16px, 2.4vh, 32px);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 16px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.ledger div {
  flex: 1 1 0; min-width: max-content; display: flex; flex-direction: column; gap: 6px;
  margin-left: -1px; padding: clamp(12px, 1.6vh, 22px) clamp(16px, 1.6vw, 32px);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.ledger b { font-size: clamp(24px, min(2.2vw, 4vh), 42px); font-weight: 600; letter-spacing: -0.02em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger b i { font-style: normal; color: var(--gold); }
.ledger small { display: flex; align-items: center; font-size: clamp(13.5px, 1.1vw, 18px); font-weight: 300; color: #c3ccda; white-space: nowrap; }

/* Trusted by: white strip that closes the first screen */
.trust { background: #fff; color: var(--ink); }
.trust .wrap { display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: center; gap: var(--gut); min-height: clamp(60px, 8.5vh, 100px); }
.trust p { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-ink); }
.trust-rail { min-width: 0; }
.trust ul { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: clamp(12px, 2vh, 24px) 0; }
.trust img { width: auto; height: calc(var(--h, 34px) * var(--ls, 1)); max-width: 130px; object-fit: contain; filter: var(--logo-filter, none); opacity: var(--logo-op, 1); transition: transform 0.2s, filter 0.2s, opacity 0.2s; }
.trust li:hover img { filter: none; opacity: 1; transform: scale(1.08); }
.trust li[aria-hidden="true"] { display: none; } /* marquee copies (enterprise.js), phones and tablets only */
@keyframes trust-roll { to { transform: translateX(-50%); } }
#who-we-serve { border-top: 1px solid var(--line); }

/* landing at other sizes */
@media (max-width: 1100px) {
  /* Stacked: the words fill the first screen and the logo strip closes it, then the pictures
     and the facts follow. The wrappers step aside so the four parts can be reordered. */
  .hero { min-height: 0; --trust-h: 76px; }
  .hero-main, .hero-in { display: contents; }
  .hero-copy, .show, .ledger { width: var(--wrap); margin-left: calc((100% - var(--wrap)) / 2); }
  .hero-copy {
    order: 1; display: flex; flex-direction: column; justify-content: center;
    min-height: calc(100svh - var(--util) - var(--head) - 1px - var(--trust-h));
    padding: clamp(20px, 4svh, 56px) 0;
  }
  .hero h1 { font-size: clamp(40px, min(7vw, 7.5svh), 76px); }
  .trust { order: 2; }
  .show { order: 3; margin-top: 40px; }
  .ledger { order: 4; margin-top: 32px; }
  [data-hero="wide"] .show { max-width: 560px; }
  [data-hero="wide"] .show-item figure { max-height: none; }
  [data-hero="portrait"] .show-item { flex-basis: calc((100% - var(--gap)) / 2); }
  [data-hero="portrait"] .show-item figure { max-height: none; }
  .ledger div { flex-basis: 25%; }
  /* logos: one rolling row beside the label */
  .trust .wrap { grid-template-columns: auto minmax(0, 1fr); gap: 20px; min-height: var(--trust-h); }
  .trust-rail {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
  }
  .trust ul { flex-wrap: nowrap; justify-content: flex-start; gap: 0; width: max-content; padding: 0; animation: trust-roll 45s linear infinite; }
  .trust-rail:hover ul { animation-play-state: paused; }
  .trust li { flex: none; padding-right: 36px; }
  .trust li[aria-hidden="true"] { display: flex; }
  .trust img { height: calc(var(--h, 34px) * 0.75); max-width: none; }
}
@media (max-width: 1100px) and (prefers-reduced-motion: reduce) {
  .trust ul { animation: none; }
  .trust-rail { overflow-x: auto; }
  .trust li[aria-hidden="true"] { display: none; }
}
@media (max-width: 720px) {
  .hero h1 { font-size: clamp(40px, 11vw, 60px); }
  .hero-cta .btn { flex: 1 1 100%; min-width: 0; }
  .show-seg button { height: 32px; }
  .show-seg button::before, .show-seg button::after { top: 14px; }
  /* portrait: one card and a peek of the next */
  [data-hero="portrait"] .show-item { flex-basis: 78%; }
  .ledger { display: grid; grid-template-columns: 1fr 1fr; }
  .ledger div { min-width: 0; margin-top: -1px; border-top: 1px solid rgba(255, 255, 255, 0.16); padding: 16px; }
  .trust .wrap { gap: 14px; }
  .trust p { font-size: 10.5px; }
}
/* short phones (iPhone SE and smaller): tighten the words so the logo strip still closes the first screen */
@media (max-width: 720px) and (max-height: 700px) {
  .hero-copy { padding: 14px 0; }
  .hero h1 { font-size: 35px; }
  .hero .lead { margin-top: 12px; font-size: 15px; line-height: 1.5; }
  .hero-cta { margin-top: 16px; gap: 10px; }
  .hero-cta .btn { min-height: 46px; }
  .hero .eyebrow span { display: none; }
}
@media (max-width: 720px) and (max-height: 600px) {
  .hero-copy { padding: 10px 0; }
  .hero h1 { font-size: 29px; }
  .hero .lead { font-size: 14px; }
  .hero-cta .btn { min-height: 42px; }
}
/* short laptop screens: keep the whole landing, logos included, on the first screen */
@media (min-width: 1101px) and (max-height: 800px) {
  :root { --util: 0px; }
  .util { display: none; }
  .trust { --ls: 0.82; }
  .btn { min-height: 46px; }
  .hero .lead { line-height: 1.45; }
  [data-hero="wide"] .show-item figure { max-height: min(44vh, calc(100svh - 420px)); }
  /* portrait: two lines of card text, so the pictures keep more of their height */
  [data-hero="portrait"] .show-txt { gap: 6px; padding: 12px 16px 14px; }
  [data-hero="portrait"] .show-d { -webkit-line-clamp: 2; }
  [data-hero="portrait"] .show-item figure { max-height: min(40vh, calc(68svh - 305px)); }
}
/* very short desktop windows (a 768px or 720px laptop screen once the browser bars are counted):
   a compact hero so the logo strip still closes the first screen */
@media (min-width: 1101px) and (max-height: 720px) {
  .hero-in { padding: 10px 0; }
  .hero h1 { margin-top: 10px; font-size: clamp(34px, min(5.4vw, 7.4vh), 120px); }
  .hero .lead { margin-top: 12px; font-size: 15px; line-height: 1.5; }
  .hero-cta { margin-top: 16px; }
  .hero-cta .btn { min-height: 42px; }
  .ledger { margin-bottom: 10px; border-radius: 12px; }
  .ledger div { gap: 4px; padding: 9px 18px; }
  .ledger b { font-size: 22px; }
  .ledger small { font-size: 12.5px; }
  .trust { --ls: 0.7; }
  .trust .wrap { min-height: 54px; }
  .trust ul { padding: 7px 0; }
  .show-top { margin-bottom: 8px; }
  [data-hero="wide"] .show { row-gap: 8px; }
  [data-hero="wide"] .show-txt { padding-top: 10px; }
  [data-hero="wide"] .show-item figure { max-height: calc(100svh - 360px); }
  [data-hero="portrait"] .show-d { display: none; }
  [data-hero="portrait"] .show-item figure { max-height: calc(100svh - 395px); }
}

/* =========================================================
   Who we serve: three ruled columns
   ========================================================= */
.serve-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.serve-c { display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; background: #fff; transition: background 0.2s; }
.serve-c:hover { background: var(--mist); }
.serve-c figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); }
.serve-c figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.serve-c:hover figure img { transform: scale(1.03); }
.serve-c { position: relative; }
.serve-c::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--c); z-index: 1; }
.serve-c:nth-child(1) { --c: var(--gold); }
.serve-c:nth-child(2) { --c: var(--teal); }
.serve-c:nth-child(3) { --c: var(--accent); }
.serve-b { padding: clamp(24px, 2.2vw, 40px); display: flex; flex-direction: column; gap: 14px; flex: 1; }
.serve-b .idx { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--c); }
.serve-c:nth-child(1) .idx { color: var(--gold-ink); }
.serve-b h3 { font-size: clamp(22px, 1.6vw, 30px); font-weight: 500; }
.serve-b p { color: var(--slate); }
.serve-b .link { margin-top: auto; padding-top: 16px; }

/* =========================================================
   Services: bento grid with 1px rules
   ========================================================= */
.mist { background: var(--mist); }
.bento {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.cell { background: #fff; padding: clamp(28px, 2.4vw, 44px); display: flex; flex-direction: column; gap: 18px; min-width: 0; position: relative; }
.cell-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.cell .num { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--cn, var(--c)); letter-spacing: 0.08em; }
.cell::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); z-index: 1; }
.c-a { --c: var(--gold); }
.c-b { --c: var(--accent); }
.c-c { --c: var(--teal); --cn: var(--teal-ink); }
.c-d { --c: var(--gold); --cn: var(--gold-ink); }
.c-e { --c: var(--accent); }
.c-f { --c: var(--grad-deep); --cn: var(--teal-ink); }
.cell .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.cell h3 { font-size: clamp(22px, 1.7vw, 32px); font-weight: 500; }
.cell ul { display: grid; gap: 0; border-top: 1px solid var(--line); }
.cell li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink); }
.cell li::after { content: "—"; color: #c3cad5; }
.cell .links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: auto; padding-top: 8px; }
.c-a { grid-column: span 7; }
.c-b { grid-column: span 5; }
.c-c, .c-d, .c-e { grid-column: span 4; }
.c-f { grid-column: span 12; }
/* the first cell carries a photo beside the list */
.c-a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(24px, 2.4vw, 44px); }
.c-a .c-body { display: flex; flex-direction: column; gap: 18px; }
.c-a figure { margin: calc(-1 * clamp(28px, 2.4vw, 44px)); margin-left: 0; min-height: 280px; }
.c-a figure img { width: 100%; height: 100%; object-fit: cover; }
/* the wide closing cell sets its list horizontally */
.c-f { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gut); align-items: start; }
.c-f .c-body { grid-column: span 4; display: flex; flex-direction: column; gap: 18px; }
.c-f ul { grid-column: span 8; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 0; border-left: 1px solid var(--line); }
.c-f li { flex-direction: column; justify-content: flex-start; padding: 0 20px; border-bottom: 0; border-right: 1px solid var(--line); min-height: 96px; }
.c-f li::after { content: none; }
.c-f li span { font-family: var(--mono); font-size: 11px; color: var(--mute); }
.cell-dark { background: var(--ink); color: #c3ccda; }
.cell-dark h3 { color: #fff; }
.cell-dark ul { border-color: var(--line-dk); }
.cell-dark li { color: #fff; border-color: var(--line-dk); }
.cell-dark li::after { color: #4a5a72; }
.cell-dark .link { color: #8fb0ff; }

/* =========================================================
   Integrations: billboard headline + partner grid around the Stowe hub
   ========================================================= */
.ix { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #c3ccda; }
.ix::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 60% at 78% 50%, rgba(31, 91, 255, 0.18), transparent 70%),
    radial-gradient(30% 50% at 70% 60%, rgba(42, 157, 143, 0.16), transparent 70%);
}
.ix-g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gut); align-items: center; }
.ix-copy { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 26px; }
.ix .eyebrow { color: var(--teal-lt); }
.ix h2 { color: #fff; font-size: clamp(34px, 3.1vw, 58px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.14; }
.ix h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
/* the cobalt box that rotates through the partner names */
.swap {
  position: relative; display: inline-grid; box-sizing: content-box;
  height: 1.18em; padding: 0 0.22em; margin-right: 0.04em;
  background: var(--accent); color: #fff; overflow: hidden; vertical-align: bottom;
  transition: width 0.45s cubic-bezier(0.7, 0, 0.3, 1);
}
.swap-w { grid-area: 1 / 1; display: block; line-height: 1.18em; white-space: nowrap; justify-self: start; }
.swap-w.out { animation: sw-out 0.45s cubic-bezier(0.7, 0, 0.3, 1) forwards; }
.swap-w.in { animation: sw-in 0.45s cubic-bezier(0.7, 0, 0.3, 1) both; }
@keyframes sw-out { to { transform: translateY(-110%); } }
@keyframes sw-in { from { transform: translateY(110%); } }
.ix .lead { color: #c3ccda; }
.ix-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.ix-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

.reg { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-dk); border-left: 1px solid var(--line-dk); }
.reg > li {
  position: relative; min-height: clamp(104px, 8.4vw, 160px);
  padding: 18px 20px; border-right: 1px solid var(--line-dk); border-bottom: 1px solid var(--line-dk);
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  transition: background 0.3s; cursor: default; outline-offset: -3px;
}
.reg > li::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--c); opacity: 0.85; }
.reg b { font-size: clamp(18px, 1.45vw, 28px); font-weight: 500; color: #fff; letter-spacing: -0.01em; }
.reg span { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #8796ad; }
.reg span::before { content: ""; width: 7px; height: 7px; background: var(--c); }
.reg > li.on { background: var(--accent); }
.reg > li.on::after { background: #fff; }
.reg > li.on span { color: #dbe5ff; }
.reg > li.on span::before { background: #fff; }
.reg .hub {
  align-items: center; justify-content: center; text-align: center; gap: 6px;
  background: linear-gradient(140deg, #14324d, #0d2034);
  box-shadow: inset 0 0 0 1px rgba(216, 185, 121, 0.45);
}
.reg .hub::after { background: var(--grad); }
.reg .hub b { font-weight: 700; letter-spacing: 0.16em; }
.reg .hub small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--gold); }
.reg .more { grid-column: 1 / -1; min-height: 0; padding: 0; }
.reg .more::after { content: none; }
.reg .more a { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 20px; color: var(--gold); text-decoration: none; font-weight: 600; }
.reg .more a:hover { background: rgba(216, 185, 121, 0.1); }
.reg .more a span { font: inherit; font-size: 18px; letter-spacing: 0; text-transform: none; color: inherit; }
.reg .more a span::before { content: none; }

/* =========================================================
   Trust layer: heritage
   ========================================================= */
.heritage { position: relative; background: #fff; }
.her-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gut); align-items: end; padding-bottom: clamp(48px, 5vw, 88px); }
.her-top .big {
  grid-column: 1 / span 7;
  font-size: clamp(56px, 8.4vw, 180px); font-weight: 400; letter-spacing: -0.05em; line-height: 0.88; color: var(--ink);
}
.g { font-style: normal; background: var(--grad-deep); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.her-top .big span { display: block; font-size: 0.32em; letter-spacing: -0.03em; line-height: 1.1; margin-top: 0.4em; color: var(--ink); font-weight: 500; }
.her-top .side { grid-column: 9 / span 4; display: grid; gap: 24px; }
.her-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--grad-deep) top / 100% 2px no-repeat; padding-top: 2px; border-bottom: 1px solid var(--line); }
.her-figs div { padding: 28px 24px 32px 0; }
.her-figs div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.her-figs b { display: block; font-size: clamp(34px, 3vw, 56px); font-weight: 400; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.her-figs small { display: block; margin-top: 12px; font-size: 14px; color: var(--mute); max-width: 18em; }

/* timeline */
.tl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: clamp(48px, 5vw, 88px); position: relative; }
.tl::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.tl li { position: relative; padding: 36px 24px 0 0; }
.tl li::before { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; background: var(--c, var(--gold)); }
.tl li:nth-child(2) { --c: var(--gold); }
.tl li:nth-child(3) { --c: var(--teal); }
.tl li:nth-child(4) { --c: var(--teal); }
.tl li:last-child { --c: var(--accent); }
.tl b { color: var(--c) !important; }
.tl li:first-child b, .tl li:nth-child(2) b { color: var(--gold-ink) !important; }
.tl b { display: block; font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--ink); letter-spacing: 0.04em; }
.tl h4 { margin-top: 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.tl p { margin-top: 8px; font-size: 14.5px; color: var(--slate); }

/* footprint */
.foot-print { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gut); margin-top: clamp(56px, 6vw, 104px); border: 1px solid var(--line); }
.fp-img { grid-column: 1 / span 5; position: relative; min-height: 320px; }
.fp-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fp-img figcaption { position: absolute; left: 0; bottom: 0; padding: 10px 16px; background: #fff; border-top: 3px solid var(--gold); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.fp-body { grid-column: 6 / span 7; padding: clamp(28px, 3vw, 56px) clamp(28px, 3vw, 56px) clamp(28px, 3vw, 56px) 0; display: flex; flex-direction: column; gap: 24px; }
.fp-body h3 { font-size: clamp(24px, 2vw, 36px); font-weight: 500; }
.countries { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.countries li { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14.5px; font-weight: 500; color: var(--ink); }
.countries img { width: 22px; height: 15px; object-fit: cover; outline: 1px solid var(--line); }
.countries .hq small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--gold-ink); margin-left: auto; }

/* Leadership band */
.lead-band { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; background: var(--ink); color: #c3ccda; }
.lead-band figure { grid-column: 1 / span 7; margin: 0; min-height: 420px; position: relative; }
.lead-band figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lead-band div { grid-column: 8 / span 5; padding: clamp(36px, 4vw, 80px); display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.lead-band .eyebrow { color: var(--gold); }
.lead-band h2 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.lead-band h2 { color: #fff; font-size: clamp(28px, 2.6vw, 48px); font-weight: 500; letter-spacing: -0.03em; }

/* =========================================================
   Support: Fix-it videos + Academy
   ========================================================= */
.fix-g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gut); }
.fix-intro { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 28px; }
.fix-intro .btns { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.vids { grid-column: 5 / span 8; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.vid { background: #fff; text-decoration: none; display: flex; flex-direction: column; }
.vid figure { margin: 0; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.vid figure img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: transform 0.5s; }
.vid:hover figure img { transform: scale(1.04); }
.vid figure span { position: absolute; left: 0; bottom: 0; padding: 6px 10px; background: var(--ink); color: var(--gold); border-top: 2px solid var(--c, var(--teal)); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; }
.vid figure i { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; background: var(--accent); display: grid; place-items: center; }
.vid figure i::before { content: ""; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.vid div { padding: 20px 22px 24px; display: grid; gap: 6px; }
.vid b { font-size: 17px; font-weight: 600; color: var(--ink); }
.vid small { font-size: 13.5px; color: var(--mute); }

/* =========================================================
   Compliance: four-column ruled register
   ========================================================= */
.comp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--grad-deep) top / 100% 2px no-repeat; padding-top: 2px; }
.comp li { padding: 32px 28px 36px 0; display: flex; flex-direction: column; gap: 14px; }
.comp li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.comp .st { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-ink); }
.comp .st::before { content: ""; width: 14px; height: 14px; border: 1px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 6px 6px no-repeat; }
.comp h3 { font-size: 20px; font-weight: 600; }
.comp p { font-size: 15px; }
.comp-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 0; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.comp-foot p { color: var(--ink); font-weight: 500; }

/* =========================================================
   News
   ========================================================= */
.news-g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.news-c { background: #fff; text-decoration: none; display: flex; flex-direction: column; }
.news-c:first-child { grid-column: span 6; grid-row: span 2; }
.news-c:not(:first-child) { grid-column: span 3; }
.news-c figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); }
.news-c:first-child figure { aspect-ratio: 16 / 9; }
.news-c figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.news-c:hover figure img { transform: scale(1.03); }
.news-c div { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-meta { display: flex; gap: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.news-meta b { color: var(--accent); font-weight: 500; }
.news-meta b.m { color: var(--gold-ink); }
.news-meta b.p { color: var(--teal-ink); }
.news-c h3 { font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.news-c:first-child h3 { font-size: clamp(24px, 2vw, 34px); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
.news-c p { font-size: 14.5px; }
.news-c:not(:first-child) p { display: none; }
.news-c .link { margin-top: auto; padding-top: 8px; }
.news-c:hover h3 { color: var(--accent); }

/* =========================================================
   Contact
   ========================================================= */
.contact { background: var(--ink); color: #c3ccda; }
.contact .h2 { color: #fff; }
.contact .eyebrow { color: var(--gold); }
.contact .lead { color: #c3ccda; }
.ct-g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gut); }
.ct-info { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 32px; }
.ct-list { border-top: 1px solid var(--line-dk); }
.ct-list a, .ct-list div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-dk); text-decoration: none; }
.ct-list span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #6f7d93; padding-top: 4px; }
.ct-list b { font-size: 18px; font-weight: 500; color: #fff; }
.ct-list small { display: block; font-size: 13.5px; color: #9aa7bb; }
.ct-list a:hover b { color: #8fb0ff; }
.ct-portal { border: 1px solid var(--line-dk); padding: 20px 22px; font-size: 15px; }
.ct-portal a { color: #8fb0ff; font-weight: 600; text-decoration: none; }
.ct-portal a:hover { text-decoration: underline; }

.form { grid-column: 7 / span 6; background: #fff; color: var(--ink); padding: clamp(28px, 3vw, 52px); border-radius: 2px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-content: start; }
.form h3 { grid-column: 1 / -1; font-size: 22px; font-weight: 600; }
.fld { display: grid; gap: 8px; }
.fld.full { grid-column: 1 / -1; }
.fld label { font-size: 13px; font-weight: 600; color: var(--ink); }
.fld label small { font-weight: 400; color: var(--mute); }
.fld input, .fld select, .fld textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid #c6cdd8; border-radius: 2px; background: #fff;
  font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.fld textarea { min-height: 120px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 91, 255, 0.15); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; border-top: 1px solid var(--line); }
.form-foot p { font-size: 13px; color: var(--mute); }
.form-foot p a { color: var(--accent); }
.form-msg { grid-column: 1 / -1; font-size: 14px; padding: 12px 14px; border-left: 2px solid var(--accent); background: #eef3ff; color: var(--ink); }
.form-msg[hidden] { display: none; }

/* =========================================================
   Footer
   ========================================================= */
.cta-band { background: var(--cta-bg); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; min-height: 120px; padding: 32px 0; }
.cta-band p { font-size: clamp(22px, 1.8vw, 32px); font-weight: 500; letter-spacing: -0.02em; }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-w { background: #fff; color: var(--ink); }
.cta-band .btn-w:hover { background: var(--ink); color: #fff; }
.cta-band .btn-o { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.cta-band .btn-o:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

.ftr { background: #070f1b; color: #9aa7bb; font-size: 14.5px; border-top: 3px solid transparent; border-image: var(--grad) 1; }
.ftr-cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gut); padding: clamp(56px, 5vw, 96px) 0 48px; }
.ftr-brand { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 20px; }
.ftr-brand img { width: 180px; height: auto; }
.ftr-brand p { max-width: 26em; }
.ftr-col { grid-column: span 2; }
.ftr-col.wide { grid-column: span 4; }
.ftr h3 { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.ftr li + li { margin-top: 10px; }
.ftr a { color: #dfe5ee; text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr-loc { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line-dk); }
.ftr-loc div { padding: 24px 20px 28px 0; font-size: 13.5px; line-height: 1.55; }
.ftr-loc div + div { padding-left: 20px; border-left: 1px solid var(--line-dk); }
.ftr-loc b { display: block; margin-bottom: 6px; color: #fff; font-weight: 600; font-size: 14px; }
.ftr-note { padding: 16px 0; border-top: 1px solid var(--line-dk); font-size: 13px; }
.ftr-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 20px 0 28px; border-top: 1px solid var(--line-dk); font-size: 13px; }
.ftr-bot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1280px) {
  .nav > a, .nav-trig { padding: 0 8px; font-size: 14px; }
  .hdr-act .txt { display: none; }
  .hdr .wrap { gap: 24px; }
  .c-a, .c-b { grid-column: span 6; }
  .c-a { grid-template-columns: 1fr; }
  .c-a figure { display: none; }
  .news-c:first-child { grid-column: span 12; grid-row: auto; }
  .news-c:not(:first-child) { grid-column: span 6; }
  .ftr-loc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ftr-loc div:nth-child(4) { padding-left: 0; border-left: 0; }
  .ftr-loc div:nth-child(n+4) { border-top: 1px solid var(--line-dk); }
}
@media (max-width: 1100px) {
  .nav, .hdr-act .txt { display: none; }
  .burger { display: block; }
  .hdr .wrap { justify-content: space-between; }
  .hdr-act { margin-left: auto; }
  .sheet.open {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100vh - var(--head)); overflow-y: auto;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--edge) 32px;
  }
  .sheet h4 { margin: 20px 0 6px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
  .sheet a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
  .sheet .btn { margin-top: 20px; width: 100%; color: #fff; border: 0; }

  .sec-head .eyebrow, .sec-head .sec-title { grid-column: 1 / -1; }
  .serve-g { grid-template-columns: 1fr 1fr; }
  .c-c, .c-d, .c-e { grid-column: span 6; }
  .c-e { grid-column: span 12; }
  .c-f .c-body, .c-f ul { grid-column: 1 / -1; }
  .ix-copy, .reg { grid-column: 1 / -1; }
  .her-top .big, .her-top .side { grid-column: 1 / -1; }
  .her-figs { grid-template-columns: 1fr 1fr; }
  .her-figs div:nth-child(3) { padding-left: 0; border-left: 0; }
  .her-figs div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .tl { grid-template-columns: 1fr; gap: 0; }
  .tl::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .tl li { padding: 0 0 32px 40px; }
  .fp-img, .fp-body { grid-column: 1 / -1; }
  .fp-body { padding: 0 28px 32px; }
  .lead-band figure, .lead-band div { grid-column: 1 / -1; }
  .lead-band figure { min-height: 300px; }
  .fix-intro, .vids { grid-column: 1 / -1; }
  .fix-intro .btns { flex-direction: row; flex-wrap: wrap; }
  .comp { grid-template-columns: 1fr 1fr; }
  .comp li:nth-child(3) { padding-left: 0; border-left: 0; }
  .comp li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ct-info, .form { grid-column: 1 / -1; }
  .ftr-brand { grid-column: 1 / -1; }
  .ftr-col, .ftr-col.wide { grid-column: span 4; }
}
@media (max-width: 720px) {
  :root { --head: 64px; }
  .util-l span { display: none; }
  .util .wrap { justify-content: flex-end; }
  .util-r { gap: 16px; }
  .util-r a { white-space: nowrap; }
  .brand img { height: 34px; }
  .hdr-act .btn { display: none; }
  .serve-g { grid-template-columns: 1fr; }
  .c-a, .c-b, .c-c, .c-d, .c-e { grid-column: span 12; }
  .c-f ul { grid-template-columns: 1fr 1fr; border-left: 0; border-top: 1px solid var(--line); }
  .c-f li { min-height: 0; padding: 14px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .reg > li { min-height: 92px; padding: 14px 12px; }
  .reg b { font-size: 16px; }
  .reg span { font-size: 9px; letter-spacing: 0.06em; }
  .countries { grid-template-columns: 1fr 1fr; }
  .vids { grid-template-columns: 1fr; }
  .comp { grid-template-columns: 1fr; }
  .comp li, .comp li + li { padding: 24px 0; border-left: 0; }
  .comp li + li { border-top: 1px solid var(--line); }
  .news-c:not(:first-child) { grid-column: span 12; }
  .form { grid-template-columns: 1fr; }
  .ct-list a, .ct-list div { grid-template-columns: 1fr; gap: 4px; }
  .ftr-col, .ftr-col.wide { grid-column: 1 / -1; }
  .ftr-loc { grid-template-columns: 1fr; }
  .ftr-loc div, .ftr-loc div + div { padding: 18px 0; border-left: 0; }
  .ftr-loc div + div { border-top: 1px solid var(--line-dk); }
  /* paired buttons stack full width, and the footer's last line clears the Zola button */
  .ix-ctas .btn, .fix-intro .btns .btn, .cta-band .btns .btn { flex: 1 1 100%; }
  .ftr-bot { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* =========================================================
   Colour versions. Same layout, three palettes, set on <html data-palette>.
   - classic:  midnight + electric cobalt only. Greyscale client logos.
   - balanced: cobalt for actions, Stowe gold as the one brand accent.
   - colour:   cobalt + Stowe gold + teal, with gold-to-teal gradients (the default).
   ========================================================= */
:root {
  --cat-pay: var(--teal-lt);          /* partner category: payments & EFT */
  --cat-fc: var(--gold);              /* partner category: forecourt & retail */
  --glow-a: rgba(42, 157, 143, 0.26); /* hero light behind the console */
  --glow-b: rgba(216, 185, 121, 0.18);/* hero light low left */
  --cta-bg: linear-gradient(100deg, var(--accent) 0%, #1d6fd6 55%, var(--teal) 100%);
  --logo-filter: none;
  --logo-op: 1;
  --photo-filter: none;
}
html[data-palette="balanced"] {
  --teal: var(--accent);
  --teal-lt: #8fb0ff;
  --teal-ink: var(--accent);
  --grad: linear-gradient(90deg, #d8b979, #ead7ab);
  --grad-deep: linear-gradient(90deg, #a8823f, #c9a45c);
  --cat-pay: #8fb0ff;
  --glow-a: rgba(31, 91, 255, 0.16);
  --glow-b: rgba(216, 185, 121, 0.12);
  --cta-bg: var(--accent);
}
html[data-palette="classic"] {
  --gold: #9aa7bb;
  --gold-ink: #5d6b80;
  --teal: var(--accent);
  --teal-lt: #9aa7bb;
  --teal-ink: var(--slate);
  --grad: linear-gradient(90deg, #8796ad, #8796ad);
  --grad-deep: linear-gradient(90deg, #0b1626, #0b1626);
  --cat-pay: #8fb0ff;
  --cat-fc: #9aa7bb;
  --glow-a: rgba(31, 91, 255, 0.08);
  --glow-b: transparent;
  --cta-bg: var(--accent);
  --logo-filter: grayscale(1);
  --logo-op: 0.7;
  --photo-filter: grayscale(0.4);
}
.serve-c figure img, .c-a figure img, .lead-band figure img { filter: var(--photo-filter, none); }

/* Version switcher (for review only: delete this block and the .pal markup to remove it).
   Desktop: a slim vertical tab in the empty left margin, so it never covers content.
   Phones: a small bar at the bottom right. */
.pal {
  position: fixed; z-index: 45;
  display: flex; align-items: stretch;
  background: var(--ink); border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.6);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
}
.pal span { display: flex; align-items: center; padding: 10px; color: #8796ad; }
.pal a { display: flex; align-items: center; gap: 8px; padding: 10px; color: #c3ccda; text-decoration: none; border-inline-start: 1px solid rgba(255, 255, 255, 0.12); }
.pal a::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--sw); }
.pal a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.pal a[aria-current="page"] { background: var(--accent); color: #fff; }
@media (min-width: 721px) {
  .pal { left: 0; top: 50%; writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); border-left: 0; }
}
@media (max-width: 720px) {
  .pal { right: 8px; bottom: 8px; }
  .pal span { display: none; }
}

/* =========================================================
   Side nav ("On this page" rail). Fixed in the empty right margin on wide screens.
   Resting: short ticks + a gold scroll-progress line. Hover / keyboard focus: expands
   into a panel with mono numbers and section names. Turns dark over .on-dark sections
   and the footer (enterprise.js toggles .dk). Hidden below 1200px, where the margin is too narrow.
   ========================================================= */
.snav {
  --sn-fg: var(--ink); --sn-mute: #8a95a7; --sn-bg: rgba(255, 255, 255, 0.94); --sn-line: var(--line); --sn-on: var(--accent);
  position: fixed; z-index: 44; right: 0; top: 50%; transform: translateY(-50%);
  display: none; padding: 14px 0;
  border: 1px solid transparent; border-right: 0;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.snav.dk { --sn-fg: #fff; --sn-mute: #6f7d93; --sn-bg: rgba(11, 22, 38, 0.94); --sn-line: var(--line-dk); --sn-on: var(--accent-hi); }
.snav::before { /* track */
  content: ""; position: absolute; right: 0; top: 14px; bottom: 14px; width: 2px; background: var(--sn-line);
}
.snav::after { /* progress, set by --sn-p (0 to 1) */
  content: ""; position: absolute; right: 0; top: 14px; width: 2px;
  height: calc((100% - 28px) * var(--sn-p, 0)); background: var(--grad); background-size: 2px 100%;
}
.snav-k {
  margin: 0 0 6px; padding: 0 22px 0 18px; max-height: 0; overflow: hidden; opacity: 0;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
  transition: opacity 0.2s, max-height 0.25s;
}
.snav ol { list-style: none; margin: 0; padding: 0; }
.snav a {
  display: flex; align-items: center; justify-content: flex-end; gap: 0;
  height: 30px; padding: 0 14px 0 8px; transition: gap 0.25s, padding 0.25s; text-decoration: none; color: var(--sn-mute);
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
}
.snav a::after { content: ""; flex: none; width: 10px; height: 2px; background: currentColor; transition: width 0.25s, background 0.25s; }
.snav a i { font-style: normal; max-width: 0; overflow: hidden; opacity: 0; transition: opacity 0.2s, max-width 0.25s; }
.snav a span {
  max-width: 0; overflow: hidden; opacity: 0;
  font-family: var(--f); font-size: 13.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--sn-fg);
  transition: max-width 0.3s, opacity 0.2s;
}
.snav a[aria-current] { color: var(--sn-on); }
.snav a[aria-current]::after { width: 24px; }
.snav a:hover::after { width: 18px; }
.snav a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* expanded */
.snav:hover, .snav:focus-within { background: var(--sn-bg); border-color: var(--sn-line); box-shadow: 0 24px 48px -24px rgba(11, 22, 38, 0.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.snav:hover .snav-k, .snav:focus-within .snav-k { max-height: 20px; opacity: 1; }
.snav:hover a, .snav:focus-within a { gap: 12px; padding: 0 16px 0 18px; }
.snav:hover a i, .snav:focus-within a i { max-width: 3em; opacity: 1; }
.snav:hover a span, .snav:focus-within a span { max-width: 16em; opacity: 1; }
.snav:hover a:hover, .snav:focus-within a:hover { color: var(--sn-on); }
.snav:hover a:hover span, .snav:focus-within a:hover span, .snav a[aria-current] span { color: var(--sn-on); }
.snav.dk:hover a:not([aria-current]) span, .snav.dk:focus-within a:not([aria-current]) span { color: #dfe5ee; }

@media (min-width: 1200px) { .snav { display: block; } }
