/* ============================================================
   HDUK demo — design system
   Dark-first editorial with complete light theme
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #f6f7fb;
  --bg-elev: #ffffff;
  --bg-elev-2: #eef2f8;
  --ink: #0b1020;
  --ink-dim: #4a5365;
  --ink-faint: #8a94a8;
  --line: rgba(10, 14, 30, 0.08);
  --line-strong: rgba(10, 14, 30, 0.16);
  --brand: #1a6ec8;
  --brand-ink: #ffffff;
  --brand-2: #0e4a8c;
  --accent: #f59e0b;
  --danger: #e03939;
  --success: #1fa47b;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(20, 30, 60, 0.06);
  --shadow: 0 10px 40px rgba(20, 30, 60, 0.08);
  --shadow-lg: 0 30px 80px rgba(20, 30, 60, 0.14);
  --container: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --mx: 50%;
  --my: 50%;
}

:root[data-theme='dark'] {
  --bg: #07090d;
  --bg-elev: #0d1220;
  --bg-elev-2: #111826;
  --ink: #e8ecf3;
  --ink-dim: #9aa3b2;
  --ink-faint: #606a7c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --brand: #4a9eff;
  --brand-ink: #06152a;
  --brand-2: #1a6ec8;
  --accent: #ffb648;
  --danger: #ff6b6b;
  --success: #3ee0c4;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background 0.5s var(--ease), color 0.3s var(--ease);
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.035 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}
:root[data-theme='light'] body::before {
  opacity: 0.35;
  mix-blend-mode: multiply;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
  line-height: 1.08;
  color: var(--ink);
}
h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  letter-spacing: -0.035em;
  font-weight: 500;
}
h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
}
h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
}
h4 {
  font-size: 1.05rem;
}
p {
  margin: 0 0 1em;
  color: var(--ink-dim);
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role='tab']:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}
img,
svg {
  max-width: 100%;
  display: block;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Layout primitives ---------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}
.container--wide {
  width: min(100% - 2rem, 1360px);
}
.section {
  padding: clamp(4rem, 9vw, 8rem) 0;
  position: relative;
}
.section--tight {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.section-head {
  max-width: 680px;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: color-mix(in oklab, var(--brand) 8%, transparent);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 12px var(--brand);
}
.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-dim);
  max-width: 60ch;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bg);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn--primary {
  --btn-bg: var(--brand);
  --btn-fg: var(--brand-ink);
  box-shadow: 0 8px 30px -8px color-mix(in oklab, var(--brand) 60%, transparent);
}
.btn--primary:hover {
  --btn-bg: color-mix(in oklab, var(--brand) 88%, white);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  --btn-bg: var(--bg-elev);
}
.btn--sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
}
.btn--lg {
  padding: 1rem 1.6rem;
  font-size: 1rem;
}
.btn .arr {
  transition: transform 0.25s var(--ease);
}
.btn:hover .arr {
  transform: translateX(3px);
}
.magnetic {
  position: relative;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* ---------- Header ---------- */
.topbar {
  background: color-mix(in oklab, var(--bg) 70%, black 20%);
  border-bottom: 1px solid var(--line);
  font-size: 0.83rem;
  color: var(--ink-dim);
  position: relative;
  z-index: 40;
}
:root[data-theme='light'] .topbar {
  background: #0b1020;
  color: rgba(255, 255, 255, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
:root[data-theme='light'] .topbar .status-pill {
  color: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.18);
  background: color-mix(in oklab, #22c55e 18%, transparent);
}
:root[data-theme='light'] .topbar .status-pill::before {
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}
:root[data-theme='light'] .topbar__phones a:hover {
  color: #7fd1ff;
}
.topbar .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  justify-content: space-between;
}
.topbar__phones {
  display: flex;
  gap: 1.25rem;
  flex-wrap: nowrap;
  min-width: 0;
}
.topbar__phones a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  white-space: nowrap;
}
.topbar__phones a:hover {
  color: var(--brand);
}
@media (max-width: 640px) {
  .topbar {
    font-size: 0.75rem;
  }
  .topbar .container {
    gap: 0.5rem;
    padding: 0.4rem 0;
  }
  .topbar__phones {
    gap: 0.5rem;
  }
  .topbar__phone-label {
    display: none;
  }
  .topbar__phone--hide-sm {
    display: none;
  }
  .status-pill {
    padding: 0.2rem 0.55rem;
    font-size: 0.68rem;
    gap: 0.35rem;
  }
  .status-pill__suffix {
    display: none;
  }
}
@media (max-width: 380px) {
  .status-pill__text {
    display: none;
  }
  .status-pill {
    padding: 0.35rem;
  }
  .status-pill::before {
    margin: 0;
  }
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--ink-dim);
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: color-mix(in oklab, var(--success) 6%, transparent);
}
.status-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--success) 70%, transparent);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in oklab, var(--success) 60%, transparent);
  }
  50% {
    box-shadow: 0 0 0 6px color-mix(in oklab, var(--success) 0%, transparent);
  }
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
}
.nav .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 0;
  justify-content: space-between;
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand__logo {
  display: inline-block;
  width: 88px;
  height: 40px;
  background: url('assets/logo-black.png') no-repeat left center / contain;
  transition: opacity 0.25s var(--ease), filter 0.25s var(--ease);
}
:root[data-theme='dark'] .brand__logo {
  background-image: url('assets/logo-white.png');
}
.brand:hover .brand__logo {
  opacity: 0.78;
}
.brand em {
  font-style: normal;
  color: var(--brand);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nav__links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav__links a {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  font-size: 0.92rem;
  color: var(--ink-dim);
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__links a:hover {
  color: var(--ink);
  background: var(--bg-elev);
}
.nav__links a.is-active {
  color: var(--ink);
  background: var(--bg-elev);
}

/* ---------- Mega menu (Services) ---------- */
.has-mega {
  position: static;
}
.nav__mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink-dim);
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__mega-trigger:hover,
.has-mega.is-open .nav__mega-trigger {
  color: var(--ink);
  background: var(--bg-elev);
}
.nav__mega-chev {
  transition: transform 0.25s var(--ease);
}
.has-mega.is-open .nav__mega-chev {
  transform: rotate(180deg);
}
.mega {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 50%;
  width: min(960px, calc(100vw - 2rem));
  transform: translateX(-50%) translateY(-6px);
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 24px 60px -20px color-mix(in oklab, var(--brand) 30%, transparent);
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 70;
  transition:
    opacity 0.22s var(--ease-out),
    transform 0.22s var(--ease-out),
    visibility 0s linear 0.22s;
}
.has-mega.is-open .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition:
    opacity 0.22s var(--ease-out),
    transform 0.22s var(--ease-out),
    visibility 0s linear 0s;
}
.mega__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.mega__card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), transform 0.18s var(--ease);
  text-decoration: none;
}
.mega__card:hover,
.mega__card:focus-visible {
  border-color: color-mix(in oklab, var(--brand) 40%, var(--line-strong));
  background: color-mix(in oklab, var(--brand) 4%, transparent);
  outline: none;
  border-radius: 10px;
}
.mega__card:hover .mega__cta,
.mega__card:focus-visible .mega__cta {
  gap: 0.45rem;
}
.mega__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--brand) 10%, transparent);
  color: var(--brand);
  transition: background 0.18s var(--ease);
}
.mega__card:hover .mega__icon {
  background: color-mix(in oklab, var(--brand) 18%, transparent);
}
.mega__body {
  min-width: 0;
}
.mega__body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0 0 0.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.mega__body p {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-dim);
  margin: 0 0 0.55rem;
}
.mega__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--brand);
  transition: gap 0.18s var(--ease);
}
.mega__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-dim);
}
.mega__footer a {
  color: var(--brand);
  font-weight: 500;
}
.mega__footer-note {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.mega__footer-note svg { color: var(--brand); }
@media (max-width: 1100px) {
  .mega {
    width: min(820px, calc(100vw - 2rem));
  }
  .mega__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
}
.theme-toggle:hover {
  background: var(--bg-elev-2);
}
.theme-toggle .sun,
.theme-toggle .moon {
  position: absolute;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
:root[data-theme='light'] .theme-toggle .moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}
:root:not([data-theme='light']) .theme-toggle .sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}
.theme-toggle {
  position: relative;
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .nav__links,
  .nav__actions .btn:not(.nav__cta) {
    display: none;
  }
  .nav__toggle {
    display: inline-flex;
  }
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}
.drawer.is-open {
  display: block;
}
.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}
.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 90vw);
  background: var(--bg-elev);
  border-left: 1px solid var(--line);
  padding: 1.25rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
  animation: slideIn 0.35s var(--ease-out);
}
@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
.drawer__panel .brand {
  margin-bottom: 0.5rem;
}
.drawer__panel a:not(.btn):not(.brand) {
  padding: 0.9rem 0.5rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer__panel a.btn {
  justify-content: center;
}
.drawer__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
}

/* Skip link */
.skip {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--brand);
  color: var(--brand-ink);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus {
  top: 1rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}
.hero__glow {
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  top: -320px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 50%, color-mix(in oklab, var(--brand) 35%, transparent) 0%, transparent 60%);
  filter: blur(40px);
  opacity: 0.55;
}
.hero__glow--2 {
  top: 20%;
  left: 15%;
  transform: none;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, color-mix(in oklab, var(--brand-2) 40%, transparent) 0%, transparent 60%);
  opacity: 0.5;
}
.hero__spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx) var(--my), color-mix(in oklab, var(--brand) 10%, transparent), transparent 70%);
  pointer-events: none;
  transition: opacity 0.3s;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}
.hero h1 {
  margin-bottom: 1rem;
}
.hero__lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  max-width: 52ch;
  color: var(--ink-dim);
  margin-bottom: 1.75rem;
}
.hero__cta {
  margin-bottom: 2rem;
}
.hero__trust {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--bg-elev) 60%, transparent);
  backdrop-filter: blur(10px);
  max-width: 560px;
}
.hero__trust li {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.hero__trust strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  color: var(--ink);
}
.hero__trust span {
  font-size: 0.78rem;
  color: var(--ink-faint);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}

/* Word reveal */
.split > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  animation: wordIn 0.8s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 55ms + 0.2s);
}
@keyframes wordIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* UK map */
/* ---------- Hero stage (orb loader → lead form) ---------- */
.hero-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  min-height: 440px;
}
.hero-orb {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  pointer-events: none;
  animation: heroOrbOut 0.8s var(--ease-out) 2.4s forwards;
}
@keyframes heroOrbOut {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.08); visibility: hidden; }
}
.hero-orb__scene {
  position: relative;
  width: clamp(220px, 32vw, 280px);
  aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
  perspective: 1000px;
  animation: heroOrbBreathe 5s ease-in-out infinite;
}
@keyframes heroOrbBreathe {
  0%, 100% { transform: translateY(0) rotateZ(0deg); }
  50%      { transform: translateY(-8px) rotateZ(4deg); }
}
.hero-orb__core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #a7d5ff, var(--brand) 55%, #0e4a8c 100%);
  box-shadow:
    0 0 36px color-mix(in oklab, var(--brand) 55%, transparent),
    0 0 80px color-mix(in oklab, var(--brand) 28%, transparent),
    inset -4px -6px 14px rgba(0, 0, 0, 0.25);
}
.hero-orb__core::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: heroOrbPulse 2.2s ease-in-out infinite;
}
@keyframes heroOrbPulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--brand) 55%, transparent); }
  50%      { box-shadow: 0 0 0 18px color-mix(in oklab, var(--brand) 0%, transparent); }
}
.hero-orb__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: var(--brand);
  border-right-color: color-mix(in oklab, var(--brand) 35%, transparent);
  transform-origin: center center;
  will-change: transform;
}
.hero-orb__ring--1 {
  animation: heroOrbRing1 3.2s linear infinite;
}
.hero-orb__ring--2 {
  inset: 14%;
  border-top-color: color-mix(in oklab, var(--brand) 85%, white);
  border-right-color: color-mix(in oklab, var(--brand) 20%, transparent);
  animation: heroOrbRing2 4.6s linear infinite reverse;
}
.hero-orb__ring--3 {
  inset: 28%;
  border-top-color: color-mix(in oklab, var(--brand) 70%, white);
  border-right-color: color-mix(in oklab, var(--brand) 15%, transparent);
  animation: heroOrbRing3 5.8s linear infinite;
}
@keyframes heroOrbRing1 {
  from { transform: rotateX(72deg) rotateZ(0deg); }
  to   { transform: rotateX(72deg) rotateZ(360deg); }
}
@keyframes heroOrbRing2 {
  from { transform: rotateY(70deg) rotateZ(0deg); }
  to   { transform: rotateY(70deg) rotateZ(360deg); }
}
@keyframes heroOrbRing3 {
  from { transform: rotateX(38deg) rotateY(48deg) rotateZ(0deg); }
  to   { transform: rotateX(38deg) rotateY(48deg) rotateZ(360deg); }
}
.hero-orb__caption {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
  opacity: 0.7;
}
.hero-orb__dots span {
  display: inline-block;
  opacity: 0.2;
  animation: heroOrbDot 1.4s ease-in-out infinite;
}
.hero-orb__dots span:nth-child(2) { animation-delay: 0.18s; }
.hero-orb__dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes heroOrbDot {
  0%, 80%, 100% { opacity: 0.2; }
  40%           { opacity: 1; }
}

/* ---------- Hero lead-capture form ---------- */
.lead-form {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  opacity: 0;
  transform: translateY(24px);
  animation: leadFormIntro 1.4s var(--ease-out) 2.5s forwards;
}
@keyframes leadFormIntro {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-orb { display: none; }
  .lead-form {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
.lead-form::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, color-mix(in oklab, var(--brand) 45%, transparent), transparent 60%);
  border-radius: calc(var(--radius-lg) + 2px);
  z-index: -1;
  opacity: 0.6;
  filter: blur(18px);
}
.lead-form__head .eyebrow {
  color: var(--brand);
}
.lead-form__title {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  margin: 0.35rem 0 0.25rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.lead-form__sub {
  color: var(--ink-dim);
  font-size: 0.92rem;
  margin: 0;
}
.service-pills {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.service-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}
.service-pill:hover {
  border-color: color-mix(in oklab, var(--brand) 60%, var(--line-strong));
  color: var(--brand);
}
.service-pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--ink-dim);
  transition: color 0.18s var(--ease);
}
.service-pill:hover svg { color: var(--brand); }
.service-pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.service-pill:has(input:checked) {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 6px 18px -6px color-mix(in oklab, var(--brand) 60%, transparent);
}
.service-pill:has(input:checked) svg {
  color: var(--brand-ink);
}
.service-pill:has(input:focus-visible) {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.lead-form__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.lead-form__field--full {
  grid-column: 1 / -1;
}
.lead-form__field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-dim);
  margin-bottom: 0.3rem;
  letter-spacing: 0.01em;
}
.lead-form__field input,
.lead-form__field select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.lead-form__field input:focus,
.lead-form__field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 20%, transparent);
}
.lead-form__field input.is-error,
.lead-form__field select.is-error {
  border-color: var(--danger);
}
.lead-form__submit {
  width: 100%;
  justify-content: center;
}
.lead-form__fineprint {
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.lead-form__fineprint svg { color: var(--brand); }
.lead-form__success {
  text-align: center;
  padding: 1rem 0.5rem;
  animation: leadSuccess 0.4s var(--ease-out) both;
}
.lead-form__success h3 {
  margin: 0.5rem 0 0.35rem;
  font-size: 1.15rem;
}
.lead-form__success p {
  color: var(--ink-dim);
  font-size: 0.92rem;
  margin: 0;
}
.lead-form__success a { color: var(--brand); font-weight: 500; }
.lead-form__success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--success, #1fa47b) 14%, transparent);
  color: var(--success, #1fa47b);
  display: grid;
  place-items: center;
  margin: 0 auto 0.5rem;
}
@keyframes leadSuccess {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.lead-form.is-submitted .lead-form__head,
.lead-form.is-submitted .service-pills,
.lead-form.is-submitted .lead-form__fields,
.lead-form.is-submitted .lead-form__submit,
.lead-form.is-submitted .lead-form__fineprint {
  display: none;
}

/* Legacy UK map kept in case of reuse but unused on homepage */
.uk-map {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  aspect-ratio: 1 / 1.1;
  position: relative;
}
.uk-map svg {
  width: 100%;
  height: 100%;
}
.uk-map__path {
  fill: color-mix(in oklab, var(--brand-2) 8%, transparent);
  stroke: color-mix(in oklab, var(--brand) 40%, transparent);
  stroke-width: 0.6;
}
.uk-map__node {
  fill: var(--brand);
  filter: drop-shadow(0 0 6px var(--brand));
}
.uk-map__ring {
  fill: none;
  stroke: var(--brand);
  stroke-width: 1;
  opacity: 0;
  transform-origin: center;
  animation: ringPulse 3s infinite;
}
.uk-map__ring--2 {
  animation-delay: 1s;
}
.uk-map__ring--3 {
  animation-delay: 2s;
}
@keyframes ringPulse {
  0% {
    opacity: 0.9;
    transform: scale(0.4);
  }
  100% {
    opacity: 0;
    transform: scale(3);
  }
}
.uk-map__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 3.4px;
  fill: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.uk-map__tag {
  position: absolute;
  bottom: 6%;
  right: 4%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--ink-dim);
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  box-shadow: var(--shadow);
}
.uk-map__tag b {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Accreditation bar ---------- */
.accred {
  padding: 1.25rem 0 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.accred__head {
  text-align: center;
  margin-bottom: 0.75rem;
}
.accred__label {
  font-size: 0.72rem;
  color: var(--ink-faint);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.accred__marquee {
  padding: 0.5rem 0;
}
.accred__marquee .marquee__track {
  animation-duration: 60s;
  gap: 3.5rem;
}
.accred__item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink-dim);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  white-space: nowrap;
  opacity: 0.8;
  transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
}
.accred__item:hover {
  opacity: 1;
  color: var(--ink);
}
.accred__item svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--brand);
}
@media (max-width: 640px) {
  .accred__item {
    font-size: 0.9rem;
    gap: 0.5rem;
  }
  .accred__item svg {
    width: 22px;
    height: 22px;
  }
  .accred__marquee .marquee__track {
    gap: 2.5rem;
  }
}

/* ---------- Industry selector ---------- */
/* ---------- Industry section ---------- */
.industry {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  background:
    radial-gradient(60% 80% at 80% 0%, color-mix(in oklab, var(--brand) 6%, transparent), transparent 60%),
    linear-gradient(to bottom, var(--bg-elev) 0%, var(--bg) 100%);
}
.industry__head {
  text-align: center;
  margin-bottom: 2rem;
}
.industry__eyebrow {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--brand);
}
.industry__title {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0.4rem 0 0.6rem;
}
.industry__subtitle {
  color: var(--ink-dim);
  max-width: 58ch;
  margin: 0 auto 1.5rem;
  font-size: 1.02rem;
}
.industry__tabs {
  display: inline-flex;
  padding: 4px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  gap: 2px;
  margin-inline: auto;
  box-shadow: var(--shadow-sm);
}
.industry__tab {
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-dim);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.industry__tab[aria-pressed='true'] {
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 4px 14px -4px color-mix(in oklab, var(--brand) 50%, transparent);
}
.industry__tab:hover:not([aria-pressed='true']) {
  color: var(--ink);
  background: color-mix(in oklab, var(--brand) 8%, transparent);
}
@media (max-width: 640px) {
  .industry__tabs {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    padding: 6px;
    border-radius: 18px;
    gap: 4px;
  }
  .industry__tab {
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: center;
  }
}

.industry__panels {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  min-height: 460px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .industry__panels {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}
.industry__panel {
  display: contents;
}
.industry__panel[hidden] {
  display: none;
}
.industry__card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.industry__card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, color-mix(in oklab, var(--brand) 22%, transparent) 0%, transparent 70%);
  transform: translate(40%, -40%);
  pointer-events: none;
}
.industry__card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.industry__card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 10px 30px -10px color-mix(in oklab, var(--brand) 50%, transparent);
}
.industry__card-icon svg { width: 28px; height: 28px; }
.industry__card-head h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.industry__card-head p {
  margin: 0.25rem 0 0;
  color: var(--ink-dim);
  font-size: 0.92rem;
}
.industry__lead {
  color: var(--ink-dim);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}
.industry__benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
.industry__benefit {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.85rem;
  align-items: start;
}
.industry__benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: color-mix(in oklab, var(--brand) 14%, transparent);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.industry__benefit-icon svg { width: 18px; height: 18px; }
.industry__benefit b {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.15rem;
  font-size: 0.98rem;
}
.industry__benefit span {
  color: var(--ink-dim);
  font-size: 0.88rem;
  line-height: 1.55;
}
.industry__aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.industry__stats {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}
.industry__stat {
  text-align: center;
}
.industry__stat b {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  color: var(--brand);
  letter-spacing: -0.02em;
  font-weight: 600;
}
.industry__stat span {
  font-size: 0.78rem;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.industry__apps {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.industry__apps h4 {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}
.industry__apps-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.industry__app {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: color-mix(in oklab, var(--brand) 8%, transparent);
  border: 1px solid color-mix(in oklab, var(--brand) 20%, transparent);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink);
  font-weight: 500;
}
.industry__app::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.industry__quote {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 20px 40px -20px color-mix(in oklab, var(--brand) 60%, transparent);
}
.industry__quote::before {
  content: '"';
  position: absolute;
  top: -40px;
  right: 12px;
  font-family: 'Space Grotesk', serif;
  font-size: 140px;
  opacity: 0.2;
  font-weight: 600;
  line-height: 1;
}
.industry__quote blockquote {
  margin: 0 0 0.75rem;
  font-size: 1.02rem;
  line-height: 1.5;
  font-style: italic;
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.industry__quote cite {
  font-size: 0.82rem;
  opacity: 0.85;
  font-style: normal;
  letter-spacing: 0.02em;
}
.industry__cta {
  width: 100%;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem;
  font-weight: 600;
}
.industry__cta svg {
  transition: transform 0.2s ease;
}
.industry__cta:hover svg {
  transform: translateX(3px);
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 1.5rem 0;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: slide 40s linear infinite;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }
}
@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ink-dim);
  padding: 0.5rem 0;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.marquee__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand);
  opacity: 0.6;
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 1.25rem;
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 900px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}
.card--interactive {
  display: block;
  cursor: pointer;
}
.card--interactive::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at var(--mx) var(--my), color-mix(in oklab, var(--brand) 10%, transparent), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card--interactive:hover::before {
  opacity: 1;
}
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in oklab, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--brand) 30%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  margin-bottom: 1rem;
}
.card__icon svg {
  width: 22px;
  height: 22px;
}
.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}
.card p {
  color: var(--ink-dim);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.card__link {
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.card__link:hover {
  gap: 0.6rem;
}

/* ---------- Benefits row ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) {
  .benefits {
    grid-template-columns: 1fr;
  }
}
.benefit {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}
.benefit__stat {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.benefit__stat .sub {
  font-size: 0.85rem;
  color: var(--ink-faint);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  margin-left: 0.4rem;
  letter-spacing: 0;
}

/* ---------- Stats strip ---------- */
.stats {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: linear-gradient(to bottom, transparent, color-mix(in oklab, var(--brand-2) 4%, transparent), transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
@media (max-width: 900px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.stat__num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  background: linear-gradient(135deg, var(--ink), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__label {
  font-size: 0.85rem;
  color: var(--ink-dim);
  margin-top: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}

/* ---------- Why HDUK scroll-pinned ---------- */
.why {
  padding: clamp(4rem, 9vw, 8rem) 0;
  position: relative;
}
.why__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) {
  .why__grid {
    grid-template-columns: 1fr;
  }
}
.why__sticky {
  position: sticky;
  top: 110px;
}
@media (max-width: 900px) {
  .why__sticky {
    position: static;
    top: auto;
  }
}
.why__panels {
  display: grid;
  gap: 1.25rem;
}
.why__panel {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.why__panel.is-active {
  border-color: color-mix(in oklab, var(--brand) 50%, transparent);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--brand) 30%, transparent), 0 30px 60px -20px color-mix(in oklab, var(--brand) 25%, transparent);
}
.why__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--brand);
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}
.why__panel h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ---------- SOC threat feed ---------- */
.soc {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}
@media (max-width: 900px) {
  .soc {
    grid-template-columns: 1fr;
  }
}
.terminal {
  background: #050608;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
}
:root[data-theme='light'] .terminal {
  background: #0b1020;
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.75rem;
}
.terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a4150;
}
.terminal__dot:nth-child(1) {
  background: #ff6b6b;
}
.terminal__dot:nth-child(2) {
  background: #ffb648;
}
.terminal__dot:nth-child(3) {
  background: #22c55e;
}
.terminal__title {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: #9aa3b2;
  letter-spacing: 0.08em;
}
.terminal__body {
  height: 320px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}
.terminal__line {
  color: #cfd5e0;
  padding: 0.25rem 0;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
  animation: logIn 0.4s var(--ease-out);
}
@keyframes logIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.terminal__time {
  color: #606a7c;
  flex-shrink: 0;
}
.terminal__tag {
  font-size: 0.7rem;
  padding: 0.05rem 0.45rem;
  border-radius: 4px;
  background: color-mix(in oklab, var(--success) 20%, transparent);
  color: var(--success);
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.terminal__tag--warn {
  background: color-mix(in oklab, var(--accent) 20%, transparent);
  color: var(--accent);
}
.terminal__tag--danger {
  background: color-mix(in oklab, var(--danger) 22%, transparent);
  color: var(--danger);
}
.terminal__msg {
  color: #cfd5e0;
  flex: 1;
}
.terminal__foot {
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9aa3b2;
  display: flex;
  justify-content: space-between;
}
.terminal__count {
  color: var(--brand);
}

/* ---------- Cost calculator ---------- */
.calc {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
}
.calc::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--brand-2) 20%, transparent), transparent 60%);
  pointer-events: none;
}
@media (max-width: 820px) {
  .calc {
    grid-template-columns: 1fr;
  }
}
.calc__inputs {
  display: grid;
  gap: 1.25rem;
  position: relative;
}
.calc__result {
  background: linear-gradient(160deg, var(--bg-elev-2), var(--bg));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.calc__result::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, color-mix(in oklab, var(--brand) 20%, transparent), transparent 60%);
  pointer-events: none;
}
.calc__label {
  font-size: 0.78rem;
  color: var(--ink-faint);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.calc__amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, var(--ink), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
}
.calc__sub {
  font-size: 0.9rem;
  color: var(--ink-dim);
  margin-bottom: 1rem;
}
.calc__disclaimer {
  font-size: 0.72rem;
  color: var(--ink-faint);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.03em;
}
.calc__row {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.9rem;
  color: var(--ink-dim);
}
.calc__row:last-child {
  border-bottom: 0;
}
.calc__row b {
  color: var(--ink);
  font-weight: 500;
}

/* Inputs */
.field {
  display: grid;
  gap: 0.35rem;
}
.field label {
  font-size: 0.8rem;
  color: var(--ink-dim);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.field input[type='text'],
.field input[type='email'],
.field input[type='tel'],
.field input[type='number'],
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea {
  min-height: 110px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 20%, transparent);
}
.field .hint {
  font-size: 0.78rem;
  color: var(--ink-faint);
}
.field .err {
  font-size: 0.78rem;
  color: var(--danger);
  display: none;
}
.field.has-error .err {
  display: block;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
}

/* Range */
input[type='range'].range {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  height: 26px;
}
input[type='range'].range::-webkit-slider-runnable-track {
  height: 6px;
  background: linear-gradient(to right, var(--brand) var(--val, 0%), var(--line-strong) var(--val, 0%));
  border-radius: 999px;
}
input[type='range'].range::-moz-range-track {
  height: 6px;
  background: var(--line-strong);
  border-radius: 999px;
}
input[type='range'].range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--brand);
  border: 3px solid var(--bg-elev);
  border-radius: 999px;
  margin-top: -8px;
  cursor: grab;
  box-shadow: 0 4px 14px -2px color-mix(in oklab, var(--brand) 50%, transparent);
}
input[type='range'].range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--brand);
  border: 3px solid var(--bg-elev);
  border-radius: 999px;
}

/* Toggle switch */
.switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
  gap: 1rem;
  user-select: none;
}
.switch input {
  display: none;
}
.switch__title {
  font-size: 0.92rem;
  color: var(--ink);
}
.switch__sub {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-faint);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 0.15rem;
}
.switch__pill {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--line-strong);
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.switch__pill::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--bg-elev);
  transition: transform 0.2s var(--ease);
}
.switch input:checked ~ .switch__pill {
  background: var(--brand);
}
.switch input:checked ~ .switch__pill::after {
  transform: translateX(18px);
}

/* ---------- Testimonials ---------- */
.testimonials {
  position: relative;
  overflow: hidden;
}
.testimonial {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
  position: relative;
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Space Grotesk', serif;
  font-size: 5rem;
  color: var(--brand);
  line-height: 1;
}
.testimonial__stars {
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.testimonial__quote {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.45;
  margin-bottom: 1.25rem;
  font-weight: 400;
}
.testimonial__cite {
  font-size: 0.88rem;
  color: var(--ink-dim);
}
.testimonial__cite b {
  color: var(--ink);
  font-weight: 500;
}
.testimonials__nav {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
}
.testimonials__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line-strong);
  border: 0;
  cursor: pointer;
}
.testimonials__dot[aria-current='true'] {
  background: var(--brand);
  width: 22px;
}

/* ---------- Case study teaser ---------- */
.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
}
@media (max-width: 820px) {
  .case {
    grid-template-columns: 1fr;
  }
}
.case__img {
  min-height: 340px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  position: relative;
  overflow: hidden;
}
.case__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  mix-blend-mode: luminosity;
}
.case__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 40%, var(--bg-elev));
  opacity: 0.65;
}
.case__body {
  padding: clamp(1.75rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.case__stat {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 500;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

/* ---------- CTA band ---------- */
.cta-band {
  padding: clamp(3rem, 6vw, 5rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band__inner {
  background: linear-gradient(145deg, color-mix(in oklab, var(--brand) 18%, var(--bg-elev)), var(--bg-elev));
  border: 1px solid color-mix(in oklab, var(--brand) 25%, var(--line));
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 3vw, 3rem);
  position: relative;
  overflow: hidden;
}
.cta-band__inner::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 10% 0%, color-mix(in oklab, var(--brand) 40%, transparent), transparent 50%),
    radial-gradient(circle at 90% 100%, color-mix(in oklab, var(--brand-2) 35%, transparent), transparent 55%);
  pointer-events: none;
}
.cta-band h2 {
  position: relative;
  z-index: 1;
}
.cta-band p {
  position: relative;
  z-index: 1;
}
.inline-form {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.4rem 0.4rem 0.4rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  max-width: 100%;
  position: relative;
  z-index: 1;
}
.inline-form input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  padding: 0.5rem 0;
  min-width: 180px;
  outline: none;
}
.inline-form__success {
  display: none;
  color: var(--success);
  margin-top: 0.75rem;
  font-size: 0.9rem;
}
.inline-form.is-success .inline-form__success {
  display: block;
}

/* ---------- Footer ---------- */
.footer {
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  border-top: 1px solid var(--line);
  position: relative;
  background: color-mix(in oklab, var(--bg) 90%, black);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 820px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}
.footer__col h4 {
  font-size: 0.78rem;
  color: var(--ink-faint);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer__links a {
  color: var(--ink-dim);
  font-size: 0.92rem;
}
.footer__links a:hover {
  color: var(--brand);
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Live chat stub ---------- */
.chat-launcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 60;
}
.chat-launcher__btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 30px -6px color-mix(in oklab, var(--brand) 50%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease);
}
.chat-launcher__btn:hover {
  transform: scale(1.06);
}
.chat-panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 320px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
  display: none;
  animation: popIn 0.3s var(--ease-out);
}
.chat-panel.is-open {
  display: block;
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.chat-panel h4 {
  margin-bottom: 0.5rem;
}
.chat-panel .demo-chip {
  display: inline-block;
  font-size: 0.68rem;
  padding: 0.1rem 0.4rem;
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  color: var(--accent);
  border-radius: 4px;
  margin-left: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Sticky quote tab ---------- */
.quote-tab {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translate(100%, -50%);
  z-index: 55;
  transition: transform 0.4s var(--ease-out);
}
.quote-tab.is-visible {
  transform: translate(0, -50%);
}
.quote-tab__handle {
  position: absolute;
  top: 50%;
  left: -42px;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: 100% 50%;
  background: var(--brand);
  color: var(--brand-ink);
  padding: 0.55rem 1rem;
  border-radius: 10px 10px 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 -4px 20px -6px color-mix(in oklab, var(--brand) 50%, transparent);
}
.quote-tab__panel {
  width: 320px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-left-width: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}
.quote-tab.is-open .quote-tab__panel {
  display: block;
}

/* ---------- Exit intent modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal.is-open {
  display: flex;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  animation: fade 0.3s;
}
.modal__panel {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.35s var(--ease-out);
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
}
.modal h3 {
  margin-bottom: 0.5rem;
}

/* ---------- Page transition overlay ---------- */
.page-fade {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.page-fade.is-active {
  opacity: 1;
  pointer-events: all;
}

/* ============================================================
   MS365 PAGE
   ============================================================ */

/* 3D cube */
.cube-stage {
  perspective: 1000px;
  width: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.cube {
  width: 200px;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  animation: cubeSpin 22s linear infinite;
  cursor: grab;
}
.cube:hover,
.cube.is-paused {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .cube {
    animation: none;
    transform: rotateX(-18deg) rotateY(28deg);
  }
}
@keyframes cubeSpin {
  0% {
    transform: rotateX(-18deg) rotateY(0);
  }
  100% {
    transform: rotateX(-18deg) rotateY(360deg);
  }
}
.cube__face {
  position: absolute;
  inset: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  background: linear-gradient(135deg, var(--bg-elev-2), var(--bg-elev));
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backface-visibility: visible;
  cursor: pointer;
  gap: 0.5rem;
  appearance: none;
  -webkit-appearance: none;
}
.cube__face:hover {
  border-color: var(--brand);
}
.cube__face svg {
  width: 60px;
  height: 60px;
}
.cube__face span {
  font-size: 0.85rem;
  color: var(--ink-dim);
}
.cube__face--f {
  transform: translateZ(100px);
}
.cube__face--b {
  transform: rotateY(180deg) translateZ(100px);
}
.cube__face--r {
  transform: rotateY(90deg) translateZ(100px);
}
.cube__face--l {
  transform: rotateY(-90deg) translateZ(100px);
}
.cube__face--t {
  transform: rotateX(90deg) translateZ(100px);
}
.cube__face--bt {
  transform: rotateX(-90deg) translateZ(100px);
}
.cube-stage__halo {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--brand) 25%, transparent), transparent 60%);
  filter: blur(30px);
  z-index: -1;
}

/* Sticky TOC */
.toc {
  position: sticky;
  top: 90px;
  align-self: start;
}
.toc h4 {
  font-size: 0.72rem;
  color: var(--ink-faint);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-left: 1px solid var(--line);
}
.toc a {
  display: block;
  padding: 0.4rem 0.9rem;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--ink-dim);
  font-size: 0.88rem;
}
.toc a.is-active {
  color: var(--ink);
  border-left-color: var(--brand);
}
.ms365-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 900px) {
  .ms365-body {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
    display: none;
  }
}

/* Comparison table */
.compare {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  margin-top: 1.25rem;
}
@media (max-width: 800px) {
  .compare {
    grid-template-columns: 1fr;
  }
  .compare__col.h {
    display: none;
  }
}
.compare__col {
  padding: 1.25rem;
  border-right: 1px solid var(--line);
}
.compare__col:last-child {
  border-right: 0;
}
.compare__col.recommended {
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--brand) 12%, transparent) 0%,
    color-mix(in oklab, var(--brand) 3%, transparent) 60%,
    transparent 100%);
  position: relative;
  box-shadow: inset 0 3px 0 var(--brand);
}
.compare__col.recommended .compare__head {
  color: var(--brand);
}
.compare__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: var(--brand-ink);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  box-shadow:
    0 6px 18px -4px color-mix(in oklab, var(--brand) 55%, transparent),
    0 2px 4px rgba(0, 0, 0, 0.08);
  z-index: 2;
}
.compare__badge::before {
  content: '★';
  margin-right: 0.4em;
  font-size: 0.85em;
  vertical-align: -1px;
}
@media (max-width: 800px) {
  .compare__col.recommended {
    box-shadow: inset 3px 0 0 var(--brand), inset 0 3px 0 var(--brand);
  }
  .compare__badge {
    top: 1rem;
    left: auto;
    right: 1rem;
    transform: none;
  }
}
.compare__head {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}
.compare__price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink);
}
.compare__price small {
  color: var(--ink-faint);
  font-size: 0.8rem;
  font-weight: 400;
  font-family: 'JetBrains Mono', monospace;
}
.compare__row {
  padding: 0.65rem 0;
  border-top: 1px dashed var(--line);
  font-size: 0.9rem;
  color: var(--ink-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.compare__row:first-of-type {
  border-top: 0;
}
.compare__row.feat {
  color: var(--ink);
}
.tick {
  color: var(--brand);
}
.cross {
  color: var(--ink-faint);
}

/* Migration timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
  padding: 2rem 0;
}
@media (max-width: 900px) {
  .timeline {
    grid-template-columns: 1fr;
  }
}
.timeline::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--line);
}
@media (max-width: 900px) {
  .timeline::before {
    top: 0;
    bottom: 0;
    left: 32px;
    right: auto;
    width: 2px;
    height: auto;
  }
}
.step {
  text-align: center;
  padding: 0 0.75rem;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .step {
    text-align: left;
    padding: 0 0 1.25rem 3.5rem;
  }
}
.step__dot {
  width: 44px;
  height: 44px;
  margin: 0 auto 1rem;
  background: var(--bg-elev);
  border: 2px solid var(--brand);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  position: relative;
}
@media (max-width: 900px) {
  .step__dot {
    position: absolute;
    left: 10px;
    top: 0;
    margin: 0;
  }
}
.step h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.step__note {
  font-size: 0.78rem;
  color: var(--ink-faint);
  font-family: 'JetBrains Mono', monospace;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.6rem;
  max-width: 820px;
  margin-inline: auto;
}
details.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  padding: 0;
  overflow: hidden;
}
details.faq__item[open] {
  border-color: var(--line-strong);
}
details.faq__item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  list-style: none;
  user-select: none;
}
details.faq__item summary::-webkit-details-marker {
  display: none;
}
details.faq__item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--brand);
  transition: transform 0.3s var(--ease);
}
details.faq__item[open] summary::after {
  transform: rotate(45deg);
}
details.faq__item .faq__a {
  padding: 0 1.25rem 1.25rem;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

/* Security posture quiz */
.quiz {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
@media (max-width: 820px) {
  .quiz {
    grid-template-columns: 1fr;
  }
}
.quiz__items {
  display: grid;
  gap: 0.6rem;
}
.quiz__result {
  text-align: center;
  padding: 1.5rem;
  border-left: 1px solid var(--line);
}
@media (max-width: 820px) {
  .quiz__result {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 2rem;
  }
}
.gauge {
  width: 180px;
  height: 180px;
  margin: 0 auto 1rem;
  position: relative;
}
.gauge svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.gauge__bg {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 10;
}
.gauge__bar {
  fill: none;
  stroke: var(--brand);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 0.8s var(--ease), stroke 0.3s;
  filter: drop-shadow(0 0 8px color-mix(in oklab, var(--brand) 50%, transparent));
}
.gauge__num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.gauge__num span {
  font-size: 0.8rem;
  color: var(--ink-faint);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}
.tier {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.tier--low {
  background: color-mix(in oklab, var(--danger) 15%, transparent);
  color: var(--danger);
}
.tier--mid {
  background: color-mix(in oklab, var(--accent) 15%, transparent);
  color: var(--accent);
}
.tier--high {
  background: color-mix(in oklab, var(--success) 15%, transparent);
  color: var(--success);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.form-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.stepper {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.stepper__pip {
  flex: 1;
  height: 4px;
  background: var(--line-strong);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.stepper__pip.is-done::after,
.stepper__pip.is-active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand);
  transform-origin: left;
  animation: fillPip 0.4s var(--ease);
}
@keyframes fillPip {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.step-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  color: var(--ink-dim);
  font-size: 0.85rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}
.step-head b {
  color: var(--ink);
  font-weight: 500;
}

.form-step {
  display: none;
  animation: stepIn 0.35s var(--ease-out);
}
.form-step.is-active {
  display: block;
}
@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.step-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  gap: 0.5rem;
}

.urgency {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
@media (max-width: 600px) {
  .urgency {
    grid-template-columns: 1fr;
  }
}
.urgency__opt {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.urgency__opt input {
  display: none;
}
.urgency__opt:has(input:checked) {
  border-color: var(--brand);
  background: color-mix(in oklab, var(--brand) 8%, transparent);
}
.urgency__opt b {
  display: block;
  margin-bottom: 0.25rem;
}
.urgency__opt small {
  color: var(--ink-dim);
  font-size: 0.82rem;
}

.chk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
@media (max-width: 600px) {
  .chk-grid {
    grid-template-columns: 1fr;
  }
}
.chk {
  padding: 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: border-color 0.2s, background 0.2s;
}
.chk input {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
}
.chk input:checked {
  background: var(--brand);
  border-color: var(--brand);
}
.chk input:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 9px;
  border: solid var(--brand-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.chk:has(input:checked) {
  border-color: var(--brand);
  background: color-mix(in oklab, var(--brand) 6%, transparent);
}

/* Availability */
.avail {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.avatars {
  display: flex;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  border: 2px solid var(--bg-elev);
  margin-left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-ink);
  font-weight: 500;
  font-size: 0.85rem;
  position: relative;
}
.avatar:first-child {
  margin-left: 0;
}
.avatar.online::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--bg-elev);
}
.avail__text b {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.92rem;
}
.avail__text small {
  color: var(--ink-dim);
  font-size: 0.82rem;
}
.typing {
  display: inline-flex;
  gap: 3px;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.typing span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
  animation: typing 1.4s infinite;
}
.typing span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.3;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* Direct contact */
.contact-info {
  display: grid;
  gap: 1.25rem;
}
.info-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.info-card h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.92rem;
}
.info-card li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink-dim);
}
.info-card li b {
  color: var(--ink);
  font-weight: 500;
}
.specialist {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.specialist__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-ink);
  font-weight: 500;
  flex-shrink: 0;
  position: relative;
}
.specialist__avatar.online::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--bg-elev);
}
.specialist b {
  display: block;
  color: var(--ink);
}
.specialist small {
  color: var(--ink-dim);
}

/* Booking grid */
.booking {
  margin-top: 1rem;
}
.booking__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 0.5rem;
}
.booking__slot {
  padding: 0.5rem 0.2rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.72rem;
  color: var(--ink-dim);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.booking__slot:hover:not(:disabled) {
  background: color-mix(in oklab, var(--brand) 10%, transparent);
  border-color: var(--brand);
  color: var(--ink);
}
.booking__slot:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.booking__slot.is-selected {
  background: var(--brand);
  color: var(--brand-ink);
  border-color: var(--brand);
}
.booking__head {
  font-size: 0.7rem;
  color: var(--ink-faint);
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.25rem;
}

/* Map */
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 1rem;
  position: relative;
  aspect-ratio: 16 / 10;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(30%) contrast(1.05);
}
:root:not([data-theme='light']) .map-frame iframe {
  filter: grayscale(40%) contrast(1.1) brightness(0.75) invert(0.92) hue-rotate(180deg);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: var(--bg-elev);
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  padding: 0.9rem 1.25rem;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  display: none;
  max-width: 340px;
}
.toast.is-open {
  display: block;
  animation: popIn 0.3s var(--ease-out);
}
.toast b {
  color: var(--brand);
}
.demo-chip {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  color: var(--accent);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 0.5rem;
}

/* ---------- Reveal utility ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal.from-l,
.reveal--l {
  transform: translateX(-28px);
}
.reveal.from-r,
.reveal--r {
  transform: translateX(28px);
}
.reveal.from-l.is-visible,
.reveal.from-r.is-visible,
.reveal--l.is-visible,
.reveal--r.is-visible {
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
  .split > span {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.center {
  text-align: center;
}
.muted {
  color: var(--ink-dim);
}
.fineprint {
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.bg-tint {
  background: linear-gradient(to bottom, transparent, var(--bg-elev), transparent);
}

/* Trust band */
.trust-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
  padding: 2rem 0;
}
@media (max-width: 720px) {
  .trust-band {
    grid-template-columns: repeat(2, 1fr);
  }
}
.trust-band__item b {
  display: block;
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}
.trust-band__item small {
  color: var(--ink-dim);
  font-size: 0.82rem;
}
