/* ==========================================================================
   Octagon Business Solutions — site styles (v3 redesign)
   Palette from the Octagon logo: sky-to-deep blue facets, navy and charcoal.
   Dark theme only (the light/dark switch was removed). The previous version,
   with both themes, is in ..\WebsiteV3-backup-before-dark-only.
   ========================================================================== */

:root {
  /* Brand */
  --navy-950: #041019;
  --navy-900: #071c2c;
  --navy-800: #0b2a3f;
  --navy-700: #0f3a55;
  --blue-700: #0b5c99;
  --blue-600: #0f6fb8;
  --blue-500: #1786d6;
  --sky-400: #2fa9e3;
  --sky-300: #6cc6ef;
  --sky-100: #e3f2fb;
  --charcoal-600: #4a5560;
  --charcoal-400: #7d8a96;
  --white: #ffffff;
  --success: #1c7c4a;
  --error: #b42318;

  --grad-brand: linear-gradient(135deg, var(--sky-400) 0%, var(--blue-500) 45%, var(--blue-700) 100%);
  --grad-text: linear-gradient(100deg, var(--sky-400), var(--blue-500) 55%, var(--blue-700));
  --octagon: polygon(29.3% 0, 70.7% 0, 100% 29.3%, 100% 70.7%, 70.7% 100%, 29.3% 100%, 0 70.7%, 0 29.3%);

  /* Theme tokens: dark only, one step brighter than the old dark mode
     (old values kept alongside so they are easy to restore).
     Full copy of the previous light/dark site: ..\WebsiteV3-backup-before-dark-only */
  --bg: #0d2234;          /* was #06131d */
  --bg-alt: #122b40;      /* was #0a1c2a */
  --surface: #17344c;     /* was #0e2232 */
  --surface-2: #1c3c57;   /* was #112a3d */
  --text: #dde9f2;        /* was #d3e1ec */
  --muted: #a6bacb;       /* was #92a8ba */
  --heading: #ffffff;
  --border: rgba(255, 255, 255, .10);
  --border-strong: rgba(255, 255, 255, .18);
  --accent: #4bb8ea;
  --accent-strong: #7fd0f4;
  --accent-soft: rgba(47, 169, 227, .16);
  --glow: rgba(47, 169, 227, .35);
  --header-bg: #08182a;   /* header sits darker than the page so it stands apart */
  --hero-text: #ffffff;
  --hero-muted: #bccddb;
  --dot: rgba(255, 255, 255, .06);
  --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 12px 32px -14px rgba(0, 0, 0, .5);
  --shadow-lg: 0 28px 70px -24px rgba(0, 0, 0, .65);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1700px;
  --header-h: 78px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--accent-strong); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .6em; color: var(--heading); letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
::selection { background: var(--sky-400); color: var(--white); }
:focus-visible { outline: 3px solid var(--sky-400); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { position: relative; padding: clamp(64px, 9vw, 112px) 0; }
.section--alt { background: var(--bg-alt); }
.section--alt::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 100% 0%, var(--accent-soft), transparent 70%);
}
.section > .container { position: relative; z-index: 1; }

.section--dark {
  background:
    radial-gradient(800px 400px at 15% 0%, rgba(47,169,227,.22), transparent 65%),
    radial-gradient(700px 400px at 100% 100%, rgba(15,111,184,.25), transparent 65%),
    linear-gradient(160deg, var(--navy-800), var(--navy-950));
  color: #c6d6e3; overflow: hidden;
  --heading: #ffffff; --muted: #a9bccd; --accent: #4bb8ea; --accent-strong: #8fd6f6;
  --surface: rgba(255,255,255,.05); --border: rgba(255,255,255,.10);
}
.section--dark h2, .section--dark h3 { color: var(--white); }

.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: .74rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid var(--border);
}
.eyebrow::before {
  content: ""; width: 10px; height: 10px; flex-shrink: 0;
  background: var(--grad-brand); clip-path: var(--octagon);
}
@keyframes eyebrow-spin { to { transform: rotate(360deg); } }
.lead { font-size: 1.16rem; color: var(--muted); }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--surface); color: var(--heading); padding: 10px 16px; border-radius: 6px; font-weight: 600;
}
.skip-link:focus { top: 12px; }


/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  padding: .85em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-family: var(--font-display); font-weight: 600; font-size: .96rem;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn::after { /* light sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn--primary { background: var(--grad-brand); color: var(--white); box-shadow: 0 10px 24px -10px rgba(23,134,214,.7); }
.btn--primary:hover { color: var(--white); box-shadow: 0 16px 32px -12px rgba(23,134,214,.85); }
.btn--outline { border-color: var(--border-strong); color: var(--heading); background: var(--surface); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--light { background: var(--white); color: var(--navy-800); }
.btn--light:hover { background: var(--sky-100); color: var(--navy-800); }
.btn--ghost-light { border-color: rgba(255,255,255,.5); color: var(--white); background: rgba(255,255,255,.06); }
.btn--ghost-light:hover { background: var(--white); color: var(--navy-800); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; text-decoration: none; }
.link-arrow::after { content: "\2192"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  /* Solid (no blur) and fixed height: a blurred or resizing sticky header is the
     most expensive thing to scroll under, so neither is used. */
  background: var(--header-bg);
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .6);
}
/* brand-gradient line along the bottom edge */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, var(--sky-400), var(--blue-500) 50%, rgba(23, 134, 214, 0));
}
/* Header runs wider than the page content: logo hugs the left, menu the right */
.site-header .container { max-width: 1800px; padding: 0 clamp(20px, 3.5vw, 48px); display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex-shrink: 0; margin-right: auto; }
.brand img { height: 60px; width: auto; }

.nav-toggle {
  display: none; background: none; border: 0; color: var(--heading); cursor: pointer;
  padding: 10px; margin-right: -10px;
}
.nav-toggle svg { width: 28px; height: 28px; }

.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav a, .main-nav .submenu-toggle {
  display: flex; align-items: center; gap: 6px;
  color: var(--heading); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 10px 14px; border-radius: 10px; background: none; border: 0; font-family: inherit; cursor: pointer;
  transition: color .2s, background-color .2s;
}
.main-nav > ul > li > a, .main-nav .nav-item-row > a { position: relative; }
.main-nav > ul > li > a:not(.nav-cta)::after, .main-nav .nav-item-row > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav .nav-item-row > a::after { right: 4px; }
.main-nav > ul > li > a:not(.nav-cta):hover::after, .main-nav .nav-item-row > a:hover::after,
.main-nav a[aria-current="page"]:not(.nav-cta)::after, .main-nav .is-current > .nav-item-row > a::after { transform: scaleX(1); }
.main-nav a:hover, .main-nav .submenu-toggle:hover,
.main-nav a[aria-current="page"], .main-nav .is-current > .nav-item-row > a { color: var(--accent); }
.main-nav .nav-cta { background: var(--grad-brand); color: var(--white); margin-left: 10px; padding: 10px 20px; border-radius: 999px; font-family: var(--font-display); font-weight: 600; box-shadow: 0 8px 20px -10px rgba(23,134,214,.8); }
.main-nav .nav-cta:hover, .main-nav .nav-cta[aria-current="page"] { color: var(--white); filter: brightness(1.08); }
.has-submenu { position: relative; }
.nav-item-row { display: flex; align-items: center; }
.nav-item-row > a { padding-right: 4px; }
.nav-item-row .submenu-toggle { padding: 10px 8px 10px 2px; }
.submenu-toggle svg { width: 12px; height: 12px; transition: transform .25s; }
.submenu {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 270px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px) rotateX(-12deg); transform-origin: top center;
  transition: opacity .22s, transform .3s var(--ease), visibility .22s;
}
.submenu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.submenu a { color: var(--text); padding: 10px 12px; font-weight: 500; border-radius: 10px; }
.submenu a::before { content: ""; width: 8px; height: 8px; flex-shrink: 0; clip-path: var(--octagon); background: var(--border-strong); transition: background .2s, transform .3s; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.submenu a:hover::before, .submenu a[aria-current="page"]::before { background: var(--grad-brand); transform: rotate(45deg) scale(1.2); }
.has-submenu:hover > .submenu,
.has-submenu.is-open > .submenu { opacity: 1; visibility: visible; transform: none; }
.has-submenu.is-open .submenu-toggle svg, .has-submenu:hover .submenu-toggle svg { transform: rotate(180deg); }

@media (max-width: 1060px) {
  .main-nav a, .main-nav .submenu-toggle { padding: 10px 10px; font-size: .92rem; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; order: 3; }
  .main-nav {
    position: fixed; inset: var(--nav-top, var(--header-h)) 0 0 0; background: var(--header-bg);
    overflow-y: auto; padding: 16px 20px 40px;
    clip-path: circle(0 at calc(100% - 36px) 0); transition: clip-path .5s var(--ease), visibility .5s; visibility: hidden;
  }
  .nav-open .main-nav { clip-path: circle(150% at calc(100% - 36px) 0); visibility: visible; }
  .nav-open { overflow: hidden; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a, .main-nav .submenu-toggle { font-size: 1.1rem; padding: 14px 12px; }
  .main-nav > ul > li > a:not(.nav-cta)::after, .main-nav .nav-item-row > a::after { display: none; }
  .nav-item-row { justify-content: space-between; }
  .nav-item-row > a { flex: 1; }
  .nav-item-row .submenu-toggle { padding: 14px; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: var(--surface-2); display: none; min-width: 0; margin: 2px 0 8px;
  }
  .has-submenu:hover > .submenu { display: none; }
  .has-submenu.is-open > .submenu { display: block; }
  .has-submenu:hover .submenu-toggle svg { transform: none; }
  .has-submenu.is-open .submenu-toggle svg { transform: rotate(180deg); }
  .main-nav .nav-cta { margin: 14px 0 0; justify-content: center; }
  .topbar .container { justify-content: center; gap: 16px; }
}

/* ---------- Data-flow network (built by main.js) ----------
   Split into layers so the browser can move them on the GPU without redrawing:
   a static SVG (links, nodes, logo), two ring SVGs that rotate as whole layers,
   and one small SVG holding only the travelling data dots.
   Everything pauses while off screen. */
.netviz { position: relative; width: var(--size, 420px); aspect-ratio: 1; pointer-events: none; contain: layout paint; }
.netviz > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.netviz svg { overflow: visible; display: block; }
.nv-glow { background: radial-gradient(closest-side, rgba(47,169,227,.32), rgba(47,169,227,0)); }
.nv-ring-layer { will-change: transform; animation: nv-spin 30s linear infinite; }
.nv-ring-layer--b { animation-duration: 46s; animation-direction: reverse; }
@keyframes nv-spin { to { transform: rotate(360deg); } }
.nv-link { stroke: rgba(23,134,214,.30); stroke-width: 1.2; fill: none; }
.nv-link--hot { stroke: rgba(47,169,227,.6); stroke-dasharray: 3 6; }
.nv-node { fill: #1786d6; }
.nv-node--outer { fill: #6cc6ef; }
.nv-halo { fill: #2fa9e3; opacity: .14; }
.nv-pulse { fill: #ffffff; }
.nv-pulse-glow { fill: #2fa9e3; opacity: .5; }
.nv-ring { fill: none; stroke: #2fa9e3; stroke-width: 1.2; stroke-dasharray: 2 7; opacity: .6; }
.nv-ring--b { stroke-dasharray: 14 10; opacity: .28; }
.netviz.is-paused, .netviz.is-paused * { animation-play-state: paused !important; }
/* logo pieces: small layers (140 of the 420 units) centred on the graphic */
.netviz > .nv-logo-layer { inset: auto; left: 33.333%; top: 33.333%; width: 33.333%; height: 33.333%; overflow: visible; }
.nv-flash { fill: #9fe0fb; fill-opacity: .55; }
.float-slow { animation: float-slow 7s ease-in-out infinite; will-change: transform; }
@keyframes float-slow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Floating background octagons (added by JS, home banner only) */
.floaters { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.floaters span {
  position: absolute; width: var(--s); height: var(--s); left: var(--x); top: var(--y);
  clip-path: var(--octagon); background: var(--grad-brand); opacity: var(--o, .12);
  will-change: transform;
  animation: drift var(--t, 18s) ease-in-out var(--d, 0s) infinite alternate;
}
.is-offscreen .floaters span, .is-offscreen.netviz, .is-offscreen::before { animation-play-state: paused; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  100% { transform: translate3d(var(--dx, 40px), var(--dy, -60px), 0) rotate(var(--r, 90deg)); }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--hero-muted);
  background:
    radial-gradient(900px 520px at 80% 20%, var(--glow), transparent 62%),
    radial-gradient(700px 500px at 0% 100%, var(--accent-soft), transparent 60%),
    linear-gradient(170deg, var(--bg-alt), var(--bg));
  padding: clamp(80px, 11vw, 150px) 0 clamp(72px, 9vw, 120px);
  min-height: min(88vh, 820px); display: flex; align-items: center;
}
.hero::before { /* perspective grid floor (static: animating a masked 3D layer is costly) */
  content: ""; position: absolute; left: -50%; right: -50%; bottom: -6%; height: 55%;
  background-image:
    linear-gradient(var(--grid-line, rgba(23,134,214,.18)) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line, rgba(23,134,214,.18)) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(520px) rotateX(68deg); transform-origin: bottom center;
  -webkit-mask: linear-gradient(to top, #000 10%, transparent 85%); mask: linear-gradient(to top, #000 10%, transparent 85%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero .container > :not(.hero-stats) { max-width: 660px; }
.hero h1 { color: var(--hero-text); }
.hero h1 span {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;

}
.hero .lead { color: var(--hero-muted); max-width: 600px; font-size: 1.2rem; margin-bottom: 2rem; }
.hero .btn--ghost-light { color: var(--heading); border-color: var(--border-strong); background: var(--surface); }
.hero .btn--ghost-light:hover { color: var(--accent); border-color: var(--accent); background: var(--surface); }
.hero-visual { position: absolute; right: max(2vw, calc((100vw - var(--container)) / 2)); top: 50%; translate: 0 -50%; z-index: 0; }
@media (min-width: 1101px) {
  /* Centre the logo in the gap between the right edge of the hero text (container left + 20px padding + 660px text)
     and the right edge of the screen. % = hero width, which excludes the scrollbar. */
  .hero-visual { right: auto; left: calc((max(0px, (100% - var(--container)) / 2) + 680px + 100%) / 2); translate: -50% -50%; }
}
.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 620px; margin-top: 52px;
}
.hero-stats > div {
  padding: 18px 18px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero-stats strong { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.1; color: var(--heading); font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: .86rem; color: var(--muted); line-height: 1.35; display: block; margin-top: 4px; }
@media (max-width: 1100px) {
  .hero-visual { opacity: .35; right: -120px; }
}
@media (max-width: 700px) {
  .hero-visual { opacity: .22; right: -170px; top: 30%; }
  .hero-stats { gap: 10px; }
  .hero-stats > div { padding: 14px 12px; }
  .hero-stats span { font-size: .78rem; }
}

/* Inner page header */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 320px at 90% 0%, var(--glow), transparent 62%),
    linear-gradient(170deg, var(--bg-alt), var(--bg));
  color: var(--hero-muted); padding: clamp(56px, 8vw, 104px) 0 clamp(52px, 7vw, 92px);
  border-bottom: 1px solid var(--border);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--hero-text); margin-bottom: .35em; max-width: 760px; }
.page-hero .lead { color: var(--hero-muted); max-width: 640px; margin: 0; }
.page-hero .netviz { position: absolute; right: max(3vw, calc((100vw - var(--container)) / 2 + 20px)); top: 50%; margin-top: -120px; z-index: 0; }
@media (max-width: 860px) { .page-hero .netviz { right: -90px; opacity: .3; } }
.about-visual { display: grid; place-items: center; min-height: 380px; }
@media (max-width: 860px) { .about-visual { min-height: 300px; } }

/* ---------- About: story timeline (line + ball drawn by main.js) ---------- */
.tl { position: relative; padding: 70px 0 0; }
.tl-route { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 0; }
.tl-track { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 2; stroke-dasharray: 1 9; stroke-linecap: round; }
.tl-prog { fill: none; stroke: url(#tl-grad); stroke-width: 3; stroke-linecap: round; }
.tl-node { fill: var(--bg); stroke: rgba(255, 255, 255, .28); stroke-width: 2; transition: fill .6s var(--ease), stroke .6s var(--ease); }
.tl-node.is-on { fill: #2fa9e3; stroke: #9fe0fb; }

.tl-card {
  position: relative; z-index: 1; width: 42%; margin-bottom: 110px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 30px 28px; box-shadow: var(--shadow);
  transition: opacity .8s var(--ease) var(--delay, 0s), transform .8s var(--ease) var(--delay, 0s), border-color .8s var(--ease);
}
/* "lit" glow is a pre-drawn layer that only fades in (animating box-shadow itself is costly) */
.tl-card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 1px rgba(47, 169, 227, .15), 0 18px 50px -28px rgba(47, 169, 227, .6);
  transition: opacity .8s var(--ease);
}
.tl-card.is-on::after { opacity: 1; }
.tl-card--right { margin-left: auto; }
.tl-card h3 { font-size: 1.3rem; margin-bottom: .4em; }
.tl-card p:last-child { margin: 0; color: var(--muted); }
.tl-year {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1; letter-spacing: -.02em;
  margin: 0 0 14px; color: rgba(255, 255, 255, .22); transition: color .8s var(--ease);
}
.tl-card.is-on { border-color: rgba(47, 169, 227, .55); }
.tl-card.is-on .tl-year { color: var(--sky-300); }

.tl-end { display: flex; flex-direction: column; align-items: center; padding: 30px 0 10px; }
.tl-logo { position: relative; z-index: 1; display: grid; place-items: center; }
.tl-tagline { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 3vw, 1.9rem); color: var(--heading); text-align: center; margin: 18px 0 0; }

.tl-ball-layer { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.tl-ball, .tl-tail { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.tl-ball {
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  background: radial-gradient(circle at 40% 38%, #ffffff 0 22%, #9fe0fb 40%, #2fa9e3 70%);
  box-shadow: 0 0 0 4px rgba(47, 169, 227, .18), 0 0 18px 4px rgba(47, 169, 227, .45);
}
.tl-tail { width: 10px; height: 10px; margin: -5px 0 0 -5px; background: #6cc6ef; opacity: calc(var(--k) * .45); }

/* the "big delivery" when the ball reaches the logo: slow, wide and soft */
.tl-feed { pointer-events: none; }
.tl-wave { position: absolute; left: 33.333%; top: 33.333%; width: 33.333%; height: 33.333%; overflow: visible; opacity: 0; }
.tl-wave polygon { fill: none; stroke: #9fe0fb; stroke-width: 2; vector-effect: non-scaling-stroke; }
.tl-bloom { position: absolute; inset: 0; border-radius: 50%; opacity: 0; background: radial-gradient(closest-side, rgba(108, 198, 239, .45), rgba(47, 169, 227, .12) 55%, transparent 75%); }
.netviz.is-fed .tl-wave { animation: tl-wave 2.6s cubic-bezier(.22, .61, .36, 1) both; }
.netviz.is-fed .tl-wave--2 { animation-delay: .45s; }
.netviz.is-fed .tl-bloom { animation: tl-bloom 2.8s cubic-bezier(.33, 0, .25, 1) both; }
.netviz.is-fed .nv-logo-layer { animation: tl-breathe 2s cubic-bezier(.45, 0, .25, 1); }
.netviz.is-fed .nv-glow { animation: tl-glow 2.8s cubic-bezier(.45, 0, .25, 1); }
.netviz.is-fed .tl-wave, .netviz.is-fed .tl-bloom, .netviz.is-fed .nv-logo-layer, .netviz.is-fed .nv-glow { will-change: transform, opacity; }
@keyframes tl-wave { 0% { transform: scale(1); opacity: 0; } 12% { opacity: .7; } 100% { transform: scale(3.4); opacity: 0; } }
@keyframes tl-bloom { 0% { transform: scale(.5); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes tl-breathe { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.08); } }
@keyframes tl-glow { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.3); } }

@media (max-width: 760px) {
  .tl { padding-top: 40px; }
  .tl-card { width: auto; margin: 0 0 64px 52px; padding: 20px 20px 22px; }
  .tl-card--right { margin-left: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-tail { display: none; }
}
.breadcrumb { font-size: .85rem; margin-bottom: 1.2rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--muted); opacity: .6; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--accent); font-weight: 600; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* 3D tilt (JS sets --rx/--ry/--mx/--my on pointer devices) */
.tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: opacity .8s var(--ease) var(--delay, 0s), transform .6s var(--ease) var(--delay, 0s), border-color .3s;
}
.tilt.is-tilting { transition: opacity .3s, transform .12s linear, border-color .3s; --lift: -4px; will-change: transform; }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card::before { /* gradient edge on hover */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, var(--sky-400), transparent 40%, transparent 60%, var(--blue-500));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .35s;
}
.card:hover::before { opacity: 1; }
.card:hover { box-shadow: var(--shadow-lg); }
.card p { color: var(--muted); }
.card .link-arrow { margin-top: auto; }
.card--link { text-decoration: none; color: inherit; }
.card--link:hover { color: inherit; }
.card--link h3 { color: var(--heading); }
.center-actions { text-align: center; margin-top: 40px; }
.h3 { font-size: 1.25rem; font-weight: 600; }
.mt-20 { margin-top: 20px; }
.pill-list--center { justify-content: center; }
.card-tag { font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .4rem; }

.product-card { padding: 0; overflow: hidden; }
.product-card .product-media {
  position: relative; background: var(--navy-800); aspect-ratio: 16 / 9; overflow: hidden;
}
.product-card .product-media img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.06); }
.product-card .product-media.contain { background: #ffffff; border-bottom: 1px solid var(--border); }
.product-card .product-media.contain img { object-fit: contain; padding: 18px; }
/* Logo-style images are shown whole, on a background that matches their own */
.product-card .product-media.contain-co { background: #000000; }
.product-card .product-media.contain-dark { background: #0b2a3f; }
.product-card .product-media.contain-lms { background: #013147; }
.product-card .product-media.contain-dev { background: #00293f; }
.product-card .product-media.contain-co img,
.product-card .product-media.contain-dark img,
.product-card .product-media.contain-lms img,
.product-card .product-media.contain-dev img { object-fit: contain; }
.product-card .product-media.contain-co img { padding: 16px; }
.product-card .product-media.contain-dark img { padding: 8px; }
.product-card .product-media.contain-lms img { padding: 10px 0; }
.product-card:hover .product-media.contain-co img,
.product-card:hover .product-media.contain-lms img,
.product-card:hover .product-media.contain-dev img,
.product-card:hover .product-media.contain-dark img { transform: scale(1.03); }
.product-card .product-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(7,28,44,.18));
}
.product-card .product-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.product-card ul { margin: 0 0 1.2em; padding: 0; list-style: none; }
.product-card li { position: relative; padding-left: 22px; margin-bottom: 6px; color: var(--muted); font-size: .96rem; }
.product-card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; background: var(--grad-brand); clip-path: var(--octagon); }

.icon-box {
  position: relative; width: 60px; height: 60px; display: grid; place-items: center; margin-bottom: 22px;
  color: var(--white);
}
.icon-box::before, .icon-box::after { content: ""; position: absolute; inset: 0; clip-path: var(--octagon); }
.icon-box::before { background: var(--blue-700); transform: translate3d(5px, 6px, -1px); opacity: .55; } /* extruded depth */
.icon-box::after { background: var(--grad-brand); }
.icon-box svg { position: relative; z-index: 1; width: 26px; height: 26px; }
.section--dark .card { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.1); box-shadow: none; }
.section--dark .card p { color: #b3c6d5; }
.section--dark .card a { color: var(--sky-300); }

/* Feature checklist */
.check-list { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; gap: 12px 28px; }
.check-list.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check-list.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .check-list.cols-2, .check-list.cols-3 { grid-template-columns: 1fr; } }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 22px; height: 22px; clip-path: var(--octagon);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 13px no-repeat, var(--grad-brand);
}

/* Split layout (text + media) */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split-media { perspective: 1200px; }
.split-media img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%;
  transform: rotateY(-9deg) rotateX(3deg); transition: transform .8s var(--ease);
}
.split--reverse .split-media img { transform: rotateY(9deg) rotateX(3deg); }
.split-media:hover img { transform: none; }
/* Tall images are capped so they don't tower over the text */
.split-media--portrait { display: flex; justify-content: center; }
.split-media--portrait img { width: auto; max-width: 100%; max-height: 460px; }
/* Product logos: shown on a solid panel so transparent logos don't float */
.split-media--logo img { background: var(--logo-bg, #0b2a3f); padding: clamp(20px, 4vw, 44px); object-fit: contain; aspect-ratio: 16 / 10; }
.split-media--co { --logo-bg: #000000; }
.split-media:not(.logo-media) { position: relative; }
.split-media:not(.logo-media)::before { /* offset octagon frame behind image */
  content: ""; position: absolute; width: 46%; aspect-ratio: 1; right: -6%; bottom: -10%; z-index: -1;
  clip-path: var(--octagon); background: var(--grad-brand); opacity: .18;
}
.split-media.logo-media { background: #ffffff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 28px; display: grid; place-items: center; border: 1px solid var(--border); }
.split-media.logo-media img { box-shadow: none; max-height: 340px; width: auto; transform: none; animation: float-slow 7s ease-in-out infinite; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .split-media img, .split--reverse .split-media img { transform: none; }
}

/* Feature detail list (title + description) */
.feature-list { display: grid; gap: 20px; }
.feature {
  position: relative; overflow: hidden; background: var(--surface); border-radius: var(--radius); padding: 24px 24px 24px 28px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.feature::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad-brand);
  transform: scaleY(.35); transform-origin: top; transition: transform .5s var(--ease);
}
.feature:hover::before { transform: scaleY(1); }
.feature h3 { margin-bottom: .35em; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--muted); }

/* Pills / tags */
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pill-list li {
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px; padding: 8px 16px;
  font-weight: 600; font-size: .9rem; color: var(--heading); transition: transform .25s var(--ease), border-color .25s, color .25s;
}
.pill-list li:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
.section--dark .pill-list li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: var(--white); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.gallery a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--surface-2); border: 1px solid var(--border); }
.gallery img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s var(--ease); }
.gallery a:hover img { transform: scale(1.06); }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }

/* Products breakdown */
.tier { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 34px; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--border); }
.tier::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad-brand); }
.tier--enterprise::before { background: linear-gradient(90deg, var(--navy-700), var(--blue-500)); }
.tier h3 { font-size: 1.45rem; }
.tier ul { list-style: none; padding: 0; margin: 0; }
.tier li { padding: 16px 0; border-top: 1px solid var(--border); }
.tier li a { font-family: var(--font-display); font-weight: 600; text-decoration: none; }
.tier li span { display: block; color: var(--muted); font-size: .94rem; }

/* Quote strip */
.quote-strip { position: relative; text-align: center; max-width: 900px; margin: 0 auto; min-height: 200px; }
.quote-strip::before {
  content: "\201C"; position: absolute; left: 50%; top: -70px; translate: -50% 0;
  font-family: var(--font-display); font-size: 9rem; line-height: 1; font-weight: 800;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .5;
}
.quote-strip blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.35rem, 2.8vw, 2rem); font-weight: 600; line-height: 1.4; color: var(--white); letter-spacing: -.01em; }
.quote-strip figcaption { margin-top: 18px; color: var(--sky-300); font-weight: 600; }
.quote-slide { display: none; }
.quote-slide.is-active { display: block; animation: quote-in .7s var(--ease); }
.quote-dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.quote-dots button { width: 12px; height: 12px; border: 0; padding: 0; cursor: pointer; background: rgba(255,255,255,.28); clip-path: var(--octagon); transition: background .3s, transform .3s; }
.quote-dots button[aria-current="true"] { background: var(--sky-400); transform: scale(1.35) rotate(22.5deg); }
@keyframes quote-in { from { opacity: 0; transform: translateY(14px) rotateX(-20deg); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Bureau dispute block */
.bureau-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .bureau-grid { grid-template-columns: 1fr; } }
.bureau { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); display: flex; gap: 18px; align-items: center; }
.bureau img { width: 84px; height: 84px; object-fit: contain; flex-shrink: 0; border-radius: 12px; background: #fff; border: 1px solid var(--border); }
.bureau h3 { margin-bottom: .2em; font-size: 1.05rem; }
.bureau p { margin: 0; font-size: .94rem; word-break: break-word; }
.bureau a { text-decoration: none; }

/* Logo wall */
.logo-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.logo-wall figure {
  position: relative; margin: 0; background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  height: 140px; padding: 24px; display: grid; place-items: center; box-shadow: var(--shadow);
}
.logo-wall img { max-height: 80px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .35s, opacity .35s, transform .5s var(--ease); }
.logo-wall figure:hover img { filter: none; opacity: 1; transform: scale(1.06); }
.seal-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .seal-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.seal-row img { border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .5s var(--ease); }
.seal-row img:hover { transform: translateY(-6px) rotate(-2deg); }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, var(--blue-600), var(--navy-700) 55%, var(--navy-900));
  color: #d6e6f2; border-radius: 28px; padding: clamp(36px, 5vw, 64px);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  box-shadow: 0 30px 60px -30px rgba(15,111,184,.7);
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; z-index: -1; clip-path: var(--octagon); pointer-events: none;
}
.cta-band::before { width: 340px; height: 340px; right: -90px; top: -120px; background: rgba(255,255,255,.07); }
.cta-band::after { width: 200px; height: 200px; right: 160px; bottom: -130px; background: rgba(47,169,227,.25); }
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--white); margin-bottom: .25em; }
.cta-band p { margin: 0; max-width: 560px; }

/* Notice */
.notice { background: #fff7e6; border: 1px solid #f3d38b; color: #6b4b00; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 24px; }

/* Prose (legal pages) */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.45rem; margin-top: 2em; }
.prose li { margin-bottom: .4em; }
.prose h3 { margin-top: 1.6em; }
.prose h2[id], .prose h3[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

/* Legal documents (privacy notice) */
.doc-meta {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0 0 32px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.doc-meta > div { background: var(--surface); padding: 14px 18px; }
.doc-meta__wide { grid-column: 1 / -1; }
.doc-meta dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.doc-meta dd { margin: 2px 0 0; color: var(--heading); font-weight: 500; }
.doc-toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 8px; }
.doc-toc h2 { font-size: 1.05rem; margin: 0 0 10px; }
.doc-toc ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 32px; }
.doc-toc li { margin-bottom: .25em; break-inside: avoid; }
@media (max-width: 640px) { .doc-meta { grid-template-columns: 1fr; } .doc-toc ol { columns: 1; } }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--border); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; line-height: 1.55; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.prose tr:last-child > * { border-bottom: 0; }
.prose thead th { background: var(--surface-2); color: var(--heading); font-weight: 600; }
.prose tbody th { color: var(--heading); font-weight: 600; width: 32%; }
.doc-defs dt { color: var(--heading); font-weight: 600; margin-top: .9em; }
.doc-defs dd { margin: .2em 0 0; }
.doc-footer { margin-top: 2.5em; padding-top: 1.2em; border-top: 1px solid var(--border); font-size: .85rem; color: var(--muted); }

/* ---------- Contact & forms ---------- */
.contact-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.form-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-lg); padding: clamp(24px, 4vw, 44px); overflow: hidden; }
.form-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad-brand); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--heading); }
.field label .req { color: var(--error); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface-2);
  border: 1.5px solid var(--border-strong); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field-error { color: var(--error); font-size: .85rem; margin-top: 4px; display: none; }
.field.has-error .field-error { display: block; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: 10px; display: none; font-weight: 500; }
.form-status.is-success { display: block; background: #e7f6ee; color: var(--success); border: 1px solid #b6e2c8; }
.form-status.is-error { display: block; background: #fdecea; color: var(--error); border: 1px solid #f5c2bd; }
.form-status.is-warning { display: block; background: #fff6e0; color: #7a4b00; border: 1px solid #f0d394; } /* saved, but the team wasn't emailed */
.form-note { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.form-note > p { margin: 0 0 6px; }
.doc-downloads { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc-hint { display: block; padding-left: 26px; margin-top: 2px; }
.doc-downloads a { display: inline-flex; align-items: flex-start; gap: 8px; }
.doc-downloads a::before { /* download arrow */
  content: "\2193"; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%;
  display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: #fff; background: var(--grad-brand);
}

/* About: CEO video */
.about-video { max-width: 640px; margin: 26px 0 0; }
.about-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); background: #000; }
.about-video figcaption { font-size: .9rem; color: var(--hero-muted); margin-top: 10px; }

/* POPIA consent checkboxes */
.consent { border: 1px solid var(--border-strong); border-radius: 14px; padding: 16px 18px 6px; margin: 22px 0 20px; }
.consent legend { padding: 0 8px; font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--heading); }
.consent-item { display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; align-items: start; margin-bottom: 12px; }
.consent-item .field-error { grid-column: 2; margin-top: 2px; }
.field .consent-item input, .consent-item input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 1px 0 0; padding: 0; flex: none;
  border: 1.5px solid var(--border-strong); border-radius: 6px; background: var(--surface-2); cursor: pointer;
  display: grid; place-items: center; transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.consent-item input[type="checkbox"]::after {
  content: ""; width: 12px; height: 7px; border: solid #fff; border-width: 0 0 2.5px 2.5px;
  transform: translateY(-2px) rotate(-45deg) scale(0); transition: transform .15s var(--ease);
}
.consent-item input[type="checkbox"]:checked { background: var(--blue-500); border-color: var(--blue-500); }
.consent-item input[type="checkbox"]:checked::after { transform: translateY(-2px) rotate(-45deg) scale(1); }
.consent-item input[type="checkbox"]:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-soft); border-color: var(--accent); }
.field.consent-item label { margin: 0; font-weight: 400; font-size: .9rem; line-height: 1.5; color: var(--text); cursor: pointer; }
.consent-item.has-error input[type="checkbox"] { border-color: #ff8a80; }
.consent-optional { color: var(--muted); }
.consent-note { font-size: .8rem; color: var(--muted); margin: 2px 0 10px 34px; }
.turnstile-slot:not(:empty) { margin: 0 0 18px; min-height: 65px; } /* Cloudflare spam check, when switched on */
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px; margin-bottom: 20px; }
.info-card h3 { font-size: 1.1rem; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.info-list li:first-child { border-top: 0; padding-top: 0; }
.info-list svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.info-list strong { display: block; color: var(--heading); font-size: .9rem; }
.contact-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
@media (max-width: 480px) { .contact-people { grid-template-columns: 1fr; } }
.contact-people div { padding: 10px 0; border-top: 1px solid var(--border); font-size: .94rem; }
.contact-people strong { display: block; color: var(--heading); }
.contact-people a { word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; overflow: hidden;
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(47,169,227,.14), transparent 70%),
    var(--navy-950);
  color: #94aabd; font-size: .94rem; padding-top: 72px;
}
.site-footer::before { /* large faint octagon */
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; bottom: -220px;
  clip-path: var(--octagon); background: linear-gradient(135deg, rgba(47,169,227,.10), rgba(47,169,227,0));
  pointer-events: none;
}
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 52px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { color: var(--white); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.2em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .6em; }
.site-footer a { color: #c9d8e4; text-decoration: none; background: linear-gradient(var(--sky-400), var(--sky-400)) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease), color .2s; }
.site-footer a:hover { color: var(--white); background-size: 100% 1px; }
.footer-brand img { height: 48px; width: auto; margin-bottom: 18px; }
.footer-bottom { position: relative; border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; font-size: .86rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom ul { display: flex; gap: 20px; }
.footer-bottom li { margin: 0; }
.footer-bottom p { margin: 0; }

/* Back to top */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 50px; height: 50px;
  background: var(--grad-brand); color: var(--white); display: grid; place-items: center;
  clip-path: var(--octagon); filter: drop-shadow(0 10px 18px rgba(15,111,184,.45));
  opacity: 0; visibility: hidden; transform: translateY(20px) rotate(-45deg);
  transition: opacity .3s, visibility .3s, transform .5s var(--ease); text-decoration: none;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--white); transform: translateY(-3px) rotate(22.5deg); }
.to-top:hover svg { transform: rotate(-22.5deg); }
.to-top svg { width: 20px; height: 20px; transition: transform .5s var(--ease); }

/* ---------- Scroll reveal (classes added by JS only) ---------- */
.reveal { opacity: 0; transform: translateY(28px) scale(.98); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.tilt.is-in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)); }
.reveal--left { transform: translateX(-36px); }
.reveal--right { transform: translateX(36px); }

/* ---------- Services: information & risk tabbed explorer ---------- */
.cap { max-width: 1300px; margin: 0 auto; }
.cap-tabs {
  display: flex; gap: 6px; padding: 6px; margin: 0 auto 26px; width: max-content; max-width: 100%;
  background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 999px;
}
.cap-tab {
  font: 600 .95rem/1 var(--font); color: var(--muted); background: none; border: 0; cursor: pointer;
  padding: 12px 20px; border-radius: 999px; transition: color .2s, background-color .2s;
}
.cap-tab:hover { color: var(--heading); }
.cap-tab[aria-selected="true"] { color: #fff; background: var(--grad-brand); box-shadow: 0 6px 18px -8px var(--glow); }
.cap-tab:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.cap-panel { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 30px; }
.cap-panel[hidden] { display: none; }
.cap-panel:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }
.cap-intro { color: var(--muted); margin: 0 0 22px; max-width: 720px; }
.cap-sub { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 26px 0 12px; }
.cap-intro + .cap-sub { margin-top: 0; }
.cap-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cap-item {
  position: relative; padding: 16px 16px 16px 44px; border-radius: var(--radius);
  background: rgba(255,255,255,.035); border: 1px solid var(--border); transition: border-color .25s, background-color .25s;
  animation: cap-in .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms);
}
.cap-item::before { /* brand octagon marker */
  content: ""; position: absolute; left: 16px; top: 19px; width: 14px; height: 14px;
  background: var(--grad-brand); clip-path: var(--octagon);
}
.cap-item:hover { border-color: rgba(47,169,227,.5); background: rgba(47,169,227,.07); }
.cap-item h3 { font-size: 1rem; font-weight: 600; margin: 0 0 4px; }
.cap-item p { font-size: .9rem; color: var(--muted); margin: 0; }
@keyframes cap-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cap-flow { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; counter-reset: capf; }
.cap-flow li {
  counter-increment: capf; font-size: .9rem; color: var(--text); padding: 8px 14px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid rgba(47,169,227,.3);
}
.cap-flow li::before { content: counter(capf); font-weight: 700; color: var(--accent-strong); margin-right: 8px; }
.cap-flow li + li { position: relative; margin-left: 22px; }
.cap-flow li + li::after { content: "\2192"; position: absolute; left: -24px; top: 50%; transform: translateY(-50%); color: var(--accent); }
@media (max-width: 860px) { .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .cap-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: var(--radius); }
  .cap-tab { border-radius: 8px; padding: 12px 8px; font-size: .9rem; }
  .cap-panel { padding: 20px 16px; }
  .cap-grid { grid-template-columns: 1fr; }
  .cap-flow { flex-direction: column; align-items: stretch; }
  .cap-flow li + li { margin-left: 0; }
  .cap-flow li + li::after { content: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
