/* Vạn Vật Số — v1.0 */
:root {
  --bg-0: #030a1a;
  --bg-1: #06122a;
  --bg-2: #0a1d3e;
  --bg-3: #10295a;
  --c-100: #e3fbff;
  --c-200: #b5f1fb;
  --c-300: #84e4f6;
  --c-400: #45cbe9;
  --c-500: #1ea5d6;
  --az-400: #5aa8f0;
  --az-500: #2f7fd6;
  --teal-400: #43d8c4;
  --text-1: #ecf7fc;
  --text-2: #b4cddd;
  --text-3: #8eaec4;
  --danger: #ffa3a3;
  --success: #8ef0cf;
  --line: rgba(150, 225, 250, 0.14);
  --line-strong: rgba(150, 225, 250, 0.3);

  --glass-fill: linear-gradient(160deg, rgba(150, 220, 255, 0.12), rgba(110, 180, 255, 0.045) 62%);
  --glass-fill-strong: linear-gradient(160deg, rgba(150, 220, 255, 0.17), rgba(110, 180, 255, 0.07) 62%);
  --glass-rim: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 0 1px rgba(150, 225, 250, 0.13);
  --glass-drop: 0 30px 60px -30px rgba(0, 4, 16, 0.9);
  --blur: 18px;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;

  --font-display: "Bricolage Grotesque Variable", "Be Vietnam Pro", system-ui, sans-serif;
  --font-text: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-hero: clamp(2.25rem, 1.15rem + 3.7vw, 4.6rem);
  --fs-h1: clamp(2.2rem, 1.35rem + 3vw, 3.9rem);
  --fs-h2: clamp(1.85rem, 1.3rem + 1.9vw, 2.9rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-xs: 0.8125rem;

  --space-section: clamp(80px, 9vw, 128px);
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); scrollbar-color: rgba(132, 228, 246, 0.35) var(--bg-0); scrollbar-width: thin; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--c-300);
  overflow-x: clip;
}
::selection { background: rgba(132, 228, 246, 0.85); color: #03112a; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: rgba(132, 228, 246, 0.28); border-radius: 10px; border: 2px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: rgba(132, 228, 246, 0.45); }

img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 620; line-height: 1.14; letter-spacing: -0.02em; margin: 0; text-wrap: balance; font-optical-sizing: auto; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--c-200); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--c-100); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-300); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--c-300); color: #03112a; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; transition: top 0.2s var(--ease); }
.skip-link:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* The world behind the glass: light pools taken from the logo */
.world { position: fixed; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(55vmax 38vmax at 8% 4%, rgba(30, 165, 214, 0.26), transparent 62%),
  radial-gradient(48vmax 36vmax at 96% 34%, rgba(47, 127, 214, 0.2), transparent 62%),
  radial-gradient(60vmax 40vmax at 40% 108%, rgba(67, 216, 196, 0.1), transparent 62%),
  linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%); }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--space-section); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { margin-top: 18px; color: var(--text-2); font-size: 1.125rem; max-width: 62ch; }
.section-head.row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- Glass ---------- */
.glass {
  position: relative;
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  box-shadow: var(--glass-rim), var(--glass-drop);
  border-radius: var(--r-lg);
  isolation: isolate;
}
.glass.spec::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(225, 250, 255, 0.13), transparent 65%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
@media (hover: hover) { .glass.spec:hover::after { opacity: 1; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: linear-gradient(160deg, #11284f, #0b1c3c); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--font-text); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s;
}
.btn .icon { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn-primary { background: var(--c-300); color: #03122c; box-shadow: 0 10px 24px -12px rgba(132, 228, 246, 0.7); }
.btn-primary:hover { background: var(--c-200); color: #03122c; transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(132, 228, 246, 0.75); }
.btn-primary:hover .icon { transform: translateX(3px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: rgba(150, 220, 255, 0.08); color: var(--text-1); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { background: rgba(150, 220, 255, 0.15); color: var(--c-100); }
.btn-sm { min-height: 40px; padding: 9px 18px; font-size: 0.9375rem; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; cursor: progress; transform: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--c-200); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.35s var(--ease);
  background: rgba(4, 11, 28, 0.88); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 -1px 0 rgba(150, 220, 255, 0.12), 0 10px 30px -10px rgba(0, 4, 16, 0.8); }
.site-header[data-scrolled="true"]::before, .site-header.is-solid::before { opacity: 1; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text-1); margin-right: auto; }
.brand img { width: 58px; height: auto; }
.brand-name { font-family: var(--font-display); font-weight: 650; font-size: 1.25rem; letter-spacing: -0.01em; }
.main-nav > ul { display: flex; align-items: center; gap: 6px; }
.main-nav a, .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; border: 0; background: none; cursor: pointer;
  color: var(--text-2); font-weight: 500; font-size: 0.975rem; text-decoration: none; transition: color 0.2s, background-color 0.2s;
}
.main-nav a:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { color: var(--text-1); background: rgba(150, 220, 255, 0.08); }
.main-nav a[aria-current="page"], .nav-trigger.is-current { color: var(--c-100); }
.nav-trigger .icon { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.nav-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.has-menu { position: relative; }
.mega {
  position: absolute; top: calc(100% + 12px); left: 50%; width: min(620px, 90vw); padding: 10px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  transform: translate(-50%, -6px); opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease), transform 0.35s var(--ease), visibility 0.25s;
  background: rgba(10, 29, 62, 0.72);
}
.mega[data-open="true"] { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega a.mega-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px; border-radius: var(--r-md); color: var(--text-1); }
.mega a.mega-item:hover { background: rgba(150, 220, 255, 0.09); }
.mega-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none; background: rgba(132, 228, 246, 0.12); color: var(--c-300); box-shadow: inset 0 0 0 1px var(--line); }
.mega-icon .icon { width: 20px; height: 20px; }
.mega-text { display: grid; gap: 2px; }
.mega-text strong { font-weight: 600; font-size: 1rem; }
.mega-text span { color: var(--text-3); font-size: var(--fs-small); line-height: 1.45; }
.menu-toggle { display: none; width: 44px; height: 44px; place-items: center; border-radius: 12px; border: 0; background: rgba(150, 220, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.menu-toggle .icon { width: 22px; height: 22px; }
.mobile-nav { position: fixed; inset: var(--header-h) 0 0; z-index: 49; padding: 24px var(--gutter) 40px; overflow-y: auto;
  background: rgba(4, 12, 30, 0.86); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.mobile-nav ul { display: grid; gap: 4px; }
.mobile-nav a:not(.btn) { display: flex; align-items: center; gap: 14px; padding: 14px 4px; color: var(--text-1); text-decoration: none; font-size: 1.125rem; border-bottom: 1px solid var(--line); }
.mobile-nav .sub a:not(.btn) { font-size: 1rem; color: var(--text-2); padding-left: 16px; }
.mobile-nav .btn { margin-top: 28px; width: 100%; }
@media (max-width: 900px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: grid; }
}
@media (min-width: 901px) { .mobile-nav { display: none !important; } }

/* ---------- Hero (home): logo | copy ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 24px) 0 80px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; -webkit-mask: linear-gradient(180deg, #000 55%, transparent); mask: linear-gradient(180deg, #000 55%, transparent);
  background: radial-gradient(34% 46% at 28% 48%, rgba(30, 165, 214, 0.24), transparent 70%), radial-gradient(28% 34% at 78% 40%, rgba(67, 216, 196, 0.08), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(28px, 4.5vw, 72px); align-items: center; }
.hero-logo { position: relative; justify-self: center; width: min(100%, 760px, calc((100svh - 220px) * 1.857)); aspect-ratio: 1820 / 980; }
.hero-logo img { width: 100%; height: 100%; animation: logo-in 1.4s var(--ease) both; }
.hero-sweep { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(100deg, transparent 38%, rgba(235, 252, 255, 0.85) 50%, transparent 62%) no-repeat;
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-mask: var(--logo-mask) center / contain no-repeat; mask: var(--logo-mask) center / contain no-repeat;
  animation: sweep 2.4s cubic-bezier(0.45, 0.05, 0.25, 1) 0.7s both; }
.hero-copy { display: grid; gap: clamp(18px, 2.4vh, 28px); justify-items: start; }
.hero-title { font-size: clamp(2.2rem, 1.1rem + 2.7vw, 4rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; max-width: 13ch; }
.hero-lead { color: var(--text-2); font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem); max-width: 46ch; }
.hero-links { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-links a { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); text-decoration: none; color: var(--text-1); background: rgba(150, 220, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.25s, box-shadow 0.25s; }
.hero-links a:hover { background: rgba(150, 220, 255, 0.11); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-1); }
.hl-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; color: var(--c-300); background: rgba(132, 228, 246, 0.12); }
.hl-icon .icon { width: 18px; height: 18px; }
.hl-text { display: grid; gap: 1px; min-width: 0; }
.hl-text strong { font-weight: 600; font-size: 0.975rem; line-height: 1.35; }
.hl-text span { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; color: var(--text-3); font-size: var(--fs-xs); text-decoration: none; letter-spacing: 0.02em; }
.scroll-cue .icon { width: 18px; height: 18px; animation: nudge 2.4s var(--ease) infinite; }
.scroll-cue:hover { color: var(--text-1); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-logo { width: min(86vw, 520px); }
  .hero { padding-bottom: 72px; }
}
@media (max-width: 600px) {
  .hero-copy { display: flex; flex-direction: column; }
  .hero-actions { order: 3; width: 100%; margin-top: 4px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; text-align: center; white-space: nowrap; padding-inline: 18px; }
  /* the services section right below lists the same four services */
  .hero-links { display: none; }
}
@keyframes logo-in { from { opacity: 0.35; filter: blur(10px) saturate(60%); transform: scale(0.97); } to { opacity: 1; filter: none; transform: none; } }
@keyframes sweep { from { background-position: 100% 0; } to { background-position: -15% 0; } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- Services: full-bleed accordion (vertical → horizontal titles) ---------- */
.xp-card { --hue: 132, 228, 246; }
.xp-card[data-hue="azure"] { --hue: 90, 168, 240; }
.xp-card[data-hue="teal"] { --hue: 67, 216, 196; }
.xp-card[data-hue="ice"] { --hue: 181, 241, 251; }
.xp-intro p { margin-top: 14px; color: var(--text-2); font-size: 1.05rem; line-height: 1.55; max-width: 40ch; }
.xp-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: rgb(var(--hue)); background: rgba(var(--hue), 0.12); box-shadow: inset 0 0 0 1px rgba(var(--hue), 0.32); }
.xp-icon .icon { width: 22px; height: 22px; }
.xp-name { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.3rem); }
.xp-name a { color: var(--text-1); text-decoration: none; }
.xp-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.xp-name a:focus-visible { outline: none; }
.xp-card:has(.xp-name a:focus-visible) { box-shadow: inset 0 0 0 2px var(--c-300); }
.xp-line { color: rgb(var(--hue)); font-weight: 500; }
.xp-desc { color: var(--text-1); line-height: 1.6; }
.xp-points { display: grid; gap: 8px; }
.xp-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; line-height: 1.45; color: var(--text-2); }
.xp-points .icon { flex: none; width: 16px; height: 16px; margin-top: 3px; color: rgb(var(--hue)); }
.xp-cta { position: relative; z-index: 2; justify-self: start; margin-top: 6px; }
.xp-content { display: grid; gap: 12px; align-content: start; }
.xp-art .art { width: 100%; height: auto; }

/* Desktop with a pointer: full-screen panels */
@media (min-width: 901px) and (hover: hover) {
  .services { height: 100vh; height: 100svh; min-height: 620px; padding: var(--header-h) 0 0; display: flex; flex-direction: column; }
  .xp-intro { flex: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: clamp(18px, 3.5vh, 40px) clamp(72px, 6vw, 96px) clamp(16px, 2.6vh, 28px) clamp(28px, 2.8vw, 52px); }
  .xp-intro h2 { font-size: clamp(2rem, 1.3rem + 1.8vw, 3.1rem); line-height: 1.05; }
  .xp-intro h2 br { display: none; }
  .xp-intro p { margin-top: 0; max-width: 46ch; }
  .xp-grid { display: flex; flex: 1; min-height: 0; border-top: 1px solid rgba(160, 220, 255, 0.1); }
  .xp-card { --gx: 70%; --gy: 40%; position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; isolation: isolate; cursor: pointer;
    border-left: 1px solid rgba(160, 220, 255, 0.1);
    background: linear-gradient(180deg, rgba(3, 10, 26, 0.12), rgba(var(--hue), 0.06) 62%, rgba(var(--hue), 0.15));
    box-shadow: inset 0 2px 0 rgba(var(--hue), 0.28);
    transition: flex-grow 1s cubic-bezier(0.76, 0, 0.24, 1), box-shadow 0.8s var(--ease); }
  .xp-card:nth-child(2) { --gx: 30%; --gy: 55%; }
  .xp-card:nth-child(3) { --gx: 62%; --gy: 30%; }
  .xp-card:nth-child(4) { --gx: 38%; --gy: 62%; }
  .xp-card:first-child { border-left: 0; }
  /* atmosphere: tinted glow + fine grid, fades in on the open panel */
  .xp-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.9s var(--ease);
    background:
      radial-gradient(60% 55% at var(--gx) var(--gy), rgba(var(--hue), 0.24), transparent 72%),
      linear-gradient(rgba(var(--hue), 0.05) 1px, transparent 1px) 0 0 / 56px 56px,
      linear-gradient(90deg, rgba(var(--hue), 0.05) 1px, transparent 1px) 0 0 / 56px 56px,
      linear-gradient(0deg, rgba(3, 10, 26, 0.7), rgba(3, 10, 26, 0.12) 65%, rgba(3, 10, 26, 0.04)); }
  .xp-card::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.5s;
    background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--hue), 0.14), transparent 65%); }
  .xp-card:hover::after { opacity: 1; }
  .xp-card.is-active { flex-grow: 4.2; box-shadow: inset 0 3px 0 rgba(var(--hue), 0.95); }
  .xp-card.is-active::before { opacity: 1; }

  /* Ghost numeral behind the open panel */
  .xp-ghost { position: absolute; right: clamp(24px, 3vw, 56px); bottom: -0.16em; z-index: -1; font: 700 clamp(12rem, 30vw, 30rem)/0.8 var(--font-display); letter-spacing: -0.06em; color: transparent;
    -webkit-text-stroke: 1px rgba(var(--hue), 0.2); opacity: 0; transform: translate3d(70px, 0, 0); pointer-events: none; user-select: none;
    transition: opacity 0.3s, transform 0.4s; }
  .xp-card.is-active .xp-ghost { opacity: 1; transform: translate3d(calc(var(--px, 0) * -22px), calc(var(--py, 0) * -14px), 0); transition: opacity 1s 0.35s var(--ease), transform 1.3s 0.3s var(--ease); }

  /* Collapsed: vertical title bottom-up, number above it */
  .xp-vert { position: absolute; left: clamp(18px, 1.8vw, 30px); bottom: clamp(40px, 7vh, 64px); max-height: 46vh; margin: 0;
    writing-mode: vertical-rl; transform: rotate(180deg);
    font-family: var(--font-display); font-weight: 620; letter-spacing: -0.015em; line-height: 1.05;
    font-size: clamp(1.7rem, 1.1rem + 1.3vw, 2.6rem); color: rgba(235, 248, 255, 0.92);
    transition: opacity 0.5s 0.45s, transform 0.7s var(--ease) 0.4s, color 0.35s; }
  .xp-card:not(.is-active):hover .xp-vert { color: rgb(var(--hue)); transform: rotate(180deg) translateX(-8px); transition-delay: 0s; }
  .xp-num { position: absolute; left: clamp(20px, 2vw, 34px); bottom: clamp(14px, 3vh, 30px); font: 600 0.82rem/1 var(--font-display); letter-spacing: 0.12em; color: rgba(var(--hue), 0.85); font-variant-numeric: tabular-nums; transition: opacity 0.4s 0.4s; }
  .xp-card.is-active .xp-vert { opacity: 0; transform: rotate(180deg) translateX(-18px); transition: opacity 0.22s, transform 0.4s; }
  .xp-card.is-active .xp-num { opacity: 0; transition-delay: 0s; transition-duration: 0.2s; }

  /* Open: title lies horizontal, content cascades in */
  .xp-content { position: absolute; left: clamp(28px, 2.8vw, 52px); bottom: clamp(40px, 7vh, 64px); width: min(400px, 30vw); gap: 10px; pointer-events: none; }
  .xp-card.is-active .xp-content { pointer-events: auto; }
  .xp-content > *, .xp-points li { opacity: 0; transform: translate3d(0, 26px, 0); filter: blur(6px);
    transition: opacity 0.22s, transform 0.3s, filter 0.22s; }
  .xp-card.is-active .xp-content > *, .xp-card.is-active .xp-points li { opacity: 1; transform: none; filter: none;
    transition: opacity 0.8s var(--ease) var(--d, 0.5s), transform 1.1s var(--ease) var(--d, 0.5s), filter 0.8s var(--ease) var(--d, 0.5s); }
  .xp-content > :nth-child(1) { --d: 0.5s; }
  .xp-content > :nth-child(2) { --d: 0.58s; }
  .xp-content > :nth-child(3) { --d: 0.66s; }
  .xp-content > :nth-child(4) { --d: 0.74s; }
  .xp-content > :nth-child(5) { --d: 0.82s; }
  .xp-content > :nth-child(6) { --d: 1.05s; }
  .xp-points li:nth-child(1) { --d: 0.84s; }
  .xp-points li:nth-child(2) { --d: 0.92s; }
  .xp-points li:nth-child(3) { --d: 1s; }
  .xp-points li:nth-child(4) { --d: 1.08s; }
  .xp-content .xp-icon { margin-bottom: 6px; }
  .xp-desc { font-size: 0.98rem; }

  /* Art: fixed box (no reflow while the panel grows), floats, follows the pointer */
  /* open panel = 4.2 / 7.2 of the viewport; keep the art inside it and clear of the dot nav */
  .xp-art { position: absolute; top: 0; bottom: 0; left: calc(clamp(28px, 2.8vw, 52px) + min(400px, 30vw) + 40px);
    width: min(500px, calc(58.3vw - clamp(28px, 2.8vw, 52px) - min(400px, 30vw) - 40px - 84px));
    display: grid; place-items: center; padding: 24px 0; pointer-events: none;
    opacity: 0; transform: translate3d(60px, 0, 0) scale(0.92); transition: opacity 0.25s, transform 0.4s; }
  .xp-art .art { overflow: visible; width: 100%; height: auto; filter: drop-shadow(0 22px 44px rgba(var(--hue), 0.2));
    translate: calc(var(--px, 0) * 16px) calc(var(--py, 0) * 12px); animation: xp-float 7s ease-in-out infinite; transition: translate 0.5s var(--ease); }
  .xp-card.is-active .xp-art { opacity: 1; transform: none; transition: opacity 1s 0.55s var(--ease), transform 1.4s 0.5s var(--ease); }
}
@keyframes xp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (min-width: 901px) and (hover: hover) and (max-height: 760px) {
  .xp-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

/* Touch or narrow: stacked cards, everything visible */
@media (hover: none), (max-width: 900px) {
  .xp-intro { width: min(100% - 2 * var(--gutter), 1240px - 2 * var(--gutter)); margin: 0 auto clamp(28px, 5vw, 44px); }
  .xp-grid { display: grid; gap: 16px; width: min(100% - 2 * var(--gutter), 1240px - 2 * var(--gutter)); margin-inline: auto; }
  .xp-card { position: relative; overflow: hidden; display: grid; gap: 18px; padding: clamp(20px, 4vw, 28px); border-radius: var(--r-lg);
    background: linear-gradient(165deg, rgba(var(--hue), 0.16), rgba(var(--hue), 0.035) 60%), var(--glass-fill);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(150%); backdrop-filter: blur(var(--blur)) saturate(150%); box-shadow: var(--glass-rim), var(--glass-drop); }
  .xp-vert, .xp-num, .xp-ghost { display: none; }
  .xp-art { order: 2; max-width: 420px; }
  .xp-content { display: contents; }
  .xp-content > .xp-icon { order: 0; }
  .xp-name { order: 0; font-size: 1.5rem; }
  .xp-line { order: 1; margin-top: -10px; }
  .xp-desc, .xp-points, .xp-cta { order: 3; }
}

/* ---------- Project cards ---------- */
.projects::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(45% 40% at 70% 30%, rgba(47, 127, 214, 0.16), transparent 70%); }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.pcard { display: flex; flex-direction: column; overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.pcard:hover { transform: translateY(-3px); }
.pcard:focus-within { box-shadow: var(--glass-rim), var(--glass-drop), 0 0 0 2px var(--c-300); }
.pcard-art { position: relative; padding: 20px 20px 0; }
.pcard-art .art { width: 100%; height: auto; aspect-ratio: 480 / 300; }
.pcard-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 24px 24px; flex: 1; }
.pcard-title { font-size: 1.3rem; }
.pcard-title a { color: var(--text-1); text-decoration: none; }
.pcard-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pcard-title a:focus-visible { outline: none; }
.pcard-summary { color: var(--text-2); font-size: var(--fs-small); line-height: 1.55; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; color: var(--c-200); background: rgba(132, 228, 246, 0.1); box-shadow: inset 0 0 0 1px rgba(132, 228, 246, 0.22); }
.specs { margin: auto 0 0; padding-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-top: 1px solid var(--line); }
.specs div { min-width: 0; }
.specs:has(.wide) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.specs .wide { grid-column: 1 / -1; }
.specs dt { font-size: 0.75rem; color: var(--text-3); letter-spacing: 0.01em; }
.specs dd { margin: 2px 0 0; font-size: var(--fs-small); font-weight: 600; color: var(--text-1); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.placeholder { color: var(--text-3) !important; font-weight: 400 !important; font-style: italic; }
.bento .pcard.is-lead { grid-column: span 2; flex-direction: row; }
.bento .pcard.is-lead .pcard-art { flex: 1.25; padding: 28px 0 28px 28px; display: flex; align-items: center; }
.bento .pcard.is-lead .pcard-body { flex: 1; padding: 32px; justify-content: flex-start; }
.bento .pcard.is-lead .pcard-title { font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.9rem); }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento .pcard.is-lead { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .bento { grid-template-columns: 1fr; }
  .bento .pcard.is-lead { flex-direction: column; }
  .bento .pcard.is-lead .pcard-art { padding: 20px 20px 0; }
  .bento .pcard.is-lead .pcard-body { padding: 20px 24px 24px; }
}

/* SVG art */
.art { --a-line: rgba(132, 228, 246, 0.75); --a-dim: rgba(132, 228, 246, 0.3); }
.art .ln { fill: none; stroke: var(--a-line); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.art .ln.dim { stroke: var(--a-dim); }
.art .ln.hi { stroke: var(--c-200); stroke-width: 2; }
.art .ln.accent { stroke: var(--teal-400); stroke-width: 2.2; }
.art .ln.dash { stroke: var(--a-dim); stroke-dasharray: 5 7; }
.art .ln.trace { stroke: rgba(90, 168, 240, 0.85); stroke-width: 1.4; }
.art .nd { fill: var(--c-200); }
.art .nd.accent { fill: var(--teal-400); }
.art .pn { fill: rgba(150, 220, 255, 0.07); stroke: rgba(150, 225, 250, 0.26); stroke-width: 1.2; }
.art .solid { fill: rgba(110, 190, 245, 0.16); stroke: rgba(150, 225, 250, 0.55); stroke-width: 1.4; }
.art .solid.strong { fill: rgba(132, 228, 246, 0.24); stroke: var(--c-300); }
.art .tag { fill: rgba(67, 216, 196, 0.2); stroke: var(--teal-400); stroke-width: 1.2; }
.art .bar { fill: var(--c-400); }
.art .bar.dim { fill: rgba(69, 203, 233, 0.4); }
.art .btn-a { fill: var(--c-300); }
.art .tx { fill: var(--text-2); font-family: var(--font-text); }
.art .tx.small { font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; }
.art .tx.big { fill: var(--text-1); font-family: var(--font-display); font-size: 22px; font-weight: 650; }
.art .tx.c { text-anchor: middle; }
.art .tx.tag-t { fill: var(--c-100); font-size: 13px; font-weight: 600; }
.art .tx.btn-t { fill: #03122c; font-size: 12px; font-weight: 700; text-anchor: middle; }
.art .pill rect, .art .step rect, .art .doc rect { fill: rgba(150, 220, 255, 0.08); stroke: rgba(150, 225, 250, 0.4); stroke-width: 1.2; }
.art .pill text { fill: var(--text-1); font-family: var(--font-text); font-size: 13px; font-weight: 600; text-anchor: middle; }
.art .step text, .art .doc text { fill: var(--text-1); font-family: var(--font-text); font-size: 13.5px; font-weight: 600; }
.art .step.on rect { fill: rgba(67, 216, 196, 0.16); stroke: var(--teal-400); }

/* ---------- Contact ---------- */
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(40% 50% at 25% 40%, rgba(30, 165, 214, 0.18), transparent 70%); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.form { padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label, .field .label { font-size: var(--fs-small); font-weight: 600; color: var(--text-1); }
.field .req { color: var(--c-300); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 13px 16px; border-radius: 14px; border: 0;
  background: rgba(3, 10, 26, 0.55); color: var(--text-1); font: inherit; font-size: 1rem;
  box-shadow: inset 0 0 0 1px var(--line-strong); transition: box-shadow 0.2s, background-color 0.2s;
}
.textarea { min-height: 132px; resize: vertical; line-height: 1.55; }
.select { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2384e4f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.select:has(option[value=""]:checked) { color: var(--text-3); }
.select option { background: var(--bg-2); color: var(--text-1); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { box-shadow: inset 0 0 0 1px rgba(150, 225, 250, 0.45); }
.input:focus, .select:focus, .textarea:focus { outline: none; background-color: rgba(3, 10, 26, 0.7); box-shadow: inset 0 0 0 1.5px var(--c-300), 0 0 0 4px rgba(132, 228, 246, 0.16); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { box-shadow: inset 0 0 0 1.5px var(--danger); }
.field-error { font-size: var(--fs-xs); color: var(--danger); min-height: 0; }
.field-error:empty { display: none; }
.field .check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-small); font-weight: 400; color: var(--text-2); line-height: 1.5; cursor: pointer; }
.check input { appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 7px; background: rgba(3, 10, 26, 0.55); box-shadow: inset 0 0 0 1.5px var(--line-strong); cursor: pointer; display: grid; place-items: center; transition: background-color 0.2s, box-shadow 0.2s; }
.check input::after { content: ""; width: 11px; height: 6px; border: solid #03122c; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform 0.2s var(--ease); }
.check input:checked { background: var(--c-300); box-shadow: none; }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input:focus-visible { outline: 2px solid var(--c-300); outline-offset: 3px; }
.field.has-error .check input { box-shadow: inset 0 0 0 1.5px var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-note { font-size: var(--fs-xs); color: var(--text-3); }
.form-status { border-radius: 14px; padding: 14px 16px; font-size: var(--fs-small); line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.is-error { background: rgba(255, 120, 120, 0.1); color: #ffd0d0; box-shadow: inset 0 0 0 1px rgba(255, 163, 163, 0.4); }
.form-status.is-info { background: rgba(132, 228, 246, 0.1); color: var(--c-100); box-shadow: inset 0 0 0 1px var(--line-strong); }
.form-success { padding: clamp(28px, 4vw, 48px); display: grid; gap: 14px; justify-items: start; }
.form-success .icon { width: 44px; height: 44px; color: var(--success); }
.form-success h3 { font-size: 1.6rem; }
.form-success p { color: var(--text-2); }
.contact-info { display: grid; gap: 28px; padding-top: 8px; }
.contact-info h3 { font-size: 1.125rem; margin-bottom: 4px; }
.info-list { display: grid; gap: 18px; }
.info-list a, .info-list span.val { display: inline-flex; align-items: flex-start; gap: 12px; color: var(--text-1); text-decoration: none; font-size: 1.0625rem; line-height: 1.5; }
.info-list a:hover { color: var(--c-100); }
.info-list .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--c-300); }
.info-label { display: block; font-size: var(--fs-xs); color: var(--text-3); margin-bottom: 4px; }
.legal-card { padding: 22px 24px; font-size: var(--fs-small); color: var(--text-2); line-height: 1.6; }
.legal-card strong { color: var(--text-1); font-weight: 600; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(56px, 7vw, 96px); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: var(--fs-small); color: var(--text-3); margin-bottom: 22px; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--c-100); text-decoration: underline; }
.crumbs .sep { color: var(--text-3); }
.page-hero .lead { margin-top: 22px; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); color: var(--text-2); max-width: 58ch; }
.page-hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.art-panel { padding: clamp(18px, 2.4vw, 32px); }
.art-panel .art { width: 100%; }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.split > header h2 { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split > header h2 { position: static; } }

.signs { display: grid; gap: 0; }
.signs li { display: flex; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; line-height: 1.5; }
.signs li:first-child { border-top: 1px solid var(--line); }
.signs li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c-300); box-shadow: 0 0 0 4px rgba(132, 228, 246, 0.14); transform: translateY(-2px); }

.modules { display: grid; gap: clamp(36px, 4vw, 52px); }
.module-group h3 { font-size: 1.125rem; color: var(--c-200); font-family: var(--font-text); font-weight: 600; letter-spacing: 0; margin-bottom: 8px; }
.module-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 3vw, 48px); }
.module-list div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.module-list dt { font-family: var(--font-display); font-weight: 620; font-size: 1.2rem; line-height: 1.3; }
.module-list dd { margin: 6px 0 0; color: var(--text-2); font-size: 1rem; line-height: 1.55; }
@media (max-width: 720px) { .module-list { grid-template-columns: 1fr; } }

.compare-wrap { margin-top: 28px; overflow-x: auto; border-radius: var(--r-lg); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.98rem; }
.compare th, .compare td { text-align: left; padding: 16px 20px; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.5; }
.compare thead th { font-family: var(--font-display); font-size: 1.05rem; font-weight: 620; color: var(--text-1); }
.compare tbody th { font-weight: 600; color: var(--text-1); width: 22%; }
.compare td { color: var(--text-2); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .ours { color: var(--text-1); background: rgba(132, 228, 246, 0.08); }
.compare thead .ours { color: var(--c-200); }
@media (max-width: 680px) {
  .compare-wrap { overflow: visible; }
  .compare { min-width: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tr { padding: 18px 20px; border-bottom: 1px solid var(--line); }
  .compare tr:last-child { border-bottom: 0; }
  .compare tbody th { width: auto; padding: 0 0 10px; border: 0; font-family: var(--font-display); font-size: 1.1rem; }
  .compare td { display: grid; grid-template-columns: 9.5rem 1fr; gap: 12px; padding: 8px 0; border: 0; }
  .compare td::before { content: attr(data-label); color: var(--text-3); font-size: var(--fs-xs); line-height: 1.6; }
  .compare td.ours { margin: 6px -10px 0; padding: 10px; border-radius: 12px; }
  .compare td.ours::before { color: var(--c-200); }
}
@media (max-width: 480px) {
  .compare td { grid-template-columns: 1fr; gap: 4px; padding: 8px 0; }
  .compare td::before { font-weight: 600; color: var(--c-200); font-size: 0.85rem; }
}

.flow { counter-reset: step; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; position: relative; }
.flow::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: linear-gradient(90deg, rgba(132, 228, 246, 0.7), rgba(90, 168, 240, 0.5)); }
.flow li { position: relative; padding-right: 20px; }
.flow .node { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-weight: 700; font-size: 0.95rem; color: #03122c; background: var(--c-300); box-shadow: 0 0 0 6px rgba(6, 18, 42, 0.9), 0 0 0 7px rgba(132, 228, 246, 0.4); font-variant-numeric: tabular-nums; }
.flow h3 { margin-top: 20px; font-size: 1.15rem; }
.flow p { margin-top: 6px; color: var(--text-2); font-size: 0.975rem; line-height: 1.55; }
@media (max-width: 900px) {
  .flow { grid-auto-flow: row; gap: 26px; }
  .flow::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; background: linear-gradient(180deg, rgba(132, 228, 246, 0.7), rgba(90, 168, 240, 0.5)); }
  .flow li { display: grid; grid-template-columns: 46px 1fr; column-gap: 18px; padding-right: 0; }
  .flow h3 { margin-top: 10px; }
  .flow p { grid-column: 2; }
}

.outcomes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 64px); }
.outcomes div { padding: 28px 0; border-top: 1px solid var(--line-strong); }
.outcomes dt { font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem); font-weight: 620; line-height: 1.25; }
.outcomes dd { margin: 10px 0 0; color: var(--text-2); }
@media (max-width: 720px) { .outcomes { grid-template-columns: 1fr; } }

.panel { padding: clamp(24px, 3.4vw, 44px); }
.panel-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.panel-head .icon { width: 30px; height: 30px; color: var(--teal-400); }
.panel p { color: var(--text-2); max-width: 68ch; }
.panel ul { margin-top: 18px; display: grid; gap: 12px; }
.panel li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-1); }
.panel li .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--teal-400); }

.timeline { position: relative; display: grid; gap: 0; margin-top: 28px; }
.timeline li { display: grid; grid-template-columns: 132px 1fr; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.timeline time { font-family: var(--font-display); font-weight: 620; color: var(--c-200); font-variant-numeric: tabular-nums; }
.timeline p { color: var(--text-2); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { padding: 8px 14px; border-radius: 999px; font-size: var(--fs-small); color: var(--text-1); background: rgba(150, 220, 255, 0.07); box-shadow: inset 0 0 0 1px var(--line); }

.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 56px); counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); line-height: 1.55; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-display); font-weight: 620; color: var(--c-300); font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

.engage { display: grid; gap: 12px; }
.engage li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.0625rem; }
.engage .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--c-300); }

.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--r-md); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: 1.0625rem; border-radius: var(--r-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; color: var(--c-300); transition: transform 0.35s var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq summary:hover { color: var(--c-100); }
.faq .answer { padding: 0 24px 22px; color: var(--text-2); max-width: 72ch; }

.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: clamp(28px, 4vw, 56px); overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: auto -10% -60% 40%; height: 160%; z-index: -1; background: radial-gradient(closest-side, rgba(67, 216, 196, 0.16), transparent); }
.cta-band h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }
.cta-band p { margin-top: 10px; color: var(--text-2); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* Projects page */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-btn { padding: 10px 18px; min-height: 44px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 500; font-size: var(--fs-small); color: var(--text-2); background: rgba(150, 220, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line); transition: color 0.2s, background-color 0.2s, box-shadow 0.2s; }
.filter-btn:hover { color: var(--text-1); box-shadow: inset 0 0 0 1px var(--line-strong); }
.filter-btn[aria-pressed="true"] { color: #03122c; background: var(--c-300); box-shadow: none; }
.grid-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.grid-cards .pcard[hidden] { display: none; }
.grid-cards.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bento.single { grid-template-columns: 1fr; }
.bento.single .pcard.is-lead { grid-column: auto; }
@media (max-width: 640px) { .grid-cards.n2 { grid-template-columns: 1fr; } }
.empty { padding: 32px; color: var(--text-2); }
@media (max-width: 1000px) { .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-cards { grid-template-columns: 1fr; } }

/* Project detail */
.spec-panel { padding: clamp(22px, 3vw, 36px); }
.spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.spec-grid div { padding: 16px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.spec-grid dt { font-size: var(--fs-xs); color: var(--text-3); }
.spec-grid dd { margin: 4px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.spec-grid .wide { grid-column: span 2; }
@media (max-width: 900px) { .spec-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .spec-grid { grid-template-columns: 1fr; } .spec-grid .wide { grid-column: auto; } }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem); margin-top: 56px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 32px; font-size: 1.2rem; }
.prose p { margin-top: 14px; color: var(--text-2); }
.prose ul { margin-top: 14px; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 22px; color: var(--text-2); }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: 0.7em; width: 7px; height: 7px; border-radius: 50%; background: var(--c-300); }
.prose a { color: var(--c-200); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.kpis div { padding: 20px; border-radius: var(--r-md); background: rgba(150, 220, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line); }
.kpis dt { font-size: var(--fs-small); color: var(--text-2); }
.kpis dd { margin: 6px 0 0; font-family: var(--font-display); font-size: 1.75rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.kpis small { display: block; margin-top: 4px; font-size: var(--fs-xs); color: var(--text-3); font-family: var(--font-text); font-weight: 400; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager a { display: grid; gap: 4px; padding: 20px 24px; text-decoration: none; color: var(--text-1); }
.pager a span { font-size: var(--fs-xs); color: var(--text-3); }
.pager a.next { text-align: right; }
@media (max-width: 640px) { .pager { grid-template-columns: 1fr; } .pager a.next { text-align: left; } }
.quote { padding: 28px 32px; margin-top: 18px; }
.quote p { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.4; color: var(--text-1); }
.quote footer { margin-top: 12px; color: var(--text-3); font-size: var(--fs-small); }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding: 72px 0 40px; margin-top: 40px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(3, 10, 26, 0.2), rgba(3, 10, 26, 0.7)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand .brand { margin: 0; }
.footer-brand p { color: var(--text-2); font-size: var(--fs-small); max-width: 42ch; }
.site-footer h2 { font-family: var(--font-text); font-size: var(--fs-small); font-weight: 600; color: var(--text-1); letter-spacing: 0; margin-bottom: 14px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: var(--text-2); text-decoration: none; font-size: var(--fs-small); }
.footer-links a:hover { color: var(--c-100); text-decoration: underline; }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: var(--fs-xs); color: var(--text-3); }
.footer-legal a { color: var(--text-3); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* 404 */
.notfound { min-height: 80vh; display: grid; place-items: center; text-align: center; padding-top: var(--header-h); }
.notfound .glass { padding: clamp(32px, 5vw, 64px); max-width: 560px; display: grid; gap: 18px; justify-items: center; }
.notfound p { color: var(--text-2); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero-sweep { display: none; }
  .xp-card, .xp-card *, .xp-card::before { transition: none !important; }
}
@media (max-width: 720px) { :root { --blur: 14px; } }

/* ---------- Interactive dot field ---------- */
.fx { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Magnetic hover ---------- */
:root .is-magnetic { transition: transform 0.45s var(--ease), background-color 0.25s, box-shadow 0.25s, color 0.25s; will-change: transform; }
:root .is-magnetic.is-pulling { transition: transform 0.12s linear, background-color 0.25s, box-shadow 0.25s, color 0.25s; }
.btn.is-magnetic:hover { transform: none; }

/* ---------- Home: one screen per scroll ---------- */
@media (min-width: 901px) and (min-height: 620px) and (hover: hover) {
  html.snap.pg { scroll-padding-top: 0; scroll-snap-type: y proximity; }
  html.snap.pg .snap-section { scroll-snap-align: start; }
  html.snap .snap-section { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--header-h) + 20px); padding-bottom: 36px; }
  html.snap .snap-section > .container { width: 100%; }
  html.snap .site-footer { margin-top: 0; }
  html.snap .services.snap-section { padding: var(--header-h) 0 0; justify-content: flex-start; }
  html.snap .section-head { margin-bottom: clamp(20px, 3vh, 36px); }
  html.snap .section-head p { margin-top: 10px; }
  html.snap .projects .bento { grid-template-columns: 1.25fr 1fr 1fr; }
  html.snap .projects .pcard.is-lead { grid-column: 1; grid-row: 1 / span 2; flex-direction: column; }
  html.snap .projects .pcard.is-lead .pcard-art { flex: none; padding: 20px 20px 0; }
  html.snap .projects .pcard.is-lead .pcard-art .art { max-height: 30vh; }
  html.snap .projects .pcard.is-lead .pcard-body { padding: 18px 26px 24px; }
  html.snap .projects .pcard.is-lead .pcard-title { font-size: clamp(1.35rem, 1.1rem + 0.7vw, 1.7rem); }
  html.snap .projects .pcard:not(.is-lead) .pcard-art { display: none; }
  html.snap .projects .pcard:not(.is-lead) .pcard-body { padding: 22px 24px; }
  html.snap .contact .form { gap: 12px; padding: clamp(20px, 2.4vw, 32px); }
  html.snap .contact .textarea { min-height: 84px; }
}
@media (min-width: 901px) and (min-height: 620px) and (max-height: 980px) and (hover: hover) {
  /* full summary or none: never cut a sentence with an ellipsis */
  html.snap .projects .pcard:not(.is-lead) .pcard-summary { display: none; }
}
@media (min-width: 901px) and (min-height: 620px) and (max-height: 820px) and (hover: hover) {
  html.snap .projects .pcard.is-lead .pcard-art .art { max-height: 24vh; }
  html.snap .contact .section-head p { display: none; }
  html.snap .contact .form { gap: 8px; }
  html.snap .contact .input, html.snap .contact .select { min-height: 44px; padding-block: 10px; }
  html.snap .contact .textarea { min-height: 64px; }
  html.snap .contact .form-row { gap: 14px; }
  html.snap .contact .section-head { margin-bottom: 18px; }
  html.snap .contact .form.glass { padding-block: 22px; }
}

/* Dot navigation for the home screens */
.dotnav { position: fixed; right: clamp(10px, 1.6vw, 26px); top: 50%; transform: translateY(-50%); z-index: 40; display: none; flex-direction: column; gap: 4px; }
.dotnav a { position: relative; display: grid; place-items: center; width: 40px; height: 34px; border-radius: 10px; text-decoration: none; }
.dotnav b { font: 600 0.95rem/1 var(--font-display); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; color: rgba(190, 232, 250, 0.5); text-shadow: 0 1px 10px rgba(3, 10, 26, 0.8); transition: color 0.3s, transform 0.4s var(--ease); }
.dotnav a:hover b { color: var(--text-1); }
.dotnav a[aria-current="true"] b { color: var(--c-300); transform: scale(1.45); }
.dotnav span { position: absolute; right: 46px; top: 50%; transform: translate(6px, -50%); white-space: nowrap; padding: 4px 10px; border-radius: 999px; font-size: var(--fs-xs); color: var(--text-1); background: rgba(10, 29, 62, 0.85); box-shadow: inset 0 0 0 1px var(--line); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.3s var(--ease); }
.dotnav a:hover span, .dotnav a:focus-visible span { opacity: 1; transform: translate(0, -50%); }
@media (min-width: 901px) { .dotnav { display: flex; } }

/* ---------- Section entrance (first view only) ---------- */
@keyframes rv-in { from { opacity: 0; transform: translate3d(0, 34px, 0); } }
html.pg .is-current:not(.seen) :is(.section-head, .bento > *, .contact .form, .contact-info) { animation: rv-in 1.05s var(--ease) calc(0.28s + var(--i, 0) * 0.09s) backwards; }
html.pg .is-current:not(.seen) .bento > :nth-child(1) { --i: 1; }
html.pg .is-current:not(.seen) .bento > :nth-child(2) { --i: 2; }
html.pg .is-current:not(.seen) .bento > :nth-child(3) { --i: 3; }
html.pg .is-current:not(.seen) .bento > :nth-child(4) { --i: 4; }
html.pg .is-current:not(.seen) .bento > :nth-child(5) { --i: 5; }
html.pg .is-current:not(.seen) .contact-info { --i: 2; }
html.pg .is-current:not(.seen) .contact .form { --i: 1; }
html.pg .is-current:not(.seen) .xp-intro { animation: rv-in 1.1s var(--ease) 0.2s backwards; }
html.pg .is-current:not(.seen) .xp-card { animation: rv-in 1.2s var(--ease) calc(0.15s + var(--i, 0) * 0.1s) backwards; }
html.pg .is-current:not(.seen) .xp-card:nth-child(2) { --i: 1; }
html.pg .is-current:not(.seen) .xp-card:nth-child(3) { --i: 2; }
html.pg .is-current:not(.seen) .xp-card:nth-child(4) { --i: 3; }

/* ---------- ERP page Visual-Rich Redesign ---------- */
.erp-h1 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.6rem); line-height: 1.1; letter-spacing: -0.025em; max-width: 16ch; }
.erp-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.erp-hero .eyebrow { margin: 0 0 14px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-200); }
.section-pill { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-200); margin-bottom: 12px; width: fit-content; }
.section-pill .icon { width: 14px; height: 14px; }
.section-head.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* Pulse dot animation */
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); box-shadow: 0 0 0 0 rgba(67, 216, 196, 0.7); animation: pdot 2s infinite; display: inline-block; }
@keyframes pdot { 0% { box-shadow: 0 0 0 0 rgba(67, 216, 196, 0.7); } 70% { box-shadow: 0 0 0 7px rgba(67, 216, 196, 0); } 100% { box-shadow: 0 0 0 0 rgba(67, 216, 196, 0); } }

/* Live Cockpit Window */
.erp-cockpit { border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 24px 50px -15px rgba(0, 4, 16, 0.85), 0 0 35px -5px rgba(56, 189, 248, 0.15); border: 1px solid rgba(150, 225, 250, 0.2); }
.cockpit-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: rgba(6, 18, 42, 0.85); border-bottom: 1px solid var(--line); }
.win-title { display: flex; align-items: center; gap: 8px; font-family: monospace; font-size: var(--fs-xs); color: var(--text-2); }
.win-title .icon { width: 14px; height: 14px; color: var(--c-300); }
.win-status { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--teal-400); font-weight: 500; }

.cockpit-body { padding: clamp(16px, 2vw, 22px); display: flex; flex-direction: column; gap: 14px; }
.cockpit-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ck-item { padding: 12px 14px; border-radius: 12px; background: rgba(6, 20, 48, 0.6); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.ck-label { font-size: var(--fs-xs); color: var(--text-3); }
.ck-val { font: 700 1.25rem/1.2 var(--font-display); color: var(--text-1); font-variant-numeric: tabular-nums; }
.ck-badge { font-size: 0.725rem; font-weight: 600; padding: 2px 6px; border-radius: 4px; width: fit-content; display: inline-flex; align-items: center; gap: 4px; }
.ck-badge.up { color: var(--teal-400); background: rgba(67, 216, 196, 0.12); }
.ck-badge.up .icon { width: 12px; height: 12px; }
.ck-badge.live { color: var(--c-300); background: rgba(132, 228, 246, 0.12); }
.ck-badge.done { color: var(--teal-400); background: rgba(67, 216, 196, 0.12); }
.ck-badge.done .icon { width: 11px; height: 11px; }

.cockpit-stream { border-radius: 12px; background: rgba(3, 10, 26, 0.7); border: 1px solid var(--line); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.stream-head { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-xs); color: var(--text-3); font-weight: 600; padding-bottom: 6px; border-bottom: 1px solid rgba(150, 220, 255, 0.08); }
.stream-head span:first-child { display: flex; align-items: center; gap: 6px; color: var(--c-300); }
.stream-head .icon { width: 14px; height: 14px; }
.stream-tag { font-family: monospace; font-size: 0.7rem; color: var(--text-3); }
.stream-list { display: flex; flex-direction: column; gap: 8px; }
.stream-row { display: grid; grid-template-columns: auto auto 1fr auto; gap: 8px 10px; align-items: center; font-size: 0.825rem; line-height: 1.4; }
.st-time { font-family: monospace; font-size: 0.75rem; color: var(--text-3); white-space: nowrap; }
.st-badge { font-size: 0.7rem; font-weight: 600; padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.st-badge.tr { background: rgba(47, 127, 214, 0.2); color: var(--c-200); }
.st-badge.wh { background: rgba(67, 216, 196, 0.16); color: var(--teal-400); }
.st-badge.sc { background: rgba(132, 228, 246, 0.12); color: var(--c-300); }
.st-text { color: var(--text-2); }
.st-text strong { color: var(--text-1); }
.st-status { font-size: 0.725rem; font-weight: 600; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.st-status.ok { color: #43d8c4; background: rgba(67, 216, 196, 0.1); }
.st-status.wait { color: var(--text-2); background: rgba(150, 220, 255, 0.08); }

.cockpit-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 4px; font-size: 0.775rem; color: var(--text-3); }
.cf-node { display: flex; align-items: center; gap: 6px; }
.cf-node .icon { width: 14px; height: 14px; color: var(--c-300); }
.cf-tag { display: flex; align-items: center; gap: 5px; color: var(--c-200); font-weight: 500; }
.cf-tag .icon { width: 14px; height: 14px; }

/* Enhanced Trust Cards */
.erp-trust { margin-top: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; border-radius: var(--r-lg); overflow: hidden; }
.trust-card { padding: clamp(20px, 2.6vw, 30px); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; position: relative; }
.trust-card:first-child { border-left: 0; }
.trust-top { display: flex; justify-content: space-between; align-items: center; }
.trust-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(132, 228, 246, 0.12); color: var(--c-300); }
.trust-icon .icon { width: 18px; height: 18px; }
.trust-tag { font-size: 0.7rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: rgba(150, 220, 255, 0.08); color: var(--text-2); border: 1px solid rgba(150, 220, 255, 0.12); }
.trust-num { font: 700 clamp(1.8rem, 1.2rem + 1.8vw, 2.8rem)/1.1 var(--font-display); color: var(--c-300); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.trust-text { margin: 0; display: flex; flex-direction: column; gap: 3px; }
.trust-text strong { font-size: 0.975rem; color: var(--text-1); }
.trust-text span { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.4; }

/* Pipeline Section */
.pipeline-grid { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1fr auto 1.15fr auto 1fr; gap: 14px; align-items: center; }
.pipe-col { padding: clamp(22px, 2.6vw, 32px); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 12px; height: 100%; position: relative; }
.pipe-col.is-core { border-color: rgba(132, 228, 246, 0.4); box-shadow: 0 16px 40px -10px rgba(0, 4, 16, 0.8), inset 0 0 0 1px rgba(132, 228, 246, 0.2), 0 0 30px -5px rgba(56, 189, 248, 0.18); }
.pipe-header { display: flex; justify-content: space-between; align-items: center; }
.pipe-no { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--c-300); letter-spacing: 0.05em; }
.pipe-badge { font-size: var(--fs-xs); font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(150, 220, 255, 0.08); color: var(--text-2); }
.pipe-badge.highlight { background: rgba(132, 228, 246, 0.18); color: var(--c-200); box-shadow: inset 0 0 0 1px rgba(132, 228, 246, 0.35); }
.pipe-icon-tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(132, 228, 246, 0.1); color: var(--c-300); }
.pipe-icon-tile.core { width: 50px; height: 50px; background: linear-gradient(135deg, rgba(132, 228, 246, 0.25), rgba(47, 127, 214, 0.2)); color: #fff; box-shadow: 0 0 20px -3px rgba(132, 228, 246, 0.4); }
.pipe-icon-tile .icon { width: 22px; height: 22px; }
.pipe-icon-tile.core .icon { width: 26px; height: 26px; }
.pipe-col h3 { font-size: 1.25rem; font-weight: 650; }
.pipe-desc { font-size: 0.925rem; color: var(--text-2); line-height: 1.55; }
.pipe-list { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 auto; list-style: none; padding: 0; }
.pipe-list li { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-1); }
.pipe-list li .icon { width: 16px; height: 16px; color: var(--teal-400); flex: none; }
.pipe-modules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 auto; }
.pm-chip { padding: 9px 12px; border-radius: 10px; font-size: 0.85rem; font-weight: 600; text-align: center; color: var(--text-1); background: rgba(150, 220, 255, 0.08); border: 1px solid rgba(150, 220, 255, 0.16); }
.pipe-kpi { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--text-3); font-weight: 500; }
.pipe-kpi strong { color: var(--c-200); }
.pipe-kpi.highlight strong { color: var(--teal-400); }

.pipe-flow-arrow { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--c-300); }
.pipe-flow-arrow .icon { width: 22px; height: 22px; animation: pflow 2s infinite ease-in-out; }
@keyframes pflow { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
.flow-tag { font-family: monospace; font-size: 0.7rem; color: var(--c-300); font-weight: 600; }
.flow-line { width: 32px; height: 2px; background: linear-gradient(90deg, rgba(132, 228, 246, 0.3), var(--c-300)); }

/* 5 ERP Service Cards horizontally aligned */
.erp-svc-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.3vw, 18px);
  align-items: stretch;
}
.erp-svc-card {
  padding: clamp(18px, 1.8vw, 24px) clamp(14px, 1.4vw, 18px);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.erp-svc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(132, 228, 246, 0.45);
  box-shadow: 0 16px 36px -10px rgba(0, 4, 16, 0.8), 0 0 24px -4px rgba(56, 189, 248, 0.25);
}
.esc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.esc-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(132, 228, 246, 0.12); color: var(--c-300); flex: none; }
.esc-icon .icon { width: 18px; height: 18px; }
.esc-badge { font-size: 0.675rem; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: rgba(150, 220, 255, 0.08); color: var(--text-2); border: 1px solid rgba(150, 220, 255, 0.12); white-space: nowrap; }
.esc-no { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--c-300); letter-spacing: 0.05em; }
.esc-title { font-size: 1.1rem; font-weight: 650; line-height: 1.3; }
.esc-en { margin: -6px 0 2px; font-size: 0.725rem; color: var(--text-3); font-weight: 500; }
.esc-summary { color: var(--text-2); font-size: 0.875rem; line-height: 1.5; }
.esc-highlights { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 auto; list-style: none; padding: 0; }
.esc-highlights li { display: flex; align-items: baseline; gap: 7px; font-size: 0.8rem; color: var(--text-1); line-height: 1.4; }
.esc-highlights li .icon { width: 13px; height: 13px; color: var(--teal-400); flex: none; transform: translateY(2px); }
.esc-deliver { margin-top: auto; padding: 10px 12px; border-radius: 10px; background: rgba(6, 20, 48, 0.6); border: 1px solid rgba(132, 228, 246, 0.2); display: flex; flex-direction: column; gap: 3px; }
.esc-deliver-label { font-size: 0.675rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-300); display: flex; align-items: center; gap: 5px; }
.esc-deliver-label .icon { width: 12px; height: 12px; }
.esc-deliver p { margin: 0; color: var(--text-1); font-size: 0.825rem; font-weight: 500; line-height: 1.4; }

/* ---------- Semicircle Orbit Ecosystem ---------- */
.orbit-ecosystem {
  position: relative;
  border-radius: var(--r-xl, 24px);
  display: grid;
  grid-template-columns: 380px 1fr;
  min-height: 560px;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(0, 4, 16, 0.9), inset 0 0 0 1px rgba(150, 225, 250, 0.14);
}

.orbit-nav {
  position: relative;
  height: 560px;
  width: 380px;
  border-right: 1px solid rgba(150, 220, 255, 0.1);
  background: radial-gradient(circle at 0% 50%, rgba(30, 165, 214, 0.14), transparent 70%);
  user-select: none;
}

.orbit-svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 320px;
  height: 560px;
  pointer-events: none;
}

/* Hub at left wall center (0, 280) */
.orbit-hub {
  position: absolute;
  left: 0;
  top: 280px;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(6, 18, 42, 0.95);
  border: 1px solid rgba(132, 228, 246, 0.4);
  box-shadow: 0 0 30px rgba(132, 228, 246, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.orbit-hub-core {
  color: var(--c-300);
  display: grid;
  place-items: center;
}
.orbit-hub-core .icon { width: 22px; height: 22px; }
.orbit-hub-label {
  font-family: monospace;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.04em;
  margin-top: 1px;
}
.orbit-hub-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(132, 228, 246, 0.3);
  animation: hub-spin 20s linear infinite;
}
.orbit-hub-ring.ring-2 {
  inset: -16px;
  border: 1px solid rgba(47, 127, 214, 0.2);
  animation: hub-spin 30s linear infinite reverse;
}
@keyframes hub-spin { 100% { transform: rotate(360deg); } }

/* Gliding beacon */
.orbit-beacon {
  position: absolute;
  left: 0;
  top: 0;
  width: 54px;
  height: 54px;
  margin-left: -27px;
  margin-top: -27px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 6;
  display: grid;
  place-items: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.beacon-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-300);
  box-shadow: 0 0 16px 4px rgba(132, 228, 246, 0.9);
}
.beacon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(132, 228, 246, 0.6);
  animation: beacon-pulse 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes beacon-pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0.3; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* 6 Orbit Nodes along semicircle */
.orbit-nodes {
  position: absolute;
  inset: 0;
  pointer-events: auto;
}

.orbit-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 10;
  transform: translate(-23px, -23px);
  text-align: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Node coordinates */
.orbit-node:nth-child(1) { left: 87px; top: 94px; }
.orbit-node:nth-child(2) { left: 159px; top: 151px; }
.orbit-node:nth-child(3) { left: 200px; top: 234px; }
.orbit-node:nth-child(4) { left: 200px; top: 326px; }
.orbit-node:nth-child(5) { left: 159px; top: 409px; }
.orbit-node:nth-child(6) { left: 87px; top: 466px; }

.on-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(6, 20, 48, 0.85);
  border: 1.5px solid rgba(150, 225, 250, 0.25);
  color: var(--text-2);
  display: grid;
  place-items: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 4, 16, 0.6);
  flex: none;
}
.on-icon .icon { width: 20px; height: 20px; }

.on-info {
  display: flex;
  flex-direction: column;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(6, 18, 42, 0.7);
  border: 1px solid rgba(150, 220, 255, 0.12);
  backdrop-filter: blur(8px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.on-name {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.3s;
}
.on-count {
  font-size: 0.7rem;
  color: var(--text-3);
}

/* Hover & Active States */
.orbit-node:hover .on-btn {
  border-color: rgba(132, 228, 246, 0.6);
  color: var(--text-1);
  transform: scale(1.08);
}
.orbit-node:hover .on-name {
  color: var(--text-1);
}

.orbit-node.is-active .on-btn {
  background: linear-gradient(135deg, #84e4f6, #2f7fd6);
  color: #03122c;
  border-color: #84e4f6;
  transform: scale(1.22);
  box-shadow: 0 0 25px rgba(132, 228, 246, 0.8), 0 0 50px rgba(47, 127, 214, 0.4);
}
.orbit-node.is-active .on-info {
  background: rgba(132, 228, 246, 0.12);
  border-color: rgba(132, 228, 246, 0.4);
  box-shadow: 0 0 16px rgba(132, 228, 246, 0.2);
}
.orbit-node.is-active .on-name {
  color: #fff;
  font-weight: 700;
}
.orbit-node.is-active .on-count {
  color: var(--c-200);
}

/* Right Panels Stage */
.orbit-panels-wrap {
  position: relative;
  padding: clamp(24px, 3.2vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.orbit-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.orbit-panel[hidden] {
  display: none;
}
.orbit-panel.is-active {
  animation: orbit-fade-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes orbit-fade-in {
  from { opacity: 0; transform: translate3d(24px, 0, 0); filter: blur(4px); }
  to { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); }
}

.op-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.op-cat-badge {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-200);
  display: flex;
  align-items: center;
  gap: 8px;
}
.op-cat-badge .icon { width: 18px; height: 18px; color: var(--c-300); }
.op-count-chip {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-3);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(150, 220, 255, 0.08);
}

/* Module Cards in Orbit Panels */
.op-cards.is-double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.op-cards.is-multi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.op-cards.is-multi article:last-child {
  grid-column: 1 / -1;
}

.op-cards article {
  animation: op-card-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards calc(0.08s * var(--ci, 0));
}
@keyframes op-card-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.mmod-card { padding: clamp(18px, 2.2vw, 26px); border-radius: var(--r-md); display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); }
.mm-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mm-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(132, 228, 246, 0.12); color: var(--c-300); flex: none; }
.mm-icon .icon { width: 18px; height: 18px; }
.mm-title-group { display: flex; flex-direction: column; gap: 2px; }
.mm-title-group h3 { font-size: 1.15rem; font-weight: 650; margin: 0; }
.mm-en { font-size: var(--fs-xs); color: var(--text-3); }
.mm-tag { margin-left: auto; font-size: var(--fs-xs); font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(132, 228, 246, 0.1); color: var(--c-200); border: 1px solid rgba(132, 228, 246, 0.25); white-space: nowrap; }
.mm-summary { margin: 0; color: var(--text-2); font-size: 0.925rem; line-height: 1.55; }
.mm-points { display: grid; grid-template-columns: 1fr; gap: 7px; list-style: none; padding: 0; margin: 2px 0; }
.mm-points li { display: flex; align-items: baseline; gap: 8px; font-size: 0.875rem; color: var(--text-1); }
.mm-points li .icon { width: 14px; height: 14px; color: var(--teal-400); flex: none; transform: translateY(2px); }
.mm-foot { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
.mm-live-badge { font-size: var(--fs-xs); font-weight: 600; color: var(--teal-400); display: inline-flex; align-items: center; gap: 6px; }
.mm-live-badge .icon { width: 13px; height: 13px; }

/* Enhanced Flow5 with Milestones */
.flow5 { grid-auto-columns: minmax(0, 1fr); }
.flow-card { padding: 22px; border-radius: 16px; display: flex; flex-direction: column; gap: 8px; }
.flow-header { display: flex; justify-content: space-between; align-items: center; }
.flow-time { font-family: monospace; font-size: 0.775rem; font-weight: 600; color: var(--c-300); padding: 3px 8px; border-radius: 6px; background: rgba(132, 228, 246, 0.1); }
.flow-deliverable { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.775rem; font-weight: 600; color: var(--teal-400); display: flex; align-items: center; gap: 6px; }
.flow-deliverable .icon { width: 14px; height: 14px; flex: none; }

/* Before / After Battle Cards in Case Study */
.erp-case-infographic { padding: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 28px; }
.case-badge { display: inline-block; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.case-profile { margin-top: 12px; color: var(--text-2); max-width: 62ch; }
.battle-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(14px, 2vw, 24px); align-items: stretch; }
.battle-col { padding: clamp(20px, 2.4vw, 28px); border-radius: 16px; display: flex; flex-direction: column; gap: 16px; }
.battle-col.is-before { background: rgba(45, 12, 24, 0.4); border: 1px solid rgba(255, 107, 107, 0.35); box-shadow: inset 0 0 20px -5px rgba(255, 107, 107, 0.15); }
.battle-col.is-after { background: rgba(6, 28, 56, 0.5); border: 1px solid rgba(132, 228, 246, 0.4); box-shadow: inset 0 0 25px -5px rgba(56, 189, 248, 0.2); }
.battle-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.battle-icon { font-size: 1.3rem; }
.battle-col.is-before .battle-head h3 { font-size: 1.15rem; color: #ffa3a3; }
.battle-col.is-after .battle-head h3 { font-size: 1.15rem; color: #84e4f6; }
.battle-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.battle-list li strong { display: block; font-size: 0.975rem; color: var(--text-1); margin-bottom: 2px; }
.battle-list li p { margin: 0; font-size: 0.875rem; color: var(--text-2); line-height: 1.5; }
.battle-vs { display: flex; align-items: center; justify-content: center; }
.battle-vs span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--c-300); background: rgba(6, 18, 42, 0.9); border: 1px solid rgba(132, 228, 246, 0.4); box-shadow: 0 0 15px rgba(132, 228, 246, 0.3); }

.erp-results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; }
.res-card { padding: 18px 20px; border-radius: 14px; background: rgba(6, 20, 48, 0.6); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.res-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.res-num { font: 700 clamp(2.2rem, 1.6rem + 2vw, 3.2rem)/1 var(--font-display); color: var(--c-300); font-variant-numeric: tabular-nums; }
.res-progress { flex: 1; height: 6px; border-radius: 999px; background: rgba(150, 220, 255, 0.12); overflow: hidden; margin-bottom: 4px; }
.res-progress span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2f7fd6, #84e4f6); }
.res-label { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.res-label strong { font-size: 0.95rem; color: var(--text-1); }
.res-label small { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.4; }

/* Responsive adjustments */
@media (max-width: 1024px) {
  .erp-hero-grid { grid-template-columns: 1fr; }
  .pipeline-grid { grid-template-columns: 1fr; }
  .pipe-flow-arrow { transform: rotate(90deg); margin: 6px auto; }
  .flow-line { width: 2px; height: 24px; }
  .battle-grid { grid-template-columns: 1fr; }
  .battle-vs { margin: -6px 0; }
  .erp-trust { grid-template-columns: 1fr 1fr; }
  .trust-card:nth-child(3) { border-left: 0; }
  .trust-card:nth-child(n+3) { border-top: 1px solid var(--line); }
  .op-cards.is-multi { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .erp-svc-grid { grid-template-columns: repeat(3, 1fr); }
  .erp-svc-card:nth-child(4), .erp-svc-card:nth-child(5) { grid-column: auto; }
  .erp-svc-card:last-child { grid-column: 1 / -1; }
  .orbit-ecosystem { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .orbit-ecosystem > * { min-width: 0; }
  .orbit-nav { width: 100%; min-width: 0; height: auto; padding: 16px 14px; border-right: none; border-bottom: 1px solid rgba(150, 220, 255, 0.1); }
  .orbit-svg, .orbit-hub, .orbit-beacon { display: none; }
  .orbit-nodes { position: static; display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: none; }
  .orbit-nodes::-webkit-scrollbar { display: none; }
  .orbit-node { position: static; transform: none; flex: none; }
  .op-cards.is-double, .op-cards.is-multi { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .erp-svc-grid { grid-template-columns: 1fr 1fr; }
  .erp-svc-card:last-child { grid-column: 1 / -1; }
  .erp-results-grid { grid-template-columns: 1fr; }
  .cockpit-kpis { grid-template-columns: 1fr; }
  .stream-row { grid-template-columns: auto 1fr; }
  .st-status { display: none; }
  .cf-right { display: none; }
}
@media (max-width: 480px) {
  .erp-svc-grid { grid-template-columns: 1fr; }
  .erp-svc-card:last-child { grid-column: auto; }
}

.lead-split { display: grid; grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.lead-side { position: sticky; top: calc(var(--header-h) + 24px); }
.lead-side h2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); }
.gives { margin-top: 28px; display: grid; gap: 20px; }
.gives li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; }
.gives .node { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-weight: 700; font-size: 0.9rem; color: #03122c; background: var(--c-300); }
.gives h3 { font-size: 1.1rem; }
.gives p { margin-top: 4px; color: var(--text-2); font-size: 0.975rem; line-height: 1.5; }
.nda { margin-top: 28px; display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: var(--fs-small); line-height: 1.5; }
.nda .icon { flex: none; width: 20px; height: 20px; color: var(--c-300); margin-top: 1px; }
.pills-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.pills-field legend { padding: 0; margin-bottom: 10px; font-size: var(--fs-small); font-weight: 600; color: var(--text-1); }
.pills-field legend small, .field label small { font-weight: 400; color: var(--text-3); margin-left: 6px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span { display: block; padding: 9px 16px; border-radius: 999px; font-size: 0.9rem; color: var(--text-2); background: rgba(3, 10, 26, 0.5); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.pill:hover span { color: var(--text-1); box-shadow: inset 0 0 0 1px rgba(150, 225, 250, 0.5); }
.pill:has(input:checked) span { color: #03122c; font-weight: 600; background: var(--c-300); box-shadow: none; }
.pill:has(input:focus-visible) span { outline: 2px solid var(--c-300); outline-offset: 3px; }
.pills-field.has-error .pill span { box-shadow: inset 0 0 0 1px var(--danger); }
.lead-split .form-note { margin-top: 14px; }
@media (max-width: 900px) { .lead-split { grid-template-columns: 1fr; } .lead-side { position: static; } }
