/*
Theme Name: Arlo Fulfilment
Theme URI: https://arlofulfilment.co.uk/
Author: Digital Heroes
Author URI: https://digitalheroesco.com/
Description: Custom theme for Arlo Fulfilment, a family-run 3PL in Buckinghamshire. Every text, photo and list is edited in WP Admin under Website and Arlo Settings (needs the free Secure Custom Fields plugin).
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: Proprietary
Text Domain: arlo
*/

/* The design system below is the approved prototype stylesheet (prototype/home/style.css).
   The only changes: the hero poster reads --poster / --poster-m (set from WP Admin), and the
   WordPress additions at the end of the file. */

:root {
  --bg: #0b0c0b;
  --bg-2: #121311;
  --ink: #ffffff;
  --ink-dim: rgba(255,255,255,.72);
  --ink-faint: rgba(255,255,255,.45);
  --card: rgba(26,27,25,.92);
  --line: rgba(255,255,255,.14);
  --accent: #869670;        /* sage, brand accent on dark (client 28 Oct, close to #869670) */
  --accent-deep: #5C6B47;   /* accent for text on light */
  --paper: #f3f3ef;
  --paper-2: #e9e9e3;
  --paper-ink: #111210;
  --paper-dim: #a3a39b;
  --paper-line: rgba(0,0,0,.1);
  --radius: 6px;
  --radius-lg: 14px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

/* ---------- Icons ----------
   Font Awesome Free 6.5.2 solid glyphs (icons CC BY 4.0, fontawesome.com), drawn as CSS masks in currentColor.
   Markup keeps <i class="fa-solid fa-NAME">; only these 7 are defined, so add a line here for any new icon. */
:root {
  --i-arrow-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z'/%3E%3C/svg%3E");
  --i-arrow-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z'/%3E%3C/svg%3E");
  --i-arrow-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2V448c0 17.7 14.3 32 32 32s32-14.3 32-32V141.2L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z'/%3E%3C/svg%3E");
  --i-arrow-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z'/%3E%3C/svg%3E");
  --i-arrow-up-right-from-square: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32h82.7L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3V192c0 17.7 14.3 32 32 32s32-14.3 32-32V32c0-17.7-14.3-32-32-32H320zM80 32C35.8 32 0 67.8 0 112V432c0 44.2 35.8 80 80 80H400c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z'/%3E%3C/svg%3E");
  --i-chevron-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z'/%3E%3C/svg%3E");
  --i-xmark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z'/%3E%3C/svg%3E");
}
.fa-solid { display: inline-block; width: 1em; height: 1em; vertical-align: -.125em; font-style: normal; background-color: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.fa-arrow-right { --ico: var(--i-arrow-right); width: 0.875em; }
.fa-arrow-left { --ico: var(--i-arrow-left); width: 0.875em; }
.fa-arrow-up { --ico: var(--i-arrow-up); width: 0.75em; }
.fa-arrow-down { --ico: var(--i-arrow-down); width: 0.75em; }
.fa-arrow-up-right-from-square { --ico: var(--i-arrow-up-right-from-square); width: 1em; }
.fa-chevron-down { --ico: var(--i-chevron-down); width: 1em; }
.fa-xmark { --ico: var(--i-xmark); width: 0.75em; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
/* Slide-in animations start off-screen; clip so they never widen the mobile layout viewport */
.why, .faq, .statement, .integrations, .reach { overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: var(--bg); color: var(--ink); font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
/* Pill button with an icon chip on the right. Hover: a fill of the chip colour wipes out from the chip,
   the label flips colour and the arrow slides out to the right while a copy slides in from the left.
   Colours come from the --b-* variables set per variant, so every variant shares one mechanism. */
.btn { --b-bg: #fff; --b-fg: #111; --b-chip: #111; --b-ico: #fff; --b-fill: #111; --b-fg-h: #fff; --b-ico-h: var(--b-ico); --b-chip-h: var(--b-chip);
  --b-line: transparent; --b-line-h: var(--b-line); --b-at: calc(100% - 23px); --b-ease: cubic-bezier(.2,.8,.2,1);
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--b-line); background: var(--b-bg) padding-box; color: var(--b-fg);
  font-size: 15px; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: color .45s var(--b-ease), border-color .45s var(--b-ease), transform .2s ease; }
.btn:has(> .arrow) { padding: 0 7px 0 22px; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--b-fill);
  clip-path: circle(0px at var(--b-at) 50%); transition: clip-path .55s var(--b-ease); pointer-events: none; }
.btn .arrow { position: relative; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; overflow: hidden;
  background: var(--b-chip); color: var(--b-ico); font-size: 13px; transition: background-color .45s var(--b-ease), color .45s var(--b-ease); }
.btn .arrow i { transition: transform .45s var(--b-ease); }
/* The incoming copy of the arrow (same Font Awesome glyph), parked off to the left */
.btn .arrow::after { content: ""; position: absolute; inset: 0; background-color: currentColor;
  -webkit-mask: var(--b-glyph, var(--i-arrow-right)) center / 13px 13px no-repeat; mask: var(--b-glyph, var(--i-arrow-right)) center / 13px 13px no-repeat;
  transform: translateX(-28px); transition: transform .45s var(--b-ease); }
.btn .arrow:has(.fa-arrow-down) { --b-glyph: var(--i-arrow-down); }
.btn .arrow:has(.fa-arrow-left) { --b-glyph: var(--i-arrow-left); }
.btn .arrow:has(.fa-arrow-up-right-from-square) { --b-glyph: var(--i-arrow-up-right-from-square); }
@media (hover: hover) {
  .btn:hover { color: var(--b-fg-h); border-color: var(--b-line-h); }
  .btn:hover::before { clip-path: circle(150% at var(--b-at) 50%); }
  .btn:hover .arrow { background: var(--b-chip-h); color: var(--b-ico-h); }
  .btn:hover .arrow i { transform: translateX(28px); }
  .btn:hover .arrow::after { transform: none; }
  .btn:hover .arrow:has(.fa-arrow-down) i { transform: translateY(28px); }
  .btn:hover .arrow:has(.fa-arrow-left) i { transform: translateX(-28px); }
  .btn:hover .arrow:has(.fa-arrow-up-right-from-square) i { transform: translate(28px, -28px); }
}
.btn .arrow:has(.fa-arrow-down)::after { transform: translateY(-28px); }
.btn .arrow:has(.fa-arrow-left)::after { transform: translateX(28px); }
.btn .arrow:has(.fa-arrow-up-right-from-square)::after { transform: translate(-28px, 28px); }
@media (hover: hover) { .btn:hover .arrow:has(i)::after { transform: none; } }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-light { --b-bg: #fff; --b-fg: #111; --b-chip: #111; --b-ico: #fff; --b-fill: #111; --b-fg-h: #fff; --b-line-h: rgba(255,255,255,.35); }
.btn-dark { --b-bg: var(--paper-ink); --b-fg: #fff; --b-chip: var(--accent); --b-ico: #0b0c0b; --b-fill: var(--accent); --b-fg-h: #0b0c0b; }
.btn-accent { --b-bg: var(--accent); --b-fg: #0b0c0b; --b-chip: #0b0c0b; --b-ico: var(--accent); --b-fill: #0b0c0b; --b-fg-h: var(--accent); --b-line-h: rgba(134,150,112,.55); }
.btn-ghost { --b-bg: rgba(255,255,255,.08); --b-fg: #fff; --b-line: var(--line); --b-chip: rgba(255,255,255,.12); --b-ico: #fff;
  --b-fill: #fff; --b-fg-h: #111; --b-chip-h: rgba(0,0,0,.08); --b-ico-h: #111; --b-line-h: #fff; }
.btn-pill { min-height: 42px; padding: 0 16px; font-size: 14px; gap: 12px; --b-at: calc(100% - 19px); }
.btn-pill:has(> .arrow) { padding: 0 5px 0 16px; }
.btn-pill .arrow { width: 30px; height: 30px; font-size: 12px; }
@media (prefers-reduced-motion: reduce) {
  /* No wipe and no arrow swap: the hover is a plain colour change */
  .btn, .btn::before, .btn .arrow, .btn .arrow i, .btn .arrow::after { transition: none; }
  .btn .arrow::after { display: none; }
  .btn:hover .arrow i { transform: none !important; }
}

/* ---------- Labels / headings ---------- */
.h-xl { font-weight: 400; font-size: clamp(36px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -.025em; }
.h-xl .dim { color: var(--ink-faint); }
.h-xl.dark { color: var(--paper-ink); }
.h-xl.dark .dim { color: var(--paper-dim); }
.w { display: inline-block; white-space: pre; }

/* ---------- Header ---------- */
/* Full-width bar: transparent over the hero, a slim blurred dark bar once scrolled */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; }
.nav-bar { position: relative; border-bottom: 1px solid transparent; transition: background-color .35s ease, border-color .35s ease; }
.nav.is-solid .nav-bar, .nav.mega-open .nav-bar { background: rgba(10,11,10,.74); border-bottom-color: var(--line);
  backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  transition: height .35s ease; }
.nav.is-solid .nav-inner { height: 64px; }
.brand { justify-self: start; display: inline-flex; align-items: center; }
.brand-logo { display: block; height: 36px; width: auto; }
.nav-links { display: flex; gap: 4px; list-style: none; font-size: 14px; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 0; border-radius: 8px; background: none; color: var(--ink-dim);
  font: inherit; cursor: pointer; transition: color .25s ease, background-color .25s ease; }
.nav-link:hover, .nav-mega-btn[aria-expanded="true"] { color: #fff; background: rgba(255,255,255,.06); }
.nav-link.is-active { color: #fff; }
.nav-link.is-active::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); transform: translateX(-50%); }
.nav-link:focus-visible, .nav-call:focus-visible, .mega-item:focus-visible, .mega-head a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chev { font-size: 10px; transition: transform .3s ease; }
.nav-mega-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 18px; }
.nav-call { font-size: 14px; color: var(--ink-dim); transition: color .25s ease; white-space: nowrap; }
.nav-call:hover { color: #fff; }
.nav-progress { position: absolute; left: 0; bottom: -1px; height: 1.5px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.06); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: #fff; transition: transform .35s ease, top .35s ease; }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* Mega menu: dark glass panel aligned to the content width */
.mega { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: min(calc(var(--max) - 2 * var(--gutter)), calc(100% - 2 * var(--gutter)));
  visibility: hidden; }
.mega-panel { display: grid; grid-template-columns: 1.75fr 1fr; gap: 12px; padding: 12px; border-radius: 18px; border: 1px solid var(--line);
  background: rgba(13,14,12,.9); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.mega-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 12px; font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.mega-head a { color: var(--accent); letter-spacing: .06em; }
.mega-head a .arrow { display: inline-block; margin-left: 4px; font-size: 10px; transition: transform .25s ease; }
.mega-head a:hover .arrow { transform: translateX(3px); }
.mega-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega-item { display: grid; grid-template-columns: 42px 1fr; gap: 3px 14px; align-items: start; padding: 14px; border-radius: 12px; transition: background-color .25s ease; }
.mega-item:hover, .mega-item.is-on { background: rgba(255,255,255,.055); }
.mega-ico { grid-row: span 2; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.03); display: grid; place-items: center; color: var(--accent);
  transition: border-color .25s ease, background-color .25s ease; }
.mega-item:hover .mega-ico, .mega-item.is-on .mega-ico { border-color: rgba(134,150,112,.45); background: rgba(134,150,112,.08); }
.mega-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mega-item b { font-weight: 500; font-size: 15px; color: #fff; padding-top: 2px; }
.mega-txt { font-size: 13px; line-height: 1.45; color: var(--ink-faint); }
.mega-feature { position: relative; min-height: 320px; border-radius: 12px; overflow: hidden; background: var(--bg-2); }
.mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .45s ease, transform 1.1s cubic-bezier(.2,.8,.2,1); }
.mega-feature img.is-on { opacity: 1; transform: scale(1); }
.mega-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.2) 55%, rgba(0,0,0,0) 100%); pointer-events: none; }
.mega-feature-copy { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.mega-feature-copy h4 { font-weight: 500; font-size: 22px; letter-spacing: -.015em; line-height: 1.15; }

.menu { position: fixed; inset: 0; z-index: 55; background: rgba(11,12,11,.97); display: flex; flex-direction: column; justify-content: center; overflow-y: auto;
  padding: 100px var(--gutter) 40px; visibility: hidden; clip-path: circle(0% at calc(100% - 44px) 40px); transition: clip-path .7s cubic-bezier(.7,0,.2,1), visibility 0s .7s; }
.menu-open .menu { visibility: visible; clip-path: circle(150% at calc(100% - 44px) 40px); transition: clip-path .7s cubic-bezier(.7,0,.2,1), visibility 0s; }
.menu ul { list-style: none; }
.menu > ul > li { overflow: hidden; }
.menu > ul > li > a, .menu-acc { display: flex; align-items: center; gap: 14px; width: 100%; font: inherit; font-size: clamp(36px, 10vw, 60px); letter-spacing: -.02em; line-height: 1.15; color: inherit;
  background: none; border: 0; padding: 0; text-align: left; cursor: pointer; transform: translateY(110%); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.menu-open .menu > ul > li > a, .menu-open .menu-acc { transform: none; }
.menu-open .menu > ul > li:nth-child(2) > * { transition-delay: .05s; }
.menu-open .menu > ul > li:nth-child(3) > a { transition-delay: .1s; }
.menu-open .menu > ul > li:nth-child(4) > a { transition-delay: .15s; }
.menu-open .menu > ul > li:nth-child(5) > a { transition-delay: .2s; color: var(--accent); }
.menu-acc i { position: relative; width: 22px; height: 22px; flex: none; }
.menu-acc i::before, .menu-acc i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: currentColor; transition: transform .35s ease; }
.menu-acc i::after { transform: rotate(90deg); }
.menu-acc[aria-expanded="true"] i::after { transform: rotate(0deg); }
.menu-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2,.8,.2,1); }
.menu-sub > ul { overflow: hidden; min-height: 0; }
.menu-acc-item.is-open .menu-sub { grid-template-rows: 1fr; }
.menu-sub li:first-child { padding-top: 10px; }
.menu-sub li:last-child { padding-bottom: 14px; }
.menu-sub a { display: block; padding: 7px 0 7px 2px; font-size: 18px; color: var(--ink-dim); }
.menu-sub a:hover { color: #fff; }
.menu-foot { margin-top: 40px; color: var(--ink-faint); font-size: 13px; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 230vh; }
/* First paint never empty or mixed: the dolly poster is the stage background (no JS needed) and phase 2
   stays hidden until main.js reveals it at the flash (reduced motion reveals it with .is-p2) */
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #0b0c0b var(--poster, url("assets/img/hero-real-poster.webp")) 50% 50% / cover no-repeat; }
@media (max-width: 767px) { .stage { background-image: var(--poster-m, url("assets/img/hero-real-poster-mobile.webp")); } }
.stage > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Phase 1 frame sequence (main.js draws it, object-fit: cover math); transparent until the first frame, so the poster shows */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transform-origin: 50% 50%; }
/* The flash only animates transform and opacity; layers are promoted only while the hero is on screen */
.hero.is-live .hero-canvas, .hero.is-live .hero-v2, .hero.is-live .hero-flash, .hero.is-live .hero-streak { will-change: transform, opacity; }
/* Phase 2 video: revealed by a white flash halfway down the hero (main.js), dark overlay keeps the copy readable */
.hero-v2 { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; visibility: hidden; }
.shade2 { position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(5,6,5,.9) 0%, rgba(5,6,5,.7) 48%, rgba(5,6,5,.5) 100%),
              linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.1) 40%, rgba(0,0,0,.7) 100%); }
.hero-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
/* Thin accent light streak that sweeps across while the flash builds */
.hero-streak { position: absolute; top: -10%; bottom: -10%; left: 0; width: 46%; pointer-events: none; opacity: 0; transform: translateX(-110%) skewX(-14deg);
  background: linear-gradient(90deg, rgba(134,150,112,0) 0%, rgba(134,150,112,.25) 38%, rgba(134,150,112,.95) 48.5%, #fff 50%, rgba(134,150,112,.95) 51.5%, rgba(134,150,112,.25) 62%, rgba(134,150,112,0) 100%); }
.shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.35) 32%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.85) 100%),
              linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 55%); }
.phase1 { position: absolute; left: var(--gutter); right: var(--gutter); top: 0; bottom: clamp(96px, 14vh, 130px); max-width: var(--max); margin: 0 auto;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding-bottom: clamp(16px, 4vh, 44px); }
/* Home hero only (approved exception): sub line + CTAs sit on the right, level with the last headline line */
.hero-side { align-self: flex-end; max-width: 440px; margin-top: -120px; }
h1 { font-weight: 400; font-size: clamp(44px, 7vw, 104px); line-height: .98; letter-spacing: -.03em; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero-sub { margin: 0 0 24px; max-width: 46ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: rgba(255,255,255,.88); text-shadow: 0 1px 18px rgba(0,0,0,.55); }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; }

/* Slim glass stat strip along the bottom of the hero */
.hero-strip { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(18px, 4vh, 36px); max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; padding: 16px 22px; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: rgba(12,13,12,.45); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.hs-item { display: flex; align-items: baseline; gap: 10px; padding: 0 26px; border-left: 1px solid var(--line); }
.hs-item:first-child { padding-left: 0; border-left: 0; }
.hs-item b { font-weight: 500; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.01em; white-space: nowrap; }
.hs-item span { font-size: 13px; color: var(--ink-dim); }
.hs-scroll { margin-left: auto; display: flex; align-items: center; gap: 12px; font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
.hs-scroll i { position: relative; width: 36px; height: 1px; background: var(--line); overflow: hidden; }
.hs-scroll i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateX(-100%); animation: hsLine 1.8s ease-in-out infinite; }
@keyframes hsLine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* Phase 2: copy on the left, live portal card on the right */
.phase2 { position: absolute; inset: 0; max-width: var(--max); margin: 0 auto; padding: 110px var(--gutter) clamp(40px, 8vh, 90px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 80px); align-items: center; pointer-events: none; opacity: 0; visibility: hidden; }
.p2-copy { position: relative; isolation: isolate; }
/* Soft dark backdrop so the copy reads over the point-cloud video */
.p2-copy::before { content: ""; position: absolute; inset: -22% -26% -22% -18%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0,0,0,.66), rgba(0,0,0,.4) 55%, rgba(0,0,0,0)); }
.phase2 h2 { font-weight: 400; font-size: clamp(34px, 5.2vw, 72px); line-height: 1.04; letter-spacing: -.025em; max-width: 13ch; text-shadow: 0 2px 24px rgba(0,0,0,.4); }
.phase2 h2 em, h1 em { font-style: normal; color: var(--accent); }
.p2-feats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.p2-feats li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 9px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(12,13,12,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 13.5px; }
.p2-feats li::before { content: "\2713"; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #0b0c0b; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.portal { justify-self: end; width: min(400px, 100%); padding: 22px 24px 12px; border-radius: 18px; border: 1px solid var(--line);
  background: rgba(14,15,13,.62); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.portal-head { display: flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim);
  padding-bottom: 16px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.portal-head em { margin-left: auto; font-style: normal; font-size: 10px; color: var(--accent); padding: 4px 8px; border: 1px solid rgba(134,150,112,.4); border-radius: 999px; }
.pdot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(134,150,112,.6); animation: pdot 1.8s ease-out infinite; }
@keyframes pdot { to { box-shadow: 0 0 0 8px rgba(134,150,112,0); } }
.portal ol { list-style: none; position: relative; }
.portal ol::before { content: ""; position: absolute; left: 13.5px; top: 34px; bottom: 34px; width: 1px; background: var(--line); }
.portal li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: center; padding: 14px 0; opacity: .35; transition: opacity .4s ease; }
.portal li.is-done { opacity: 1; }
.portal li i { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: #121311;
  display: grid; place-items: center; transition: background-color .35s ease, border-color .35s ease; }
.portal li i::after { content: "\2713"; font-style: normal; font-size: 13px; font-weight: 700; color: #0b0c0b; opacity: 0; transform: scale(.4); transition: opacity .3s ease, transform .35s cubic-bezier(.2,.8,.2,1.4); }
.portal li.is-done i { background: var(--accent); border-color: var(--accent); }
.portal li.is-done i::after { opacity: 1; transform: none; }
.portal li b { display: block; font-weight: 500; font-size: 15px; }
.portal li span { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-faint); }

/* ---------- Integrations: logo columns ---------- */
/* min-height: fills the viewport while it is pinned under the statement card */
.integrations { background: #000; color: #fff; padding: 110px 0; position: relative; z-index: 2; overflow: hidden;
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.int-dim { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 1; }
.int-grid { width: 100%; transform-origin: 50% 50%; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.lg-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; height: 620px; overflow: hidden; align-self: center;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.35) 9%, #000 24%, #000 76%, rgba(0,0,0,.35) 91%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.35) 9%, #000 24%, #000 76%, rgba(0,0,0,.35) 91%, transparent 100%); }
/* No clipping per column: the masked .lg-cols box is the only edge, so no hard-cut sliver can show.
   The column wrapper owns the scroll drift, .lg-inner owns the loop (one transform owner each). */
.lg-col { position: relative; height: 100%; }
/* padding-bottom = gap so each of the 3 sets is exactly 1/3 of the height and the loop is seamless */
.lg-inner { display: flex; flex-direction: column; gap: 14px; padding-bottom: 14px; will-change: transform; }
.lg-tile { aspect-ratio: 1; border-radius: 16px; background: linear-gradient(160deg, #161715, #0d0e0c); border: 1px solid rgba(255,255,255,.07);
  display: grid; place-items: center; transition: border-color .35s ease, transform .35s ease, box-shadow .35s ease; }
.lg-tile img[alt="WooCommerce"] { width: 70%; }
.lg-tile img { width: 46%; height: 46%; object-fit: contain; filter: invert(1) brightness(.78); transition: filter .35s ease, transform .35s ease; }
.lg-tile:hover { border-color: rgba(255,255,255,.2); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.lg-tile:hover img { filter: invert(1) brightness(1); transform: scale(1.06); }
.lg-more { align-content: center; gap: 2px; text-align: center; border-color: rgba(134,150,112,.25); }
.lg-more b { display: block; font-size: clamp(26px, 2.6vw, 38px); font-weight: 500; color: var(--accent); letter-spacing: -.02em; }
.lg-more span { font-size: 13px; color: var(--ink-faint); }
.btn .dot { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); display: inline-block; }
.int-title { font-weight: 400; font-size: clamp(34px, 3.8vw, 56px); line-height: 1.08; letter-spacing: -.03em; max-width: 17ch; }
.int-copy .btn { margin-top: 34px; }

/* ---------- Statement + duo ---------- */
/* Slides up over the pinned integrations section like a stacked card */
.statement { background: var(--paper); color: var(--paper-ink); padding: 100px 0 120px; position: relative; z-index: 3;
  border-radius: 32px 32px 0 0; box-shadow: 0 -30px 70px rgba(0,0,0,.45); }
.statement-row { display: grid; grid-template-columns: 1fr; gap: 34px; justify-items: start; }
.big-text { font-size: clamp(24px, 2.35vw, 36px); line-height: 1.22; letter-spacing: -.02em; max-width: none; }
.big-text em { font-style: normal; color: var(--accent-deep); }
.duo { display: grid; grid-template-columns: 1fr 1.55fr; gap: 16px; margin-top: 80px; }
.duo-card { position: relative; will-change: clip-path; }
.duo-img { overflow: hidden; border-radius: 10px; height: clamp(340px, 52vw, 640px); }
.duo-img img { width: 100%; height: 100%; object-fit: cover; transform-origin: center; }
.duo figcaption { display: flex; justify-content: space-between; margin-top: 14px; font-size: 14px; }
.cap-num { font-family: var(--mono); font-size: 12px; color: var(--paper-dim); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Services: pinned flow chart of the fulfilment chain, connectors draw with scroll (main.js) ---------- */
.services { background: var(--bg); position: relative; z-index: 2; }
.services-pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(22px, 4.5vh, 48px);
  max-width: var(--max); margin: 0 auto; padding: 96px var(--gutter) 40px; }
.services-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.svc-meta { text-align: right; }
.svc-bar { height: 2px; background: var(--line); width: 200px; margin-bottom: 14px; }
.svc-bar span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.flow-wrap { position: relative; }
.flow { position: relative; z-index: 1; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto;
  column-gap: clamp(64px, 6.5vw, 120px); row-gap: clamp(48px, 9vh, 110px); }
.flow-svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.flow-node { position: relative; z-index: 1; }
.flow-node[data-node="int"] { grid-area: 1 / 1; }
.flow-node[data-node="wms"] { grid-area: 1 / 2; }
.flow-node[data-node="ware"] { grid-area: 1 / 3; }
.flow-node[data-node="pick"] { grid-area: 1 / 4; }
.flow-node[data-node="rep"] { grid-area: 2 / 2; }
.flow-node[data-node="ship"] { grid-area: 2 / 4; }
/* Node: a glass card with the service icon and title; lights up when the flow reaches it */
.fn { position: relative; display: flex; flex-direction: column; gap: 20px; min-height: clamp(140px, 19vh, 186px); padding: 20px 20px 22px; border-radius: 18px;
  border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.015)); color: rgba(255,255,255,.5);
  transition: border-color .45s ease, color .45s ease, transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease; }
.fn-ico { position: relative; flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); color: rgba(255,255,255,.6); transition: background-color .45s ease, border-color .45s ease, color .45s ease; }
.fn-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fn-t { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; font-weight: 400; font-size: clamp(19px, 1.55vw, 24px);
  line-height: 1.15; letter-spacing: -.015em; }
.fn-t i { flex: none; font-size: 12px; margin-bottom: .3em; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: opacity .3s ease, transform .3s cubic-bezier(.2,.8,.2,1); }
.flow-node.is-lit .fn { border-color: rgba(134,150,112,.55); color: #fff; transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(134,150,112,.45); }
.flow-node.is-lit .fn-ico { background: var(--accent); border-color: var(--accent); color: #0b0c0b; }
@media (hover: hover) {
  .fn:hover { border-color: rgba(255,255,255,.34); color: #fff; }
  .flow-node.is-lit .fn:hover { border-color: var(--accent); }
  .fn:hover .fn-t i { opacity: 1; transform: none; }
}
.fn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Connectors: a faint base line, the accent line that draws with scroll, an arrowhead, a travelling parcel */
.flow-base { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 1.5; }
.flow-draw { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.flow-base.is-branch, .flow-draw.is-branch { stroke-dasharray: 5 7; stroke-linecap: butt; }
.flow-head { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s ease; }
.flow-head.is-on { stroke: var(--accent); }
.flow-label { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; fill: rgba(255,255,255,.4); transition: fill .4s ease; }
.flow-label.is-on { fill: var(--accent); }
.flow-parcel .halo { fill: rgba(134,150,112,.22); }
.flow-parcel .core { fill: #e6ecdc; }

/* ---------- Process ---------- */
.process { background: var(--bg); position: relative; z-index: 2;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px; background-position: center; }
.process::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 0%, var(--bg) 75%); pointer-events: none; }
.process-pin { position: relative; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.process-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.route { position: relative; margin: 28px 0 10px; }
.rsteps { display: none; }
/* Desktop: each step lives on its node. A pill label that opens into a card when the parcel arrives. */
@media (min-width: 961px) {
  .process .steps { display: none; }
  /* Clear the fixed nav; heading + route + the card row underneath are centred as one block */
  .process-pin { padding: 96px var(--gutter) 24px; }
  /* --rsteps-room: height of the card row hanging under the SVG, measured in main.js */
  .route { margin: clamp(36px, 7vh, 80px) 0 0; padding-bottom: var(--rsteps-room, 180px); }
  .rsteps { display: block; position: absolute; inset: 0; pointer-events: none; }
  .rstep { position: absolute; width: 0; height: 0; }
  .rstep-label, .rstep-card { position: absolute; top: 30px; left: 0; }
  /* Thin line from the node down to its pill / card */
  .rstep-tick { position: absolute; left: -.5px; width: 1px; background: linear-gradient(rgba(134,150,112,.55), rgba(134,150,112,.15)); }
  .rstep-label { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 7px 13px; border-radius: 999px;
    border: 1px solid var(--line); background: rgba(14,15,13,.85); font-size: 13px; color: var(--ink-dim); }
  .rstep-label b { font-family: var(--mono); font-weight: 400; font-size: 11.5px; color: var(--accent); }
  .rstep-card { width: clamp(270px, 22vw, 320px); padding: 18px 20px 20px; border-radius: 14px; border: 1px solid rgba(134,150,112,.5);
    background: rgba(16,17,15,.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(134,150,112,.06) inset; visibility: hidden; }
  .rstep-card .step-n { font-family: var(--mono); font-size: 12px; color: var(--accent); }
  .rstep-card h3 { font-weight: 500; font-size: 21px; letter-spacing: -.01em; margin: 8px 0 6px; }
  .rstep-card p { color: var(--ink-dim); font-size: 14px; line-height: 1.55; }
}
.node-pulse { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0; }
.node-halo { fill: rgba(134,150,112,.18); opacity: 0; transform-box: fill-box; transform-origin: center; }
.node.is-active .node-halo { animation: nodeHalo 2.2s ease-out infinite; }
@keyframes nodeHalo { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.9); } }
.route svg { width: 100%; height: auto; overflow: visible; }
.route-base { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 2; stroke-dasharray: 6 8; }
.route-draw { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(134,150,112,.6)); }
.node-ring { fill: var(--bg); stroke: rgba(255,255,255,.25); stroke-width: 2; transition: stroke .3s ease, fill .3s ease; }
.node-dot { fill: rgba(255,255,255,.3); transition: fill .3s ease; }
.node.is-on .node-ring { stroke: var(--accent); fill: #191b16; }
.node.is-on .node-dot { fill: var(--accent); }
#parcel rect { fill: #c79b63; stroke: #3b2c1a; stroke-width: 1.2; }
#parcel path { stroke: #3b2c1a; stroke-width: 1.2; fill: none; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: rgba(18,19,17,.75); opacity: .35; transition: opacity .4s ease, border-color .4s ease, transform .4s ease; }
.step.is-on { opacity: 1; border-color: rgba(134,150,112,.45); transform: translateY(-6px); }
.step-n { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.step h3 { font-weight: 500; font-size: 22px; margin: 10px 0 8px; }
.step p { color: var(--ink-dim); font-size: 14.5px; line-height: 1.6; }

/* ---------- Feature expand ---------- */
.feature { background: var(--bg); position: relative; z-index: 2; }
.feature-pin { height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.feature-media { position: relative; width: 100%; height: 100%; overflow: hidden; clip-path: inset(14% 16% 14% 16% round 18px); will-change: clip-path; }
.feature-media video, .feature-media .feature-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); }
.feature-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.75), rgba(0,0,0,.1) 60%); }
.feature-copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(30px, 8vh, 80px); max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 26px; }
.feature-title { font-weight: 400; font-size: clamp(32px, 4.4vw, 64px); line-height: 1.04; letter-spacing: -.025em; max-width: none; }
.feature-side { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.feature-play { right: auto; left: 50%; top: 50%; bottom: auto; width: 64px; height: 64px; transform: translate(-50%, -50%); font-size: 15px; background: rgba(255,255,255,.92); }
.feature-play:hover { transform: translate(-50%, -50%) scale(1.08); }

/* ---------- Why ---------- */
.why { background: var(--paper); color: var(--paper-ink); padding: 140px 0; position: relative; z-index: 2; }
.why-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
.why-left { position: sticky; top: 120px; }
.why-left .counters { margin-top: 40px; }
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.counter { border-top: 1px solid var(--paper-line); padding-top: 16px; }
.counter .num { display: block; font-size: clamp(34px, 3.6vw, 52px); font-weight: 300; letter-spacing: -.02em; }
.counter > span:last-child { font-size: 13px; color: #666; }
.why-list { list-style: none; }
.why-item { position: relative; display: grid; grid-template-columns: 1fr; gap: 10px; padding: 34px 0; border-top: 1px solid var(--paper-line); }
.why-item:last-child { border-bottom: 1px solid var(--paper-line); }
.why-item h3 { font-weight: 500; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.015em; }
.why-item p { color: #5b5b55; font-size: 15px; line-height: 1.6; margin-top: 8px; max-width: 44ch; }
.wi-bar { position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--accent-deep); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Reach: map + stat card ---------- */
.reach { background: var(--paper); color: var(--paper-ink); position: relative; z-index: 2; }
.reach-pin { height: 100vh; height: 100svh; display: flex; align-items: center; padding: 90px var(--gutter) 30px; }
.reach-grid { width: 100%; max-width: var(--max); margin: 0 auto; height: 100%; max-height: 720px; display: grid; grid-template-columns: 1.65fr 1fr; gap: 14px; }
.map-card { position: relative; overflow: hidden; border-radius: 22px; background: #4a533e; color: #fff; }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-dots { fill: none; stroke: rgba(255,255,255,.42); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.map-dots.fine { stroke: rgba(255,255,255,.5); stroke-width: 2.4; }
.map-route { fill: none; stroke: rgba(255,255,255,.8); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.map-route-glow { fill: none; stroke: rgba(226,236,160,.22); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
/* A short bright dash that keeps travelling along each route once it is drawn */
.map-comet { fill: none; stroke: #e6ecdc; stroke-linecap: round; stroke-dasharray: .06 .94; opacity: 0; animation: comet 2.4s linear infinite; transition: opacity .3s ease; }
@keyframes comet { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.pin-ring { fill: #fff; }
.pin-core { fill: #22281b; }
.pin-label { opacity: 0; }
.pin-label rect { fill: rgba(25,29,12,.88); stroke: rgba(255,255,255,.14); stroke-width: 1; }
.pin-label text { fill: #fff; font: 500 11px "Inter Tight", sans-serif; letter-spacing: .01em; }
.pin.origin .pin-ring { fill: var(--accent); }
.pin.origin .pin-pulse { transform-box: fill-box; fill: none; stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; transform-origin: center; animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.map-parcel rect { fill: #c79b63; stroke: #3b2c1a; stroke-width: 1; vector-effect: non-scaling-stroke; }
.map-parcel path { fill: none; stroke: #3b2c1a; stroke-width: 1; vector-effect: non-scaling-stroke; }
.map-copy { position: absolute; left: clamp(20px, 3vw, 36px); bottom: clamp(20px, 3vw, 34px); pointer-events: none; }
.map-title { font-weight: 500; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -.02em; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
/* Uses the shared .btn mechanism: dark olive pill, white chip, white fill on hover */
.btn.quote-pill { position: absolute; right: clamp(16px, 2.6vw, 30px); bottom: clamp(18px, 3vw, 34px);
  --b-bg: #22281b; --b-fg: #fff; --b-chip: #fff; --b-ico: #111; --b-fill: #fff; --b-fg-h: #111; }

.stat-card { border-radius: 22px; background: var(--paper-2); padding: clamp(18px, 2.4vw, 30px); display: flex; flex-direction: column; justify-content: space-between; gap: 20px; overflow: hidden; }
.stat-frame { position: relative; flex: 1; display: grid; place-items: center; padding: 26px; min-height: 240px; }
.br { position: absolute; width: 20px; height: 20px; border-color: #8a8a82; border-style: solid; border-width: 0; }
.br.tl { left: 0; top: 0; border-left-width: 1.5px; border-top-width: 1.5px; }
.br.tr { right: 0; top: 0; border-right-width: 1.5px; border-top-width: 1.5px; }
.br.bl { left: 0; bottom: 0; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.br.br-r { right: 0; bottom: 0; border-right-width: 1.5px; border-bottom-width: 1.5px; }
.stat-img { position: absolute; inset: 26px; border-radius: 8px; overflow: hidden; }
.stat-img img { width: 100%; height: 100%; object-fit: cover; }
.stat-img::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.28); }
.stat-over { position: relative; text-align: center; color: #fff; display: flex; flex-direction: column; gap: 4px; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.stat-big { font-size: clamp(56px, 6vw, 92px); font-weight: 400; letter-spacing: -.03em; line-height: 1; }
.stat-over > span:last-child { font-size: clamp(18px, 1.6vw, 24px); }
.stat-foot { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.stat-foot h3 { font-weight: 500; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.1; letter-spacing: -.02em; max-width: 13ch; }
.stack { display: flex; }
.stack span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--c); font-weight: 700; font-size: 18px;
  border: 3px solid var(--paper-2); margin-left: -12px; box-shadow: 0 4px 12px rgba(0,0,0,.08); }

/* ---------- Testimonial: pinned vertical slider ---------- */
/* ---------- Testimonials: intro on the left, a deck of quote cards on the right ---------- */
.testimonial { background: var(--bg); position: relative; z-index: 2; overflow-x: clip; padding: clamp(100px, 14vh, 160px) 0 clamp(90px, 12vh, 140px); }
.testimonial .wrap { max-width: 1320px; }
.t-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); grid-template-areas: "intro deck" "actions deck";
  grid-template-rows: auto 1fr; column-gap: clamp(40px, 7vw, 120px); row-gap: 40px; align-items: start; }
.t-intro { grid-area: intro; }
.t-deckwrap { grid-area: deck; position: relative; padding: 0 clamp(28px, 3vw, 48px) 0 0; }
.t-actions { grid-area: actions; align-self: end; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.t-title { font-weight: 400; font-size: clamp(34px, 3.6vw, 54px); line-height: 1.04; letter-spacing: -.03em; }
.t-title .w { display: inline-block; }
.t-people { display: flex; align-items: center; gap: 16px; margin-top: 34px; }
.t-faces { display: flex; flex: none; }
.t-faces span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  border: 2px solid var(--bg); background: #2a2c27; color: var(--ink-dim); }
.t-faces span + span { margin-left: -12px; }
.t-faces span:nth-child(1) { background: var(--accent); color: #0b0c0b; }
.t-faces span:nth-child(3) { background: var(--paper-2); color: #2a2c27; }
.t-ctrl { display: flex; align-items: center; gap: 14px; }
.t-btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: #fff; cursor: pointer;
  display: grid; place-items: center; font-size: 15px; transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease; }
@media (hover: hover) { .t-btn:hover { background: var(--accent); border-color: var(--accent); color: #0b0c0b; transform: translateY(-2px); } }
.t-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* The deck: every card sits in the same grid cell, JS moves them between slots */
.t-deck { position: relative; display: grid; padding-bottom: 66px; touch-action: pan-y; }
.t-card { grid-area: 1 / 1; position: relative; display: flex; flex-direction: column; min-height: 400px; padding: clamp(28px, 3vw, 46px);
  border-radius: 24px; border: 1px solid rgba(255,255,255,.1); background: linear-gradient(155deg, #1b1c19 0%, #121311 60%, #0f100e 100%);
  box-shadow: 0 30px 70px rgba(0,0,0,.45); transform-origin: 50% 100%; cursor: grab; user-select: none; -webkit-user-select: none; will-change: transform; }
.t-card.is-drag { cursor: grabbing; }
/* Cards further back are dimmed by an overlay (opacity driven from JS through --dim) */
.t-card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: #070807; opacity: var(--dim, 0); pointer-events: none; }
.t-glyph { font-family: Georgia, "Times New Roman", serif; font-size: 96px; line-height: .8; height: 52px; color: var(--accent); }
.t-quote { margin-top: 14px; font-size: clamp(20px, 1.75vw, 26px); line-height: 1.38; letter-spacing: -.015em; color: #fff; margin-bottom: 34px; }
.t-quote em { font-style: normal; color: var(--accent); }
/* Real client reviews (28 Oct): optional headline, long text clamped with "Read more" that expands in place */
.t-head { margin-top: 14px; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.2; letter-spacing: -.02em; color: #fff; }
.t-head + .t-quote { margin-top: 12px; }
.t-card .t-quote { font-size: clamp(16px, 1.15vw, 18px); line-height: 1.6; letter-spacing: 0; color: var(--ink-dim); margin-bottom: 0;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.t-card .t-head ~ .t-quote { -webkit-line-clamp: 5; line-clamp: 5; }
.t-card.is-open .t-quote { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }
.t-more { align-self: flex-start; margin: 12px 0 26px; padding: 6px 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer; text-decoration: underline; text-decoration-color: rgba(134,150,112,.5); text-underline-offset: 4px; }
.t-more:hover { text-decoration-color: currentColor; }
.t-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.t-more[hidden], .t-more-l[hidden] { display: none; }
.t-quote:not(:has(+ .t-more:not([hidden]))) { margin-bottom: 30px; }
.t-who { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 26px; border-top: 1px solid var(--line); font-size: 15px; }
.t-who b { display: block; font-weight: 500; }
.t-who div span { display: block; margin-top: 2px; color: var(--ink-faint); font-size: 13px; }
.t-avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #111;
  font-weight: 600; font-size: 14px; }
.t-progress { height: 2px; margin-top: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.t-progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); color: var(--paper-ink); padding: 140px 0; position: relative; z-index: 2; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start; }
.faq-left { position: sticky; top: 120px; }
.faq-left .btn { margin-top: 32px; }
.qa { border-top: 1px solid var(--paper-line); }
.qa:last-child { border-bottom: 1px solid var(--paper-line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font-size: clamp(17px, 1.6vw, 21px); font-weight: 500; letter-spacing: -.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:focus { outline: none; }
.qa summary:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 4px; border-radius: 4px; }
.qa summary i { position: relative; flex: 0 0 34px; height: 34px; border-radius: 50%; border: 1px solid var(--paper-line); transition: background-color .3s ease, transform .4s ease; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.qa summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s ease; }
.qa.is-open summary i { background: var(--accent); border-color: var(--accent); transform: rotate(180deg); }
.qa.is-open summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa-body { overflow: hidden; }
.qa-body p { color: #555; font-size: 15.5px; line-height: 1.65; padding: 0 60px 26px 0; }

/* ---------- CTA ---------- */
.cta { position: relative; z-index: 2; min-height: 90vh; display: flex; align-items: center; overflow: hidden; background: #000; }
.cta-bg { position: absolute; inset: -10% 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 60%, rgba(0,0,0,.2) 100%); }
.cta-inner { position: relative; width: 100%; display: grid; grid-template-columns: 1fr; gap: 34px; align-items: start; padding-top: 120px; padding-bottom: 120px; }
.cta-title { font-weight: 400; font-size: clamp(48px, 9vw, 140px); line-height: .95; letter-spacing: -.035em; }
.cta-title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.cta-title .ln > span { display: block; }
.cta-title em { font-style: normal; color: var(--accent); }

/* ---------- Footer ---------- */
.footer { background: var(--bg); position: relative; z-index: 2; padding: 100px 0 30px; overflow: hidden; border-top: 1px solid var(--line); }
.f-top { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; padding-bottom: 60px; border-bottom: 1px solid var(--line); }
.f-lead { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.25; letter-spacing: -.015em; max-width: 28ch; }
.f-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 56px 0; }
.f-cols h4 { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px; }
.f-cols ul { list-style: none; display: grid; gap: 10px; font-size: 15px; color: var(--ink-dim); }
.f-cols a { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size .35s ease, color .25s ease; }
.f-cols a:hover { color: #fff; background-size: 100% 1px; }
/* Client logo (wordmark over the pallet outline), rises and wipes up with scroll (site.js) */
.f-word { display: flex; justify-content: center; padding: 30px 0 10px; overflow: hidden; }
.f-word img { display: block; width: min(100%, 640px); height: auto;
  -webkit-mask: linear-gradient(180deg, #000 62%, rgba(0,0,0,.35)); mask: linear-gradient(180deg, #000 62%, rgba(0,0,0,.35)); }
.f-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 26px; font-size: 13px; color: var(--ink-faint); }
.credit { color: inherit; transition: color .25s ease; }
.credit:hover { color: #fff; }
.to-top { position: relative; width: 44px; height: 44px; border: 0; background: none; color: #fff; cursor: pointer; display: grid; place-items: center; }
.to-top svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 2; }
.ring { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 125.7; stroke-dashoffset: 125.7; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links, .nav-call, .mega { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; height: 66px; }
  .nav.is-solid .nav-inner { height: 60px; }
  .nav nav { display: none; }
  .burger { display: block; }
  .nav-right .btn { display: none; }
  .phase1 { bottom: 150px; padding-bottom: 0; }
  .hero-side { align-self: flex-start; max-width: none; margin-top: 22px; }
  .hero-sub { margin: 0 0 22px; }
  .hero-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 0; padding: 14px 16px; }
  .hs-item { flex-direction: column; align-items: flex-start; gap: 2px; padding: 0 14px; }
  .hs-item:nth-child(3) { display: none; }
  .hs-scroll { grid-column: 1 / -1; justify-content: center; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
  .phase2 { grid-template-columns: 1fr; align-content: end; padding-bottom: 56px; }
  .shade2 { background: linear-gradient(180deg, rgba(5,6,5,.55) 0%, rgba(5,6,5,.62) 35%, rgba(5,6,5,.9) 100%); }
  .portal { display: none; }
  .p2-feats li { font-size: 13px; }
  .statement { border-radius: 22px 22px 0 0; padding-top: 70px; }
  .t-grid { grid-template-columns: 1fr; grid-template-areas: "intro" "deck" "actions"; grid-template-rows: auto; row-gap: 40px; }
  .t-deckwrap { padding-right: 20px; }
  .t-card { min-height: 0; }
  .t-glyph { font-size: 78px; height: 42px; }
  .t-actions { align-items: stretch; gap: 22px; }
  .t-ctrl { justify-content: center; }
  .t-cta { white-space: normal; text-align: left; }
  .statement-row, .why-grid, .faq-grid, .cta-inner, .feature-copy { grid-template-columns: 1fr; gap: 30px; }
  /* Duo photos become a swipe slider (slider.css) */
  .duo { --ms-w: 86%; --ms-gap: 10px; --ms-accent: var(--accent-deep); margin-top: 56px; }
  .duo-img { height: min(108vw, 520px); }
  .services-pin { height: auto; display: block; padding: 100px var(--gutter) 70px; }
  .services-head { margin-bottom: 30px; display: block; }
  .svc-meta { display: none; }
  /* Services: a vertical flow chart (no pin); the line draws down as you scroll, Reporting branches off the portal */
  .flow { display: flex; flex-direction: column; gap: 30px; }
  .flow-node[data-node="rep"] { margin-left: 52px; }
  .fn { flex-direction: row; align-items: center; gap: 16px; min-height: 0; padding: 14px 18px 14px 14px; border-radius: 16px; }
  .flow-node.is-lit .fn { transform: none; }
  .fn-ico { width: 42px; height: 42px; }
  .fn-t { flex: 1; margin-top: 0; align-items: center; font-size: 19px; }
  .fn-t i { opacity: 1; transform: none; color: rgba(255,255,255,.35); margin-bottom: 0; }
  .flow-node.is-lit .fn-t i { color: var(--accent); }
  .flow-label { display: none; }
  .route { display: none; }
  /* Process: no pin on phones, the 3 steps are a swipe slider and the active slide lights up (main.js) */
  .process-pin { height: auto; display: block; padding: 100px var(--gutter) 90px; }
  .steps { --ms-w: 80%; --ms-gap: 10px; --ms-accent: var(--accent); margin-top: 34px; }
  .step { padding: 22px 22px 24px; opacity: .5; }
  .step.is-on { transform: none; }
  .step p { font-size: 15px; }
  .why-left, .faq-left { position: static; }
  /* Why: the 6 points become cards in a swipe slider; the active card's top bar fills (main.js) */
  .why-grid { grid-template-columns: minmax(0, 1fr); gap: 46px; }
  .why-list { --ms-w: 80%; --ms-gap: 10px; --ms-accent: var(--accent-deep); }
  .why-item { display: flex; flex-direction: column; gap: 18px; padding: 24px 22px 26px; border: 1px solid var(--paper-line); border-radius: var(--radius-lg);
    background: #fbfbf8; overflow: hidden; }
  .why-item:last-child { border-bottom: 1px solid var(--paper-line); }
  .wi-bar { top: 0; height: 3px; }
  .why-left .counters { margin-top: 30px; }
  .int-grid { grid-template-columns: 1fr; }
  .int-copy { order: -1; }
  .lg-cols { height: 420px; gap: 10px; }
  .lg-inner { gap: 10px; padding-bottom: 10px; }
  .integrations { padding: 80px 0; }
  .reach-pin { height: auto; padding: 40px var(--gutter) 80px; }
  .reach-grid { grid-template-columns: 1fr; height: auto; max-height: none; }
  .map-card { height: 92vw; max-height: 560px; min-height: 380px; }
  .btn.quote-pill { top: 18px; bottom: auto; }
  .stat-card { min-height: 460px; }
  .why, .faq { padding: 100px 0; }
  .f-cols { grid-template-columns: 1fr 1fr; }

  /* Touch targets: logo and footer links are at least 44px tall (buttons are 48px) */
  .brand { padding: 7px 0; }
  .brand-logo { height: 30px; }
  .f-cols ul { gap: 0; }
  .f-cols a { display: inline-flex; align-items: center; min-height: 44px; background-position: 0 calc(100% - 10px); }
  .f-cols h4 { margin-bottom: 8px; }
  .to-top { flex: none; }
  /* Six-card slider: slimmer dot buttons so dots and arrows share one row on a phone */
  .why-list + .ms-nav .ms-dot { width: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  /* Reduced motion: two still screens (video 1 poster, then video 2 poster with phase 2), swapped by a class, no flash */
  .hero { height: 200vh; }
  .phase2 { visibility: hidden; }
  .hero.is-p2 .phase1, .hero.is-p2 .hero-strip { visibility: hidden; }
  .hero.is-p2 .phase2, .hero.is-p2 .hero-v2, .hero.is-p2 .shade2 { opacity: 1; visibility: visible; }
  .feature-media { clip-path: none; }
  .feature-media video, .feature-media .feature-img { transform: none; }
  .hs-scroll i::after, .pdot, .node.is-active .node-halo, .map-comet { animation: none; }
  .hs-scroll i::after { transform: none; }
  /* Services: no pin; the flow chart is drawn complete (main.js) */
  .services-pin { height: auto; padding-top: 120px; padding-bottom: 100px; }
  .fn, .fn-ico, .fn-t i, .flow-head, .flow-label { transition: none; }
}


/* ---------- WordPress additions ---------- */
/* Logged-in editors: keep the fixed header below the admin bar */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }
/* Testimonial photo (optional, chosen in WP Admin) fills the round avatar */
.t-avatar img, .t-faces span img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.t-avatar:has(img), .t-faces span:has(img) { overflow: hidden; padding: 0; }
/* Screen-reader-only text (WordPress core class) */
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { clip: auto; clip-path: none; height: auto; width: auto; margin: 0; z-index: 100000; background: #fff; color: #111; padding: 12px 16px; left: 8px; top: 8px; }
/* Simple pages (404, fallback index) */
.wp-page { min-height: 70vh; padding: clamp(140px, 18vh, 200px) 0 clamp(80px, 10vh, 120px); }
.wp-page .h-xl { margin-bottom: 24px; }
.wp-page p { color: var(--ink-dim); max-width: 60ch; margin-bottom: 28px; font-size: 17px; line-height: 1.6; }
.wp-content { max-width: 760px; color: var(--ink-dim); font-size: 17px; line-height: 1.7; }
.wp-content h2, .wp-content h3 { color: var(--ink); margin: 1.6em 0 .6em; }
.wp-content a { color: var(--accent); }
.wp-content ul, .wp-content ol { padding-left: 1.2em; margin-bottom: 1em; }
