/* =========================================================
   ClusterNZS — Corporate Website Design System
   Theme: Oceanic Sapphire & Frost Aqua Palette
   Palette: #072D44 · #064469 · #5790AB · #9CCDDB · #D0D7E1
   Clean, modern tech aesthetic for Dark and Light modes.
   ========================================================= */

:root {
  /* 5-Color Master Palette */
  --brand-navy: #072D44;
  --brand-sapphire: #064469;
  --brand-ocean: #5790AB;
  --brand-cyan: #9CCDDB;
  --brand-mist: #D0D7E1;
  --dark-grey: #7b8e9f;
  --dark-grey-deep: #475569;
  --dark-grey-muted: #64748b;

  /* Default Theme: Dark (Oceanic Sapphire & Frost Aqua Palette) */
  color-scheme: dark;
  --bg: #031521;
  --bg-2: #072D44;
  --surface: #0a2538;
  --surface-2: #0e334c;
  --line: rgba(156, 205, 219, 0.14);
  --line-strong: rgba(156, 205, 219, 0.28);

  --emerald: #5790AB;
  --emerald-d: #064469;
  --emerald-l: #9CCDDB;
  --gold: #9CCDDB;
  --gold-l: #D0D7E1;
  --gold-d: #5790AB;
  --plum: #5790AB;
  --plum-d: #064469;

  --text: #F4F8FB;
  --muted: #9CCDDB;
  --dim: #5790AB;

  --tint: rgba(255, 255, 255, 0.03);
  --glass: rgba(19, 24, 34, 0.75);
  --glass-strong: rgba(9, 10, 15, 0.9);
  --pop: rgba(19, 24, 34, 0.98);
  --drawer: rgba(9, 10, 15, 0.98);
  --hero-hex: rgba(9, 10, 15, 0.6);
  --pl-text: #e2e8f0;
  --err: #f87171;

  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --ease: cubic-bezier(.2, .8, .2, 1);

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --grad-brand: linear-gradient(135deg, #ffffff 0%, #9CCDDB 50%, #5790AB 100%);
  --grad-gold: linear-gradient(135deg, #9CCDDB 0%, #5790AB 50%, #064469 100%);
  --grad-plum: linear-gradient(135deg, #D0D7E1 0%, #5790AB 100%);
  --grad-text-gold: var(--grad-gold);

  /* hive */
  --hx-s1: #10141d; --hx-s2: #161c28; --hx-s3: #0c0f16;
  --hx-top: #1a202c; --hx-top-dim: #131822; --hx-edge-dim: rgba(255,255,255,0.12); --hx-label-dim: #94a3b8;

  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1320px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  overflow-x: hidden;
  overflow-y: scroll;
  min-height: 100%;
  background: var(--bg);
}
[id], section[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: clamp(16px, 0.95vw + 3px, 17px);
  overflow: visible;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, canvas { display: block; max-width: 100%; }
svg { display: inline-block; vertical-align: middle; max-width: 100%; }
svg:not([width]):not([height]):not(.ambient-canvas):not(.particle-canvas):not([class*="circuit"]):not([class*="stage"]):not([class*="chart"]):not([class*="diagram"]) {
  width: 24px;
  height: 24px;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: #111; }

/* Comprehensive Keyboard Focus Indicator (WCAG 2.4.7 AA) */
:focus-visible {
  outline: 3px solid var(--brand-ocean, #5790AB);
  outline-offset: 3px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[role="switch"]:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--brand-ocean, #5790AB);
  outline-offset: 3px;
}

/* subtle grain + ambient glows */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(6, 68, 105, 0.28), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(87, 144, 171, 0.18), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(7, 45, 68, 0.40), transparent 60%);
}

/* ---------- 3D Ambient Node & Wavefield Canvas ---------- */
.ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
  transition: opacity .5s ease;
}
@media (prefers-reduced-motion: reduce) {
  .ambient-canvas { display: none !important; }
}

main, .ps-viewport, .ps-track, .ps-slide {
  background: transparent !important;
}

main, footer, header { position: relative; z-index: 1; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(70px, 10vw, 120px) 0; position: relative; }
.section.alt { background: linear-gradient(180deg, rgba(156, 205, 219, 0.04), transparent); border-block: 1px solid var(--line); }
[data-theme="dark"] .section.alt { background: linear-gradient(180deg, rgba(156, 205, 219, 0.04), transparent); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: 1.25rem; }
p { color: var(--muted); line-height: 1.68; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 68ch; line-height: 1.68; font-weight: 450; }
.sec-head p, .card p, .job p, .about p { max-width: 72ch; }
.grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gold { background: var(--grad-text-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand-ocean, #5790AB); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-sapphire, #064469); }

.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow::after { content: ""; width: 26px; height: 1px; background: var(--gold); }
.sec-head h2 { margin-bottom: 18px; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--brand-sapphire);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow .35s ease,
              background .35s ease,
              border-color .35s ease,
              color .25s ease;
  position: relative; overflow: hidden; white-space: nowrap;
  user-select: none;
  transform: translateZ(0);
}
.btn::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -70%;
  width: 45%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: rotate(25deg) translateX(-100%);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1;
}
.btn:hover::before {
  transform: rotate(25deg) translateX(440%);
}
.btn:active, .go:active {
  transform: translateY(1px) scale(0.97) !important;
  transition-duration: 0.1s !important;
}
.btn svg {
  width: 18px;
  height: 18px;
  transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn:hover svg {
  transform: translateX(5px) scale(1.1);
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-ocean) 0%, var(--brand-sapphire) 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px -6px rgba(6, 68, 105, 0.55), 0 0 14px rgba(87, 144, 171, 0.22);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-ocean) 100%);
  color: #072D44;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px -8px rgba(6, 68, 105, 0.65), 0 0 24px rgba(156, 205, 219, 0.45);
}
.btn-ghost {
  border-color: rgba(156, 205, 219, 0.35);
  color: var(--text);
  background: rgba(87, 144, 171, 0.10);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.btn-ghost:hover {
  border-color: var(--brand-cyan);
  color: #ffffff;
  background: rgba(87, 144, 171, 0.25);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px -6px rgba(6, 68, 105, 0.35), 0 0 18px rgba(156, 205, 219, 0.30);
}
[data-theme="light"] .btn-ghost {
  border-color: rgba(7, 45, 68, 0.16);
  background: rgba(7, 45, 68, 0.04);
}
[data-theme="light"] .btn-ghost:hover {
  border-color: var(--brand-sapphire);
  color: #072D44;
  background: rgba(87, 144, 171, 0.16);
  box-shadow: 0 10px 24px -6px rgba(6, 68, 105, 0.14);
}
.btn-emerald {
  background: var(--brand-sapphire);
  color: #ffffff;
  border: 1px solid var(--brand-ocean);
  box-shadow: 0 6px 20px -4px rgba(6, 68, 105, 0.45);
}
.btn-emerald:hover {
  background: var(--brand-ocean);
  color: #072D44;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 30px -6px rgba(87, 144, 171, 0.50);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 200; background: var(--grad-brand); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100;
  display: flex; align-items: center; transition: background .4s, border-color .4s, height .4s;
  border-bottom: 1px solid transparent;
}
.header.scrolled { background: var(--glass-strong); backdrop-filter: blur(18px) saturate(140%); border-color: var(--line); height: 66px; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: .02em; }
.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(6,68,105,.25));
  animation: logoRotate 16s linear infinite;
  transform-origin: center center;
  transition: filter 0.4s ease;
  will-change: transform;
}
.brand:hover img {
  animation-duration: 4s;
  filter: drop-shadow(0 0 14px rgba(156, 205, 219, 0.5));
}
@keyframes logoRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.brand small { display: block; white-space: nowrap; font-family: var(--font-body); font-size: .56rem; letter-spacing: .08em; color: var(--gold); font-weight: 600; text-transform: uppercase; }
.brand b { font-weight: 700; }
.brand b span { color: var(--emerald); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav > a, .nav .dd > button {
  position: relative;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .25s ease, background .25s ease, transform .25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: visible;
}

/* Cinematic luminous hover underline animation */
.nav > a::after, .nav .dd > button::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 12px;
  right: 12px;
  height: 2.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-ocean, #5790AB) 0%, var(--brand-cyan, #9CCDDB) 50%, var(--brand-ocean, #5790AB) 100%);
  box-shadow: 0 0 10px rgba(156, 205, 219, 0.65), 0 2px 4px rgba(6, 68, 105, 0.30);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              box-shadow 0.32s ease;
  pointer-events: none;
}

.nav > a:hover, .nav .dd > button:hover {
  color: var(--text);
  background: rgba(87, 144, 171, 0.08);
  transform: translateY(-1px);
}

.nav > a:hover::after, .nav .dd > button:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

/* Active navigation item styling with anchored luminous bar */
.nav a.active, .nav .dd.active > button {
  color: var(--text);
  background: rgba(87, 144, 171, 0.10);
  font-weight: 700;
}

.nav a.active::after, .nav .dd.active > button::after {
  transform: scaleX(0.75);
  opacity: 0.9;
}

.nav a.active:hover::after, .nav .dd.active > button:hover::after {
  transform: scaleX(1);
  opacity: 1;
  box-shadow: 0 0 14px rgba(156, 205, 219, 0.85);
}

/* Light mode adjustments */
[data-theme="light"] .nav > a::after,
[data-theme="light"] .nav .dd > button::after {
  background: linear-gradient(90deg, var(--brand-sapphire, #064469) 0%, var(--brand-ocean, #5790AB) 50%, var(--brand-sapphire, #064469) 100%);
  box-shadow: 0 0 8px rgba(6, 68, 105, 0.35);
}

[data-theme="light"] .nav > a:hover,
[data-theme="light"] .nav .dd > button:hover {
  color: #475569;
  background: rgba(156, 205, 219, 0.18);
}

[data-theme="light"] .nav a.active,
[data-theme="light"] .nav .dd.active > button {
  color: #475569;
  background: rgba(156, 205, 219, 0.22);
}
.dd { position: relative; }
.dd > button svg { width: 14px; height: 14px; transition: transform .3s; }
.dd:hover > button svg, .dd:focus-within > button svg { transform: rotate(180deg); }
.dd-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  min-width: 260px; padding: 10px; border-radius: 16px; background: var(--pop); backdrop-filter: blur(16px);
  border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: all .3s var(--ease);
}
.dd-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dd.is-closed .dd-menu {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translate(-50%, 8px) !important;
}
.theme-toggle {
  display: none !important;
}
.dd-menu a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; transition: background .2s; }
.dd-menu a:hover { background: rgba(6,68,105,.08); }
.dd-menu a .ic { width: 34px; height: 34px; flex: none; }
.dd-menu a strong { display: block; font-size: .9rem; color: var(--text); }
.dd-menu a span { font-size: .78rem; color: var(--dim); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { padding: 10px 20px; font-size: .88rem; }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: all .35s var(--ease); }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.nav-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 90; background: var(--drawer); backdrop-filter: blur(20px);
  padding: calc(var(--header-h) + 20px) 24px 40px; display: none; flex-direction: column; gap: 4px;
  opacity: 0; visibility: hidden; pointer-events: none; overflow-y: hidden;
  transition: opacity .3s var(--ease);
}
@media (max-width: 960px) {
  .drawer {
    display: flex;
  }
  body.nav-open .drawer,
  .nav-open .drawer {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    overflow-y: auto;
  }
}
@media (min-width: 961px) {
  .drawer {
    display: none !important;
  }
}
.drawer a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  transform: translateY(14px);
  opacity: 0;
  transition: all .45s var(--ease);
}
.drawer a:hover,
.drawer a.active {
  color: #7b8e9f;
  font-weight: 700;
  padding-left: 14px;
}
[data-theme="dark"] .drawer a:hover,
[data-theme="dark"] .drawer a.active {
  color: var(--brand-cyan, #9CCDDB);
}
.nav-open .drawer a { transform: none; opacity: 1; }
.drawer .group {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-ocean, #5790AB);
  margin-top: 20px;
  margin-bottom: 4px;
  padding: 0 8px;
}
.drawer .btn { margin-top: 24px; min-height: 48px; justify-content: center; font-size: 1.05rem; }

/* ---------- Icon tile ---------- */
.ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(6,68,105,.16), rgba(87,144,171,.10));
  border: 1px solid var(--line-strong); color: var(--gold-l);
}
.ic svg { width: 55%; height: 55%; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic.em { color: var(--emerald-l); }
.ic.pl { color: var(--pl-text); background: linear-gradient(140deg, rgba(155,75,179,.22), rgba(6,68,105,.08)); }

/* ---------- Hero ---------- */
.hero { display: flex; align-items: center; position: relative; overflow: hidden; }
.hero .grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at 30% 50%, #000 0%, transparent 70%); opacity: .45;
}
.hero-inner { position: relative; }
.hero h1 .line { display: block; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--glass); backdrop-filter: blur(10px); font-size: .82rem; color: var(--muted); margin-bottom: 18px;
}
.badge b { background: var(--emerald); color: #04140d; padding: 3px 10px; border-radius: 999px; font-size: .7rem; letter-spacing: .08em; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tags span { font-size: .8rem; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--tint); }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid var(--line-strong); border-radius: 20px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; border-radius: 3px; background: var(--gold); transform: translateX(-50%); animation: cue 2s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------- Inner page hero ---------- */
.page-hero { padding: calc(var(--header-h) + 90px) 0 80px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: 50%; width: 520px; height: 520px; transform: translateY(-50%);
  background: conic-gradient(from 30deg, rgba(6,68,105,.25), rgba(87,144,171,.18), rgba(155,75,179,.2), rgba(6,68,105,.25));
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  filter: blur(2px); opacity: .35; animation: spin 40s linear infinite;
}
.page-hero::before {
  content: ""; position: absolute; right: -40px; top: 50%; width: 360px; height: 360px; transform: translateY(-50%);
  border: 1px solid var(--line-strong); clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background: var(--hero-hex); z-index: 1;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 820px; margin-bottom: 16px; }
.page-hero .hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.35vw, 1.35rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--accent);
  margin: -6px 0 18px;
  letter-spacing: -0.01em;
}
.contact-hero-desc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 74ch;
  margin-bottom: 10px;
}
.contact-hero-desc .lead {
  font-size: clamp(1.04rem, 1.1vw, 1.15rem);
  line-height: 1.6;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0;
}
.contact-body-para {
  font-size: clamp(0.95rem, 0.98vw, 1.03rem);
  line-height: 1.65;
  color: #1e293b;
  margin-bottom: 0;
}
[data-theme="dark"] .page-hero .hero-tagline {
  color: var(--brand-cyan, #9CCDDB);
}
[data-theme="dark"] .contact-body-para {
  color: #cbd5e1;
}
.crumbs { display: flex; gap: 8px; font-size: .82rem; color: var(--dim); margin-bottom: 26px; }
.crumbs a:hover { color: var(--gold); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; padding: 32px; border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
  --mx: 50%; --my: 50%;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(87, 144, 171, 0.16), transparent 45%);
}
[data-theme="dark"] .card::before {
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(156, 205, 219, 0.22), transparent 45%);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 36px -12px rgba(6, 68, 105, 0.16), 0 0 1px rgba(87, 144, 171, 0.25);
}
.card:hover::before { opacity: 1; }
.card .ic { margin-bottom: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .95rem; flex: 1 1 auto; }
.card .num { position: absolute; top: 22px; right: 26px; font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: transparent; -webkit-text-stroke: 1px var(--line-strong); }
.card .tagline { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-family: var(--font-display); font-size: .88rem; color: var(--gold); font-weight: 600; }
.card ul { list-style: none; margin-top: 16px; display: grid; gap: 9px; }
.card li, .checks li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--muted); }
.card li::before, .checks li::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%;
  background: radial-gradient(circle, var(--emerald) 35%, transparent 40%), rgba(6,68,105,.15);
}
.checks { list-style: none; display: grid; gap: 12px; }
.card-link { display: inline-flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 18px; font-weight: 700; font-size: .9rem; color: var(--gold); }
.card-link svg { width: 16px; height: 16px; transition: transform .3s; }
.card:hover .card-link svg { transform: translateX(4px); }

/* Pillars */
.pillar { padding: 40px 34px; text-align: left; }
.pillar .big { font-family: var(--font-display); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--emerald-l); margin-bottom: 8px; }
.pillar h3 { font-size: 1.6rem; }
.pillar.feature { background: linear-gradient(160deg, rgba(6,68,105,.14), rgba(87,144,171,.06) 60%, var(--bg-2)); border-color: var(--line-strong); }

/* Split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split.rev > :first-child { order: 2; }
.split p + p { margin-top: 16px; }

/* Visual panel (decorative mock) */
.panel {
  border-radius: 24px; padding: 26px; background: linear-gradient(160deg, var(--surface-2), var(--bg-2)); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); position: relative;
}
.panel-top { display: flex; gap: 7px; margin-bottom: 20px; }
.panel-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.panel-top i:first-child { background: var(--plum); } .panel-top i:nth-child(2) { background: var(--gold); } .panel-top i:nth-child(3) { background: var(--emerald); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi { padding: 14px; border-radius: 12px; background: var(--tint); border: 1px solid var(--line); }
.kpi small { font-size: .7rem; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
.kpi b { display: block; font-family: var(--font-display); font-size: 1.05rem; margin-top: 4px; }
.kpi b.up { color: var(--emerald-l); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding: 14px; border-radius: 12px; background: var(--tint); border: 1px solid var(--line); }
.bars span { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--emerald), rgba(6,68,105,.15)); transform-origin: bottom; animation: grow 1.4s var(--ease) both; }
.bars span:nth-child(3n) { background: linear-gradient(180deg, var(--gold), rgba(87,144,171,.12)); }
@keyframes grow { from { transform: scaleY(0); } }
.chat { margin-top: 16px; display: grid; gap: 10px; }
.chat div { padding: 10px 14px; border-radius: 12px; font-size: .82rem; max-width: 85%; }
.chat .in { background: var(--tint); border: 1px solid var(--line); color: var(--muted); }
.chat .out { background: rgba(6,68,105,.14); border: 1px solid rgba(6,68,105,.3); justify-self: end; color: var(--text); }
.float-chip { position: absolute; padding: 10px 16px; border-radius: 14px; background: var(--pop); border: 1px solid var(--line-strong); font-size: .8rem; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite; }
.float-chip b { color: var(--gold-l); }
.float-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px rgba(6,68,105,.2); }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  perspective: 1400px;
  transform-style: preserve-3d;
  border: none;
  border-radius: 0;
  overflow: visible;
}
.stat, .stat-card {
  position: relative;
  padding: 36px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  transform-style: preserve-3d;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease,
              background 0.3s ease;
  overflow: hidden;
  will-change: transform;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.stat::before, .stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(350px circle at var(--mx, 50%) var(--my, 50%), rgba(156, 205, 219, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.stat::after, .stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-cyan), transparent);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.stat:hover::before, .stat-card:hover::before {
  opacity: 1;
}
.stat:hover, .stat-card:hover {
  border-color: var(--brand-ocean);
  box-shadow: 0 20px 48px -12px rgba(6, 68, 105, 0.35), 0 0 24px rgba(156, 205, 219, 0.20);
  transform: perspective(1200px) translateY(-8px) rotateX(calc(var(--rx, 0deg) + 2deg)) rotateY(var(--ry, 0deg)) translateZ(20px) scale(1.02);
}
[data-theme="light"] .stat, [data-theme="light"] .stat-card {
  background: #ffffff;
  border-color: rgba(7, 45, 68, 0.12);
  box-shadow: 0 4px 18px rgba(7, 45, 68, 0.04);
}
[data-theme="light"] .stat:hover, [data-theme="light"] .stat-card:hover {
  border-color: var(--brand-sapphire);
  box-shadow: 0 20px 48px -12px rgba(6, 68, 105, 0.18), 0 4px 16px rgba(87, 144, 171, 0.12);
}
.stat-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-ocean, #5790AB);
  margin-bottom: 8px;
  transform: translateZ(14px);
  transition: transform 0.35s ease, color 0.3s ease;
}
.stat:hover .stat-cat {
  color: var(--brand-cyan, #9CCDDB);
}
[data-theme="light"] .stat:hover .stat-cat {
  color: #475569;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.2vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  transform: translateZ(24px);
  transition: transform 0.35s ease;
}
.stat span {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.55;
  transform: translateZ(12px);
  transition: transform 0.35s ease;
}

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-display); font-size: 1.15rem; color: var(--dim); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: "⬡"; color: var(--gold-d); font-size: .9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Quote band */
.quote-band { text-align: center; padding: clamp(60px, 9vw, 110px) 0; }
.quote-band blockquote { font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.3; max-width: 980px; margin: 0 auto; font-weight: 500; }
.quote-band cite { display: block; margin-top: 22px; font-style: normal; color: var(--gold); font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; }

/* Values list (numbered rows) */
.vrows { border-top: 1px solid var(--line); }
.vrow { display: grid; grid-template-columns: 90px 1fr 1.3fr 260px; gap: 28px; align-items: center; padding: 30px 6px; border-bottom: 1px solid var(--line); transition: background .35s, padding .35s; }
.vrow:hover { background: linear-gradient(90deg, rgba(6,68,105,.06), transparent); padding-left: 18px; }
.vrow .n { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: transparent; -webkit-text-stroke: 1px var(--gold-d); }
.vrow h3 { font-size: 1.3rem; }
.vrow p { font-size: .95rem; }
.vrow em { font-style: normal; font-family: var(--font-display); color: var(--gold); font-weight: 600; text-align: right; }

/* Timeline / steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.step { padding: 26px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); position: relative; counter-increment: s; }
.step::before { content: "0" counter(s); font-family: var(--font-display); font-weight: 700; color: var(--emerald-l); font-size: .85rem; display: block; margin-bottom: 14px; }
.step p { font-size: .92rem; color: var(--text); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 36px; right: -17px; width: 18px; height: 1px; background: var(--gold-d); }

/* Table */
.tech-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tech-table th, .tech-table td { padding: 18px 24px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tech-table th { font-family: var(--font-display); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); background: var(--surface); }
.tech-table tr:last-child td { border-bottom: 0; }
.tech-table td:first-child { font-weight: 700; color: var(--text); width: 240px; font-family: var(--font-display); }
.tech-table tbody tr { transition: background .25s; }
.tech-table tbody tr:hover { background: rgba(6,68,105,.05); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .8rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); background: var(--tint); }
.chip.em { border-color: rgba(6,68,105,.4); color: var(--emerald-l); }
.chip.dev { border-color: rgba(155,75,179,.5); color: var(--pl-text); background: rgba(155,75,179,.08); }
.chip.live { border-color: rgba(6,68,105,.5); color: var(--emerald-l); background: rgba(6,68,105,.08); }

/* Clickable Interactive Technology Chips */
.chip-btn, a.chip {
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s ease,
              background-color 0.2s ease,
              border-color 0.2s ease,
              color 0.2s ease;
  user-select: none;
  outline: none;
}
.chip-btn:hover, a.chip:hover {
  transform: translateY(-3px) scale(1.06) translateZ(16px);
  border-color: var(--brand-ocean, #5790AB);
  background: rgba(87, 144, 171, 0.22);
  color: #334155;
  box-shadow: 0 6px 16px -2px rgba(6, 68, 105, 0.22), 0 0 12px rgba(156, 205, 219, 0.35);
}
.chip-btn:active, a.chip:active {
  transform: translateY(-1px) scale(0.98) translateZ(8px);
  box-shadow: 0 2px 6px rgba(6, 68, 105, 0.16);
}
.chip-btn:focus-visible, a.chip:focus-visible {
  outline: 2px solid var(--brand-cyan, #9CCDDB);
  outline-offset: 2px;
}
.chip-btn.em:hover, a.chip.em:hover {
  background: var(--brand-navy, #072D44);
  color: #ffffff;
  border-color: var(--brand-cyan, #9CCDDB);
  box-shadow: 0 6px 20px -2px rgba(6, 68, 105, 0.40), 0 0 16px rgba(156, 205, 219, 0.45);
}
[data-theme="dark"] .chip-btn:hover, [data-theme="dark"] a.chip:hover {
  background: rgba(87, 144, 171, 0.32);
  color: #ffffff;
  border-color: var(--brand-cyan, #9CCDDB);
  box-shadow: 0 6px 18px -2px rgba(0, 0, 0, 0.45), 0 0 14px rgba(156, 205, 219, 0.35);
}

/* Technology Ecosystem Deep-Link Highlight */
.chip.tech-pulse, [data-tech].tech-pulse {
  animation: techChipGlow 2.4s ease-out forwards;
}
@keyframes techChipGlow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(6, 68, 105, 0.7);
  }
  25% {
    transform: scale(1.15) translateY(-2px);
    background: #064469 !important;
    color: #ffffff !important;
    border-color: #9CCDDB !important;
    box-shadow: 0 0 24px 6px rgba(156, 205, 219, 0.8), 0 8px 24px rgba(6, 68, 105, 0.4);
  }
  65% {
    transform: scale(1.08) translateY(-1px);
    background: #064469 !important;
    color: #ffffff !important;
    border-color: #9CCDDB !important;
    box-shadow: 0 0 16px 4px rgba(156, 205, 219, 0.5);
  }
  100% {
    transform: scale(1);
    box-shadow: none;
  }
}

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.tab { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: none; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--muted); transition: all .3s; }
.tab:hover { color: var(--text); border-color: var(--line-strong); }
.tab.on { background: var(--grad-gold); color: #17140c; border-color: transparent; }
.tab-panel { display: none; animation: fade .5s var(--ease); }
.tab-panel.on { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }

/* Accordion */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 24px 4px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .pm { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; transition: all .3s; }
.acc summary .pm::before, .acc summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--gold); transform: translate(-50%, -50%); transition: transform .3s; }
.acc summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc details[open] summary .pm { background: var(--gold); }
.acc details[open] summary .pm::before { background: #17140c; }
.acc details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0); background: #17140c; }
.acc .acc-body { padding: 0 4px 26px; max-width: 820px; }
.acc summary .q { display: flex; gap: 18px; align-items: center; }
.acc summary .q i { font-style: normal; font-size: .8rem; color: var(--emerald-l); font-family: var(--font-body); font-weight: 700; }

/* CTA band */
.cta {
  position: relative; border-radius: 28px; padding: clamp(44px, 7vw, 80px); overflow: hidden; text-align: center;
  background: radial-gradient(600px 300px at 15% 0%, rgba(6,68,105,.28), transparent 60%), radial-gradient(600px 300px at 90% 100%, rgba(87,144,171,.22), transparent 60%), var(--surface);
  border: 1px solid var(--line-strong);
}
.cta::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 22px 22px; opacity: .5; pointer-events: none; mask-image: radial-gradient(circle at center, #000, transparent 75%); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { max-width: 760px; margin: 0 auto 16px; }
.cta p { max-width: 600px; margin: 0 auto 32px; }
.cta .btn-row { justify-content: center; }

/* Mail directory */
.mail-card { display: flex; gap: 18px; align-items: flex-start; }
.mail-card .ic { flex: none; margin: 0; }
.mail-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.mail-card p { font-size: .88rem; }
.mail-card a.mail { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--gold-l); border-bottom: 1px dashed var(--gold-d); word-break: break-all; }
.mail-card a.mail:hover { color: var(--emerald-l); border-color: var(--emerald); }

/* Forms */
.form { display: grid; gap: 18px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .88rem; font-weight: 700; color: var(--text); letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; font-size: 16px; padding: 13px 16px; border-radius: 12px;
  background: var(--tint); border: 1px solid var(--line-strong); outline: none;
  transition: border-color .25s, box-shadow .25s; color: var(--text);
}
.field select option { background: var(--surface); color: var(--text); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand-sapphire, #064469);
  box-shadow: 0 0 0 3px rgba(87, 144, 171, 0.28);
}
.field .err { font-size: .82rem; color: var(--err); display: none; font-weight: 500; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #dc2626; box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2); }
.field.invalid .err { display: block; }
.form-note { font-size: .82rem; color: var(--dim); }
.form-ok { display: none; padding: 16px 18px; border-radius: 12px; background: rgba(6,68,105,.12); border: 1px solid rgba(6,68,105,.35); color: #7b8e9f; font-size: .92rem; font-weight: 600; }
.form-ok.show { display: block; }
.route { font-size: .8rem; color: var(--dim); }
.route b { color: var(--gold); }

/* News */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.news-card { display: flex; flex-direction: column; padding: 0; }
.news-card .thumb { height: 180px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.news-card .thumb::before { content: ""; position: absolute; inset: 0; background: var(--g); }
.news-card .thumb::after { content: ""; position: absolute; width: 160px; height: 160px; right: -20px; bottom: -40px; border: 1px solid rgba(255,255,255,.25); clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); background: rgba(0,0,0,.18); transition: transform .6s var(--ease); }
.news-card:hover .thumb::after { transform: rotate(30deg) scale(1.1); }
.news-card .thumb .chip { position: absolute; top: 16px; left: 16px; z-index: 1; color: #f4efe4; border-color: rgba(255,255,255,.3); background: rgba(7,10,8,.7); backdrop-filter: blur(6px); }
.news-card .body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.news-card time { font-size: .78rem; color: var(--dim); margin-bottom: 8px; }
.news-card h3 { font-size: 1.12rem; }
.news-card .card-link { margin-top: auto; padding-top: 16px; }
.news-card.hide { display: none !important; }

/* Job rows */
.job { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 20px; align-items: center; padding: 24px 28px; }
.job h3 { font-size: 1.08rem; }
.job .meta { font-size: .85rem; color: var(--muted); }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 56px 0 20px;
  margin-top: auto;
  margin-bottom: 0 !important;
  width: 100%;
  position: relative;
  z-index: 2;
}
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; font-family: var(--font-body); font-weight: 700; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { color: var(--muted); font-size: .92rem; transition: color .2s; }
.footer ul a:hover { color: var(--emerald-l); }
.footer .about p { font-size: .92rem; margin: 18px 0; max-width: 340px; }
.foot-bottom { margin-top: 32px; padding-top: 18px; padding-bottom: 4px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: .84rem; color: var(--dim); }
.foot-bottom .tag { color: var(--gold); font-family: var(--font-display); }
.socials { display: flex; gap: 10px; align-items: center; }
.socials a { width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--muted); transition: all .25s; }
.socials a:hover { color: #ffffff; background: var(--brand-sapphire, #064469); border-color: var(--brand-sapphire, #064469); }
.socials svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* Back to top */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 14px; z-index: 80; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--brand-ocean, #5790AB); cursor: pointer; opacity: 0; transform: translateY(16px); transition: all .35s var(--ease); }
.to-top.show { opacity: 1; transform: none; }
.to-top:hover { background: var(--brand-sapphire, #064469); color: #ffffff; border-color: var(--brand-sapphire, #064469); }
.to-top svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Reveal animations */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); will-change: transform, opacity; }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="zoom"] { transform: scale(.94); }
[data-reveal="flip-3d"] {
  opacity: 0;
  transform: perspective(1200px) rotateY(-32deg) rotateX(12deg) translateZ(-45px) translateY(38px);
  filter: blur(3px);
  transform-origin: center bottom;
  transition: opacity .85s cubic-bezier(0.16, 1, 0.3, 1),
              transform .95s cubic-bezier(0.16, 1, 0.3, 1),
              filter .85s ease;
  transition-delay: var(--d, 0s);
  will-change: transform, opacity;
}
[data-reveal="flip-up"] {
  opacity: 0;
  transform: perspective(1200px) rotateX(24deg) translateY(44px) translateZ(-35px);
  filter: blur(2px);
  transform-origin: 50% 100%;
  transition: opacity .85s cubic-bezier(0.16, 1, 0.3, 1),
              transform .95s cubic-bezier(0.16, 1, 0.3, 1),
              filter .85s ease;
  transition-delay: var(--d, 0s);
  will-change: transform, opacity;
}
[data-reveal].in { opacity: 1; transform: none; filter: none; }
[data-reveal="flip-3d"].in,
[data-reveal="flip-up"].in {
  opacity: 1;
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg) translateZ(0) translateY(0);
  filter: blur(0);
}

/* 404 */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px 20px; }
.nf h1 { font-size: clamp(5rem, 18vw, 11rem); line-height: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  .header-cta .btn-ghost { display: none; }
}
@media (max-width: 1080px) {
  .nav, .header-cta .btn-ghost { display: none; }
  .burger { display: block; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .vrow { grid-template-columns: 70px 1fr; }
  .vrow p { grid-column: 2; }
  .vrow em { grid-column: 2; text-align: left; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .g3, .split { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .stats { grid-template-columns: 1fr 1fr; gap: 18px; }
  .job { grid-template-columns: 1fr 1fr; }
  .page-hero::before, .page-hero::after { opacity: .15; }
}
@media (max-width: 600px) {
  :root { --header-h: 66px; }
  .stats { grid-template-columns: 1fr; gap: 16px; }
  .g2, .g4, .steps, .form .row2, .foot-grid { grid-template-columns: 1fr; }
  .card { padding: 26px; }
  .header-cta .btn-primary { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .tech-table td:first-child { width: auto; }
  .tech-table th:last-child { display: none; }
  .tech-table td { display: block; border: 0; padding: 12px 18px; }
  .tech-table td:first-child { padding-top: 20px; }
  .tech-table tr td:last-child { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .job { grid-template-columns: 1fr; }
  .float-chip { display: none; }
}
@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;
  }
  [data-reveal], [data-reveal="flip-3d"], [data-reveal="flip-up"] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .pillars3 a, .pillar-card, .bento .card, .card { transform: none !important; }
  .page-hero::after { animation: none !important; }
  .scroll-cue::after { animation: none !important; }
  .hero-loop-video, .services-loop-video, .tech-loop-video { display: none !important; }
  html { scroll-behavior: auto !important; }
}

/* =========================================================
   EXCLUSIVE DARK THEME (Oceanic Sapphire & Frost Aqua Palette)
   Light mode eliminated — all themes locked to Dark Mode.
   ========================================================= */
[data-theme="light"] {
  color-scheme: dark;
  --bg: #031521;
  --bg-2: #072D44;
  --surface: #0a2538;
  --surface-2: #0e334c;
  --line: rgba(156, 205, 219, 0.14);
  --line-strong: rgba(156, 205, 219, 0.28);
  --emerald: #5790AB;
  --emerald-d: #064469;
  --emerald-l: #9CCDDB;
  --gold: #9CCDDB;
  --gold-l: #D0D7E1;
  --gold-d: #5790AB;
  --plum: #5790AB;
  --plum-d: #064469;
  --text: #F4F8FB;
  --muted: #9CCDDB;
  --dim: #5790AB;
  --tint: rgba(255, 255, 255, 0.03);
  --glass: rgba(19, 24, 34, 0.75);
  --glass-strong: rgba(9, 10, 15, 0.9);
  --pop: rgba(19, 24, 34, 0.98);
  --drawer: rgba(9, 10, 15, 0.98);
  --hero-hex: rgba(9, 10, 15, 0.6);
  --pl-text: #e2e8f0;
  --err: #f87171;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --grad-brand: linear-gradient(135deg, #ffffff 0%, #9CCDDB 50%, #5790AB 100%);
  --grad-gold: linear-gradient(135deg, #9CCDDB 0%, #5790AB 50%, #064469 100%);
  --grad-plum: linear-gradient(135deg, #D0D7E1 0%, #5790AB 100%);
  --grad-text-gold: var(--grad-gold);
  --hx-s1: #10141d; --hx-s2: #161c28; --hx-s3: #0c0f16;
  --hx-top: #1a202c; --hx-top-dim: #131822; --hx-edge-dim: rgba(255,255,255,0.12); --hx-label-dim: #94a3b8;
}
[data-theme="light"] body::before {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(6, 68, 105, 0.28), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(87, 144, 171, 0.18), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(7, 45, 68, 0.40), transparent 60%);
}
[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #064469 0%, #072D44 100%);
  color: #ffffff;
  box-shadow: 0 10px 28px -10px rgba(6, 68, 105, 0.50);
}
[data-theme="light"] .btn-primary:hover {
  background: linear-gradient(135deg, #5790AB 0%, #064469 100%);
  color: #ffffff;
  box-shadow: 0 16px 36px -10px rgba(6, 68, 105, 0.65);
}
[data-theme="light"] .btn-ghost {
  border-color: rgba(6, 68, 105, 0.35);
  color: #475569;
  background: rgba(156, 205, 219, 0.12);
}
[data-theme="light"] .btn-ghost:hover {
  border-color: #475569;
  color: #ffffff;
  background: #475569;
}
[data-theme="light"] .btn-emerald { background: #064469; color: #ffffff; border-color: #064469; }
[data-theme="light"] .badge {
  background: rgba(156, 205, 219, 0.22);
  border-color: rgba(87, 144, 171, 0.38);
  color: #475569;
}
[data-theme="light"] .badge b { background: #064469; color: #ffffff; }
[data-theme="light"] .brand img { filter: none; }
[data-theme="light"] .card {
  background: #ffffff;
  border-color: rgba(87, 144, 171, 0.20);
  box-shadow: 0 4px 20px -2px rgba(6, 68, 105, 0.05), 0 0 1px 1px rgba(87, 144, 171, 0.08);
}
[data-theme="light"] .card:hover {
  border-color: rgba(87, 144, 171, 0.50);
  box-shadow: 0 18px 45px -10px rgba(6, 68, 105, 0.16);
}
[data-theme="light"] .card::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(156, 205, 219, 0.25), transparent 45%); }
[data-theme="light"] .tab.on { background: #064469; color: #ffffff; }
[data-theme="light"] .acc details[open] summary .pm { background: #064469; }
[data-theme="light"] .float-chip b { color: #475569; }
[data-theme="light"] .header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(87, 144, 171, 0.18);
  box-shadow: 0 8px 30px -10px rgba(6, 68, 105, 0.10);
}
[data-theme="light"] .chip {
  background: rgba(156, 205, 219, 0.20);
  border-color: rgba(87, 144, 171, 0.32);
  color: #334155;
}
[data-theme="light"] .chip.em {
  background: #064469;
  color: #ffffff;
  border-color: #064469;
}
[data-theme="light"] .chip.dev {
  background: rgba(208, 215, 225, 0.40);
  color: #475569;
  border-color: rgba(87, 144, 171, 0.35);
}

/* ---------- Theme toggle (sun / moon switch) ---------- */
.theme-toggle {
  border: 0; background: none; padding: 2px; cursor: pointer; flex: none; border-radius: 999px;
  min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center;
}
.theme-toggle:focus-visible { outline: 3px solid var(--brand-ocean, #5790AB); outline-offset: 3px; }
.tt-track {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  width: 74px; height: 40px; padding: 0 11px; border-radius: 999px;
  background: #EAF1F6; border: 1px solid rgba(87, 144, 171, 0.35);
  box-shadow: inset 0 2px 6px rgba(6, 68, 105, 0.08); transition: border-color .3s, background .3s;
}
.theme-toggle:hover .tt-track { border-color: var(--brand-sapphire, #064469); }
.tt-track svg { position: relative; z-index: 2; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: color .35s; }
.tt-track .sun { color: #ffffff; }
.tt-track .moon { color: var(--dim); }
.tt-knob {
  position: absolute; z-index: 1; top: 3px; left: 3px; width: 32px; height: 32px; border-radius: 50%;
  transform: translateX(0);
  background: #064469;
  box-shadow: 0 4px 12px -3px rgba(6, 68, 105, 0.5);
  transition: transform .45s cubic-bezier(.5,1.6,.4,1), background .35s;
}

[data-theme="dark"] .tt-knob {
  transform: translateX(34px);
  background: #ffffff;
  box-shadow: 0 4px 12px -3px rgba(0,0,0,.5);
}
[data-theme="dark"] .tt-track {
  background: var(--surface-2);
  border-color: var(--line-strong);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.25);
}
[data-theme="dark"] .tt-track .sun { color: var(--dim); }
[data-theme="dark"] .tt-track .moon { color: #090a0f; }

/* =========================================================
   DARK THEME (Oceanic Sapphire & Frost Aqua Palette) — toggled via <html data-theme="dark">
   Palette: #072D44 · #064469 · #5790AB · #9CCDDB · #D0D7E1
   Deep oceanic abyss background, rich card surfaces, frost aqua text.
   ========================================================= */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #031521;
  --bg-2: #072D44;
  --surface: #0a2538;
  --surface-2: #0e334c;
  --line: rgba(156, 205, 219, 0.14);
  --line-strong: rgba(156, 205, 219, 0.28);

  --emerald: #5790AB;
  --emerald-d: #064469;
  --emerald-l: #9CCDDB;
  --gold: #9CCDDB;
  --gold-l: #D0D7E1;
  --gold-d: #5790AB;
  --plum: #5790AB;
  --plum-d: #064469;

  --text: #F4F8FB;
  --muted: #9CCDDB;
  --dim: #5790AB;

  --tint: rgba(255, 255, 255, 0.03);
  --glass: rgba(19, 24, 34, 0.75);
  --glass-strong: rgba(9, 10, 15, 0.9);
  --pop: rgba(19, 24, 34, 0.98);
  --drawer: rgba(9, 10, 15, 0.98);
  --hero-hex: rgba(9, 10, 15, 0.6);
  --pl-text: #e2e8f0;
  --err: #f87171;

  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);

  --grad-brand: linear-gradient(135deg, #ffffff 0%, #9CCDDB 50%, #5790AB 100%);
  --grad-gold: linear-gradient(135deg, #9CCDDB 0%, #5790AB 50%, #064469 100%);
  --grad-plum: linear-gradient(135deg, #D0D7E1 0%, #5790AB 100%);
  --grad-text-gold: var(--grad-gold);

  --hx-s1: #10141d; --hx-s2: #161c28; --hx-s3: #0c0f16;
  --hx-top: #1a202c; --hx-top-dim: #131822; --hx-edge-dim: rgba(255,255,255,0.12); --hx-label-dim: #94a3b8;
}
html[data-theme="dark"] {
  color-scheme: dark;
}

/* ---------- Ink theme transition (View Transitions API + ink mask sprite) ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) {
  -webkit-mask-size: 3000% 100%; mask-size: 3000% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: ink-spread 1.15s steps(30, jump-none) forwards;
}
@keyframes ink-spread {
  from { -webkit-mask-position: 0% 0; mask-position: 0% 0; }
  to { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
}

/* ---------- ERP Module Hive (hero) ---------- */
.hero { --rx: 0deg; --ry: 0deg; min-height: max(640px, 100svh); padding: calc(var(--header-h) + 24px) 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr); align-items: start; gap: clamp(14px, 2.2vw, 28px); }
.hero-inner { max-width: 680px; z-index: 2; }
.hero h1 { font-size: clamp(1.75rem, min(3.3vw, 5.8vh), 3.05rem); line-height: 1.14; margin: 4px 0 16px; }
.hero h1 .line { display: block; white-space: nowrap; }
@media (max-width: 768px) {
  .hero h1 { font-size: clamp(1.6rem, 6vw, 2.25rem); }
  .hero h1 .line { white-space: normal; }
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.35vw, 1.38rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--accent);
  margin: -6px 0 20px;
  letter-spacing: -0.01em;
}
.hero-lead-unified {
  font-size: clamp(1.02rem, 1.05vw, 1.12rem);
  line-height: 1.68;
  color: var(--text);
  font-weight: 450;
  max-width: 58ch;
  margin-bottom: 26px;
}
[data-theme="light"] .hero-lead-unified {
  color: #1e293b;
}
[data-theme="dark"] .hero-lead-unified {
  color: #e2e8f0;
}
.hero-desc-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.hero-desc-group .lead {
  font-size: clamp(1.04rem, 1.1vw, 1.15rem);
  line-height: 1.6;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0;
}
.hero-body-para {
  font-size: clamp(0.94rem, 0.96vw, 1.01rem);
  line-height: 1.62;
  color: #1e293b;
  margin-bottom: 0;
}
[data-theme="dark"] .hero-tagline {
  color: var(--brand-cyan, #9CCDDB);
}
[data-theme="dark"] .hero-body-para {
  color: #cbd5e1;
}
.hero .lead { margin-bottom: 30px; }
.hero-tags { margin-top: 32px; }

/* ---------- Hero Video (Transparent & Theme-Adaptive Loop) ---------- */
.hero-video-stage {
  position: sticky;
  top: calc(var(--header-h) + 36px);
  width: 100%;
  max-width: 640px;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  background: transparent !important;
}
.hero-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.4s var(--ease);
}
.hero-video-wrapper:hover {
  transform: scale(1.02);
}
[data-theme="light"] .hero-video-wrapper {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
[data-theme="light"] .hero-video-wrapper:hover {
  border: none !important;
  box-shadow: none !important;
}
.hero-loop-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent !important;
  pointer-events: none;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.4));
  transition: filter 0.4s ease;
}
[data-theme="light"] .hero-loop-video {
  filter: drop-shadow(0 12px 28px rgba(6, 68, 105, 0.12));
}
.hero-video-ambient-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(156, 205, 219, 0.22) 0%, rgba(6, 68, 105, 0.25) 45%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 1;
}
[data-theme="light"] .hero-video-ambient-glow {
  background: radial-gradient(circle, rgba(156, 205, 219, 0.15) 0%, rgba(6, 68, 105, 0.06) 50%, transparent 75%);
}
@media (max-width: 900px) {
  .hero-video-stage {
    justify-self: center;
    max-width: 540px;
    margin-top: 16px;
  }
}
@media (max-width: 540px) {
  .hero-video-wrapper {
    aspect-ratio: 16 / 9;
  }
}
.hive-stage { position: relative; width: 100%; max-width: 680px; justify-self: end; aspect-ratio: 1.25; perspective: 1400px; }
.hive-tilt { width: 100%; height: 100%; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s var(--ease); transform-style: preserve-3d; }
.hive { width: 100%; height: 100%; overflow: visible; }
.hive .tile { cursor: pointer; outline: none; }
.hive .s1 { fill: var(--hx-s1); } .hive .s2 { fill: var(--hx-s2); } .hive .s3 { fill: var(--hx-s3); }
.hive .side { stroke-opacity: .35; stroke-width: 1; stroke-linejoin: round; }
.hive .top { fill: var(--hx-top); stroke-width: 2; stroke-linejoin: round; transition: filter .3s; }
.hive .tile.dim .top { fill: var(--hx-top-dim); stroke: var(--hx-edge-dim) !important; stroke-width: 1; }
.hive .tile.dim .side { stroke: var(--hx-edge-dim) !important; }
.hive .tint { pointer-events: none; transition: opacity .3s; }
.hive .tile.on .tint { opacity: .3 !important; }
.hive .lbl { font-family: var(--font-display); font-weight: 600; font-size: 16px; fill: var(--text); pointer-events: none; }
.hive .tile.dim .lbl { font-size: 13px; font-weight: 500; fill: var(--hx-label-dim); }
.hive .icon { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.hive .route { fill: none; stroke-width: 1.6; stroke-dasharray: 4 7; animation: dash 1.2s linear infinite; opacity: .85; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.hive .glow { pointer-events: none; }
.hive-tip {
  position: absolute; z-index: 5; min-width: 220px; max-width: 260px; padding: 16px 18px; border-radius: 16px;
  background: var(--pop); border: 1px solid var(--line-strong); box-shadow: var(--shadow); backdrop-filter: blur(12px);
  opacity: 0; transform: translate(-50%, calc(-100% - 6px)) scale(.96); transition: opacity .25s, transform .25s var(--ease); pointer-events: none;
}
.hive-tip.show { opacity: 1; transform: translate(-50%, calc(-100% - 14px)) scale(1); }
.hive-tip b { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 1rem; margin-bottom: 4px; }
.hive-tip b i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); }
.hive-tip p { font-size: .84rem; margin-bottom: 10px; }
.hive-tip .chips .chip { font-size: .72rem; padding: 4px 10px; }
.hive-hint { position: absolute; bottom: 0; right: 4%; font-size: .78rem; color: var(--dim); display: flex; gap: 8px; align-items: center; }
.hive-hint::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px rgba(6,68,105,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(6,68,105,0); } }

@media (max-height: 820px) and (min-width: 901px) {
  .hero-tags { display: none; }
  .hero .scroll-cue { display: none; }
  .badge { margin-bottom: 10px; }
}
@media (max-width: 1200px) {
  .nav > a, .nav .dd > button { padding: 10px 10px; }
}
@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 40px); }
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero-inner { max-width: 640px; }
  .hive-stage { justify-self: center; max-width: 560px; }
  .hero .scroll-cue { display: none; }
}
@media (max-width: 600px) {
  .hive-hint { display: none; }
  .hive-tip { min-width: 190px; }
}

/* =========================================================
   v3 — non-repeating corporate sections
   ========================================================= */
[data-theme="light"] .chip { color: var(--text); }
[data-theme="light"] .card p, [data-theme="light"] .card li { color: var(--muted); }
[data-theme="light"] .hero-tags span { color: var(--muted); border-color: var(--line-strong); }
@media (max-width: 600px) {
  .brand small { display: none; }
  .brand { gap: 10px; font-size: 1.08rem; }
  .header-cta { gap: 8px; }
}

/* Page-hero icon inside the decorative hexagon */
.ph-icon { position: absolute; right: 140px; top: 50%; transform: translate(50%, -50%); z-index: 2; width: 92px; height: 92px; color: var(--gold); opacity: .9; }
.ph-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) { .ph-icon { display: none; } }

/* Positioning band (home) */
.pos-band { padding: clamp(60px, 8vw, 96px) 0; border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(6, 68, 105, 0.05), transparent); }
[data-theme="dark"] .pos-band { background: linear-gradient(180deg, rgba(156, 205, 219, 0.04), transparent); }
.pos-grid { display: grid; grid-template-columns: 1.05fr 1.6fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.pos-grid h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); line-height: 1.25; }
.pillars3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  perspective: 1400px;
  transform-style: preserve-3d;
  border: none;
  border-radius: 0;
  overflow: visible;
}
.pillars3 a, .pillar-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  transform-style: preserve-3d;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease,
              background 0.3s ease;
  overflow: hidden;
}
.pillars3 a::before, .pillar-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(156, 205, 219, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.pillars3 a:hover::before, .pillar-card:hover::before {
  opacity: 1;
}
.pillars3 a:hover, .pillar-card:hover {
  border-color: var(--brand-ocean);
  box-shadow: 0 20px 48px -12px rgba(6, 68, 105, 0.35), 0 0 24px rgba(156, 205, 219, 0.20);
  transform: perspective(1200px) translateY(-8px) rotateX(calc(var(--rx, 0deg) + 3deg)) rotateY(var(--ry, 0deg)) translateZ(20px) scale(1.02);
}
[data-theme="light"] .pillars3 a, [data-theme="light"] .pillar-card {
  background: #ffffff;
  border-color: rgba(7, 45, 68, 0.12);
  box-shadow: 0 4px 18px rgba(7, 45, 68, 0.04);
}
[data-theme="light"] .pillars3 a:hover, [data-theme="light"] .pillar-card:hover {
  border-color: var(--brand-sapphire);
  box-shadow: 0 20px 48px -12px rgba(6, 68, 105, 0.18), 0 4px 16px rgba(87, 144, 171, 0.12);
}
.pillars3 .k {
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #7b8e9f;
  font-weight: 700;
  transform: translateZ(10px);
  transition: color 0.3s ease, transform 0.35s ease;
}
[data-theme="dark"] .pillars3 .k,
[data-theme="light"] .pillars3 .k {
  color: #7b8e9f;
}
.pillars3 a:hover .k, .pillar-card:hover .k {
  color: #ffffff;
}
.pillars3 h3 {
  font-size: 1.55rem;
  color: var(--text);
  transform: translateZ(18px);
  transition: transform 0.35s ease;
  min-height: 42px;
  display: flex;
  align-items: center;
}
.pillars3 p {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.55;
  transform: translateZ(12px);
  transition: transform 0.35s ease;
  flex: 1 1 auto;
  min-height: 72px;
}
.pillars3 .go {
  margin-top: auto;
  padding-top: 14px;
  color: #7b8e9f;
  font-weight: 700;
  font-size: .88rem;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transform: translateZ(16px);
  transition: color 0.3s ease, transform 0.35s ease;
}
[data-theme="dark"] .pillars3 .go,
[data-theme="light"] .pillars3 .go {
  color: #7b8e9f;
}
.pillars3 a:hover .go, .pillar-card:hover .go {
  color: #ffffff;
}
.pillars3 .go svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pillars3 a:hover .go svg, .pillar-card:hover .go svg {
  transform: translateX(6px) scale(1.12);
}

/* Bento (home) */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(230px, auto);
  gap: 18px;
  perspective: 1400px;
  transform-style: preserve-3d;
  pointer-events: none;
}
.bento > * {
  pointer-events: auto;
}
.bento .card { display: flex; flex-direction: column; transform-style: preserve-3d; will-change: transform; }
.bento .b-a { grid-column: span 2; grid-row: span 2; background: radial-gradient(500px 300px at 100% 0%, rgba(6,68,105,.16), transparent 60%), linear-gradient(180deg, var(--surface), var(--bg-2)); }
.bento .b-d { grid-column: span 2; }
.bento h3 { font-size: 1.35rem; }
.bento .b-a h3 { font-size: 2rem; margin-bottom: 14px; }
.bento .card-link { margin-top: auto; padding-top: 18px; }
.mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0 8px; }
.mods span { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--tint); font-weight: 600; font-size: .9rem; color: var(--text); }
.mods span i { display: none !important; }

/* ERP Bento Card (card b-a): Modern Alignment & Micro-Icon Showcase */
.erp-card-lead {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 22px;
}

/* =========================================================
   ERP Dynamic 3D Module Slider Component (CRM to AI Core)
   ========================================================= */
.erp-slider-wrap {
  position: relative;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  user-select: none;
  z-index: 15;
  pointer-events: auto;
}

.erp-slider-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
  position: relative;
  z-index: 20;
  pointer-events: auto;
}

.erp-slider-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  position: relative;
  z-index: 22;
  pointer-events: auto;
}

.erp-slider-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-cyan, #9CCDDB);
}

.erp-slider-badge .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-cyan, #9CCDDB);
  box-shadow: 0 0 8px var(--brand-cyan, #9CCDDB);
  animation: pulse-dot 2.5s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 12px var(--brand-cyan, #9CCDDB); }
}

.erp-slider-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  padding: 2px 0;
  position: relative;
  z-index: 25;
  pointer-events: auto;
}
.erp-slider-pills::-webkit-scrollbar { display: none; }

.erp-pill-nav {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 30;
  pointer-events: auto;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.erp-pill-nav .pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dim);
  transition: all 0.28s ease;
}
.erp-pill-nav:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(87, 144, 171, 0.12);
  transform: translateY(-1px);
}
.erp-pill-nav.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-sapphire, #064469), var(--brand-navy, #072D44));
  border-color: var(--brand-cyan, #9CCDDB);
  box-shadow: 0 0 16px rgba(156, 205, 219, 0.35);
}
.erp-pill-nav.active .pill-dot {
  background: var(--brand-cyan, #9CCDDB);
  box-shadow: 0 0 8px var(--brand-cyan);
}

[data-theme="light"] .erp-pill-nav {
  background: #ffffff;
  border-color: rgba(7, 45, 68, 0.14);
  color: var(--muted);
}
[data-theme="light"] .erp-pill-nav:hover {
  background: rgba(156, 205, 219, 0.20);
  color: var(--brand-navy);
}
[data-theme="light"] .erp-pill-nav.active {
  color: #ffffff;
  background: linear-gradient(135deg, #064469 0%, #072D44 100%);
  border-color: #064469;
  box-shadow: 0 4px 14px rgba(6, 68, 105, 0.25);
}
[data-theme="light"] .erp-pill-nav.active .pill-dot {
  background: #9CCDDB;
}

.erp-slider-arrows {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
  position: relative;
  z-index: 25;
  pointer-events: auto;
}
.erp-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  z-index: 35;
  pointer-events: auto;
  transition: all 0.22s ease;
  outline: none;
}
.erp-arrow-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  pointer-events: none;
}
.erp-arrow-btn:hover {
  border-color: var(--brand-cyan, #9CCDDB);
  background: var(--surface-2);
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 0 14px rgba(156, 205, 219, 0.35);
}
.erp-arrow-btn:active {
  transform: scale(0.94);
}

/* Track & Cards Viewport */
.erp-track-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 4px;
  perspective: 1200px;
}
.erp-cards-track {
  display: flex;
  gap: 16px;
  transition: transform 0.48s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.erp-slide-card {
  position: relative;
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: 260px;
  padding: 24px 22px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  cursor: pointer;
}

.erp-slide-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--brand-cyan, #9CCDDB);
  box-shadow: 0 16px 36px -8px rgba(6, 68, 105, 0.30);
}

.card-top-line {
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-cyan), transparent);
  opacity: 0.7;
}

.erp-slide-card.mod-crm .card-top-line { background: linear-gradient(90deg, transparent, #38bdf8, transparent); }
.erp-slide-card.mod-finance .card-top-line { background: linear-gradient(90deg, transparent, #10b981, transparent); }
.erp-slide-card.mod-hr .card-top-line { background: linear-gradient(90deg, transparent, #c084fc, transparent); }
.erp-slide-card.mod-inventory .card-top-line { background: linear-gradient(90deg, transparent, #f59e0b, transparent); }
.erp-slide-card.mod-projects .card-top-line { background: linear-gradient(90deg, transparent, #60a5fa, transparent); }
.erp-slide-card.mod-ai .card-top-line { background: linear-gradient(90deg, transparent, #ec4899, transparent); }

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.card-head .mod-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.erp-slide-card:hover .card-head .mod-ico {
  transform: scale(1.12) rotate(4deg);
}
.card-head .mod-ico svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.mod-crm .mod-ico { color: #38bdf8; background: rgba(56, 189, 248, 0.14); }
.mod-finance .mod-ico { color: #10b981; background: rgba(16, 185, 129, 0.14); }
.mod-hr .mod-ico { color: #c084fc; background: rgba(192, 132, 252, 0.14); }
.mod-inventory .mod-ico { color: #f59e0b; background: rgba(245, 158, 11, 0.14); }
.mod-projects .mod-ico { color: #60a5fa; background: rgba(96, 165, 250, 0.14); }
.mod-ai .mod-ico { color: #ec4899; background: rgba(236, 72, 153, 0.14); }

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
}
.mod-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.mod-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.25;
}

.mod-live-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.28);
  align-self: flex-start;
}
.mod-live-tag.hot {
  background: rgba(236, 72, 153, 0.14);
  color: #ec4899;
  border-color: rgba(236, 72, 153, 0.35);
}

.mod-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.mod-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mod-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(87, 144, 171, 0.08);
  border: 1px solid var(--line);
  color: var(--text);
}

/* Slider Footer & Progress Bar */
.erp-slider-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px;
}
.erp-progress-bar {
  flex-grow: 1;
  height: 3px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  position: relative;
}
.erp-progress-fill {
  height: 100%;
  width: 16.666%;
  background: linear-gradient(90deg, var(--brand-sapphire, #064469), var(--brand-cyan, #9CCDDB));
  border-radius: 999px;
  transition: transform 0.48s cubic-bezier(0.16, 1, 0.3, 1), width 0.48s ease;
}
.erp-slider-counter {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dim);
}
.erp-slider-counter b {
  color: var(--text);
  font-size: 0.94rem;
}

@media (max-width: 980px) {
  .erp-slide-card {
    flex: 0 0 calc((100% - 16px) / 2);
    min-width: 240px;
  }
}
@media (max-width: 640px) {
  .erp-slide-card {
    flex: 0 0 100%;
    min-width: 100%;
  }
}

/* Feature highlight strip */
.erp-features-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  margin-top: auto;
  margin-bottom: 22px;
}

[data-theme="light"] .erp-features-bar {
  background: #EAF1F6;
  border-color: rgba(87, 144, 171, 0.20);
}

.erp-feat-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.erp-feat-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.erp-feat-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(6, 68, 105, 0.14);
  color: #10b981;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.erp-feat-head b {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.erp-feat-item p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
  padding-left: 26px;
}

@media (max-width: 900px) {
  .erp-mods-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .erp-mods-grid {
    grid-template-columns: 1fr;
  }
  .erp-features-bar {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 16px;
  }
}
.bignum { font-family: var(--font-display); font-size: 3.4rem; font-weight: 700; line-height: 1; margin: 6px 0 10px; }
.mini-list { list-style: none; display: grid; gap: 8px; margin-top: 6px; }
.mini-list li { font-size: .9rem; color: var(--muted); padding-left: 16px; position: relative; }
.mini-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.mini-chat { display: grid; gap: 8px; margin-top: 14px; }
.mini-chat div { padding: 9px 12px; border-radius: 12px; font-size: .82rem; max-width: 92%; }
.mini-chat .in { background: var(--tint); border: 1px solid var(--line); color: var(--muted); }
.mini-chat .out { background: rgba(6,68,105,.14); border: 1px solid rgba(6,68,105,.32); color: var(--text); justify-self: end; }
.b-d .chips { margin-top: 16px; }

/* Bento Card b-d: Technology & R&D Full-Height Layout & Elevated Clickable Button */
.bento .b-d {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  position: relative;
}
.b-d .b-d-content-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}
.b-d .tech-chips {
  margin-top: 18px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.b-d .card-link,
.b-d .b-d-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(87, 144, 171, 0.22), rgba(6, 68, 105, 0.38));
  border: 1px solid var(--line-strong);
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 600;
  width: fit-content;
  position: relative;
  z-index: 10;
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.b-d .card-link:hover,
.b-d .b-d-btn:hover {
  border-color: var(--brand-cyan, #9CCDDB);
  background: linear-gradient(135deg, var(--brand-sapphire, #064469), var(--brand-navy, #072D44));
  box-shadow: 0 0 20px rgba(156, 205, 219, 0.45);
  transform: translateY(-2px);
  color: #ffffff !important;
}
.b-d .card-link svg,
.b-d .b-d-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}
.b-d .card-link:hover svg,
.b-d .b-d-btn:hover svg {
  transform: translateX(4px);
}

/* Challenge switcher */
.cgrid { display: grid; grid-template-columns: 330px 1fr; gap: 24px; align-items: start; }
.ctabs { display: grid; gap: 8px; }
.ctab { display: flex; gap: 14px; align-items: center; text-align: left; padding: 15px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 600; font-size: .95rem; cursor: pointer; transition: all .25s; }
.ctab:hover { color: var(--text); border-color: var(--line-strong); }
.ctab i { font-style: normal; font-family: var(--font-display); font-size: .8rem; color: var(--dim); }
.ctab.on { color: var(--text); border-color: var(--gold); background: linear-gradient(90deg, rgba(87,144,171,.16), var(--surface)); box-shadow: inset 3px 0 0 var(--gold); }
.ctab.on i { color: var(--gold); }
.cpanel { padding: clamp(28px, 4vw, 44px); }
.cpanel h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 10px; }
.how { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; margin-top: 26px; padding-top: 24px; border-top: 1px dashed var(--line-strong); }
.how .eyebrow { margin: 0 0 14px; }
.cpanel .btn-row { margin-top: 28px; }

/* Why grid (editorial numerals) */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  perspective: 1400px;
  transform-style: preserve-3d;
  border: none;
}
.why-grid article, .why-card {
  position: relative;
  padding: 36px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  transform-style: preserve-3d;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease,
              background 0.3s ease;
  overflow: hidden;
  will-change: transform;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.why-grid article::before, .why-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(350px circle at var(--mx, 50%) var(--my, 50%), rgba(156, 205, 219, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.why-grid article::after, .why-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-cyan), transparent);
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.4s ease;
}
.why-grid article:hover::before, .why-card:hover::before {
  opacity: 1;
}
.why-grid article:hover, .why-card:hover {
  border-color: var(--brand-ocean);
  box-shadow: 0 20px 48px -12px rgba(6, 68, 105, 0.35), 0 0 24px rgba(156, 205, 219, 0.20);
  transform: perspective(1200px) translateY(-8px) rotateX(calc(var(--rx, 0deg) + 2deg)) rotateY(var(--ry, 0deg)) translateZ(20px) scale(1.02);
}
[data-theme="light"] .why-grid article, [data-theme="light"] .why-card {
  background: #ffffff;
  border-color: rgba(7, 45, 68, 0.12);
  box-shadow: 0 4px 18px rgba(7, 45, 68, 0.04);
}
[data-theme="light"] .why-grid article:hover, [data-theme="light"] .why-card:hover {
  border-color: var(--brand-sapphire);
  box-shadow: 0 20px 48px -12px rgba(6, 68, 105, 0.18), 0 4px 16px rgba(87, 144, 171, 0.12);
}
.why-grid .wn {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.8rem;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
  display: inline-block;
  transform: translateZ(24px);
  transition: transform 0.35s ease;
  letter-spacing: -0.02em;
  min-height: 48px;
}
.why-grid h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text);
  transform: translateZ(16px);
  transition: transform 0.35s ease;
  min-height: 34px;
  display: flex;
  align-items: center;
}
.why-grid p {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.6;
  transform: translateZ(10px);
  transition: transform 0.35s ease;
  flex: 1 1 auto;
}

/* Routes (home closing) */
.routes {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 20px;
  align-items: stretch;
  perspective: 1400px;
  transform-style: preserve-3d;
}
.routes .lead-box {
  padding: 38px 34px;
  border-radius: 18px;
  background: radial-gradient(400px 260px at 0 0, rgba(6,68,105,.26), transparent 60%), radial-gradient(400px 260px at 100% 100%, rgba(87,144,171,.22), transparent 60%), var(--surface);
  border: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.routes .lead-box:hover {
  transform: perspective(1200px) translateY(-6px) translateZ(16px);
  box-shadow: 0 24px 56px -12px rgba(6, 68, 105, 0.35);
}
.routes .lead-box h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: 12px; }
.routes .lead-box .btn { margin-top: auto; align-self: flex-start; }
.route-card {
  display: flex;
  flex-direction: column;
  padding: 32px 26px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.route-card:hover {
  transform: perspective(1200px) translateY(-8px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(20px) scale(1.02);
  border-color: var(--brand-ocean);
  box-shadow: 0 20px 48px -12px rgba(6, 68, 105, 0.35), 0 0 24px rgba(156, 205, 219, 0.20);
}
.route-card .ic {
  margin-bottom: 20px;
  transform: translateZ(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.route-card:hover .ic {
  transform: translateZ(26px) scale(1.1);
}
.route-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  transform: translateZ(14px);
}
.route-card p {
  font-size: .92rem;
  transform: translateZ(10px);
}
.route-card .mail {
  margin-top: auto;
  padding-top: 16px;
  font-weight: 700;
  color: #7b8e9f;
  font-size: .92rem;
  word-break: break-all;
  transform: translateZ(14px);
  transition: color 0.3s ease;
}
[data-theme="dark"] .route-card .mail,
[data-theme="light"] .route-card .mail {
  color: #7b8e9f;
}
.route-card:hover .mail {
  color: #ffffff;
}

/* About: approach equation */
.approach { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1.1fr; align-items: stretch; gap: 14px; }
.approach .op { display: grid; place-items: center; font-family: var(--font-display); font-size: 1.8rem; color: var(--gold); font-weight: 300; }
.approach .card { padding: 28px 24px; }
.approach .card h3 { font-size: 1.1rem; }
.approach .card p { font-size: .9rem; }
.approach .result { background: linear-gradient(160deg, rgba(6,68,105,.18), rgba(87,144,171,.12)); border-color: var(--line-strong); display: flex; flex-direction: column; justify-content: center; }
.approach .result h3 { font-size: 1.35rem; }

/* Values: manifesto */
.manifesto { padding: clamp(70px, 9vw, 110px) 0; text-align: center; }
.manifesto p { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 4.4vw, 3.4rem); line-height: 1.18; color: var(--text); letter-spacing: -.02em; }
.manifesto p span { color: transparent; -webkit-text-stroke: 1.2px var(--gold); }
.manifesto p em { font-style: normal; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.manifesto small { display: block; margin-top: 26px; color: var(--gold); letter-spacing: .18em; text-transform: uppercase; font-size: .8rem; font-weight: 700; }

/* Services: vertical delivery timeline */
.vtl { position: relative; max-width: 900px; margin: 0 auto; }
.vtl::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--emerald), var(--gold)); transform: translateX(-50%); opacity: .6; }
.vtl-item { position: relative; width: 50%; padding: 0 44px 34px; }
.vtl-item:nth-child(odd) { text-align: right; }
.vtl-item:nth-child(even) { margin-left: 50%; }
.vtl-item::after { content: attr(data-n); position: absolute; top: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .82rem; background: var(--bg); border: 2px solid var(--gold); color: var(--gold); }
.vtl-item:nth-child(odd)::after { right: -20px; }
.vtl-item:nth-child(even)::after { left: -20px; }
.vtl-item h3 { font-size: 1.2rem; margin-bottom: 6px; padding-top: 6px; }
.vtl-item p { font-size: .95rem; }

/* Technology: horizon */
.horizon { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.horizon::before { content: ""; position: absolute; left: 6%; right: 6%; top: 34px; height: 2px; background: linear-gradient(90deg, var(--emerald), var(--gold), var(--plum)); opacity: .55; }
.horizon .card { padding-top: 64px; }
.horizon .card .when { position: absolute; top: 20px; left: 30px; font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-strong); color: var(--gold); }

/* CTA split variant */
.cta.split-cta { text-align: left; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; padding: clamp(36px, 5vw, 56px); }
.cta.split-cta h2, .cta.split-cta p { margin-left: 0; margin-right: 0; }
.cta.split-cta p { margin-bottom: 0; }
.cta.split-cta .btn-row { justify-content: flex-end; }

/* Products: ERP picker */
.picker-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.picks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pick { display: flex; gap: 14px; align-items: center; text-align: left; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: all .25s; color: var(--text); user-select: none; }
.pick:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.pick:focus-visible { outline: 2px solid var(--brand-ocean, #5790AB); outline-offset: 2px; }
.pick:active { transform: scale(0.985); }
.pick * { pointer-events: none; }
.pick .box { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: none; transition: all .25s; background: var(--bg-2); }
.pick .box svg { width: 14px; height: 14px; stroke: #ffffff; fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(0.7); transition: all .2s cubic-bezier(0.16, 1, 0.3, 1); }
.pick[aria-pressed="true"] { border-color: var(--c); background: linear-gradient(140deg, color-mix(in srgb, var(--c) 16%, transparent), var(--surface)); box-shadow: 0 4px 16px -4px color-mix(in srgb, var(--c) 25%, transparent); }
.pick[aria-pressed="true"] .box { background: var(--c); border-color: var(--c); }
.pick[aria-pressed="true"] .box svg { opacity: 1; transform: scale(1); stroke: #ffffff; }
.pick b { display: block; font-family: var(--font-display); font-size: .98rem; }
.pick small { color: var(--muted); font-size: .8rem; }
.summary { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface-2); }
.summary small { color: var(--brand-ocean, #5790AB); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.summary b { display: block; font-size: .92rem; margin-top: 2px; }
.hive .tile.sel .tint { opacity: .32 !important; }
.hive .tile.unsel { filter: grayscale(.85) opacity(.5); }
.hive .tile { transition: filter .35s; }
.picker-split .hive-stage { justify-self: center; }

@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .routes { grid-template-columns: 1fr 1fr; }
  .routes .lead-box { grid-column: span 2; }
  .approach { grid-template-columns: 1fr; }
  .approach .op { transform: rotate(90deg); font-size: 1.4rem; }
  .cgrid { grid-template-columns: 1fr; }
  .ctabs { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
@media (max-width: 860px) {
  .pos-grid, .picker-split, .cta.split-cta { grid-template-columns: 1fr; }
  .cta.split-cta .btn-row { justify-content: flex-start; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .horizon { grid-template-columns: 1fr; }
  .horizon::before { display: none; }
  .how { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pillars3 { grid-template-columns: 1fr; gap: 14px; }
  .pillars3 a { border: 1px solid var(--line); }
  .bento, .routes, .why-grid, .picks, .mods { grid-template-columns: 1fr; }
  .bento .b-a, .bento .b-d, .routes .lead-box { grid-column: auto; grid-row: auto; }
  .vtl::before { left: 20px; }
  .vtl-item, .vtl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 30px 64px; text-align: left !important; }
  .vtl-item::after, .vtl-item:nth-child(odd)::after, .vtl-item:nth-child(even)::after { left: 0; right: auto; }
  .summary { flex-direction: column; align-items: stretch; }
}
.feat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 18px; border-top: 1px dashed var(--line-strong); }
.feat3 div { padding: 16px 14px 4px 0; }
.feat3 b { display: block; font-family: var(--font-display); font-size: .95rem; color: var(--text); margin-bottom: 3px; }
.feat3 span { font-size: .84rem; color: var(--muted); }
@media (max-width: 600px) { .feat3 { grid-template-columns: 1fr; } }
.btn svg, .card-link svg { stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
main { overflow-x: clip; }
@media (max-width: 860px) {
  [data-reveal="left"], [data-reveal="right"] { transform: translateY(30px); }
}

/* =========================================================
   CINEMATIC 3D PRODUCT SUITE & MOCKUP STYLING
   Theme-aware, high-contrast, responsive
   ========================================================= */
.prod-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
@media (max-width: 1140px) {
  .prod-overview-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
}
@media (max-width: 720px) {
  .prod-overview-grid { grid-template-columns: 1fr; gap: 24px; }
}

.prod-hero-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 38px 32px 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-shadow: 0 20px 60px -25px rgba(0,0,0,0.5);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
  transform-style: preserve-3d;
  perspective: 1000px;
}
.prod-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.prod-hero-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-gold);
}
.prod-hero-card.talentpanda::before {
  background: linear-gradient(90deg, var(--emerald) 0%, var(--gold) 50%, var(--plum) 100%);
}
.prod-hero-card.techpanda::before {
  background: linear-gradient(90deg, var(--gold) 0%, #f59e0b 50%, var(--plum) 100%);
}
.prod-hero-card.tasky::before {
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 50%, var(--emerald) 100%);
}
.prod-hero-card.connectpanda::before {
  background: linear-gradient(90deg, #38bdf8 0%, var(--emerald) 50%, var(--gold) 100%);
}
.prod-hero-card:hover {
  transform: translateY(-8px);
  border-color: var(--line-strong);
  box-shadow: 0 32px 80px -28px rgba(0,0,0,0.7);
}
[data-theme="light"] .prod-hero-card {
  box-shadow: 0 20px 50px -25px rgba(60,45,15,0.25);
}
[data-theme="light"] .prod-hero-card:hover {
  box-shadow: 0 32px 70px -28px rgba(60,45,15,0.38);
}

.prod-glow {
  position: absolute;
  top: -80px; right: -80px;
  width: 240px; height: 240px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.18;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.prod-hero-card.talentpanda .prod-glow { background: var(--emerald); }
.prod-hero-card.techpanda .prod-glow { background: var(--gold); }
.prod-hero-card.tasky .prod-glow { background: #2563eb; }
.prod-hero-card.connectpanda .prod-glow { background: #38bdf8; }
.prod-hero-card:hover .prod-glow { opacity: 0.32; }

.prod-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 14px;
  min-height: 142px;
}
.prod-brand-mark {
  display: inline-flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
}
.prod-brand-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  padding: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  flex-shrink: 0;
}
.prod-brand-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--gold);
}
.prod-hero-card.talentpanda .prod-brand-icon {
  color: var(--emerald);
  background: rgba(6,68,105,0.1);
  border-color: rgba(6,68,105,0.3);
}
.prod-hero-card.erp .prod-brand-icon {
  color: var(--gold);
  background: rgba(87,144,171,0.1);
  border-color: rgba(87,144,171,0.3);
}
.prod-brand-title {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 68px;
}
.prod-brand-title h3 {
  font-size: 1.42rem;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.25;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.prod-brand-title span,
.prod-brand-title .prod-subhead {
  font-size: 0.8rem;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  line-height: 1.35;
  min-height: 20px;
  display: flex;
  align-items: center;
}
.prod-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}
.prod-desc {
  font-size: 1.0rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
  min-height: 125px;
  flex: 1 1 auto;
}
.prod-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.prod-chip {
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
}
.prod-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 0;
  margin-bottom: 28px;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.prod-stat-item b {
  display: block;
  font-size: 1.15rem;
  color: var(--text);
  font-family: var(--font-display);
}
.prod-stat-item span {
  font-size: 0.76rem;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.prod-footer-action {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  width: 100%;
}
.prod-target-audience {
  font-size: 0.86rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.02em;
  min-height: 24px;
  display: flex;
  align-items: center;
  width: 100%;
}
.prod-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  align-items: stretch;
}
.prod-btn-row .btn {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
  box-sizing: border-box;
}
@media (max-width: 480px) {
  .prod-btn-row {
    grid-template-columns: 1fr;
  }
}

/* Detail page cinematic mockups */
.cinematic-mock-frame {
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6);
  margin: 36px 0;
}
.mock-bar {
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid var(--line);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mock-dots {
  display: flex;
  gap: 6px;
}
.mock-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}
.mock-url {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-family: monospace;
  color: var(--dim);
  flex: 1;
  max-width: 360px;
}
.mock-content {
  padding: 28px 32px;
}
.cinematic-mock-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* Request Access CTA Box */
.request-access-cta {
  background: radial-gradient(circle at 50% 0%, rgba(6,68,105,0.12), transparent 70%), var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 64px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6);
}
.request-access-cta.erp-theme {
  background: radial-gradient(circle at 50% 0%, rgba(87,144,171,0.14), transparent 70%), var(--surface);
}
.request-access-cta h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.request-access-cta p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.cta-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================================================
   Team Leadership Alternating Showcase
   ========================================================= */
.team-showcase {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vw, 64px);
  margin-top: 36px;
  margin-bottom: 56px;
}

.team-profile-row {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.team-profile-row:hover {
  border-color: var(--line-strong);
  box-shadow: 0 18px 45px -12px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
}

.team-profile-row.row-reverse {
  grid-template-columns: 1fr minmax(280px, 360px);
}

.team-profile-row.row-reverse .team-profile-photo-col {
  order: 2;
}

.team-profile-row.row-reverse .team-profile-content-col {
  order: 1;
}

.team-profile-photo-col {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.team-photo-frame {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: 460px;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.team-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: transform 0.5s var(--ease);
}

.team-profile-row:hover .team-photo-img {
  transform: scale(1.03);
}

.team-photo-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(87, 144, 171, 0.28);
  border-radius: 12px;
  padding: 8px 14px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(6, 68, 105, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.3s var(--ease);
}

.team-photo-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.01em;
}

.team-photo-divider {
  color: #5790AB;
  font-size: 0.85rem;
  font-weight: 600;
}

.team-photo-role {
  font-size: 0.82rem;
  font-weight: 600;
  color: #7b8e9f;
  letter-spacing: 0.01em;
}

.team-profile-content-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-profile-content-col .leader-badge {
  align-self: flex-start;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--tint);
  color: var(--gold);
}

.team-profile-content-col .ceo-badge,
.team-profile-content-col .exec-badge {
  border-color: rgba(87, 144, 171, 0.45);
  color: var(--gold, #d9b779);
  background: rgba(87, 144, 171, 0.12);
}

[data-theme="light"] .team-profile-content-col .ceo-badge,
[data-theme="light"] .team-profile-content-col .exec-badge {
  border-color: rgba(87, 144, 171, 0.45);
  color: #475569;
  background: rgba(156, 205, 219, 0.14);
}

.team-profile-content-col .ops-badge,
.leader-info .ops-badge {
  border-color: rgba(245, 158, 11, 0.35);
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

[data-theme="light"] .team-profile-content-col .ops-badge,
[data-theme="light"] .leader-info .ops-badge {
  border-color: rgba(180, 115, 20, 0.35);
  color: #a8620a;
  background: rgba(245, 158, 11, 0.12);
}

.team-profile-content-col .tech-badge {
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}

.team-profile-content-col .fin-badge,
.leader-info .fin-badge {
  border-color: rgba(52, 211, 153, 0.35);
  color: #10b981;
  background: rgba(6, 68, 105, 0.08);
}

[data-theme="light"] .team-profile-content-col .fin-badge,
[data-theme="light"] .leader-info .fin-badge {
  border-color: rgba(5, 150, 105, 0.35);
  color: #047857;
  background: rgba(6, 68, 105, 0.12);
}

.team-profile-content-col .mgmt-badge {
  border-color: rgba(192, 132, 252, 0.3);
  color: #c084fc;
  background: rgba(192, 132, 252, 0.08);
}

.team-profile-content-col .pmo-badge {
  border-color: rgba(6, 68, 105, 0.3);
  color: #10b981;
  background: rgba(6, 68, 105, 0.08);
}

.team-profile-content-col .delivery-badge,
.leader-info .delivery-badge {
  border-color: rgba(14, 165, 233, 0.35);
  color: #0ea5e9;
  background: rgba(14, 165, 233, 0.08);
}

[data-theme="light"] .team-profile-content-col .delivery-badge,
[data-theme="light"] .leader-info .delivery-badge {
  border-color: rgba(2, 132, 199, 0.35);
  color: #0369a1;
  background: rgba(14, 165, 233, 0.12);
}

.team-member-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
}

.team-member-role {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: -0.01em;
  margin-top: -4px;
}

.team-member-tagline {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin: 6px 0 8px;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
}

.team-member-bio {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.team-member-bio p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

/* Light mode adjustments */
[data-theme="light"] .team-profile-row {
  background: #ffffff;
  border-color: rgba(87, 144, 171, 0.16);
  box-shadow: 0 8px 24px rgba(6, 68, 105, 0.05);
}

[data-theme="light"] .team-profile-row:hover {
  border-color: rgba(87, 144, 171, 0.38);
  box-shadow: 0 16px 36px rgba(6, 68, 105, 0.12);
}

[data-theme="light"] .team-photo-frame {
  background: #EAF1F6;
  border-color: rgba(87, 144, 171, 0.22);
  box-shadow: 0 8px 24px rgba(6, 68, 105, 0.08);
}

[data-theme="light"] .team-photo-badge {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(87, 144, 171, 0.28);
  box-shadow: 0 8px 24px rgba(6, 68, 105, 0.12);
}

[data-theme="light"] .team-photo-name {
  color: #1e293b;
}

[data-theme="light"] .team-photo-divider {
  color: #5790AB;
}

[data-theme="light"] .team-photo-role {
  color: #475569;
}

/* Dark theme team photo badge - Rich Oceanic Sapphire & Bright White/Aqua (No Black) */
[data-theme="dark"] .team-photo-badge {
  background: rgba(7, 45, 68, 0.94);
  border-color: rgba(156, 205, 219, 0.35);
  box-shadow: 0 8px 24px rgba(3, 21, 33, 0.55);
}

[data-theme="dark"] .team-photo-name {
  color: #ffffff;
}

[data-theme="dark"] .team-photo-divider {
  color: #9CCDDB;
}

[data-theme="dark"] .team-photo-role {
  color: #9CCDDB;
}

[data-theme="light"] .team-member-tagline {
  color: #475569;
  border-left-color: #475569;
}

/* Responsive breakpoint */
@media (max-width: 860px) {
  .team-profile-row,
  .team-profile-row.row-reverse {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
  .team-profile-row.row-reverse .team-profile-photo-col {
    order: 0;
  }
  .team-profile-row.row-reverse .team-profile-content-col {
    order: 1;
  }
  .team-photo-frame {
    max-width: 100%;
    height: 400px;
  }
}

/* ---------- Leadership & Management Team ---------- */
.team-sec-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-grid .leader-card.highlight {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  gap: 28px;
}
.leader-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
  overflow: hidden;
}
.leader-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
[data-theme="light"] .leader-card {
  background: #ffffff;
  border: 1px solid rgba(87, 144, 171, 0.16);
  box-shadow: 0 4px 20px -2px rgba(6, 68, 105, 0.05), 0 0 1px 1px rgba(87, 144, 171, 0.06);
}
[data-theme="light"] .leader-card:hover {
  border-color: rgba(87, 144, 171, 0.38);
  box-shadow: 0 18px 40px -10px rgba(6, 68, 105, 0.14);
}
.leader-photo-slot {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1.5px dashed var(--line-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.team-grid .leader-card.highlight .leader-photo-slot {
  margin-bottom: 0;
  height: 100%;
  min-height: 180px;
}
.leader-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.leader-photo-slot.has-photo {
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.leader-photo-slot.has-photo img {
  object-position: center 15%;
  transition: transform 0.4s var(--ease);
}
.leader-card:hover .leader-photo-slot.has-photo img {
  transform: scale(1.03);
}
.leader-avatar-fallback {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--tint);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.leader-slot-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
}
.leader-info h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
  color: var(--text);
  font-weight: 700;
}
.leader-role {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}
.leader-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
}
@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid .leader-card.highlight { grid-column: span 3; }
}
@media (max-width: 800px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid .leader-card.highlight { grid-column: span 2; display: flex; }
}
@media (max-width: 520px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-grid .leader-card.highlight { grid-column: span 1; }
}

/* ---------- 3D Interactive Depth & Dynamic Parallax Tilt ---------- */
@media (hover: hover) and (pointer: fine) {
  .card, .leader-card, .news-card, .pillars3 a, .pillar-card, .prod-hero-card, .cinematic-mock-frame, .cpanel, .split-cta, .tech-card, .svc-card, .use-card, .stair-card, .val-card {
    transform-style: preserve-3d;
    perspective: 1200px;
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.38s ease, border-color 0.35s ease;
  }
  .card:hover, .leader-card:hover, .news-card:hover, .prod-hero-card:hover, .cinematic-mock-frame:hover, .tech-card:hover, .svc-card:hover, .use-card:hover, .stair-card:hover, .val-card:hover {
    transform: perspective(1200px) translateY(-8px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(16px);
    box-shadow: 0 24px 56px -12px rgba(0, 0, 0, 0.5);
  }
  [data-theme="light"] .card:hover, 
  [data-theme="light"] .leader-card:hover, 
  [data-theme="light"] .news-card:hover, 
  [data-theme="light"] .prod-hero-card:hover,
  [data-theme="light"] .cinematic-mock-frame:hover,
  [data-theme="light"] .tech-card:hover,
  [data-theme="light"] .svc-card:hover,
  [data-theme="light"] .use-card:hover,
  [data-theme="light"] .stair-card:hover,
  [data-theme="light"] .val-card:hover {
    box-shadow: 0 24px 56px -12px rgba(6, 68, 105, 0.16);
  }
  .card > h3, .card > .chips, .card-link, .leader-info, .prod-brand-mark, .prod-desc, .prod-footer-action, .mock-bar, .pillars3 a h3, .pillars3 a .go {
    transform: translateZ(12px);
    transition: transform 0.35s ease;
  }
  .hero-video-stage {
    animation: heroFloat3D 8s ease-in-out infinite alternate;
    will-change: transform;
  }
  @keyframes heroFloat3D {
    0% { transform: perspective(1000px) translateY(0px) rotateX(0deg) rotateY(0deg); }
    50% { transform: perspective(1000px) translateY(-6px) rotateX(1deg) rotateY(-1deg); }
    100% { transform: perspective(1000px) translateY(0px) rotateX(0deg) rotateY(0deg); }
  }
  .btn {
    transform-style: preserve-3d;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  }
  .btn:hover {
    transform: perspective(600px) translateZ(4px);
  }
  .btn:active {
    transform: perspective(600px) translateZ(-2px) scale(0.98);
  }
}

/* Toast Notification Stack */
.toast-stack {
  position: fixed;
  top: calc(var(--header-h) + 16px);
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: min(500px, calc(100vw - 32px));
  pointer-events: none;
}
.toast-card {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--surface-1);
  border: 1.5px solid var(--border);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast-card.toast-success {
  border-color: rgba(6, 68, 105, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(6, 68, 105, 0.25);
}
.toast-card.toast-danger,
.toast-card.toast-error {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(239, 68, 68, 0.25);
}
.toast-card.toast-hiding {
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
}
.toast-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.toast-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.toast-success .toast-icon {
  background: rgba(6, 68, 105, 0.16);
  color: #10b981;
}
.toast-danger .toast-icon,
.toast-error .toast-icon {
  background: rgba(239, 68, 68, 0.16);
  color: #ef4444;
}
.toast-icon svg {
  width: 17px;
  height: 17px;
}
.toast-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
  color: var(--text);
}
.toast-success .toast-text strong {
  color: #10b981;
}
.toast-danger .toast-text strong,
.toast-error .toast-text strong {
  color: #ef4444;
}
.toast-text p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
}
.toast-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  padding: 2px 6px;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.15s, background-color 0.15s;
}
.toast-close:hover {
  color: var(--text);
  background: rgba(125, 125, 125, 0.12);
}
@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (max-width: 600px) {
  .toast-stack {
    top: calc(var(--header-h) + 12px);
    right: 16px;
    left: 16px;
    max-width: calc(100vw - 32px);
  }
}

/* Services & Technology Hero Video - Transparent 3D Stage */
.services-hero-grid,
.tech-hero-grid,
.products-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}
.services-video-stage,
.tech-video-stage,
.products-video-stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.services-video-wrapper,
.tech-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 620px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.products-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.products-video-frame {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #090a0f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.6), 0 0 35px rgba(156, 205, 219, 0.12);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.products-video-frame:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 32px 72px -12px rgba(0, 0, 0, 0.7), 0 0 45px rgba(156, 205, 219, 0.2);
}
[data-theme="light"] .products-video-frame {
  background: #ffffff;
  border: 1px solid rgba(87, 144, 171, 0.20);
  box-shadow: 0 20px 48px -10px rgba(6, 68, 105, 0.16), 0 0 28px rgba(156, 205, 219, 0.12);
}
[data-theme="light"] .products-video-frame:hover {
  box-shadow: 0 28px 60px -10px rgba(6, 68, 105, 0.22), 0 0 38px rgba(156, 205, 219, 0.20);
}
.services-loop-video,
.tech-loop-video {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.2));
  transition: transform 0.4s ease;
}
.products-loop-video {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
}
[data-theme="light"] .services-loop-video,
[data-theme="light"] .tech-loop-video {
  filter: drop-shadow(0 14px 28px rgba(6, 68, 105, 0.12));
}
@media (max-width: 900px) {
  .services-hero-grid,
  .tech-hero-grid,
  .products-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .services-video-stage,
  .tech-video-stage {
    order: -1;
    max-width: 520px;
    margin: 0 auto;
  }
  .products-video-stage {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* Global SVG dimension safeguards across all browsers */
.tp-marquee-item svg {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  flex-shrink: 0 !important;
}
.tp-orbit-badge svg {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  flex-shrink: 0 !important;
}
.ph-icon svg {
  width: 100% !important;
  height: 100% !important;
  max-width: 92px !important;
  max-height: 92px !important;
}

/* ==========================================================================
   Technology Ecosystem Redesign: Modern Cards Grid & Interactive Matrix
   ========================================================================== */
.tech-ecosystem-container {
  margin-top: 32px;
}

.tech-ecosystem-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.tech-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-filter-btn {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--muted, #64748B);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}

.tech-filter-btn:hover {
  border-color: var(--gold);
  color: var(--text);
  background: var(--tint);
}

.tech-filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #020B18;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(6, 68, 105, 0.2);
}

[data-theme="dark"] .tech-filter-btn.active {
  background: var(--gold);
  color: #020B18;
}

.tech-view-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.tech-view-btn {
  background: transparent;
  border: none;
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted, #64748B);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.tech-view-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  display: inline-block;
  vertical-align: middle;
}

.tech-view-btn.active {
  background: var(--tint);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

[data-theme="dark"] .tech-view-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

/* Grid Mode */
.tech-domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  transition: opacity 0.25s ease;
}

@media (max-width: 1080px) {
  .tech-domain-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .tech-domain-grid {
    grid-template-columns: 1fr;
  }
}

.tech-domain-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.tech-domain-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .tech-domain-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.2);
}

.tech-domain-card.featured {
  border-color: var(--line-strong);
  background: var(--surface);
}

[data-theme="dark"] .tech-domain-card.featured {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--surface);
}

.tech-domain-card.featured::before {
  display: none;
}

.tech-domain-ribbon {
  display: none;
}

.tech-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.tech-card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tint);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

.tech-domain-card.featured .tech-card-icon-wrap {
  background: var(--tint);
  border-color: var(--line-strong);
  color: var(--gold);
}

.tech-card-icon-wrap svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  display: inline-block;
  vertical-align: middle;
}

.tech-card-titles {
  flex: 1;
  min-width: 0;
}

.tech-card-domain-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 2px;
  letter-spacing: -0.01em;
  font-family: var(--font-display, inherit);
}

.tech-card-domain-cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted, #64748B);
  margin: 0;
}

.tech-card-count-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--muted, #64748B);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.tech-card-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted, #64748B);
  margin: 0 0 18px;
}

.tech-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tech-pill {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 8px;
  background: var(--tint);
  border: 1px solid var(--line-strong);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.tech-pill:hover {
  background: var(--surface);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

.tech-pill.highlight {
  background: var(--tint);
  border-color: var(--line-strong);
  color: var(--text);
}

.tech-pill.highlight:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--surface);
}

/* Matrix Table View */
.tech-matrix-view {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

.tech-matrix-table-modern {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.tech-matrix-table-modern th {
  padding: 16px 24px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  background: var(--tint);
  color: var(--gold);
  border-bottom: 1px solid var(--line);
}

.tech-matrix-table-modern td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.tech-matrix-table-modern tr:last-child td {
  border-bottom: none;
}

.tech-matrix-table-modern tbody tr {
  transition: background 0.2s ease;
}

.tech-matrix-table-modern tbody tr:hover {
  background: var(--tint);
}

.tech-matrix-domain-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.tech-matrix-domain-name {
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
}

.tech-matrix-domain-cat {
  font-size: 0.72rem;
  color: var(--muted, #64748B);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tech-matrix-table-modern .tech-card-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.tech-matrix-table-modern .tech-card-icon-wrap svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .tech-matrix-table-modern th:nth-child(3),
  .tech-matrix-table-modern td:nth-child(3) {
    display: none;
  }
  .tech-matrix-table-modern th,
  .tech-matrix-table-modern td {
    padding: 14px 16px;
  }
}

/* ==========================================================================
   AI Particle Face Hero Stage (Master Reference Architecture)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: max(640px, 100svh);
  background: transparent;
}

.hero-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 580px;
  margin-left: clamp(36px, 5vw, 72px);
}

/* Face Wrapper (right column, aspect-ratio 939/1070, balanced center-right alignment, zoomed, lifted) */
.ai-face-wrapper {
  position: relative;
  width: min(50vw, calc((100svh - var(--header-h) - 10px) * (939 / 1070)), 650px);
  max-height: calc(100svh - var(--header-h) - 10px);
  aspect-ratio: 939 / 1070;
  margin-top: -75px;
  margin-left: auto;
  margin-right: clamp(14px, 4vw, 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  z-index: 2;
  will-change: transform;
}

.ai-face-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(34, 229, 255, 0.45)) drop-shadow(0 0 16px rgba(34, 229, 255, 0.20));
  user-select: none;
  pointer-events: none;
  will-change: transform, -webkit-mask-position, mask-position;
}

[data-theme="light"] .ai-face-img {
  filter: drop-shadow(0 0 8px rgba(6, 68, 105, 0.30)) drop-shadow(0 0 18px rgba(87, 144, 171, 0.20));
}

.ai-face-overlay-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
  .ai-face-wrapper {
    width: min(46vw, calc((100svh - var(--header-h) - 20px) * (939 / 1070)), 480px);
    margin-top: -35px;
    margin-right: clamp(10px, 2.5vw, 24px);
    opacity: 0.85;
    margin-left: auto;
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  .hero-grid {
    position: relative;
    display: flex;
    flex-direction: column;
  }
  .ai-face-wrapper {
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    width: 85vw;
    max-width: 420px;
    margin-top: 0;
    opacity: 0.35;
    pointer-events: none;
    z-index: 1;
    margin-left: 0;
  }
  .hero-inner {
    position: relative;
    z-index: 2;
    margin-left: 0;
  }
}





/* ==========================================================================
   Universal SVG Icon Dimension Safeguards & Protection
   ========================================================================== */
.tp-marquee-item svg,
.tp-orbit-badge svg,
.tp-channel-row svg,
.tp-channels-list svg,
.tp-bento-card svg,
.crumbs svg,
.ph-icon svg {
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}
.tp-marquee-item svg {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
}
.tp-orbit-badge svg {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
}

/* ==========================================================================
   Bundled TechPanda CRM Workforce Styles (Failsafe & Standalone Support)
   ========================================================================== */
/* =========================================================
   TechPanda CRM — Premium "AI Workforce" Design System
   Design DNA: Warm off-white canvas, deep navy blocks, hot orange accent.
   Tokens matching Master Prompt specification.
   ========================================================= */

.tp-workforce-page {
  /* 2.1 Colour Tokens */
  --tp-bg:            #EEEDEA;  /* warm off-white page canvas */
  --tp-bg-soft:       #F6F5F3;  /* cards on light sections */
  --tp-surface:       #FFFFFF;
  --tp-navy-900:      #2B3557;  /* dark sections, icon circles, primary dark button */
  --tp-navy-700:      #3E4A70;  /* dark section gradient end */
  --tp-navy-500:      #5B678C;  /* footer / CTA band */
  --tp-navy-card:     #34406A;  /* cards inside dark sections */
  --tp-accent:        #E4572E;  /* orange-red: primary CTA, eyebrows, beams */
  --tp-accent-tint:   #FBE3DA;  /* eyebrow chip background */
  --tp-text-strong:   #15171C;
  --tp-text:          #3A3D45;
  --tp-text-muted:    #8A8D96;
  --tp-border:        rgba(20,23,28,0.08);
  --tp-shadow-card:   0 12px 40px -12px rgba(30,40,70,0.18);
  --tp-shadow-float:  0 24px 60px -20px rgba(30,40,70,0.30);

  /* Typography & Layout */
  --tp-font: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tp-radius-card: 16px;
  --tp-radius-container: 26px;
  --tp-radius-pill: 999px;

  background-color: var(--tp-bg);
  color: var(--tp-text);
  font-family: var(--tp-font);
  overflow-x: hidden;
  position: relative;
}

/* Scoped resets, accessibility and focus management */
.tp-workforce-page * {
  box-sizing: border-box;
}

.tp-workforce-page button:focus-visible,
.tp-workforce-page a:focus-visible,
.tp-workforce-page input:focus-visible,
.tp-workforce-page select:focus-visible,
.tp-workforce-page [tabindex]:focus-visible {
  outline: 2px solid var(--tp-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.tp-container {
  width: min(1320px, 100% - 40px);
  margin-inline: auto;
  position: relative;
}

/* Eyebrow tiny pill */
.tp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--tp-radius-pill);
  background: var(--tp-accent-tint);
  color: var(--tp-accent);
  margin-bottom: 16px;
}
.tp-dark-section .tp-eyebrow {
  background: rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Headline rules */
.tp-h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--tp-text-strong);
  margin-bottom: 20px;
}
.tp-h1 .line-1 {
  display: block;
  font-weight: 600;
  color: var(--tp-navy-900);
}
.tp-h1 .line-2 {
  display: block;
  font-weight: 400;
  color: var(--tp-text);
}

.tp-h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--tp-text-strong);
  margin-bottom: 14px;
}
.tp-dark-section .tp-h2 {
  color: #FFFFFF;
}

.tp-lead {
  font-size: 15px;
  line-height: 1.65;
  color: var(--tp-text);
  max-width: 48ch;
  margin-bottom: 28px;
}
.tp-dark-section .tp-lead {
  color: #CBD5E1;
}

/* Buttons */
.tp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tp-accent);
  color: #FFFFFF !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(228, 87, 46, 0.35);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s;
  text-decoration: none;
}
.tp-btn-primary:hover {
  transform: translateY(-2px);
  background: #cc451d;
  box-shadow: 0 6px 18px rgba(228, 87, 46, 0.45);
}
.tp-btn-primary:active,
.tp-btn-ghost-pill:active,
.tp-btn-dark-pill:active,
.tp-usecase-btn:active,
.tp-faq-cat-btn:active {
  transform: scale(0.97) translateY(0) !important;
}
.tp-btn-primary svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}

.tp-btn-dark-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tp-navy-900);
  color: #FFFFFF !important;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--tp-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  text-decoration: none;
}
.tp-btn-dark-pill:hover {
  transform: translateY(-2px);
  background: var(--tp-navy-700);
}

.tp-btn-ghost-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tp-surface);
  color: var(--tp-navy-900) !important;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--tp-radius-pill);
  border: 1px solid var(--tp-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.tp-btn-ghost-pill:hover {
  transform: translateY(-2px);
  border-color: var(--tp-navy-900);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   3.2 HERO SECTION ("Orbit of Integrations")
   ========================================================= */
.tp-hero-section {
  padding: calc(var(--header-h, 72px) + 36px) 0 70px;
  position: relative;
  overflow: hidden !important;
  contain: paint;
  background: linear-gradient(180deg, #E8E7E3 0%, var(--tp-bg) 35%);
}

.tp-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Left Hero Column */
.tp-hero-left {
  position: relative;
  z-index: 3;
}

.tp-btn-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

/* Floating Agent Card & Ghost Stack */
.tp-agent-card-stack {
  position: relative;
  max-width: 440px;
  margin-top: 10px;
}

.tp-agent-card {
  position: relative;
  z-index: 3;
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-card);
  padding: 22px 24px;
  box-shadow: var(--tp-shadow-float);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.tp-agent-card:hover {
  transform: translateY(-3px);
}

.tp-agent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.tp-agent-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--tp-navy-900);
}
.tp-agent-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  position: relative;
}
.tp-agent-indicator::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid #10B981;
  animation: tpPulseRing 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}
@keyframes tpPulseRing {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.tp-agent-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--tp-text);
  margin-bottom: 14px;
}

.tp-agent-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tp-tag-chip {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--tp-bg-soft);
  color: var(--tp-navy-700);
  border: 1px solid var(--tp-border);
}

/* Ghost cards behind */
.tp-ghost-card-1 {
  position: absolute;
  top: 10px;
  left: 12px;
  right: -12px;
  bottom: -10px;
  z-index: 2;
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-card);
  opacity: 0.55;
  filter: blur(0.5px);
  pointer-events: none;
}
.tp-ghost-card-2 {
  position: absolute;
  top: 20px;
  left: 24px;
  right: -24px;
  bottom: -20px;
  z-index: 1;
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-card);
  opacity: 0.28;
  filter: blur(1.5px);
  pointer-events: none;
}

/* Drifting micro-code fragment */
.tp-drifting-code {
  position: absolute;
  bottom: -32px;
  right: -20px;
  font-family: monospace;
  font-size: 10px;
  color: var(--tp-text-muted);
  opacity: 0.6;
  pointer-events: none;
}

/* Right Column: Visual Orbit Stage & Centered Stats */
.tp-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  width: 100%;
}

/* Vertical Stat Stack (Centered in Orbit) */
.tp-hero-stats {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  width: auto;
}
.tp-stat-item {
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-card);
  padding: 16px 24px;
  box-shadow: 0 10px 28px -6px rgba(43, 53, 87, 0.12);
  min-width: 195px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tp-stat-item:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px -6px rgba(43, 53, 87, 0.20);
}
.tp-stat-number {
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  color: var(--tp-navy-900);
  margin-bottom: 4px;
}
.tp-stat-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tp-text-muted);
}

/* =========================================================
   3.2 SIGNATURE ORBIT ARC ANIMATION
   ========================================================= */
.tp-orbit-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(540px, 100%);
  height: min(540px, 100%);
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.tp-orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(43, 53, 87, 0.14);
  box-shadow: inset 0 0 80px rgba(43, 53, 87, 0.05);
}

.tp-orbit-center-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 87, 46, 0.12) 0%, rgba(43, 53, 87, 0.06) 50%, transparent 70%);
  filter: blur(30px);
}

/* Orbit Node container */
.tp-orbit-nodes-track {
  position: absolute;
  inset: 0;
  animation: tpOrbitSpin 28s linear infinite;
}
@keyframes tpOrbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.tp-orbit-badge {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--tp-navy-900);
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px -4px rgba(43, 53, 87, 0.35);
  display: grid;
  place-items: center;
  color: #FFFFFF;
  margin-top: -28px;
  margin-left: -28px;
  animation: tpCounterSpin 28s linear infinite;
}
@keyframes tpCounterSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}
.tp-orbit-badge svg {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  flex-shrink: 0 !important;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Comet tails */
.tp-orbit-badge::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(228, 87, 46, 0.45), transparent);
  transform-origin: left center;
  transform: translateY(-50%) rotate(180deg);
  pointer-events: none;
}

/* Positioning 6 integration nodes along 360 degrees */
.tp-node-1 { top: 50%; left: 95%; }  /* 0 deg */
.tp-node-2 { top: 89%; left: 72%; }  /* 60 deg */
.tp-node-3 { top: 89%; left: 28%; }  /* 120 deg */
.tp-node-4 { top: 50%; left: 5%; }   /* 180 deg */
.tp-node-5 { top: 11%; left: 28%; }  /* 240 deg */
.tp-node-6 { top: 11%; left: 72%; }  /* 300 deg */

/* =========================================================
   3.3 LOGO MARQUEE (Navy Band)
   ========================================================= */
.tp-marquee-section {
  background: var(--tp-navy-900);
  padding: 24px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tp-marquee-track {
  display: flex;
  gap: 50px;
  align-items: center;
  width: max-content;
  animation: tpMarquee 35s linear infinite;
}
.tp-marquee-section:hover .tp-marquee-track {
  animation-play-state: paused;
}
@keyframes tpMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.tp-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.tp-marquee-item svg {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  flex-shrink: 0 !important;
  opacity: 0.85;
}

.tp-marquee-fade-left,
.tp-marquee-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  pointer-events: none;
  z-index: 2;
}
.tp-marquee-fade-left {
  left: 0;
  background: linear-gradient(90deg, var(--tp-navy-900), transparent);
}
.tp-marquee-fade-right {
  right: 0;
  background: linear-gradient(-90deg, var(--tp-navy-900), transparent);
}

/* =========================================================
   3.4 DARK SECTION ("AI Team Gets The Job Done")
   ========================================================= */
.tp-dark-section {
  background: linear-gradient(180deg, var(--tp-navy-900) 0%, var(--tp-navy-700) 100%);
  color: #FFFFFF;
  border-radius: var(--tp-radius-container);
  padding: clamp(50px, 8vw, 84px) clamp(24px, 5vw, 60px);
  margin: 60px auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px -15px rgba(20, 25, 45, 0.5);
}

.tp-dark-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

/* Step list */
.tp-step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}
.tp-step-item {
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.tp-step-item.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(228, 87, 46, 0.45);
}
.tp-step-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--tp-accent);
  opacity: 0;
  transition: opacity 0.2s;
}
.tp-step-item.active .tp-step-progress-bar {
  opacity: 1;
}

.tp-step-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: #F1F5F9;
}
.tp-step-desc {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
  color: #CBD5E1;
  transition: max-height 0.35s ease, opacity 0.35s ease, margin-top 0.35s ease;
}
.tp-step-item.active .tp-step-desc {
  max-height: 80px;
  opacity: 1;
  margin-top: 8px;
}

/* Data Flow Card (Right Column) */
.tp-dataflow-card {
  background: var(--tp-navy-card);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--tp-radius-card);
  padding: 30px;
  box-shadow: 0 20px 48px -12px rgba(10, 15, 30, 0.5);
  position: relative;
}

.tp-source-chips {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.tp-source-chip {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #E2E8F0;
}

/* SVG circuit stage */
.tp-circuit-stage {
  width: 100%;
  height: 120px;
  display: block;
  margin: 0 auto;
}

/* Glowing Orb */
.tp-glowing-orb-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin: -10px 0 16px;
}
.tp-glowing-orb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFA280 15%, var(--tp-accent) 70%);
  box-shadow: 0 0 24px var(--tp-accent), 0 0 48px rgba(228, 87, 46, 0.6);
  animation: tpOrbPulse 2.4s ease-in-out infinite;
}
@keyframes tpOrbPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 12px var(--tp-accent)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 24px #FFA280); }
}

.tp-orange-beam {
  width: 3px;
  height: 38px;
  background: linear-gradient(180deg, var(--tp-accent), #FFFFFF);
  box-shadow: 0 0 12px var(--tp-accent);
}

/* Result Card */
.tp-flow-result-card {
  background: #FFFFFF;
  color: var(--tp-text-strong);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.tp-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.tp-result-header strong {
  font-size: 13px;
  color: var(--tp-navy-900);
}
.tp-result-badge {
  font-size: 9px;
  font-weight: 700;
  background: var(--tp-accent-tint);
  color: var(--tp-accent);
  padding: 3px 8px;
  border-radius: 4px;
}
.tp-result-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tp-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  padding: 6px 10px;
  background: var(--tp-bg-soft);
  border-radius: 6px;
  border: 1px solid var(--tp-border);
}

/* =========================================================
   3.5 KEY FEATURES BENTO GRID (Light)
   ========================================================= */
.tp-bento-section {
  padding: 70px 0;
}
.tp-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 40px;
}

.tp-bento-card {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-card);
  padding: 28px 24px;
  box-shadow: var(--tp-shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}
.tp-bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 46px -12px rgba(30, 40, 70, 0.22);
}

.tp-bento-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--tp-navy-900);
  margin-bottom: 8px;
}
.tp-bento-card p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--tp-text);
  margin-bottom: 20px;
}

.tp-bento-img-slot {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--tp-border);
  margin-top: auto;
}
.tp-mockup-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid var(--tp-border);
  font-size: 10px;
  font-family: monospace;
  color: var(--tp-text-muted);
}
[style*="background: var(--tp-navy-900)"] .tp-mockup-browser-bar {
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
}
.tp-mock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.dot-r { background: #EF4444; }
.dot-y { background: #F59E0B; }
.dot-g { background: #10B981; }
.tp-mock-address {
  margin-left: 6px;
  letter-spacing: 0.02em;
}
.tp-bento-img-slot img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.tp-bento-card:hover .tp-bento-img-slot img {
  transform: scale(1.06);
}

.tp-stair-accent-bar {
  width: 32px;
  height: 3px;
  background: var(--tp-accent);
  border-radius: 2px;
  margin-bottom: 14px;
}

.tp-channels-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.tp-channel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--tp-accent-tint);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tp-text-strong);
}

/* =========================================================
   3.9 STAIRCASE STATS ("Scaling Without Hiring")
   ========================================================= */
.tp-staircase-section {
  padding: 60px 0 80px;
}
.tp-staircase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: flex-start;
  margin-top: 40px;
}
.tp-stair-card {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-card);
  padding: 28px 22px;
  box-shadow: var(--tp-shadow-card);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.tp-stair-card:hover {
  transform: translateY(-4px);
}
.tp-stair-1 { transform: translateY(0); }
.tp-stair-2 { transform: translateY(22px); }
.tp-stair-3 { transform: translateY(44px); }
.tp-stair-4 { transform: translateY(66px); }

.tp-stair-number {
  font-size: 34px;
  font-weight: 600;
  color: var(--tp-navy-900);
  line-height: 1.1;
  margin-bottom: 6px;
}
.tp-stair-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--tp-text-muted);
}

/* =========================================================
   3.9 USE CASES & SPLIT PROBLEM/SOLUTION PANELS
   ========================================================= */
.tp-usecase-section {
  padding: 80px 0;
}
.tp-usecase-container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: flex-start;
}

.tp-usecase-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tp-usecase-btn {
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--tp-text);
  cursor: pointer;
  border-left: 4px solid transparent;
  transition: all 0.25s ease;
}
.tp-usecase-btn.active {
  border-left-color: var(--tp-accent);
  color: var(--tp-navy-900);
  background: var(--tp-bg-soft);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.tp-usecase-card {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-card);
  padding: 34px;
  box-shadow: var(--tp-shadow-card);
}
.tp-stat-chips-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.tp-chip-impact {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--tp-radius-pill);
  background: var(--tp-accent-tint);
  color: var(--tp-accent);
}

.tp-split-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.tp-panel-problem {
  background: var(--tp-bg-soft);
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  padding: 20px;
}
.tp-panel-solution {
  background: var(--tp-navy-900);
  color: #FFFFFF;
  border-radius: 12px;
  padding: 20px;
}
.tp-panel-problem h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tp-accent);
  margin-bottom: 8px;
}
.tp-panel-solution h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93C5FD;
  margin-bottom: 8px;
}
.tp-panel-problem p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--tp-text);
}
.tp-panel-solution p {
  font-size: 12px;
  line-height: 1.5;
  color: #E2E8F0;
}
.tp-pill-action {
  display: inline-block;
  margin-top: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--tp-radius-pill);
  background: rgba(0, 0, 0, 0.08);
}
.tp-panel-solution .tp-pill-action {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

/* =========================================================
   3.9 STICKY SCROLLYTELLING (3 Chapters)
   ========================================================= */
.tp-scrolly-section {
  padding: 70px 0;
}
.tp-scrolly-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;
  position: relative;
}

.tp-scrolly-chapters {
  display: flex;
  flex-direction: column;
  gap: 120px;
  padding-bottom: 80px;
}
.tp-chapter-block {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tp-sticky-panel-holder {
  position: sticky;
  top: calc(var(--header-h, 72px) + 24px);
  height: 520px;
  align-self: flex-start;
}

.tp-scrolly-mock {
  position: absolute;
  inset: 0;
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-card);
  box-shadow: var(--tp-shadow-float);
  padding: 26px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.tp-scrolly-mock.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Chapter 1: Agent Setup Form Mock */
.tp-mock-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tp-mock-input {
  background: var(--tp-bg-soft);
  border: 1px solid var(--tp-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-family: inherit;
  color: var(--tp-text-strong);
}

/* Chapter 2: Node Graph Mock */
.tp-node-graph {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.tp-node-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--tp-bg-soft);
  border: 1px solid var(--tp-border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}
.tp-node-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--tp-accent-tint);
  color: var(--tp-accent);
}

/* Chapter 3: Waiting Approval Mock */
.tp-approval-card {
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  padding: 20px;
  background: var(--tp-surface);
}
.tp-urgent-badge {
  background: #FEE2E2;
  color: #DC2626;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}

/* =========================================================
   3.6 BOOK-A-DEMO & FAQ & FOOTER WATERMARK
   ========================================================= */
.tp-faq-section {
  padding: 70px 0;
}
.tp-faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  margin-top: 36px;
}
.tp-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tp-faq-item {
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  background: var(--tp-surface);
  overflow: hidden;
  transition: all 0.25s ease;
}
.tp-faq-item.open {
  border-color: rgba(43, 53, 87, 0.25);
  box-shadow: 0 6px 20px rgba(43, 53, 87, 0.06);
}
button.tp-faq-header {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--tp-navy-900);
  font-family: inherit;
  transition: background-color 0.2s;
}
button.tp-faq-header:hover {
  background: rgba(43, 53, 87, 0.02);
}
.tp-faq-header span:last-child {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s ease, color 0.25s ease;
}
.tp-faq-item.open .tp-faq-header span:last-child {
  transform: rotate(45deg);
  color: var(--tp-accent);
}
.tp-faq-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 22px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--tp-text);
  transition: max-height 0.3s ease, padding-bottom 0.3s ease;
}
.tp-faq-item.open .tp-faq-body {
  max-height: 160px;
  padding-bottom: 18px;
}

/* Toast Notification */
.tp-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  background: var(--tp-navy-900);
  color: #FFFFFF;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  pointer-events: none;
}
.tp-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Giant Watermark Wordmark */
.tp-watermark-wrap {
  width: 100%;
  overflow: hidden;
  padding: 40px 0 20px;
  background: var(--tp-navy-900);
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.tp-watermark-text {
  font-size: clamp(4rem, 16vw, 14rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  animation: tpWatermarkScroll 45s linear infinite;
}
@keyframes tpWatermarkScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-35%); }
}

/* =========================================================
   RESPONSIVE OVERRIDES
   ========================================================= */
@media (max-width: 1080px) {
  .tp-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .tp-hero-visual { min-height: 440px; margin-top: 10px; }
  .tp-hero-stats { align-items: center; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 14px; }
  .tp-stat-item { min-width: 150px; padding: 12px 18px; }
  .tp-bento-grid { grid-template-columns: repeat(2, 1fr); }
  .tp-staircase-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .tp-stair-1, .tp-stair-2, .tp-stair-3, .tp-stair-4 { transform: none; }
  .tp-dark-grid { grid-template-columns: 1fr; }
  .tp-usecase-container { grid-template-columns: 1fr; }
  .tp-faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .tp-hero-visual { min-height: 380px; }
  .tp-orbit-stage {
    width: min(380px, 92vw);
    height: min(380px, 92vw);
    opacity: 0.45;
  }
  .tp-scrolly-wrapper { grid-template-columns: 1fr; }
  .tp-sticky-panel-holder { position: relative; top: 0; height: auto; min-height: 440px; margin-bottom: 30px; }
  .tp-bento-grid { grid-template-columns: 1fr; }
  .tp-staircase-grid { grid-template-columns: 1fr; }
  .tp-split-panels { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .tp-orbit-nodes-track,
  .tp-orbit-badge,
  .tp-marquee-track,
  .tp-watermark-text {
    animation: none !important;
  }
}

