/* Mediception website - design system
   Brand: blue #1D4E9E, teal #1A8FB5, green #62BB46, navy #061634
   Fonts: Outfit (headings), Inter (body) */

:root {
  --blue: #1d4e9e;
  --teal: #1a8fb5;
  --sky: #22a6e0;
  --green: #62bb46;
  --green-ink: #3d8a26;
  --navy: #061634;

  --bg: #f6f8fb;
  --bg-2: #e9f1fa;
  --section-base: #ffffff;
  --section-alt: #f2f5f8;
  --surface: #ffffff;
  --text: #0b1b33;
  --text-2: #2a3d58;
  --muted: #5a6b82;
  --line: rgba(11, 27, 51, 0.09);
  --line-strong: rgba(11, 27, 51, 0.16);

  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-edge: rgba(29, 78, 158, 0.10);
  --glass-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 18px 50px -18px rgba(16, 42, 90, 0.22), 0 2px 8px -2px rgba(16, 42, 90, 0.06);
  --accent: var(--blue);
  --accent-2: var(--teal);
  --grad: linear-gradient(120deg, #1d4e9e 0%, #1a8fb5 55%, #62bb46 100%);
  --grad-text: linear-gradient(100deg, #1d4e9e 0%, #1a8fb5 50%, #3d9a2c 100%);
  --chip-bg: rgba(29, 78, 158, 0.07);
  --chip-text: #1d4e9e;
  --logo-chip: rgba(255, 255, 255, 0.92);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-head: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #050f24;
    --bg-2: #081a38;
    --section-base: #07152f;
    --section-alt: #0a1b38;
    --surface: #0b1d3d;
    --text: #e9f1fb;
    --text-2: #c6d4e8;
    --muted: #94a8c3;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --glass: rgba(255, 255, 255, 0.055);
    --glass-strong: rgba(14, 32, 66, 0.78);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-edge: rgba(255, 255, 255, 0.06);
    --glass-shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 24px 60px -24px rgba(0, 0, 0, 0.6);
    --accent: #5aa7ff;
    --accent-2: #3cc3e8;
    --grad-text: linear-gradient(100deg, #6fb2ff 0%, #3cc3e8 50%, #7fd35f 100%);
    --chip-bg: rgba(90, 167, 255, 0.12);
    --chip-text: #9ccaff;
    --logo-chip: rgba(255, 255, 255, 0.9);
    --green-ink: #7fd35f;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #050f24;
  --bg-2: #081a38;
  --section-base: #07152f;
  --section-alt: #0a1b38;
  --surface: #0b1d3d;
  --text: #e9f1fb;
  --text-2: #c6d4e8;
  --muted: #94a8c3;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(14, 32, 66, 0.78);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-edge: rgba(255, 255, 255, 0.06);
  --glass-shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  --accent: #5aa7ff;
  --accent-2: #3cc3e8;
  --grad-text: linear-gradient(100deg, #6fb2ff 0%, #3cc3e8 50%, #7fd35f 100%);
  --chip-bg: rgba(90, 167, 255, 0.12);
  --chip-text: #9ccaff;
  --logo-chip: rgba(255, 255, 255, 0.9);
  --green-ink: #7fd35f;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html {
    overflow-x: clip;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--text);
  font-weight: 600;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(26, 143, 181, 0.22);
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.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;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section {
  padding: clamp(48px, 6vw, 84px) 0;
  position: relative;
}

.section-tight {
  padding: clamp(28px, 4vw, 52px) 0;
}

/* ---------- Page surfaces ---------- */
main {
  background: var(--bg);
}

main>section {
  isolation: isolate;
  transition: background-color 0.4s var(--ease);
}

main>section:nth-of-type(odd) {
  background-color: var(--section-base);
}

main>section:nth-of-type(even) {
  background-color: var(--section-alt);
}

main>section.section[style*="padding-top:0"] {
  padding-top: clamp(48px, 6vw, 84px) !important;
}

/* ---------- Glass ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-radius: var(--radius);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: var(--glass-strong);
  }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 100;
  transition: top 0.35s var(--ease);
}

.header-bar {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
  height: 64px;
  padding: 0 10px 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 18px;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease), height 0.35s var(--ease);
}

.site-header.is-scrolled {
  top: 8px;
}

.site-header.is-scrolled .header-bar {
  height: 58px;
  background: var(--glass-strong);
}

.progress {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  overflow: hidden;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--grad);
  transform-origin: left;
  transform: scaleX(0);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand img {
  height: 34px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-tag {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 10px;
  white-space: nowrap;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s, background-color 0.2s;
}

.nav a:hover {
  color: var(--text);
  background: var(--chip-bg);
}

.nav a[aria-current="page"] {
  color: var(--accent);
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-2);
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.icon-btn:hover {
  background: var(--chip-bg);
  color: var(--text);
}

.icon-btn .icon {
  width: 19px;
  height: 19px;
}

.theme-toggle .i-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .i-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .i-moon {
  display: none;
}

.menu-btn {
  display: none;
}

/* ---------- Buttons ---------- */
.btn {
  --mx: 0px;
  --my: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transform: translate(var(--mx), var(--my));
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
}

.btn .icon {
  transition: transform 0.25s var(--ease);
}

.btn:hover .icon {
  transform: translate(2px, -2px);
}

.btn-primary {
  color: #fff;
  background: var(--grad);
  background-size: 160% 100%;
  box-shadow: 0 10px 26px -10px rgba(29, 78, 158, 0.6);
}

.btn-primary:hover {
  background-position: 100% 0;
  box-shadow: 0 16px 34px -12px rgba(26, 143, 181, 0.7);
}

.btn-glass {
  color: var(--text);
  background: var(--glass);
  border-color: var(--glass-border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--glass-shadow);
}

.btn-glass:hover {
  border-color: var(--accent-2);
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--accent);
}

.text-link .icon {
  transition: transform 0.25s var(--ease);
}

.text-link:hover .icon {
  transform: translateX(4px);
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: clamp(14.5px, 1.2vw, 16.5px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: none;
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--text-2);
  line-height: 1.7;
}

.muted {
  color: var(--muted);
}

.section-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(26px, 3.5vw, 40px);
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin-top: 14px;
}

.section-head p {
  color: var(--text-2);
  font-size: 17px;
}

.section-head.center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  max-width: 760px;
  margin-inline: auto;
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(56px, 8vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 13px 6px 7px;
  border-radius: 999px;
  font-size: clamp(13.5px, 1vw, 14.5px);
  font-weight: 500;
  color: var(--text-2);
  box-shadow: var(--glass-shadow), 0 12px 28px -14px rgba(29, 78, 158, 0.28);
}

.pill b {
  font-weight: 600;
  color: #fff;
  background: var(--grad);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: clamp(12.5px, 0.9vw, 13.5px);
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 600;
  margin: 22px 0 22px;
  letter-spacing: -0.03em;
}

.rotator {
  display: block;
  position: relative;
  height: 1.3em;
  font-size: 0.86em;
  clip-path: inset(0 -100vw 0 -10px);
}

.rotator span {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.7s var(--ease), opacity 0.7s var(--ease);
}

.rotator span.is-active {
  transform: translateY(0);
  opacity: 1;
}

.rotator span.is-leaving {
  transform: translateY(-110%);
  opacity: 0;
}

.hero .lead {
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 36px;
  color: var(--muted);
  font-size: 14px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta .icon {
  color: var(--green-ink);
}

/* 3D cube */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 460px;
  perspective: 1100px;
  overflow-x: clip;
}

.halo {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 166, 224, 0.28), transparent 65%);
  filter: blur(10px);
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
}

.orbit-ring.r1 {
  width: 400px;
  height: 400px;
  animation: spin 60s linear infinite;
}

.orbit-ring.r2 {
  width: 500px;
  height: 500px;
  border-style: solid;
  border-color: var(--line);
  animation: spin 90s linear infinite reverse;
}

.orbit-ring::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
}

.orbit-ring.r2::before {
  background: var(--sky);
  box-shadow: 0 0 16px var(--sky);
  top: auto;
  bottom: 18%;
  left: -5px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.cube-scene {
  --s: 230px;
  width: var(--s);
  height: var(--s);
  position: relative;
  transform-style: preserve-3d;
  cursor: grab;
  touch-action: pan-y;
}

.cube-scene:active {
  cursor: grabbing;
}

.cube {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(-18deg) rotateY(30deg);
  will-change: transform;
}

.face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.22));
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.35), 0 0 0 1px rgba(29, 78, 158, 0.06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  color: var(--navy);
}

:root[data-theme="dark"] .face {
  background: linear-gradient(145deg, rgba(90, 167, 255, 0.22), rgba(10, 30, 66, 0.55));
  border-color: rgba(255, 255, 255, 0.18);
  color: #eaf3ff;
  box-shadow: inset 0 0 40px rgba(90, 167, 255, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .face {
    background: linear-gradient(145deg, rgba(90, 167, 255, 0.22), rgba(10, 30, 66, 0.55));
    border-color: rgba(255, 255, 255, 0.18);
    color: #eaf3ff;
    box-shadow: inset 0 0 40px rgba(90, 167, 255, 0.12);
  }
}

.face .face-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 10px 24px -10px rgba(29, 78, 158, 0.7);
}

.face .face-icon .icon {
  width: 26px;
  height: 26px;
}

.face small {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 600;
}

.face strong {
  display: block;
  font-family: var(--font-head);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 600;
  margin-top: 4px;
}

.face.f1 {
  transform: translateZ(calc(var(--s) / 2));
}

.face.f2 {
  transform: rotateY(90deg) translateZ(calc(var(--s) / 2));
}

.face.f3 {
  transform: rotateY(180deg) translateZ(calc(var(--s) / 2));
}

.face.f4 {
  transform: rotateY(-90deg) translateZ(calc(var(--s) / 2));
}

.face.f5 {
  transform: rotateX(90deg) translateZ(calc(var(--s) / 2));
}

.face.f6 {
  transform: rotateX(-90deg) translateZ(calc(var(--s) / 2));
}

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  z-index: 2;
  animation: bob 6s ease-in-out infinite;
}

.float-chip .dot {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad);
}

.float-chip .dot .icon {
  width: 16px;
  height: 16px;
}

.float-chip b {
  display: block;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
}

.float-chip small {
  color: var(--muted);
  font-size: 12px;
}

.float-chip.c1 {
  top: 6%;
  left: 0;
}

.float-chip.c2 {
  top: 44%;
  right: -2%;
  animation-delay: -2s;
}

.float-chip.c3 {
  bottom: 4%;
  left: 8%;
  animation-delay: -4s;
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.drag-hint {
  position: absolute;
  bottom: -6px;
  right: 8%;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Logo marquee ---------- */
.logos {
  padding: 8px 0 clamp(20px, 3vw, 36px);
}

.logos-label {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 16px;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-set {
  display: flex;
  gap: 16px;
}

.logo-chip {
  width: 170px;
  height: 76px;
  padding: 16px 22px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--logo-chip);
  border: 1px solid var(--line);
}

.logo-chip img {
  max-height: 36px;
  max-width: 120px;
  width: auto;
  filter: none;
  opacity: 1;
  transition: transform 0.3s var(--ease);
}

.logo-chip:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.04);
}

@keyframes marquee {
  to {
    transform: translateX(calc(-50% - 8px));
  }
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 10px;
  border-radius: var(--radius-lg);
}

.stat {
  padding: 26px 24px;
  position: relative;
}

.stat+.stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: var(--line-strong);
}

.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--text-2);
  font-size: 14.5px;
}

.stats-note {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: right;
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  padding: 28px;
  border-radius: var(--radius);
  position: relative;
}

.card h3 {
  font-size: 21px;
  margin: 18px 0 10px;
}

.card p {
  color: var(--text-2);
  font-size: 15.5px;
}

.card .text-link {
  margin-top: 18px;
  font-size: 14.5px;
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--chip-bg);
  border: 1px solid var(--glass-edge);
}

.card-icon .icon {
  width: 24px;
  height: 24px;
}

.card-num {
  position: absolute;
  top: 24px;
  right: 26px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  opacity: 0.7;
}

/* 3D tilt */
.tilt {
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform 0.5s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}

.tilt.is-tilting {
  transition: transform 0.08s linear, box-shadow 0.4s var(--ease);
}

.tilt>* {
  transform: translateZ(0);
}

.tilt .lift {
  transform: translateZ(36px);
}

.tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.45), transparent 45%);
  mix-blend-mode: soft-light;
}

.tilt:hover::after {
  opacity: 1;
}

.tilt:hover {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 30px 60px -24px rgba(16, 42, 90, 0.35);
}

.service-card ul {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.service-card li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.5;
}

.service-card li .icon {
  color: var(--green-ink);
  width: 17px;
  height: 17px;
  margin-top: 2px;
}

.service-card[hidden] {
  display: none;
}

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillar {
  padding: 32px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.pillar .big {
  font-family: var(--font-head);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pillar p {
  color: var(--text-2);
  margin-top: 14px;
}

.pillar .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: var(--chip-bg);
  color: var(--chip-text);
  border: 1px solid var(--glass-edge);
}

.pillar::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  top: -70px;
  border-radius: 50%;
  background: var(--grad);
  opacity: 0.12;
  filter: blur(4px);
}

/* ---------- Timeline / steps ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.steps-line {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 31px;
  height: 2px;
  background: var(--line-strong);
  border-radius: 2px;
  overflow: hidden;
}

.steps-line span {
  display: block;
  height: 100%;
  background: var(--grad);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.6s var(--ease) 0.2s;
}

.steps.is-visible .steps-line span {
  transform: scaleX(1);
}

.step {
  position: relative;
}

.step-dot {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.step h3 {
  font-size: 20px;
  margin: 22px 0 8px;
}

.step p {
  color: var(--text-2);
  font-size: 15px;
}

.steps-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ---------- Flip cards (platforms) ---------- */
.flip {
  perspective: 1400px;
  min-height: 440px;
  position: relative;
  outline: none;
}

.flip-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease);
}

.flip.is-flipped .flip-inner {
  transform: rotateY(180deg);
}

@media (hover: hover) and (pointer: fine) {
  .flip:hover .flip-inner {
    transform: rotateY(180deg);
  }
}

.flip-face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
}

.flip-front img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 22, 52, 0.05) 20%, rgba(6, 22, 52, 0.88) 100%);
}

.flip-front .flip-copy {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 24px;
  color: #fff;
}

.flip-front .flip-copy small {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bfe6ff;
  font-weight: 600;
}

.flip-front h3 {
  color: #fff;
  font-size: 26px;
  margin-top: 6px;
}

.flip-front .flip-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

.flip-num {
  position: absolute;
  z-index: 1;
  top: 18px;
  left: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(6, 22, 52, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.flip-back {
  transform: rotateY(180deg);
  padding: 28px;
  justify-content: space-between;
}

.flip-back h3 {
  font-size: 24px;
  margin: 14px 0 10px;
}

.flip-back p {
  color: var(--text-2);
  font-size: 15px;
}

.flip-back ul {
  margin-top: 14px;
  display: grid;
  gap: 7px;
}

.flip-back li {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: var(--text-2);
}

.flip-back li .icon {
  color: var(--green-ink);
  width: 16px;
  height: 16px;
  margin-top: 3px;
}

.flip-back .url {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  word-break: break-all;
}

/* ---------- Chips cloud ---------- */
.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-cloud .tag {
  font-size: 14px;
  padding: 9px 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.25s var(--ease), color 0.25s, border-color 0.25s;
}

.chip-cloud .tag:hover {
  transform: translateY(-3px);
  color: var(--accent);
  border-color: var(--accent-2);
}

/* ---------- Split / feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--glass-shadow);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.2s var(--ease);
}

.media-frame.is-visible img {
  transform: scale(1);
}

.media-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.media-badge .card-icon {
  flex: none;
}

.media-badge b {
  display: block;
  font-family: var(--font-head);
  font-size: 16px;
}

.media-badge span {
  font-size: 13.5px;
  color: var(--text-2);
}

.check-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.check-list li {
  display: flex;
  gap: 12px;
  color: var(--text-2);
}

.check-list li .icon {
  color: var(--green-ink);
  margin-top: 3px;
}

/* quote / mission */
.quote-card {
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
}

.quote-card .label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.quote-card blockquote {
  margin: 14px 0 0;
  font-family: var(--font-head);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.35;
  font-weight: 500;
  color: var(--text);
}

.mission-vision-section {
  overflow: hidden;
}

.purpose-heading {
  margin-bottom: clamp(18px, 2.5vw, 28px);
}

.purpose-list {
  display: grid;
  gap: 0;
}

.purpose-row {
  --purpose-accent: var(--blue);
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, 0.36fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  overflow: hidden;
  padding: clamp(28px, 3.5vw, 46px);
  border-radius: 22px;
  border-color: var(--line-strong);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.purpose-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--purpose-accent);
}

.purpose-row:hover {
  border-color: color-mix(in srgb, var(--purpose-accent) 34%, var(--line));
  box-shadow: 0 22px 48px -34px rgba(16, 42, 90, 0.42);
}

.purpose-row-vision {
  --purpose-accent: var(--green-ink);
}

.purpose-row header {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.purpose-icon {
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--purpose-accent);
  background: color-mix(in srgb, var(--purpose-accent) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--purpose-accent) 18%, transparent);
}

.purpose-icon .icon {
  width: 22px;
  height: 22px;
}

.purpose-flow {
  position: relative;
  z-index: 2;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.purpose-flow::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line-strong);
}

.purpose-flow .icon {
  position: relative;
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 18px -14px rgba(16, 42, 90, 0.5);
  transform: rotate(90deg);
}

.purpose-row h3 {
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 600;
  color: var(--text);
}

.purpose-row p {
  max-width: 920px;
  padding-left: clamp(22px, 3vw, 42px);
  border-left: 1px solid var(--line-strong);
  font-family: var(--font-head);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: pretty;
  -webkit-hyphens: none;
  hyphens: none;
}

@media (max-width: 760px) {
  .purpose-row {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 26px 22px;
    border-radius: 18px;
  }

  .purpose-row p {
    padding: 20px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }
}

/* ---------- Page hero (inner) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(28px, 5vw, 56px)) 0 clamp(16px, 3vw, 32px);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(36px, 5.2vw, 62px);
  letter-spacing: -0.03em;
  margin: 18px 0 18px;
}

.page-hero .lead {
  max-width: 580px;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--accent);
}

.crumbs .icon {
  width: 14px;
  height: 14px;
}

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  box-shadow: var(--glass-shadow);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(29, 78, 158, 0.12), rgba(6, 22, 52, 0.35));
}

.hero-image .media-badge {
  z-index: 1;
}

/* ---------- Filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 32px;
}

.filter-btn {
  border: 0;
  background: transparent;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: background-color 0.25s, color 0.25s;
}

.filter-btn:hover {
  color: var(--text);
}

.filter-btn[aria-pressed="true"] {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(29, 78, 158, 0.7);
}

/* ---------- People ---------- */
.person {
  padding: 26px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}

.person-top {
  display: flex;
  gap: 16px;
  align-items: center;
}

.avatar {
  width: 84px;
  height: 84px;
  flex: none;
  border-radius: 22px;
  overflow: hidden;
  background: var(--grad);
  padding: 3px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 19px;
  background: var(--surface);
}

.person h3 {
  font-size: 20px;
}

.person .role {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 4px;
}

.person .focus {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 2px;
}

.person p.bio {
  color: var(--text-2);
  font-size: 15px;
  margin-top: 18px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.team-tile {
  padding: 20px;
  border-radius: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.team-tile b {
  display: block;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
}

.team-tile span {
  font-size: 14px;
  color: var(--text-2);
}

/* ---------- 3D layer stack (MedCeps) ---------- */
.stack-scene {
  position: relative;
  height: 440px;
  perspective: 1400px;
  display: grid;
  place-items: center;
}

.stack {
  position: relative;
  width: 300px;
  height: 210px;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-38deg);
  transition: transform 0.8s var(--ease);
}

.stack-scene:hover .stack {
  transform: rotateX(52deg) rotateZ(-30deg);
}

.layer {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 242, 252, 0.9));
  box-shadow: 0 30px 40px -20px rgba(16, 42, 90, 0.35), inset 0 0 0 1px rgba(29, 78, 158, 0.08);
  transform: translateZ(calc(var(--i) * 64px));
  transition: transform 0.8s var(--ease);
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
}

.stack-scene:hover .layer {
  transform: translateZ(calc(var(--i) * 84px));
}

.layer .card-icon {
  background: var(--grad);
  color: #fff;
  border: 0;
}

.layer b {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  display: block;
}

.layer span {
  font-size: 13px;
  opacity: 0.75;
}

:root[data-theme="dark"] .layer {
  background: linear-gradient(135deg, #17345f, #0c2147);
  border-color: rgba(255, 255, 255, 0.16);
  color: #eaf3ff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .layer {
    background: linear-gradient(135deg, #17345f, #0c2147);
    border-color: rgba(255, 255, 255, 0.16);
    color: #eaf3ff;
  }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 14px;
}

.contact-card {
  padding: 20px 22px;
  border-radius: 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

a.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-2);
}

.contact-card small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.contact-card b {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  word-break: break-word;
}

.form {
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: var(--radius-lg);
}

.form h2 {
  font-size: 26px;
}

.form p.muted {
  margin-top: 6px;
  font-size: 14.5px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--glass-strong);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(26, 143, 181, 0.16);
}

.field select option {
  color: #0b1b33;
  background: #fff;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
}

.form-note {
  font-size: 13px;
  color: var(--muted);
  max-width: 360px;
}

.form-status {
  margin-top: 14px;
  font-size: 14px;
  color: var(--green-ink);
  min-height: 1.4em;
}

.offices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.office {
  padding: 22px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.office .kind {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.office h3 {
  font-size: 19px;
}

.office address {
  font-style: normal;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.55;
  flex: 1;
}

.office .links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  font-size: 14px;
}

.office .links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
}

.office .links a:hover {
  color: var(--accent);
}

.office .links .icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.office.hq {
  background: linear-gradient(135deg, rgba(29, 78, 158, 0.1), rgba(98, 187, 70, 0.08)), var(--glass);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(36px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 28px;
  align-items: center;
  color: #fff;
  background: linear-gradient(125deg, #0b2a63 0%, #1d4e9e 40%, #1a8fb5 75%, #3d9a2c 120%);
  box-shadow: 0 40px 80px -40px rgba(16, 42, 90, 0.6);
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(28px, 3.6vw, 44px);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  margin-top: 12px;
  font-size: 17px;
  max-width: 620px;
}

.cta-band .btn-glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
}

.cta-band .btn-light {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.5);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.cta-band::before {
  width: 420px;
  height: 420px;
  right: -120px;
  top: -180px;
}

.cta-band::after {
  width: 260px;
  height: 260px;
  right: 40px;
  bottom: -160px;
}

.cta-band>* {
  position: relative;
  z-index: 1;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(32px, 4vw, 56px);
  padding: 56px 0 28px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, var(--bg-2));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.footer-brand p {
  color: var(--text-2);
  margin-top: 16px;
  font-size: 15px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  font-family: var(--font-body);
}

.footer-col a,
.footer-col span {
  display: block;
  color: var(--text-2);
  font-size: 15px;
  padding: 4px 0;
}

.footer-col a:hover {
  color: var(--accent);
}

.socials {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  transition: transform 0.25s var(--ease), color 0.25s, border-color 0.25s, background-color 0.25s;
}

.socials a:hover {
  transform: translateY(-3px);
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.socials .icon {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--glass-border);
  background: var(--glass-strong);
  color: var(--accent);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top .icon {
  transform: rotate(-90deg);
}

/* ---------- Reveal motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-zoom {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal-zoom.is-visible {
  opacity: 1;
  transform: none;
}

.no-js .reveal,
.no-js .reveal-zoom {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav a {
    padding: 8px 8px;
    font-size: 14px;
  }

  .brand-tag {
    display: none;
  }

  .offices {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .menu-btn {
    display: grid;
  }

  .header-cta {
    display: none;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    margin: 0;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px -20px rgba(6, 22, 52, 0.45);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }

  .nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    visibility: visible;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }

  .nav a {
    padding: 13px 14px;
    font-size: 16px;
  }

  .nav a[aria-current="page"]::after {
    left: 14px;
    right: auto;
    width: 24px;
    bottom: 6px;
  }

  .nav .nav-cta {
    display: flex;
    margin-top: 6px;
    justify-content: center;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero-grid,
  .page-hero-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 400px;
    margin-top: 8px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3,
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 36px;
  }

  .steps-line {
    display: none;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(3)::before {
    display: none;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-band {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 981px) {
  .nav .nav-cta {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 68px;
  }

  .header-bar {
    height: 58px;
    padding: 0 8px 0 12px;
  }

  .brand img {
    height: 30px;
  }

  .brand-name {
    font-size: 16px;
  }

  .pill {
    gap: 8px;
    padding: 5px 10px 5px 6px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  .pill b {
    padding: 3px 8px;
    font-size: 12px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .pillars,
  .steps,
  .steps-3,
  .team-grid,
  .offices,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    padding: 4px;
  }

  .stat {
    padding: 20px 16px;
  }

  .stat:nth-child(odd)::before {
    display: none;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .hero-visual {
    min-height: 340px;
  }

  .cube-scene {
    --s: 176px;
  }

  .face {
    padding: 16px;
    border-radius: 18px;
  }

  .face strong {
    font-size: 17px;
  }

  .face .face-icon {
    width: 42px;
    height: 42px;
  }

  .orbit-ring.r1 {
    width: 290px;
    height: 290px;
  }

  .orbit-ring.r2 {
    width: 330px;
    height: 330px;
  }

  .halo {
    width: 300px;
    height: 300px;
  }

  .float-chip {
    font-size: 12px;
    padding: 8px 10px;
  }

  .float-chip b {
    font-size: 14px;
  }

  .float-chip.c2 {
    right: 0;
  }

  .drag-hint {
    display: none;
  }

  .flip {
    min-height: 420px;
  }

  .stack-scene {
    height: 360px;
  }

  .stack {
    width: 230px;
    height: 170px;
  }

  .layer b {
    font-size: 15px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .logo-chip {
    width: 140px;
    height: 66px;
  }

  .stats-note {
    text-align: left;
  }

  .filters {
    width: 100%;
  }

  .filter-btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-zoom {
    opacity: 1;
    transform: none;
  }

  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }

  .marquee-set[aria-hidden="true"] {
    display: none;
  }

  .marquee-set {
    flex-wrap: wrap;
    justify-content: center;
  }
}

[id] {
  scroll-margin-top: 100px;
}

/* =========================================================
   v2: Bento hero, media gallery, lightbox, team ring
   ========================================================= */

/* ---------- Bento hero ---------- */
.hero2 {
  position: relative;
  padding: calc(var(--header-h) + clamp(28px, 4.5vw, 56px)) 0 clamp(24px, 3vw, 40px);
  text-align: center;
}

.hero2 h1 {
  font-size: clamp(36px, 5.4vw, 70px);
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 20px auto 18px;
  max-width: 980px;
}

.hero2 .rotator {
  font-size: 1em;
  height: 1.18em;
}

.hero2 .rotator span {
  left: 0;
  right: 0;
  text-align: center;
}

.hero2 .lead {
  max-width: 660px;
  margin: 6px auto 0;
}

.hero2 .hero-actions {
  justify-content: center;
  margin-top: 26px;
}

.bento-stage {
  perspective: 1600px;
  margin-top: clamp(32px, 4.5vw, 52px);
}

.bento {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.1fr;
  grid-template-rows: 212px 212px;
  gap: 16px;
  grid-auto-flow: dense;
  text-align: left;
  transform-style: preserve-3d;
  transform: rotateX(var(--brx, 0deg)) rotateY(var(--bry, 0deg));
  transition: transform 0.6s var(--ease);
}

.bento.bento-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 212px;
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tile .k {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.tile .num {
  font-family: var(--font-head);
  font-size: clamp(30px, 2.8vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.tile .cap {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-2);
  margin-top: 6px;
}

.tile .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tile .tags .tag {
  font-size: 12px;
  padding: 4px 10px;
}

.t-main {
  grid-row: span 2;
  color: #fff;
  background: #061634;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px -30px rgba(6, 22, 52, 0.7);
}

.t-main>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transform: scale(1.08);
  animation: kenburns 18s ease-in-out infinite alternate;
}

.t-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 22, 52, 0.1), rgba(6, 22, 52, 0.85));
}

.t-main>* {
  position: relative;
  z-index: 1;
}

.t-main .k {
  color: #9fd8ff;
}

.t-main h2 {
  color: #fff;
  font-size: clamp(22px, 2.2vw, 30px);
  margin-top: 8px;
  max-width: 320px;
}

.t-main .ecg {
  width: 100%;
  height: 70px;
}

.ecg path {
  fill: none;
  stroke: url(#ecgGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: ecg 4.2s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(60, 195, 232, 0.8));
}

.ticker {
  height: 26px;
  overflow: hidden;
  margin-top: 10px;
}

.ticker ul {
  animation: ticker 12s steps(1) infinite;
}

.ticker li {
  height: 26px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}

.ticker li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

@keyframes kenburns {
  to {
    transform: scale(1.18) translate(-2%, -2%);
  }
}

@keyframes ecg {
  0% {
    stroke-dashoffset: 900;
  }

  55% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: -900;
  }
}

@keyframes ticker {
  0% {
    transform: translateY(0);
  }

  16.66% {
    transform: translateY(-26px);
  }

  33.33% {
    transform: translateY(-52px);
  }

  50% {
    transform: translateY(-78px);
  }

  66.66% {
    transform: translateY(-104px);
  }

  83.33% {
    transform: translateY(-130px);
  }
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 44px;
}

.bars i {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: var(--grad);
  opacity: 0.85;
  transform-origin: bottom;
  animation: bar 2.8s ease-in-out infinite;
}

.bars i:nth-child(1) {
  height: 35%;
  animation-delay: -0.2s;
}

.bars i:nth-child(2) {
  height: 55%;
  animation-delay: -0.6s;
}

.bars i:nth-child(3) {
  height: 45%;
  animation-delay: -1s;
}

.bars i:nth-child(4) {
  height: 70%;
  animation-delay: -1.4s;
}

.bars i:nth-child(5) {
  height: 60%;
  animation-delay: -1.8s;
}

.bars i:nth-child(6) {
  height: 90%;
  animation-delay: -2.2s;
}

.bars i:nth-child(7) {
  height: 100%;
  animation-delay: -2.6s;
}

@keyframes bar {

  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(0.65);
  }
}

.t-orbit {
  grid-row: span 2;
  align-items: center;
  text-align: center;
}

.orbit {
  position: relative;
  width: 210px;
  height: 210px;
  margin: 6px auto 0;
  flex: none;
}

.orbit-core {
  position: absolute;
  inset: 66px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.orbit-core img {
  width: 52px;
  height: auto;
}

.orbit-track {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
  animation: spin 24s linear infinite;
}

.orbit-track .sat {
  position: absolute;
  width: 42px;
  height: 42px;
  margin: -21px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 8px 18px -8px rgba(29, 78, 158, 0.8);
  left: calc(50% + 105px * var(--x));
  top: calc(50% + 105px * var(--y));
  animation: spin 24s linear infinite reverse;
}

.orbit-track .sat .icon {
  width: 19px;
  height: 19px;
}

.t-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: space-between;
}

.pulse-map {
  position: relative;
  height: 30px;
}

.pulse-map span {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sky);
}

.pulse-map span::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--sky);
  opacity: 0;
  animation: ping 2.6s ease-out infinite;
  animation-delay: inherit;
}

@keyframes ping {
  0% {
    transform: scale(0.4);
    opacity: 0.9;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.bento .tile {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}

.bento.is-in .tile {
  opacity: 1;
  transform: none;
}

.no-js .bento .tile {
  opacity: 1;
  transform: none;
}

.bento .stat-card {
  transition: none;
}

.bento.is-in .stat-projects {
  animation: stat-rise 0.85s var(--ease) var(--d) both;
}

.bento.is-in .stat-clients {
  animation: stat-slide-left 0.85s var(--ease) var(--d) both;
}

.bento.is-in .stat-pharma {
  animation: stat-drop 0.9s var(--ease) var(--d) both;
}

.bento.is-in .stat-locations {
  animation: stat-slide-right 0.85s var(--ease) var(--d) both;
}

@keyframes stat-rise {
  from {
    opacity: 0;
    transform: translateY(34px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes stat-slide-left {
  from {
    opacity: 0;
    transform: translateX(-34px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes stat-drop {
  from {
    opacity: 0;
    transform: translateY(-30px) rotate(1.5deg) scale(0.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes stat-slide-right {
  from {
    opacity: 0;
    transform: translateX(34px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Compact platform rows (home) ---------- */
.plat-rows {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.plat-row {
  padding: 22px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.plat-row:hover {
  transform: translateY(-4px);
  border-color: var(--accent-2);
}

.plat-row .k {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.plat-row b {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
}

.plat-row p {
  font-size: 14.5px;
  color: var(--text-2);
}

.plat-row .text-link {
  margin-top: auto;
  font-size: 14px;
}

/* ---------- Audience cards (about) ---------- */
.aud {
  padding: 22px;
  border-radius: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  height: 100%;
}

.aud b {
  display: block;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
}

.aud span {
  font-size: 14.5px;
  color: var(--text-2);
}

/* ---------- Photo fan (media hero) ---------- */
.fan {
  position: relative;
  height: 380px;
  perspective: 1200px;
}

.fan figure {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220px;
  aspect-ratio: 4 / 5;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 6px solid var(--surface);
  box-shadow: 0 30px 50px -24px rgba(6, 22, 52, 0.45);
  transform: translate(-50%, -50%) rotate(var(--r)) translateX(var(--tx));
  transition: transform 0.8s var(--ease);
  animation: fanfloat 7s ease-in-out infinite;
  animation-delay: var(--dl, 0s);
}

.fan figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fan:hover figure {
  transform: translate(-50%, -50%) rotate(calc(var(--r) * 1.6)) translateX(calc(var(--tx) * 1.5));
}

@keyframes fanfloat {

  0%,
  100% {
    margin-top: 0;
  }

  50% {
    margin-top: -12px;
  }
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 16px;
}

.gallery .shot {
  margin: 0;
  min-width: 0;
}

.gallery .shot.tall {
  grid-row: span 2;
}

.gallery .shot.wide {
  grid-column: span 2;
}

.gallery .shot[hidden] {
  display: none;
}

.shot button {
  all: unset;
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--glass-shadow);
}

.shot button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease);
}

.shot button:hover img {
  transform: scale(1.06);
}

.shot figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: rgba(6, 22, 52, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.shot button:hover figcaption,
.shot button:focus-visible figcaption {
  opacity: 1;
  transform: none;
}

.shot figcaption .icon {
  width: 16px;
  height: 16px;
}

@media (hover: none) {
  .shot figcaption {
    opacity: 1;
    transform: none;
  }
}

/* Marquee rows */
.reel {
  display: grid;
  gap: 16px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.reel-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 46s linear infinite;
}

.reel-track.rev {
  animation-direction: reverse;
  animation-duration: 54s;
}

.reel:hover .reel-track {
  animation-play-state: paused;
}

.reel-track img {
  height: 170px;
  width: auto;
  border-radius: 18px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 10, 26, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0s linear 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s;
}

.lightbox figure {
  margin: 0;
  max-width: min(1000px, 100%);
  transform: scale(0.94);
  transition: transform 0.4s var(--ease);
}

.lightbox.is-open figure {
  transform: none;
}

.lightbox img {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  border-radius: 18px;
  margin: 0 auto;
}

.lightbox figcaption {
  color: #fff;
  text-align: center;
  margin-top: 12px;
  font-size: 15px;
}

.lb-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.lb-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lb-close {
  top: 20px;
  right: 20px;
}

.lb-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
}

.lb-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- Team ring (3D carousel) ---------- */
.ring-stage {
  position: relative;
  height: 440px;
  perspective: 1600px;
  overflow: hidden;
  display: grid;
  place-items: center;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.ring-stage:active {
  cursor: grabbing;
}

.ring {
  position: relative;
  width: 230px;
  height: 320px;
  transform-style: preserve-3d;
  will-change: transform;
}

.member {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  overflow: hidden;
  transform: rotateY(calc(var(--i) * 30deg)) translateZ(var(--rz, 500px));
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 50px -28px rgba(6, 22, 52, 0.55);
  background: var(--surface);
}

.member img {
  width: 100%;
  height: 74%;
  object-fit: cover;
  pointer-events: none;
}

.member div {
  padding: 10px 14px;
}

.member b {
  display: block;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
}

.member span {
  font-size: 13px;
  color: var(--muted);
}

.ring-floor {
  position: absolute;
  bottom: 18px;
  width: 70%;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(29, 78, 158, 0.22), transparent 70%);
  filter: blur(6px);
}

.ring-hint {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

/* Department marquee chips */
.dept-reel {
  overflow: hidden;
  margin-top: 18px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.dept-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.dept-track .tag {
  font-size: 14px;
  padding: 9px 16px;
  white-space: nowrap;
}

/* News archive */
.news {
  padding: 24px;
  border-radius: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.news time {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.news b {
  display: block;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  margin: 6px 0;
}

.news p {
  font-size: 15px;
  color: var(--text-2);
}

/* Perks panel (careers) */
.perks {
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 14px;
}

.perk {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 16px;
  background: var(--chip-bg);
  border: 1px solid var(--glass-edge);
  transition: transform 0.3s var(--ease);
}

.perk:hover {
  transform: translateX(6px);
}

.perk b {
  display: block;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
}

.perk span {
  font-size: 14.5px;
  color: var(--text-2);
}

@media (max-width: 1100px) {
  .bento {
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: 180px 180px 220px;
  }

  .bento.bento-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, 205px);
  }

  .t-orbit {
    grid-row: auto;
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-around;
  }

  .t-orbit .orbit {
    width: 180px;
    height: 180px;
    margin: 0;
  }

  .t-orbit .orbit-core {
    inset: 56px;
  }

  .t-orbit .orbit-track .sat {
    left: calc(50% + 90px * var(--x));
    top: calc(50% + 90px * var(--y));
  }

  .plat-rows {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1000px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
}

@media (max-width: 760px) {
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-auto-rows: minmax(190px, auto);
  }

  .bento.bento-stats {
    grid-template-rows: none;
  }

  .t-main {
    min-height: 300px;
  }

  .t-main {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .t-duo {
    grid-column: 1 / -1;
  }

  .fan {
    height: 320px;
  }

  .fan figure {
    width: 170px;
  }

  .ring-stage {
    height: 360px;
  }

  .ring {
    width: 170px;
    height: 240px;
  }

  .member {
    --rz: 340px;
  }

  .member b {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .plat-rows {
    grid-template-columns: 1fr;
  }

  .t-orbit {
    flex-direction: column;
    gap: 10px;
  }

  .reel-track img {
    height: 120px;
  }

  .gallery {
    grid-auto-rows: 150px;
    gap: 10px;
  }

  .gallery .shot.wide {
    grid-column: span 2;
  }

  .lb-prev,
  .lb-next {
    top: auto;
    bottom: 20px;
  }

  .lb-prev {
    left: calc(50% - 60px);
    transform: rotate(180deg);
  }

  .lb-next {
    right: calc(50% - 60px);
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .bento .tile,
  .bento.is-in .stat-card {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .reel-track,
  .dept-track {
    animation: none;
  }
}

@media (max-width: 640px) {
  .fan {
    height: 270px;
  }

  .fan figure,
  .fan:hover figure {
    width: 140px;
    border-width: 4px;
    transform: translate(-50%, -50%) rotate(var(--r)) translateX(calc(var(--tx) * 0.55));
  }
}

@media (max-width: 640px) {
  .hero2 .rotator {
    font-size: 0.72em;
  }
}

/* =========================================================
   v3: capability orbit hero, creative cards, platform viz,
   globe, justified body copy
   ========================================================= */

/* ---------- Hero with capability orbit ---------- */
.hero2 {
  text-align: left;
  overflow-x: clip;
}

.hero2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  min-height: 540px;
}

.hero2-copy {
  position: relative;
  z-index: 2;
}

.hero2 h1 {
  margin: 20px 0 18px;
  max-width: none;
  font-size: clamp(36px, 4.8vw, 64px);
}

.hero2 .rotator span {
  left: 0;
  right: auto;
  text-align: left;
}

.hero2 .lead {
  margin: 6px 0 0;
  max-width: 560px;
}

.hero2 .hero-actions {
  justify-content: flex-start;
}

.bento {
  grid-template-columns: 1.4fr 1fr 1fr;
}

/* ---------- Creative cards (no numbers) ---------- */
.card-num,
.flip-num {
  display: none;
}

.card {
  overflow: hidden;
  isolation: isolate;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--grad);
  -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 0.4s var(--ease);
  pointer-events: none;
  z-index: 2;
}

.card:hover::before,
.card:focus-within::before {
  opacity: 1;
}

.card-mark {
  position: absolute;
  right: -22px;
  bottom: -22px;
  width: 132px;
  height: 132px;
  color: var(--accent);
  opacity: 0.07;
  transform: rotate(-12deg);
  transition: transform 0.7s var(--ease), opacity 0.4s;
  pointer-events: none;
  z-index: -1;
}

.card-mark .icon {
  width: 100%;
  height: 100%;
  stroke-width: 1.2;
}

.card:hover .card-mark {
  transform: rotate(0deg) scale(1.08);
  opacity: 0.12;
}

.card .card-icon {
  position: relative;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.card .card-icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 18px;
  border: 1.5px dashed var(--accent-2);
  opacity: 0;
  transform: rotate(0deg) scale(0.8);
  transition: opacity 0.4s, transform 0.6s var(--ease);
}

.card:hover .card-icon {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(29, 78, 158, 0.8);
}

.card:hover .card-icon::after {
  opacity: 0.7;
  transform: rotate(45deg) scale(1);
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  background: var(--chip-bg);
  border: 1px solid var(--glass-edge);
  transition: background 0.3s, color 0.3s, gap 0.3s var(--ease);
}

.card-cta:hover,
.card:hover .card-cta {
  background: var(--grad);
  color: #fff;
  gap: 12px;
}

.step-dot .icon {
  width: 24px;
  height: 24px;
}

/* ---------- Platform flip cards with animated illustrations ---------- */
.flip.is-flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
  border-radius: var(--radius-lg);
}

.flip {
  min-height: 430px;
}

.flip-front {
  background: radial-gradient(120% 90% at 20% 0%, #1f5fb8 0%, #0d2b5c 55%, #061634 100%);
}

.flip-front::after {
  background: linear-gradient(180deg, rgba(6, 22, 52, 0) 45%, rgba(6, 22, 52, 0.9) 100%);
}

.viz-wrap {
  position: absolute;
  inset: 0 0 34% 0;
  display: grid;
  place-items: center;
  padding: 26px 18px 0;
}

.viz {
  width: 100%;
  height: auto;
  max-height: 100%;
  overflow: visible;
}

.flip-back {
  padding: 24px;
  gap: 14px;
}

.flip-back h3 {
  font-size: 21px;
  margin: 12px 0 8px;
}

.flip-back p {
  font-size: 14.5px;
}

.btn-block {
  width: 100%;
  white-space: normal;
  text-align: center;
}

.viz-network .v-line {
  stroke: rgba(160, 215, 255, 0.55);
  stroke-width: 1.4;
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  animation: vdraw 1.6s var(--ease) forwards;
  animation-delay: calc(var(--i) * 0.15s);
}

.viz-network .v-line.soft {
  stroke: rgba(160, 215, 255, 0.22);
  stroke-dasharray: 4 5;
  animation: none;
  stroke-dashoffset: 0;
}

.viz-network .v-packet {
  fill: #7fd35f;
}

.viz-network .v-dot {
  fill: #3cc3e8;
  stroke: #fff;
  stroke-width: 2;
}

.viz-network .v-halo {
  fill: none;
  stroke: #3cc3e8;
  stroke-width: 1.5;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: vping 2.6s ease-out infinite;
  animation-delay: calc(var(--i) * 0.4s);
}

.viz-network .v-core {
  fill: url(#none);
  fill: #62bb46;
  stroke: #fff;
  stroke-width: 3;
}

.viz-network .v-core-halo {
  fill: rgba(98, 187, 70, 0.25);
  transform-box: fill-box;
  transform-origin: center;
  animation: vbreathe 2.4s ease-in-out infinite;
}

.viz-chart .v-grid {
  stroke: rgba(160, 215, 255, 0.15);
  stroke-width: 1;
}

.viz-chart .v-bar {
  fill: rgba(60, 195, 232, 0.28);
  transform-box: fill-box;
  transform-origin: bottom;
  animation: vgrow 3.2s var(--ease) infinite alternate;
  animation-delay: calc(var(--i) * 0.12s);
}

.viz-chart .v-area {
  fill: url(#vArea);
  opacity: 0.9;
}

.viz-chart .v-trend {
  fill: none;
  stroke: #7fd35f;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: vdraw 2.4s var(--ease) forwards 0.3s;
}

.viz-chart .v-runner {
  fill: #fff;
  stroke: #7fd35f;
  stroke-width: 3;
}

.viz-form .v-sheet {
  fill: rgba(255, 255, 255, 0.1);
  stroke: rgba(160, 215, 255, 0.35);
}

.viz-form .v-head {
  fill: rgba(255, 255, 255, 0.75);
}

.viz-form .v-label {
  fill: rgba(160, 215, 255, 0.55);
}

.viz-form .v-field {
  fill: rgba(255, 255, 255, 0.08);
  stroke: rgba(160, 215, 255, 0.3);
}

.viz-form .v-fill {
  fill: rgba(60, 195, 232, 0.55);
  transform-box: fill-box;
  transform-origin: left;
  transform: scaleX(0);
  animation: vfill 6s var(--ease) infinite;
  animation-delay: calc(var(--i) * 0.6s);
}

.viz-form .v-check circle {
  fill: #62bb46;
}

.viz-form .v-check path {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.viz-form .v-check {
  transform-box: fill-box;
  transform-origin: center;
  animation: vpop 6s var(--ease) infinite;
  animation-delay: calc(var(--i) * 0.6s);
}

.viz-rings .v-track {
  fill: none;
  stroke: rgba(160, 215, 255, 0.18);
  stroke-width: 7;
}

.viz-rings .v-ring {
  fill: none;
  stroke: #3cc3e8;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 188.5;
  stroke-dashoffset: 188.5;
  animation: vring 5s var(--ease) infinite;
  animation-delay: calc(var(--i) * 0.3s);
}

.viz-rings g:nth-child(2) .v-ring {
  stroke: #7fd35f;
}

.viz-rings .v-cap {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linejoin: round;
  opacity: 0.85;
}

.viz-rings .v-track-bar {
  fill: rgba(160, 215, 255, 0.15);
}

.viz-rings .v-progress {
  fill: url(#none);
  fill: #3cc3e8;
  transform-box: fill-box;
  transform-origin: left;
  animation: vbar 5s var(--ease) infinite;
  animation-delay: calc(var(--i) * 0.35s);
}

@keyframes vdraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes vping {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }

  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

@keyframes vbreathe {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

@keyframes vgrow {
  0% {
    transform: scaleY(0.35);
  }

  100% {
    transform: scaleY(1);
  }
}

@keyframes vfill {

  0%,
  8% {
    transform: scaleX(0);
  }

  30%,
  85% {
    transform: scaleX(1);
  }

  100% {
    transform: scaleX(0);
  }
}

@keyframes vpop {

  0%,
  28% {
    transform: scale(0);
  }

  36%,
  85% {
    transform: scale(1);
  }

  100% {
    transform: scale(0);
  }
}

@keyframes vring {
  0% {
    stroke-dashoffset: 188.5;
  }

  45%,
  80% {
    stroke-dashoffset: calc(188.5 * (1 - var(--p)));
  }

  100% {
    stroke-dashoffset: 188.5;
  }
}

@keyframes vbar {
  0% {
    transform: scaleX(0.1);
  }

  50%,
  80% {
    transform: scaleX(calc(0.45 + var(--i) * 0.2));
  }

  100% {
    transform: scaleX(0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .viz * {
    animation: none !important;
    stroke-dashoffset: 0 !important;
    transform: none !important;
  }

  .viz animateMotion {
    display: none;
  }
}

/* ---------- Focused platforms page ---------- */
.platforms-focus {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + clamp(28px, 4vw, 52px)) 0 clamp(64px, 8vw, 112px);
  overflow: hidden;
}

.platforms-focus-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
  margin-top: 0;
}

.platforms-focus-intro {
  max-width: 820px;
}

.platforms-focus-intro h1 {
  margin-top: 16px;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.platforms-focus-intro>p:last-child {
  max-width: 650px;
  margin-top: 24px;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.65;
  color: var(--text-2);
}

.platforms-hero-collage {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(160, 215, 255, 0.14));
  border: 1px solid var(--glass-border);
  box-shadow: 0 34px 70px -34px rgba(6, 22, 52, 0.6);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

:root[data-theme="dark"] .platforms-hero-collage {
  background: linear-gradient(145deg, rgba(20, 48, 88, 0.72), rgba(6, 22, 52, 0.36));
}

.platforms-collage-tile {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 10px;
  display: grid;
  grid-template-rows: 1fr auto;
  border-radius: 18px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  background: radial-gradient(120% 100% at 10% 0%, #1f5fb8 0%, #0d2b5c 56%, #061634 100%);
  border: 1px solid rgba(160, 215, 255, 0.18);
  box-shadow: 0 18px 34px -22px rgba(6, 22, 52, 0.95);
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}

.platforms-collage-tile:nth-child(2),
.platforms-collage-tile:nth-child(3) {
  background: radial-gradient(120% 100% at 90% 100%, #176d78 0%, #0d2b5c 52%, #061634 100%);
}

.platforms-collage-tile:hover,
.platforms-collage-tile:focus-visible {
  z-index: 2;
  transform: translateY(-4px) scale(1.025);
  border-color: rgba(127, 211, 95, 0.62);
  box-shadow: 0 24px 44px -20px rgba(6, 22, 52, 0.95);
  color: #fff;
  text-decoration: none;
  outline: none;
}

.platforms-collage-tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.platforms-collage-viz {
  min-height: 0;
  display: grid;
  place-items: center;
}

.platforms-collage-viz .viz {
  width: 100%;
  max-height: 118px;
}

.platforms-collage-copy {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px;
  align-items: center;
  min-width: 0;
  padding: 4px 2px 2px;
}

.platforms-collage-copy span {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #7fd35f;
}

.platforms-collage-copy b {
  overflow: hidden;
  font-family: var(--font-head);
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 600;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platforms-collage-core {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.94);
  border: 5px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 34px -16px rgba(6, 22, 52, 0.75);
}

.platforms-collage-core::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 28px;
  border: 1px solid rgba(127, 211, 95, 0.52);
  animation: corepulse 2.8s ease-out infinite;
}

.platforms-collage-core img {
  width: 46px;
  height: auto;
}

.platform-showcase-list {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
  margin-top: clamp(40px, 6vw, 76px);
}

.platform-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.35fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(26px, 4vw, 52px);
  border-radius: 32px;
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.platform-showcase.has-product-gallery {
  grid-template-columns: minmax(270px, 0.68fr) minmax(0, 1.72fr);
  gap: clamp(26px, 3.5vw, 46px);
  padding: clamp(24px, 3vw, 40px);
}

.platform-showcase.has-product-gallery .platform-showcase-copy h2 {
  font-size: clamp(32px, 3.2vw, 42px);
}

.platform-showcase::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -150px;
  top: -160px;
  border-radius: 50%;
  background: var(--grad);
  opacity: 0.12;
  filter: blur(8px);
  pointer-events: none;
}

.platform-showcase.is-reversed {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.78fr);
}

.platform-showcase.has-product-gallery.is-reversed {
  grid-template-columns: minmax(0, 1.72fr) minmax(270px, 0.68fr);
}

.platform-showcase.is-reversed::before {
  right: auto;
  left: -150px;
  top: auto;
  bottom: -160px;
}

.platform-showcase.is-reversed .platform-showcase-copy {
  grid-column: 2;
  grid-row: 1;
}

.platform-showcase.is-reversed .platform-showcase-visual {
  grid-column: 1;
  grid-row: 1;
}

.platform-showcase-meta {
  margin-bottom: 18px;
}

.platform-showcase-meta small {
  font-size: clamp(14px, 1.25vw, 17px);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 58%, transparent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-decoration-skip-ink: auto;
}

.platform-showcase-copy h2 {
  font-size: clamp(32px, 3.7vw, 48px);
  line-height: 1.05;
}

.platform-showcase-copy>p {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
}

.platform-showcase-copy ul {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.platform-showcase-copy li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-2);
}

.platform-showcase-copy li .icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--green-ink);
}

.platform-showcase-copy .btn {
  margin-top: 30px;
}

.platform-showcase-visual {
  min-width: 0;
  margin: 0;
}

.platform-browser {
  overflow: hidden;
  border-radius: 22px;
  background: #061634;
  border: 1px solid rgba(160, 215, 255, 0.24);
  box-shadow: 0 30px 60px -28px rgba(6, 22, 52, 0.85);
  transform: perspective(1200px) rotateY(-1.5deg);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.platform-showcase.is-reversed .platform-browser {
  transform: perspective(1200px) rotateY(1.5deg);
}

.platform-showcase:hover .platform-browser {
  transform: perspective(1200px) rotateY(0) translateY(-5px);
  box-shadow: 0 38px 72px -28px rgba(6, 22, 52, 0.95);
}

.platform-browser-bar {
  height: 42px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: rgba(220, 235, 250, 0.62);
  background: #091a38;
  border-bottom: 1px solid rgba(160, 215, 255, 0.13);
}

.platform-browser-bar>span:nth-child(2) {
  max-width: 260px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-browser-dots {
  display: flex;
  gap: 6px;
}

.platform-browser-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3cc3e8;
  opacity: 0.65;
}

.platform-browser-dots i:nth-child(2) {
  background: #7fd35f;
}

.platform-browser-dots i:nth-child(3) {
  background: #fff;
  opacity: 0.28;
}

.platform-browser-viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.platform-browser-shot {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.platform-browser.has-slideshow {
  border-radius: 26px;
  transform: none;
  transition: box-shadow 0.4s var(--ease);
}

.platform-showcase.is-reversed .platform-browser.has-slideshow,
.platform-showcase:hover .platform-browser.has-slideshow {
  transform: none;
}

.platform-browser.has-slideshow .platform-browser-viewport {
  aspect-ratio: 2 / 1;
  background: #edf3f8;
}

.platform-slide-step {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 14px;
  opacity: 0;
  color: #fff;
  background: rgba(6, 22, 52, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 28px -14px rgba(6, 22, 52, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity 0.25s ease, background 0.25s ease, border-color 0.25s ease, scale 0.25s ease;
}

.platform-browser.has-slideshow:hover .platform-slide-step,
.platform-browser.has-slideshow:focus-within .platform-slide-step {
  opacity: 1;
}

.platform-slide-step:hover,
.platform-slide-step:focus-visible {
  color: #fff;
  background: rgba(24, 76, 132, 0.92);
  border-color: rgba(60, 195, 232, 0.72);
  outline: none;
  scale: 1.06;
}

.platform-slide-step .icon {
  width: 17px;
  height: 17px;
}

.platform-slide-prev {
  left: 14px;
}

.platform-slide-next {
  right: 14px;
}

.platform-slide-prev .icon {
  transform: rotate(180deg);
}

.platform-slides,
.platform-slide {
  position: absolute;
  inset: 0;
}

.platform-slide {
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  background: #edf3f8;
  transition: opacity 0.48s ease, visibility 0s linear 0.48s;
}

.platform-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.platform-slide .platform-browser-shot {
  object-fit: contain;
  object-position: center top;
  transform: none;
  background: #f6f8fb;
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
}

.platform-slide.is-cover .platform-browser-shot {
  object-fit: cover;
  object-position: center top;
}

.platform-slide.is-detail {
  padding: clamp(12px, 2.4vw, 24px);
  background: radial-gradient(circle at 50% 35%, rgba(60, 195, 232, 0.22), transparent 34%), linear-gradient(135deg, #e5eef7, #f8fbfd 48%, #e7f4ee);
}

.platform-slide.is-detail .platform-browser-shot {
  width: auto;
  max-width: 52%;
  height: 100%;
  margin-inline: auto;
  object-fit: contain;
  border-radius: 14px;
  clip-path: inset(0 2.6% 0 0 round 14px);
  background: #fff;
  box-shadow: 0 18px 34px -18px rgba(6, 22, 52, 0.58);
}

.platform-screen-demo {
  height: 100%;
  display: grid;
  grid-template-columns: 64px 1fr;
  color: #fff;
  background: radial-gradient(100% 100% at 100% 0%, #173d78 0%, #0d2b5c 44%, #061634 100%);
}

.platform-screen-nav {
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: rgba(3, 13, 34, 0.48);
  border-right: 1px solid rgba(160, 215, 255, 0.12);
}

.platform-screen-nav img {
  width: 34px;
  height: auto;
  margin-bottom: 12px;
}

.platform-screen-nav i {
  width: 28px;
  height: 7px;
  border-radius: 99px;
  background: rgba(160, 215, 255, 0.18);
}

.platform-screen-nav i:first-of-type {
  background: linear-gradient(90deg, #3cc3e8, #62bb46);
}

.platform-screen-main {
  min-width: 0;
  padding: clamp(16px, 2.3vw, 26px);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}

.platform-screen-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(220, 235, 250, 0.58);
}

.platform-screen-toolbar b {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 7.5px;
  color: #7fd35f;
  background: rgba(127, 211, 95, 0.1);
  border: 1px solid rgba(127, 211, 95, 0.25);
}

.platform-screen-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.platform-screen-title .card-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.platform-screen-title small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(220, 235, 250, 0.58);
}

.platform-screen-title strong {
  display: block;
  margin-top: 2px;
  font-family: var(--font-head);
  font-size: clamp(14px, 1.7vw, 21px);
  font-weight: 600;
}

.platform-screen-viz {
  min-height: 0;
  display: grid;
  place-items: center;
}

.platform-screen-viz .viz {
  width: min(100%, 420px);
  max-height: 210px;
}

.platform-screen-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.platform-screen-points span {
  min-width: 0;
  padding: 9px;
  border-radius: 9px;
  overflow: hidden;
  font-size: 7.5px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(220, 235, 250, 0.72);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(160, 215, 255, 0.1);
}

.platform-screen-points i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: #7fd35f;
}

.platform-showcase-visual figcaption {
  margin-top: 10px;
  font-size: 11px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 900px) {
  .platforms-focus-hero {
    grid-template-columns: 1fr;
  }

  .platforms-hero-collage {
    width: min(100%, 680px);
  }

  .platform-showcase,
  .platform-showcase.is-reversed,
  .platform-showcase.has-product-gallery {
    grid-template-columns: 1fr;
  }

  .platform-showcase.is-reversed .platform-showcase-copy,
  .platform-showcase.is-reversed .platform-showcase-visual {
    grid-column: auto;
    grid-row: auto;
  }

  .platform-showcase-copy {
    order: 1;
  }

  .platform-showcase-visual {
    order: 2;
  }

  .platform-browser,
  .platform-showcase.is-reversed .platform-browser {
    transform: none;
  }
}

@media (max-width: 640px) {
  .platforms-focus-hero {
    gap: 28px;
    margin-top: 0;
  }

  .platforms-focus-intro h1 {
    font-size: clamp(42px, 14vw, 62px);
  }

  .platforms-focus-intro>p:last-child {
    font-size: 16px;
  }

  .platforms-hero-collage {
    padding: 10px;
    gap: 8px;
    border-radius: 22px;
  }

  .platforms-collage-tile {
    padding: 7px;
    border-radius: 14px;
  }

  .platforms-collage-viz .viz {
    max-height: 90px;
  }

  .platforms-collage-core {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .platforms-collage-core img {
    width: 38px;
  }

  .platform-showcase-list {
    margin-top: 34px;
    gap: 20px;
  }

  .platform-showcase {
    padding: 22px;
    border-radius: 24px;
  }

  .platform-showcase.has-product-gallery {
    padding: 18px;
  }

  .platform-browser {
    border-radius: 16px;
  }

  .platform-browser-bar {
    height: 36px;
    padding: 0 12px;
  }

  .platform-browser.has-slideshow {
    border-radius: 18px;
  }

  .platform-slide-step {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    opacity: 1;
  }

  .platform-slide-prev {
    left: 8px;
  }

  .platform-slide-next {
    right: 8px;
  }

  .platform-slide.is-detail {
    padding: 10px;
  }

  .platform-slide.is-detail .platform-browser-shot {
    max-width: 58%;
    border-radius: 9px;
  }

  .platform-screen-demo {
    grid-template-columns: 44px 1fr;
  }

  .platform-screen-nav {
    padding: 12px 8px;
    gap: 10px;
  }

  .platform-screen-nav img {
    width: 26px;
  }

  .platform-screen-nav i {
    width: 22px;
  }

  .platform-screen-main {
    padding: 12px;
  }

  .platform-screen-title {
    margin-top: 8px;
  }

  .platform-screen-title .card-icon {
    width: 32px;
    height: 32px;
  }

  .platform-screen-viz .viz {
    max-height: 140px;
  }

  .platform-screen-points {
    display: none;
  }
}

/* ---------- Globe ---------- */
.globe-wrap {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  padding: 10px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.globe-list {
  display: grid;
  gap: 6px;
  padding: 10px;
  align-content: start;
}

.globe-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}

.globe-btn:hover {
  background: var(--chip-bg);
  transform: translateX(4px);
}

.globe-btn.is-active {
  background: var(--glass-strong);
  border-color: var(--accent-2);
  box-shadow: var(--glass-shadow);
}

.globe-btn b {
  display: block;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
}

.globe-btn small {
  font-size: 12.5px;
  color: var(--muted);
}

.g-dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 4px rgba(34, 166, 224, 0.15);
}

.globe-btn.is-active .g-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(98, 187, 70, 0.2);
}

.globe-stage {
  position: relative;
  min-height: 520px;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 45%, rgba(34, 166, 224, 0.14), transparent 65%);
}

.globe-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}

.globe-stage canvas:active {
  cursor: grabbing;
}

.globe-caption {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.globe-hint {
  position: absolute;
  top: 16px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .globe-wrap {
    grid-template-columns: 1fr;
  }

  .globe-list {
    grid-template-columns: repeat(2, 1fr);
    order: 2;
  }

  .globe-stage {
    min-height: 380px;
  }
}

@media (max-width: 480px) {
  .globe-btn {
    padding: 9px 10px;
  }

  .globe-btn b {
    font-size: 14.5px;
  }

  .globe-stage {
    min-height: 330px;
  }
}

/* ---------- Justified body copy (hero leads stay left aligned) ---------- */
.section-head p,
.split .lead,
.person .bio,
.quote-card blockquote,
.footer-brand p,
.grid-3 .card>p,
.pillar p,
.media-badge span {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.section-head.center p,
.hero2 .lead,
.page-hero .lead,
.cta-band p {
  text-align: left;
  -webkit-hyphens: manual;
  hyphens: manual;
}

.section-head.center p {
  text-align: center;
}

/* ---------- Media page with real photos ---------- */
.photo-fan {
  height: 420px;
}

.photo-fan figure {
  width: 230px;
  aspect-ratio: auto;
  padding: 8px 8px 0;
  border: 0;
  background: #fff;
  border-radius: 14px;
}

.photo-fan figure img {
  aspect-ratio: 4 / 5;
  height: auto;
  border-radius: 8px;
}

.photo-fan figure:not(:nth-child(3)) figcaption {
  opacity: 0;
  transition: opacity 0.3s;
}

.photo-fan figure:hover figcaption {
  opacity: 1;
}

.photo-fan figcaption {
  font-size: 12.5px;
  font-weight: 600;
  color: #0b1b33;
  text-align: center;
  padding: 8px 4px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-fan figure:nth-child(3) {
  z-index: 3;
}

.photo-fan figure:nth-child(2),
.photo-fan figure:nth-child(4) {
  z-index: 2;
}

.photo-fan:hover figure:hover {
  z-index: 5;
}

.media-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.media-stats a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

.media-stats a:hover {
  transform: translateY(-3px);
  border-color: var(--accent-2);
}

.media-stats b {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.media-stats span {
  font-size: 13.5px;
  color: var(--text-2);
}

.filter-btn small {
  font-size: 12px;
  opacity: 0.7;
  margin-left: 4px;
}

.gallery .shot button {
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.gallery .shot:nth-child(odd) button:hover {
  transform: translateY(-6px) rotate(-1.2deg);
}

.gallery .shot:nth-child(even) button:hover {
  transform: translateY(-6px) rotate(1.2deg);
}

.gallery .shot button:hover {
  box-shadow: 0 30px 50px -24px rgba(6, 22, 52, 0.5);
}

.gallery .shot button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 22, 52, 0.35));
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.gallery .shot button:hover::after {
  opacity: 1;
}

.lb-count {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

@media (max-width: 640px) {
  .photo-fan {
    height: 300px;
  }

  .photo-fan figure,
  .photo-fan:hover figure {
    width: 150px;
    padding: 5px 5px 0;
  }

  .photo-fan figure:not(:nth-child(3)) figcaption {
    opacity: 0;
    transition: opacity 0.3s;
  }

  .photo-fan figure:hover figcaption {
    opacity: 1;
  }

  .photo-fan figcaption {
    font-size: 10.5px;
    padding: 6px 2px 7px;
  }
}

/* ---------- Capability orbit v4 (positions set by main.js on a true circle) ---------- */
.cap-orbit {
  --R: 260px;
  --node: 48px;
  position: relative;
  height: 600px;
}

.cap-center {
  position: absolute;
  left: calc(100% - 140px);
  top: 50%;
  width: 0;
  height: 0;
}

.cap-lines i {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.cap-lines i:nth-child(1) {
  width: calc(var(--R) * 2);
  height: calc(var(--R) * 2);
  border: 1.5px solid rgba(26, 143, 181, 0.35);
}

.cap-lines i:nth-child(1)::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(29, 78, 158, 0.9) 85%, #62bb46 100%);
  -webkit-mask: radial-gradient(circle, transparent calc(var(--R) - 2px), #000 calc(var(--R) - 1px));
  mask: radial-gradient(circle, transparent calc(var(--R) - 2px), #000 calc(var(--R) - 1px));
  animation: spin 9s linear infinite;
}

.cap-lines i:nth-child(2) {
  width: calc(var(--R) * 2 + 140px);
  height: calc(var(--R) * 2 + 140px);
  border: 1px dashed var(--line-strong);
}

.cap-lines i:nth-child(3) {
  width: calc(var(--R) * 2 - 160px);
  height: calc(var(--R) * 2 - 160px);
  border: 1px dotted var(--line-strong);
}

.cap-ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  z-index: 2;
}

.cap-node {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--node);
  height: var(--node);
  margin: calc(var(--node) / -2) 0 0 calc(var(--node) / -2);
  will-change: transform;
}

.cap-ic {
  width: var(--node);
  height: var(--node);
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 12px 24px -10px rgba(29, 78, 158, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.3s var(--ease);
}

.cap-ic .icon {
  width: 22px;
  height: 22px;
}

.cap-label {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translate(-6px, -50%);
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), color 0.25s;
}

.cap-node.is-label .cap-label,
.cap-node:hover .cap-label,
.cap-node:focus-visible .cap-label {
  opacity: 1;
  transform: translate(0, -50%);
}

.cap-node:hover,
.cap-node:focus-visible {
  z-index: 3;
}

.cap-node:hover .cap-ic,
.cap-node:focus-visible .cap-ic {
  transform: scale(1.12);
}

.cap-node:hover .cap-label,
.cap-node:focus-visible .cap-label {
  color: var(--accent);
}

.cap-core {
  position: absolute;
  left: 0;
  top: 0;
  width: 168px;
  height: 168px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), 0 0 0 14px rgba(26, 143, 181, 0.06), 0 0 0 30px rgba(26, 143, 181, 0.04);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  z-index: 1;
}

.cap-core::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 2px solid var(--accent-2);
  opacity: 0;
  animation: corepulse 3.2s ease-out infinite;
}

.cap-core img {
  width: 82px;
  height: auto;
}

.cap-core span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  max-width: 124px;
  line-height: 1.35;
  min-height: 2.7em;
}

@keyframes corepulse {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }

  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

@media (max-width: 1180px) {
  .cap-orbit {
    --R: 230px;
    --node: 44px;
  }

  .cap-center {
    left: calc(100% - 100px);
  }
}

@media (max-width: 980px) {
  .hero2-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .cap-orbit {
    --R: 140px;
    --node: 40px;
    height: 380px;
    margin-top: 8px;
  }

  .cap-center {
    left: 50%;
  }

  .cap-label {
    display: none;
  }

  .cap-core {
    width: 130px;
    height: 130px;
  }

  .cap-core img {
    width: 56px;
  }

  .cap-core span {
    font-size: 9.5px;
    letter-spacing: 0.06em;
    max-width: 100px;
  }

  .cap-lines i:nth-child(2) {
    width: calc(var(--R) * 2 + 60px);
    height: calc(var(--R) * 2 + 60px);
  }

  .cap-lines i:nth-child(3) {
    width: calc(var(--R) * 2 - 80px);
    height: calc(var(--R) * 2 - 80px);
  }
}

@media (max-width: 380px) {
  .cap-orbit {
    --R: 122px;
    --node: 36px;
    height: 340px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cap-lines i::after {
    animation: none;
  }
}

@media (max-width: 1100px) {
  .bento {
    grid-template-rows: 205px 205px;
  }
}

@media (max-width: 760px) {
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }
}

/* ---------- Journey stepper (bento main tile) ---------- */
.journey {
  display: grid;
  gap: 12px;
}

.journey-steps {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.j-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.j-step:hover {
  background: rgba(255, 255, 255, 0.16);
}

.j-step.is-active {
  background: #fff;
  color: #0d2b5c;
  border-color: #fff;
}

.j-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3cc3e8;
}

.j-step.is-active .j-dot {
  background: #62bb46;
  box-shadow: 0 0 0 3px rgba(98, 187, 70, 0.25);
}

.j-track {
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.j-track span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #3cc3e8, #7fd35f);
  transform-origin: left;
  transform: scaleX(0);
}

.j-text {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  min-height: 3em;
  transition: opacity 0.3s;
}

.j-text.is-fading {
  opacity: 0;
}

.j-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #9fd8ff;
  width: fit-content;
}

.j-link:hover {
  color: #fff;
}

.j-link .icon {
  transition: transform 0.25s var(--ease);
}

.j-link:hover .icon {
  transform: translateX(3px);
}

.t-main {
  justify-content: space-between;
}

/* ---------- Clean, sleek cards (v4) ---------- */
.card {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 14px 40px -24px rgba(16, 42, 90, 0.28);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

:root[data-theme="dark"] .card {
  border-color: rgba(255, 255, 255, 0.07);
}

.card::before,
.card-mark,
.card .card-icon::after {
  display: none;
}

.card .card-icon {
  border: 0;
  background: var(--chip-bg);
}

.card:hover {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 30px 60px -30px rgba(16, 42, 90, 0.45);
}

.card:hover .card-icon {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(29, 78, 158, 0.8);
}

.card-cta,
.card:hover .card-cta {
  padding: 0;
  margin-top: 18px;
  border: 0;
  background: none;
  color: var(--accent);
  gap: 8px;
}

.card-cta .icon {
  transition: transform 0.3s var(--ease);
}

.card:hover .card-cta .icon {
  transform: translateX(4px);
}

.service-card h3 {
  margin-top: 20px;
}

.tilt::after {
  display: none;
}

/* ---------- Globe v2: night panel ---------- */
.globe-wrap {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 0;
  padding: 12px;
  border-radius: 28px;
  overflow: hidden;
  background: radial-gradient(120% 120% at 70% 30%, #0f3168 0%, #061634 60%, #040e24 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 80px -40px rgba(6, 22, 52, 0.7);
  color: #e9f1fb;
}

.globe-list {
  display: grid;
  gap: 6px;
  padding: 8px;
  align-content: start;
}

.globe-btn {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}

.globe-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

.globe-btn.is-active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(127, 211, 95, 0.55);
  box-shadow: none;
}

.globe-btn b {
  display: block;
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 600;
  color: #fff;
}

.globe-btn small {
  font-size: 12px;
  color: rgba(200, 222, 245, 0.7);
}

.g-time {
  font-size: 12px;
  font-weight: 600;
  color: #9fd8ff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.g-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3cc3e8;
  box-shadow: 0 0 0 4px rgba(60, 195, 232, 0.18);
}

.globe-btn.is-active .g-dot {
  background: #7fd35f;
  box-shadow: 0 0 0 4px rgba(127, 211, 95, 0.25), 0 0 12px #7fd35f;
}

.globe-stage {
  position: relative;
  min-height: 560px;
  border-radius: 20px;
  background: none;
  overflow: hidden;
}

.globe-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}

.globe-tip {
  position: absolute;
  left: 0;
  top: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  color: #061634;
  background: #fff;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.globe-tip.is-on {
  opacity: 1;
}

.globe-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
}

.g-ctl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 0.2s, border-color 0.2s;
}

.g-ctl:hover {
  background: rgba(255, 255, 255, 0.16);
}

.g-ctl[aria-pressed="true"] {
  background: #7fd35f;
  border-color: #7fd35f;
  color: #061634;
}

.g-ctl .icon {
  width: 16px;
  height: 16px;
}

.g-sq {
  width: 38px;
  padding: 0;
  justify-content: center;
  font-size: 18px;
}

.globe-card {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: min(320px, calc(100% - 32px));
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(6, 22, 52, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}

.gc-kind {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7fd35f;
}

.globe-card b {
  display: block;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 4px 0 6px;
}

.globe-card address {
  font-style: normal;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(220, 235, 250, 0.85);
}

.gc-links {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

.gc-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #9fd8ff;
  width: fit-content;
}

.gc-links a:hover {
  color: #fff;
}

.gc-links a[hidden] {
  display: none;
}

.gc-links .icon {
  width: 15px;
  height: 15px;
}

.globe-hint {
  position: absolute;
  top: 24px;
  left: 18px;
  right: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: rgba(200, 222, 245, 0.7);
}

@media (max-width: 900px) {
  .globe-wrap {
    grid-template-columns: 1fr;
  }

  .globe-list {
    grid-template-columns: repeat(2, 1fr);
    order: 2;
  }

  .globe-stage {
    min-height: 520px;
  }

  .globe-card {
    position: absolute;
  }
}

@media (max-width: 560px) {
  .globe-list {
    grid-template-columns: 1fr;
  }

  .globe-stage {
    min-height: 560px;
  }

  .globe-controls {
    left: 12px;
    right: 12px;
    justify-content: flex-end;
  }

  .globe-hint {
    top: 64px;
  }

  .globe-card {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    padding: 14px 16px;
  }
}

/* ---------- Capability orbit v5: whole ring visible, labels always outside the ring ---------- */
.cap-orbit {
  --R: 168px;
  --node: 44px;
  height: 540px;
}

.cap-center {
  left: calc(50% + 28px);
}

.cap-lines i:nth-child(2) {
  width: calc(var(--R) * 2 + 120px);
  height: calc(var(--R) * 2 + 120px);
}

.cap-lines i:nth-child(3) {
  width: calc(var(--R) * 2 - 110px);
  height: calc(var(--R) * 2 - 110px);
}

.cap-core {
  width: 132px;
  height: 132px;
}

.cap-core img {
  width: 64px;
}

.cap-core span {
  font-size: 9.5px;
  max-width: 104px;
}

.cap-label {
  left: 50%;
  top: 50%;
  width: max-content;
  max-width: 118px;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  font-size: 12.5px;
  padding: 5px 10px;
  opacity: 1;
  transform: none;
  transition: color 0.25s, border-color 0.25s;
  z-index: 4;
}

.cap-node.is-label .cap-label,
.cap-node:hover .cap-label,
.cap-node:focus-visible .cap-label {
  opacity: 1;
}

.cap-node:hover .cap-label {
  border-color: var(--accent-2);
}

@media (max-width: 1180px) {
  .cap-orbit {
    --R: 150px;
    --node: 40px;
    height: 500px;
  }

  .cap-center {
    left: calc(50% + 20px);
  }

  .cap-label {
    max-width: 104px;
    font-size: 12px;
  }
}

@media (max-width: 980px) {
  .cap-orbit {
    --R: 112px;
    --node: 36px;
    height: 400px;
  }

  .cap-center {
    left: 50%;
  }

  .cap-label {
    display: block;
    max-width: 84px;
    font-size: 10.5px;
    padding: 4px 7px;
  }

  .cap-core {
    width: 96px;
    height: 96px;
  }

  .cap-core img {
    width: 44px;
  }

  .cap-core span {
    display: none;
  }

  .cap-lines i:nth-child(2) {
    width: calc(var(--R) * 2 + 60px);
    height: calc(var(--R) * 2 + 60px);
  }

  .cap-lines i:nth-child(3) {
    width: calc(var(--R) * 2 - 70px);
    height: calc(var(--R) * 2 - 70px);
  }
}

@media (max-width: 380px) {
  .cap-orbit {
    --R: 100px;
    --node: 32px;
    height: 370px;
  }

  .cap-label {
    max-width: 74px;
    font-size: 10px;
  }
}

@media (max-width: 980px) {
  .cap-orbit {
    --R: 128px;
    --node: 38px;
    height: 380px;
  }

  .cap-label {
    display: none;
  }

  .cap-core {
    width: 120px;
    height: 120px;
  }

  .cap-core img {
    width: 50px;
  }

  .cap-core span {
    display: block;
    font-size: 9.5px;
    max-width: 96px;
  }
}

.cap-label {
  max-width: 136px;
}

.hero2 .rotator {
  height: 1.32em;
}

@media (max-width: 1340px) and (min-width: 981px) {
  .cap-orbit {
    --R: 152px;
    --node: 42px;
  }

  .cap-center {
    left: calc(50% + 6px);
  }
}

@media (max-width: 1180px) and (min-width: 981px) {
  .cap-orbit {
    --R: 138px;
    --node: 38px;
  }

  .cap-center {
    left: 50%;
  }

  .cap-label {
    max-width: 112px;
    font-size: 11.5px;
  }
}

.rotator span {
  transform: translateY(140%);
}

.rotator span.is-active {
  transform: translateY(0);
}

.rotator span.is-leaving {
  transform: translateY(-140%);
}

.hero2 .rotator {
  font-size: 0.86em;
}

@media (max-width: 640px) {
  .hero2 .rotator {
    font-size: 0.72em;
  }
}

.j-step {
  padding: 5px 9px;
  font-size: 11.5px;
  gap: 6px;
}

/* =========================================================
   v5: one-line heading, service flow tile, motion service
   tiles, platform showcase
   ========================================================= */
.hero2 h1 {
  font-size: clamp(34px, 3.6vw, 54px);
}

.h1-line {
  display: block;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .hero2 h1 {
    font-size: clamp(26px, 8vw, 54px);
  }
}

/* Main tile: animated service flow (no photo) */
.t-main {
  background: radial-gradient(120% 100% at 0% 0%, #1f5fb8 0%, #0d2b5c 50%, #061634 100%);
}

.t-main::after {
  display: none;
}

.tm-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.tm-bg::before {
  content: "";
  position: absolute;
  inset: -40px;
  background-image: linear-gradient(rgba(120, 200, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 200, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  animation: gridpan 18s linear infinite;
  mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%);
}

.tm-bg i {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.55;
  animation: tileDrift 12s ease-in-out infinite alternate;
}

.tm-bg i:nth-child(1) {
  width: 180px;
  height: 180px;
  right: -40px;
  top: -40px;
  background: #3cc3e8;
}

.tm-bg i:nth-child(2) {
  width: 140px;
  height: 140px;
  left: 30%;
  bottom: -60px;
  background: #62bb46;
  opacity: 0.35;
  animation-duration: 15s;
}

.tm-bg i:nth-child(3) {
  width: 120px;
  height: 120px;
  left: -40px;
  top: 40%;
  background: #1d4e9e;
  animation-duration: 10s;
}

@keyframes gridpan {
  to {
    transform: translate(28px, 28px);
  }
}

@keyframes tileDrift {
  to {
    transform: translate(10vw, 8vh) scale(1.1);
  }
}

.t-main>*:not(.tm-bg) {
  position: relative;
  z-index: 1;
}

.jflow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin: 6px 0 2px;
}

.jf-line {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 21px;
  height: 2px;
  background: rgba(160, 215, 255, 0.2);
  border-radius: 2px;
}

.jf-line span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #3cc3e8, #7fd35f);
  transform-origin: left;
  transform: scaleX(0);
  border-radius: 2px;
}

.jf-line b {
  position: absolute;
  top: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px #3cc3e8;
  animation: jflow 3.6s linear infinite;
}

.jf-line b:nth-child(3) {
  animation-delay: -1.2s;
}

.jf-line b:nth-child(4) {
  animation-delay: -2.4s;
}

@keyframes jflow {
  0% {
    left: 0;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

.j-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(220, 235, 250, 0.75);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.j-step:hover,
.j-step.is-active {
  background: none;
  color: #fff;
}

.j-node {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #bfe6ff;
  background: rgba(13, 43, 92, 0.9);
  border: 1px solid rgba(160, 215, 255, 0.3);
  position: relative;
  transition: transform 0.35s var(--ease), background 0.35s, color 0.35s, box-shadow 0.35s;
}

.j-node .icon {
  width: 20px;
  height: 20px;
}

.j-step:hover .j-node {
  transform: translateY(-3px);
}

.j-step.is-active .j-node {
  background: linear-gradient(135deg, #3cc3e8, #62bb46);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px -8px rgba(60, 195, 232, 0.8);
  transform: translateY(-3px) scale(1.06);
}

.j-step.is-active .j-node::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 18px;
  border: 2px solid rgba(127, 211, 95, 0.6);
  animation: corepulse 2s ease-out infinite;
}

.j-name {
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

.j-step.is-active .j-name {
  color: #fff;
}

.journey {
  display: grid;
  gap: 8px;
}

.j-text {
  min-height: 2.9em;
  font-size: 14px;
}

/* What we do: motion tiles */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.svc {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 164px;
  padding: 24px;
  border-radius: 22px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 14px 40px -26px rgba(16, 42, 90, 0.35);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), color 0.4s;
}

:root[data-theme="dark"] .svc {
  border-color: rgba(255, 255, 255, 0.08);
}

.svc::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #1d4e9e, #1a8fb5 60%, #62bb46);
  clip-path: circle(0% at 46px 46px);
  transition: clip-path 0.7s var(--ease);
}

.svc:hover::before,
.svc:focus-visible::before {
  clip-path: circle(150% at 46px 46px);
}

.svc:hover,
.svc:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px -26px rgba(16, 42, 90, 0.6);
  color: #fff;
}

.svc-orb {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 12px 24px -12px rgba(29, 78, 158, 0.8);
  animation: orbfloat 5s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.6s);
}

.svc-orb .icon {
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 1;
}

.svc-orb i {
  position: absolute;
  inset: -6px;
  border-radius: 20px;
  padding: 2px;
  background: conic-gradient(from 0deg, transparent 0 60%, rgba(98, 187, 70, 0.9), transparent);
  -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);
  animation: spin 4s linear infinite;
  animation-delay: calc(var(--i) * -0.5s);
}

.svc:hover .svc-orb {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

@keyframes orbfloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.svc-title {
  font-family: var(--font-head);
  font-size: 18.5px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  padding-right: 30px;
  transition: color 0.4s;
}

.svc:hover .svc-title,
.svc:focus-visible .svc-title {
  color: #fff;
}

.svc-teaser {
  font-size: 14px;
  color: var(--text-2);
  margin-top: auto;
  max-height: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: max-height 0.5s var(--ease), opacity 0.4s, transform 0.5s var(--ease), color 0.4s;
}

.svc:hover .svc-teaser,
.svc:focus-visible .svc-teaser {
  max-height: 3em;
  opacity: 1;
  transform: none;
  color: rgba(255, 255, 255, 0.92);
}

.svc-go {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--chip-bg);
  transition: transform 0.45s var(--ease), background 0.4s, color 0.4s;
}

.svc-go .icon {
  width: 16px;
  height: 16px;
}

.svc:hover .svc-go,
.svc:focus-visible .svc-go {
  transform: rotate(45deg);
  background: #fff;
  color: var(--blue);
}

@media (hover: none) {
  .svc-teaser {
    max-height: 3em;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .svc-grid {
    gap: 10px;
  }

  .svc {
    min-height: 170px;
    padding: 18px;
  }

  .svc-title {
    font-size: 15.5px;
    padding-right: 0;
  }

  .svc-go {
    display: none;
  }

  .svc-teaser {
    font-size: 12.5px;
  }
}

/* Platform showcase */
.plat-show {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 18px;
  align-items: stretch;
}

.ps-tabs {
  display: grid;
  gap: 10px;
  align-content: start;
}

.ps-tab {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  text-align: left;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px -22px rgba(16, 42, 90, 0.35);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform 0.35s var(--ease), background 0.35s;
  color: var(--text);
}

:root[data-theme="dark"] .ps-tab {
  border-color: rgba(255, 255, 255, 0.08);
}

.ps-tab:hover {
  transform: translateX(4px);
}

.ps-tab.is-active {
  background: var(--glass-strong);
  transform: translateX(6px);
}

.ps-ic {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--chip-bg);
  transition: background 0.35s, color 0.35s;
}

.ps-tab.is-active .ps-ic {
  background: var(--grad);
  color: #fff;
}

.ps-ic .icon {
  width: 21px;
  height: 21px;
}

.ps-txt small {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.ps-txt b {
  display: block;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  margin-top: 2px;
}

.ps-prog {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--grad);
  transform-origin: left;
  transform: scaleX(0);
}

.ps-screen {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 380px;
  background: radial-gradient(120% 100% at 20% 0%, #1f5fb8 0%, #0d2b5c 55%, #061634 100%);
  box-shadow: 0 40px 70px -40px rgba(6, 22, 52, 0.8);
  display: flex;
  flex-direction: column;
}

.ps-bar {
  display: flex;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ps-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ps-bar i:nth-child(1) {
  background: #ff6b6b;
}

.ps-bar i:nth-child(2) {
  background: #ffd166;
}

.ps-bar i:nth-child(3) {
  background: #7fd35f;
}

.ps-pane {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  animation: panein 0.6s var(--ease);
}

.ps-pane[hidden] {
  display: none;
}

@keyframes panein {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.ps-viz {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 22px 40px 6px;
}

.ps-viz .viz {
  max-width: 460px;
}

.ps-viz-shot {
  position: relative;
  min-height: 300px;
  padding: 0;
  overflow: hidden;
  background: #123462;
}

.ps-viz-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.ps-demo {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 20px;
  border: 0;
  overflow: hidden;
  background-color: #1d4e9e;
  box-shadow: 0 14px 28px -16px rgba(6, 22, 52, 0.78);
}

@media (max-width: 900px) {
  .plat-show {
    grid-template-columns: 1fr;
  }

  .ps-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .ps-tab,
  .ps-tab.is-active,
  .ps-tab:hover {
    transform: none;
  }
}

@media (max-width: 520px) {
  .ps-tab {
    padding: 12px;
    gap: 10px;
  }

  .ps-ic {
    width: 36px;
    height: 36px;
  }

  .ps-txt small {
    display: none;
  }

  .ps-txt b {
    font-size: 14px;
  }

  .ps-screen {
    min-height: 330px;
  }

  .ps-viz {
    padding: 16px;
  }

  .ps-demo {
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .svc-orb,
  .svc-orb i,
  .tm-bg::before,
  .tm-bg i,
  .jf-line b {
    animation: none !important;
  }
}

/* =========================================================
   v6: compact "What we do" tiles, team headshot wall
   ========================================================= */
.svc {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 4px;
  align-items: center;
  min-height: 0;
  padding: 18px 46px 18px 18px;
  border-radius: 18px;
}

.svc-orb {
  grid-row: 1 / span 2;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  align-self: center;
}

.svc-orb .icon {
  width: 22px;
  height: 22px;
}

.svc-orb i {
  inset: -5px;
  border-radius: 17px;
}

.svc-title {
  grid-column: 2;
  font-size: 16px;
  padding-right: 0;
  align-self: end;
}

.svc-teaser,
.svc:hover .svc-teaser,
.svc:focus-visible .svc-teaser {
  grid-column: 2;
  align-self: start;
  margin-top: 0;
  max-height: none;
  opacity: 1;
  transform: none;
  font-size: 13.5px;
  line-height: 1.4;
}

.svc-teaser {
  color: var(--muted);
}

.svc:hover .svc-teaser,
.svc:focus-visible .svc-teaser {
  color: rgba(255, 255, 255, 0.92);
}

.svc-go {
  top: 50%;
  right: 14px;
  width: 28px;
  height: 28px;
  margin-top: -14px;
}

.svc:hover .svc-go,
.svc:focus-visible .svc-go {
  transform: rotate(45deg);
}

.svc-grid {
  gap: 12px;
}

.svc::before {
  clip-path: circle(0% at 42px 50%);
}

.svc:hover::before,
.svc:focus-visible::before {
  clip-path: circle(150% at 42px 50%);
}

@media (max-width: 1100px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .svc-grid {
    grid-template-columns: 1fr;
  }

  .svc {
    padding: 14px 40px 14px 14px;
  }

  .svc-go {
    display: grid;
  }
}

/* Connected employee network */
.team-section-head {
  grid-template-columns: 1fr;
  justify-items: start;
  max-width: 980px;
}

.team-section-head>p:last-child {
  max-width: 640px;
  margin-top: 18px;
}

.team-filters {
  width: 100%;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 2px;
  margin-bottom: 26px;
  overflow-x: auto;
  scrollbar-width: none;
}

.team-filters::-webkit-scrollbar {
  display: none;
}

.team-filters .filter-btn {
  flex: 0 0 auto;
  min-width: max-content;
  padding-inline: clamp(8px, 1.15vw, 16px);
  font-size: clamp(12px, 1.05vw, 14.5px);
  white-space: nowrap;
}

.team-filters .filter-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.team-filters .filter-btn[aria-pressed="true"]:focus-visible {
  outline-color: rgba(255, 255, 255, 0.92);
}

.team-network {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(33, 99, 168, 0.035), transparent 46%), var(--surface);
  box-shadow: 0 28px 64px -48px rgba(16, 42, 90, 0.5);
}

.team-links {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.team-edge {
  fill: none;
  stroke: var(--team-color);
  opacity: 0.58;
  transition: opacity 0.45s var(--ease);
}

.team-edge .team-trunk {
  stroke-width: 2.2;
  stroke-dasharray: 8 9;
}

.team-edge .team-twig {
  stroke-width: 1.55;
  stroke-dasharray: 4 7;
}

.team-edge.is-muted {
  opacity: 0.055;
}

.team-core {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 49%;
  width: 174px;
  min-height: 132px;
  padding: 18px 16px 15px;
  border: 1px solid rgba(33, 99, 168, 0.18);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  text-align: center;
  background: var(--surface);
  color: inherit;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 24px 52px -28px rgba(6, 22, 52, 0.52), 0 0 0 7px rgba(33, 99, 168, 0.055);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.team-core:hover,
.team-core:focus-visible {
  border-color: rgba(33, 99, 168, 0.48);
  transform: translate(-50%, -50%) scale(1.025);
  box-shadow: 0 28px 58px -28px rgba(6, 22, 52, 0.6), 0 0 0 8px rgba(33, 99, 168, 0.09);
}

.team-core img {
  width: 82px;
  height: 55px;
  object-fit: contain;
}

.team-core strong {
  margin-top: 5px;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 0.11em;
  color: var(--accent);
}

.team-core span {
  margin-top: 1px;
  font-size: 11.5px;
  color: var(--muted);
}

.team-branch {
  position: absolute;
  z-index: 4;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: clamp(126px, 13vw, 162px);
  min-height: 46px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transform: translate(-50%, -50%);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 12px 28px -22px rgba(6, 22, 52, 0.65);
  transition: opacity 0.4s var(--ease), transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.team-branch span {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--team-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--team-color) 14%, transparent);
}

.team-branch b {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
  text-align: left;
}

.team-branch:hover,
.team-branch:focus-visible,
.team-branch[aria-pressed="true"] {
  border-color: var(--team-color);
  transform: translate(-50%, -50%) scale(1.04);
  box-shadow: 0 16px 30px -22px rgba(6, 22, 52, 0.72);
}

.team-branch.is-muted {
  opacity: 0.16;
}

.team-wall {
  position: absolute;
  z-index: 3;
  inset: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.tm {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: 148px;
  transform: translate(-50%, -50%);
  transition: opacity 0.45s var(--ease), filter 0.45s var(--ease);
  pointer-events: auto;
}

.tm:focus {
  outline: none;
}

.tm:hover,
.tm:focus-visible {
  z-index: 6;
}

.tm[hidden] {
  display: none;
}

.tm figure {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tm-photo {
  position: relative;
  width: 98px;
  height: 98px;
  border-radius: 50%;
  padding: 4px;
  animation: tmfloat 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.4s);
}

.tm-photo i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--team-color);
  opacity: 0.95;
  transition: opacity 0.4s, transform 0.5s var(--ease);
}

.tm-photo::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--team-color);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.35s, transform 0.5s var(--ease);
}

.tm-photo img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--surface);
  background: var(--bg-2);
  transition: transform 0.5s var(--ease);
}

.tm figure:hover .tm-photo i,
.tm:focus-visible .tm-photo i {
  opacity: 1;
  transform: rotate(18deg);
}

.tm figure:hover .tm-photo::after,
.tm:focus-visible .tm-photo::after {
  opacity: 0.5;
  transform: scale(1);
}

.tm figure:hover .tm-photo img,
.tm:focus-visible .tm-photo img {
  transform: scale(1.06);
}

.tm figcaption {
  position: absolute;
  z-index: 2;
  top: calc(100% + 10px);
  left: 50%;
  width: max-content;
  max-width: 136px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--team-color) 28%, var(--line-strong));
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 12px 28px -18px rgba(6, 22, 52, 0.72);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -5px);
  transition: opacity 0.2s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  pointer-events: none;
}

.tm figure:hover figcaption,
.tm:focus-visible figcaption {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.tm figcaption b {
  display: block;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

.tm.is-muted {
  opacity: 0.1;
  filter: grayscale(0.85);
  pointer-events: none;
}

.tm.tm-in {
  animation: tmin 0.55s var(--ease) both;
}

@keyframes tmfloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@keyframes tmin {
  from {
    opacity: 0;
    transform: translate(-50%, -42%) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes tminmobile {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.94);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .team-network {
    min-height: 0;
    padding: 30px 20px 26px;
  }

  .team-links,
  .team-branch {
    display: none;
  }

  .team-core {
    position: relative;
    left: auto;
    top: auto;
    margin: 0 auto 34px;
    transform: none;
  }

  .team-core:hover,
  .team-core:focus-visible {
    transform: scale(1.025);
  }

  .team-wall {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px 14px;
  }

  .tm {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    transform: none;
  }

  .tm.tm-in {
    animation-name: tminmobile;
  }

  .team-network.is-filtered .tm.is-muted {
    display: none;
  }
}

@media (max-width: 560px) {
  .team-network {
    padding: 26px 12px 22px;
    border-radius: 18px;
  }

  .team-wall {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 8px;
  }

  .tm-photo {
    width: 90px;
    height: 90px;
  }

  .tm figcaption {
    max-width: 136px;
  }

  .tm figcaption b {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .tm-photo,
  .tm.tm-in {
    animation: none;
  }
}

/* ---------- Legal pages and statutory footer ---------- */
.legal-hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
}

.legal-date {
  color: var(--muted);
  font-size: 14.5px;
}

.legal-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 2px;
  padding: 18px;
  border-radius: 18px;
}

.legal-toc b {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.legal-toc a {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-2);
}

.legal-toc a:hover {
  background: var(--chip-bg);
  color: var(--accent);
}

.legal-body {
  padding: clamp(22px, 3.5vw, 40px);
  border-radius: 24px;
}

.legal-body section {
  padding-top: 6px;
}

.legal-body section+section {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.legal-body h2 {
  font-size: 21px;
  margin-bottom: 10px;
}

.legal-body p,
.legal-body li {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.7;
}

.legal-body p+p {
  margin-top: 10px;
}

.legal-body ul {
  list-style: disc;
  padding-left: 22px;
  margin: 10px 0;
  display: grid;
  gap: 6px;
}

.legal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-intro {
  font-size: 16.5px !important;
  color: var(--text) !important;
  margin-bottom: 18px;
}

.legal-card {
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--chip-bg);
  border: 1px solid var(--glass-edge);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.footer-legal p {
  max-width: 720px;
}

.footer-legal nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer-legal a {
  color: var(--text-2);
}

.footer-legal a:hover {
  color: var(--accent);
}

.footer-legal+.footer-bottom {
  margin-top: 14px;
}

.form-note .text-link,
.muted .text-link {
  display: inline;
}

@media (max-width: 860px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .legal-toc b {
    grid-column: 1 / -1;
  }
}