/* =========================================================
   OfetAI · Option 14 "Constellation"
   Dark-first, three-pillar colour system:
   Growth = electric blue, Engineering = violet, Software = cyan
   ========================================================= */
:root {
  --bg: #05070e;
  --bg-2: #080c19;
  --navy: #0b1226;
  --surface: #0d1429;
  --surface-2: #121b35;
  --line: rgba(150, 168, 220, .14);
  --line-2: rgba(150, 168, 220, .24);
  --text: #eef1f8;
  --text-2: #c9d0e2;
  --muted: #9aa5c0;
  --blue: #2b5cf6;
  --blue-hi: #5b82ff;
  --violet: #8b5cf6;
  --violet-hi: #a78bfa;
  --cyan: #22d3ee;
  --amber: #f5b84a;
  --green: #34d399;
  --red: #f87171;
  --err: #fca5a5;
  --text-strong: #fff;                 /* emphasised text */
  --tint-1: rgba(255,255,255,.02);     /* subtle fills */
  --tint-2: rgba(255,255,255,.04);
  --tint-3: rgba(255,255,255,.05);
  --header-bg: rgba(5, 7, 14, .62);
  --header-bg-2: rgba(5, 7, 14, .82);
  --menu-bg: #070a14;
  --glass: rgba(8, 12, 25, .66);       /* panels over content */
  --glass-2: rgba(8, 12, 25, .72);
  --glass-strong: rgba(8, 12, 25, .92);
  --glass-hover: rgba(13, 20, 41, .92);
  --panel: rgba(13, 20, 41, .6);
  --band: rgba(11, 18, 38, .7);
  --input-bg: rgba(3, 5, 11, .6);
  --form-a: rgba(13, 20, 41, .8);
  --form-b: rgba(8, 12, 25, .8);
  --footer-bg: #04060c;
  --hero-a: #05070e;
  --hero-b: #070b18;
  --hero-veil: rgba(5, 7, 14, .78);
  --grad: linear-gradient(100deg, #8fa8ff 0%, #b9a4ff 50%, #67e8f9 100%);
  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 22px;
  --header-h: 68px;
  color-scheme: dark;
}

/* ---------- Light theme ---------- */
:root[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-2: #eef1f8;
  --navy: #e6ebf6;
  --surface: #ffffff;
  --surface-2: #f2f5fb;
  --line: rgba(30, 45, 90, .12);
  --line-2: rgba(30, 45, 90, .2);
  --text: #121a2e;
  --text-2: #3a4560;
  --muted: #5f6a85;
  --blue-hi: #2f5ff0;
  --violet-hi: #7c4ddb;
  --cyan: #0e93ad;
  --green: #12a272;
  --red: #d33b3b;
  --err: #c0362c;
  --text-strong: #0b1222;
  --tint-1: rgba(20,35,80,.03);
  --tint-2: rgba(20,35,80,.05);
  --tint-3: rgba(20,35,80,.06);
  --header-bg: rgba(244, 246, 251, .72);
  --header-bg-2: rgba(244, 246, 251, .9);
  --menu-bg: #f6f8fc;
  --glass: rgba(255, 255, 255, .78);
  --glass-2: rgba(255, 255, 255, .86);
  --glass-strong: rgba(255, 255, 255, .97);
  --glass-hover: #ffffff;
  --panel: rgba(255, 255, 255, .7);
  --band: rgba(226, 232, 245, .7);
  --input-bg: #ffffff;
  --form-a: #ffffff;
  --form-b: #f7f9fd;
  --footer-bg: #e9edf6;
  --hero-a: #f6f8fc;
  --hero-b: #eef2fa;
  --hero-veil: rgba(246, 248, 252, .85);
  --grad: linear-gradient(100deg, #2b5cf6 0%, #7c3aed 50%, #0891b2 100%);
  color-scheme: light;
}
/* the 3D scenes and the film player stay dark, like screens on a light page */
:root[data-theme="light"] :is(.immersive, .film) {
  --line: rgba(150, 168, 220, .14);
  --line-2: rgba(150, 168, 220, .24);
  --text: #eef1f8;
  --text-2: #c9d0e2;
  --muted: #9aa5c0;
  --blue-hi: #5b82ff;
  --violet-hi: #a78bfa;
  --cyan: #22d3ee;
  --green: #34d399;
  --text-strong: #fff;
  --tint-1: rgba(255,255,255,.02);
  --tint-2: rgba(255,255,255,.04);
  --tint-3: rgba(255,255,255,.05);
  color-scheme: dark;
  color: var(--text);
}
:root[data-theme="light"] .site-header { box-shadow: 0 1px 0 var(--line); }
:root[data-theme="light"] .btn-primary { box-shadow: 0 6px 20px -10px rgba(43, 92, 246, .6); }
:root[data-theme="light"] .svc-visual > svg { box-shadow: 0 30px 70px -45px rgba(20, 35, 80, .45); }

/* ---------- Desktop Services dropdown ---------- */
.dd { position: static; }   /* panel is positioned against the header, centred */
.dd-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border: 0; border-radius: 10px; background: none; cursor: pointer; font-size: .95rem; color: var(--text-2); transition: color .2s, background .2s; }
.dd-btn:hover, .dd-btn[aria-expanded="true"], .dd-btn.is-active { color: var(--text); background: var(--tint-3); }
.dd-chev { transition: transform .2s; }
.dd-btn[aria-expanded="true"] .dd-chev { transform: rotate(180deg); }
.dd-panel { position: absolute; top: calc(100% + 8px); left: 50%; width: min(860px, 92vw); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--menu-bg); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .55); opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 60; }
.dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -28px; height: 28px; }   /* hover bridge */
.dd-btn[aria-expanded="true"] + .dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dd-col { display: flex; flex-direction: column; padding: 12px; border-radius: 12px; transition: background .2s; }
.dd-col:hover { background: var(--tint-2); }
#site-nav .dd-col ul { display: grid; gap: 2px; margin: 10px 0 12px; }
#site-nav .dd-head { display: flex; padding: 0 0 10px; margin-bottom: 2px; border-bottom: 1px solid var(--line); border-radius: 0; font-weight: 600; font-size: .95rem; color: var(--text); background: none; }
#site-nav .dd-head:hover { background: none; color: var(--text-strong); }
#site-nav .dd-col ul a { display: flex; padding: 8px 10px; margin: 0 -10px; font-size: .92rem; color: var(--text-2); }
#site-nav .dd-col ul a:hover { color: var(--text-strong); background: var(--tint-3); }
#site-nav .dd-overview { display: inline-flex; width: fit-content; margin-top: auto; padding: 4px 0; border-radius: 0; font-size: .86rem; font-weight: 600; color: var(--blue-hi); background: none; }
#site-nav .dd-overview:hover { background: none; text-decoration: underline; }

/* ---------- Phone menu (accordion) ---------- */
.m-menu { display: none; }
@media (max-width: 960px) {
  #site-nav > ul { display: none; }
  .m-menu { display: grid; gap: 0; }
  .nav { box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .45); }
  .m-acc { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; cursor: pointer; text-align: left; color: var(--text); }
  .m-acc-top { padding: 18px 4px; font-size: 1.15rem; font-weight: 600; border-bottom: 1px solid var(--line); }
  .m-acc-sub { padding: 14px 12px; font-size: 1.02rem; font-weight: 500; border-radius: 12px; }
  .m-acc-sub:hover, .m-acc-sub[aria-expanded="true"] { background: var(--tint-2); }
  .m-label { flex: 1; }
  .m-chev { flex: none; color: var(--muted); transition: transform .25s ease; }
  .m-acc[aria-expanded="true"] .m-chev { transform: rotate(180deg); color: var(--text); }
  /* smooth open/close without measuring heights */
  .m-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .3s ease, visibility .3s; }
  .m-acc[aria-expanded="true"] + .m-panel { grid-template-rows: 1fr; visibility: visible; }
  .m-panel > ul { overflow: hidden; min-height: 0; list-style: none; margin: 0; padding: 0; }
  .m-groups { display: grid; gap: 4px; }
  .m-groups > li:first-child { margin-top: 10px; }
  .m-groups > li:last-child { margin-bottom: 10px; }
  .m-links { display: grid; gap: 2px; padding: 2px 0 8px 30px !important; position: relative; }
  .m-links::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 12px; width: 1px; background: var(--line-2); }
  #site-nav .m-links a { display: block; padding: 10px 12px; border: 0; border-radius: 10px; font-size: .98rem; color: var(--text-2); text-decoration: none; }
  #site-nav .m-links a:hover, #site-nav .m-links a:focus-visible { background: var(--tint-3); color: var(--text-strong); }
  #site-nav .m-links .m-overview { color: var(--blue-hi); font-weight: 600; font-size: .92rem; }
  #site-nav .m-link { display: flex; padding: 18px 4px; font-size: 1.15rem; font-weight: 600; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); border-radius: 0; }
  .m-cta { margin-top: 20px; width: 100%; min-height: 50px; }
}
@media (max-width: 960px) and (prefers-reduced-motion: reduce) { .m-panel { transition: none; } }

/* Theme toggle (sun / moon) */
.theme-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); background: var(--tint-2); color: var(--text); cursor: pointer; transition: border-color .2s, background .2s; }
.theme-btn:hover { border-color: var(--blue-hi); }
.theme-btn .i-sun { display: none; }
:root[data-theme="light"] .theme-btn .i-sun { display: block; }
:root[data-theme="light"] .theme-btn .i-moon { display: none; }
.header-tools { display: flex; align-items: center; gap: 10px; }

body { transition: background-color .3s, color .3s; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.kicker { font: 500 .8rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.kicker-num { color: var(--pc, var(--blue-hi)); border: 1px solid currentColor; border-radius: 99px; padding: 2px 8px; font-size: .74rem; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, transform .2s, color .2s; white-space: nowrap; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 24px -8px rgba(43, 92, 246, .7); }
.btn-primary:hover { background: #3d6bff; transform: translateY(-1px); }
.btn-ghost { background: var(--tint-1); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--blue-hi); background: rgba(91,130,255,.08); }
.btn-wide { width: 100%; }
.text-link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--pc, var(--blue-hi)); padding-bottom: 2px; }
.text-link:hover { color: var(--blue-hi); }

/* =========================================================
   Header
   ========================================================= */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); background: var(--header-bg); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); background: var(--header-bg-2); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.18rem; letter-spacing: -.02em; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: .95rem; color: var(--text-2); transition: color .2s, background .2s; }
.nav a:not(.btn):hover, .nav a.is-active { color: var(--text); background: var(--tint-3); }
.nav-cta-li { margin-left: 10px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-growth { background: var(--blue-hi); }
.dot-eng { background: var(--violet-hi); }
.dot-soft { background: var(--cyan); }
.menu-btn { display: none; align-items: center; gap: 10px; background: var(--tint-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 16px; cursor: pointer; font-weight: 500; font-size: .95rem; }
.menu-bars { display: grid; gap: 5px; width: 18px; }
.menu-bars i { display: block; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .25s; }
/* three lines; when open the outer two cross into an X and the middle one fades */
.menu-bars i { transition: transform .25s, opacity .2s; }
.menu-btn[aria-expanded="true"] .menu-bars i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bars i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-bars i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =========================================================
   Stages (3D containers) + fallbacks
   ========================================================= */
.stage { position: relative; overflow: hidden; }
.stage canvas.gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s ease; touch-action: pan-y; }
.stage.is-live canvas.gl { opacity: 1; }
.stage-fallback { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .6s ease; }
.stage.is-live .stage-fallback { opacity: 0; pointer-events: none; }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; min-height: max(760px, 100svh); display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--header-h) + 28px) 0 64px; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(1200px 700px at 72% 40%, rgba(43, 92, 246, .16), transparent 60%),
    radial-gradient(800px 600px at 90% 90%, rgba(139, 92, 246, .10), transparent 60%),
    linear-gradient(180deg, var(--hero-a) 0%, var(--hero-b) 100%);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(180deg, transparent, var(--bg)); z-index: -1; pointer-events: none; }
.hero-stage { position: absolute; inset: 0; z-index: -1; }
.hero-fallback { left: 42%; width: 58%; top: 8%; height: 74%; opacity: .95; }
.hero-inner { flex: 1; display: flex; align-items: center; pointer-events: none; }   /* let the 3D map behind receive hover/drag/click */
.hero-inner > * { pointer-events: auto; }
.hero-copy { pointer-events: none; }   /* empty space in the text column lets map labels near it be hovered */
.hero-copy a, .hero-copy button { pointer-events: auto; }
.hero-copy { max-width: 540px; min-width: 0; padding: 24px 0 40px; position: relative; }
.hero-copy::before { content: ""; position: absolute; inset: -40px -80px -40px -200px; background: radial-gradient(closest-side, var(--hero-veil), transparent); z-index: -1; pointer-events: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 .74rem/1.4 var(--mono); letter-spacing: .06em; white-space: nowrap; text-transform: uppercase; color: var(--text-2); padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); margin-bottom: 26px; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(34,211,238,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,211,238,.5); } 70% { box-shadow: 0 0 0 10px rgba(34,211,238,0); } 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); } }
.hero h1 { font-size: clamp(2.4rem, 4.3vw, 3.7rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.02; margin-bottom: 24px; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--text-2); max-width: 540px; margin-bottom: 32px; line-height: 1.55; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-hint { margin: 22px 0 0; font: 400 .82rem/1.4 var(--mono); color: var(--muted); }
.hint-touch { display: none; }
@media (hover: none) { .hint-desktop { display: none; } .hint-touch { display: inline; } }

/* Projected 3D labels (decorative; buttons in the explorer are the accessible equivalent) */
.hero-labels { position: absolute; inset: 0; pointer-events: none; }
.hl { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); pointer-events: auto; cursor: pointer; white-space: nowrap; border: 1px solid var(--line-2); background: var(--glass-2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--text-2); border-radius: 999px; padding: 4px 10px; font: 500 .74rem/1.3 var(--mono); letter-spacing: .02em; transition: opacity .3s, border-color .2s, color .2s, background .2s; will-change: transform; }
.hl-hub { font: 600 .82rem/1.3 var(--font); letter-spacing: 0; padding: 6px 12px; color: var(--text); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.hl-hub::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c); margin-right: 8px; vertical-align: 1px; }
.hl:hover, .hl.is-on { color: var(--text-strong); border-color: var(--c); background: var(--glass-hover); }
.hl.is-dim { opacity: .25; }
.hl.is-hidden { opacity: 0; pointer-events: none; }
@media (max-width: 1279px) { .hl-svc { display: none; } .hl-svc.is-on { display: inline-block; } }   /* small map: group labels + the one you hover/tap */   /* smaller map: group labels only; services stay in the panel + tooltips */
/* label size scales with the screen (position stays fixed next to its dot) */
.hero-labels .hl-svc { font-size: clamp(.64rem, .5rem + .26vw, .78rem); padding: .3em .8em; }
.hero-labels .hl-hub { font-size: clamp(.74rem, .6rem + .28vw, .9rem); }
.hero-labels { transition: opacity .5s ease; }
.hero-labels.is-placing { opacity: 0; transition: none; }   /* hide instantly, fade in once placed */   /* labels appear once their fixed spots are set */
.hl-tip { position: absolute; left: 0; top: 0; pointer-events: none; max-width: 260px; white-space: normal; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--glass-strong); font-size: .85rem; line-height: 1.4; color: var(--text-2); opacity: 0; transition: opacity .2s; transform: translate(14px, -50%); }
.hl-tip.is-on { opacity: 1; }
.hl-tip.is-sheet { max-width: none; width: calc(100% - 20px); border-radius: 14px; padding: 12px 14px; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .5); z-index: 3; }
.hl-tip .tip-abbr { display: block; margin: 0 0 6px; font: 500 .72rem/1.45 var(--mono); color: var(--cyan); }
.explorer-readout .ro-abbr { color: var(--muted); font-size: .88em; }
.hl-tip strong { display: block; color: var(--text-strong); font-size: .9rem; margin-bottom: 2px; }

/* Explorer dock */
.explorer-band { position: relative; margin-top: -40px; padding: 0 0 8px; z-index: 1; }
.explorer { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow: hidden; }
.explorer-col { padding: 16px 18px 16px; border-right: 1px solid var(--line); position: relative; transition: background .3s; }
.explorer-col:nth-child(3) { border-right: 0; }
.explorer-col[data-pillar="growth"] { --c: var(--blue-hi); }
.explorer-col[data-pillar="engineering"] { --c: var(--violet-hi); }
.explorer-col[data-pillar="software"] { --c: var(--cyan); }
.explorer-col::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--c); opacity: .35; transition: opacity .3s; }
.explorer-col.is-on { background: color-mix(in srgb, var(--c) 7%, transparent); }
.explorer-col.is-on::before { opacity: 1; }
.explorer-pillar { display: flex; align-items: baseline; gap: 10px; width: 100%; text-align: left; background: none; border: 0; padding: 4px 0 10px; cursor: pointer; }
.ex-num { font: 500 .78rem var(--mono); color: var(--c); }
.ex-name { font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; }
.explorer-pillar:hover .ex-name { color: var(--c); }
.explorer-svcs { display: flex; flex-wrap: wrap; gap: 6px; }
.explorer-svcs button { border: 1px solid var(--line-2); background: var(--tint-1); border-radius: 999px; padding: 5px 11px; font-size: .84rem; color: var(--text-2); cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.explorer-svcs button:hover { border-color: var(--c); color: var(--text-strong); }
.explorer-svcs button[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--text-strong); }
.explorer-readout { grid-column: 1 / -1; margin: 0; padding: 12px 18px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--text-2); min-height: 48px; }
.explorer-readout strong { color: var(--text-strong); }
.explorer-readout a { color: var(--text); text-underline-offset: 3px; }

/* =========================================================
   Generic sections
   ========================================================= */
.section { padding: clamp(80px, 9vw, 124px) 0; position: relative; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); letter-spacing: -.035em; }
.h-sub { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.025em; }

/* Intro */
.intro-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
.intro-head { grid-column: 1 / span 7; }
.intro-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.intro-body { grid-column: 9 / span 4; align-self: end; color: var(--text-2); }
.intro-body p:last-child { margin: 0; color: var(--muted); }
.pillar-index { grid-column: 1 / -1; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--line-2); }
.pillar-index li + li { border-left: 1px solid var(--line); }
.pillar-index a { display: grid; gap: 10px; padding: 28px 28px 32px; text-decoration: none; height: 100%; position: relative; transition: background .3s; }
.pillar-index li:first-child a { padding-left: 0; }
.pillar-index a::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--c); transition: width .5s ease; }
.pillar-index li:not(:first-child) a::before { left: 0; }
.pillar-index a:hover::before, .pillar-index a:focus-visible::before { width: 100%; }
.pi-num { font: 500 .8rem var(--mono); color: var(--c); }
.pi-name { font-size: 1.45rem; font-weight: 600; letter-spacing: -.02em; }
.pi-desc { color: var(--text-2); }
.pi-list { color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* =========================================================
   Pillars and immersive stages
   ========================================================= */
.pillar { position: relative; padding: clamp(72px, 9vw, 120px) 0 0; }
.pillar-hero { position: relative; }
.pillar-hero::before { content: ""; position: absolute; inset: -60px 0 auto; height: 700px; background: radial-gradient(900px 480px at 50% 40%, rgba(var(--pc-rgb), .09), transparent 70%); pointer-events: none; z-index: -1; }
.pillar-head { margin-bottom: 40px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 32px; }
.pillar-head .kicker, .pillar-head h2 { grid-column: 1 / span 7; }
.pillar-head h2 { font-size: clamp(2.3rem, 5.6vw, 4.6rem); letter-spacing: -.045em; margin-bottom: 0; }
.pillar-lead { grid-column: 8 / span 5; grid-row: 2; align-self: end; color: var(--text-2); font-size: 1.08rem; margin: 0; }
.pillar-head-right .kicker, .pillar-head-right h2 { grid-column: 6 / span 7; }
.pillar-head-right .pillar-lead { grid-column: 1 / span 5; }

.immersive { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: radial-gradient(120% 120% at 60% 0%, rgba(var(--pc-rgb), .10), transparent 50%), linear-gradient(180deg, #0a1022, #070a16); box-shadow: 0 40px 120px -60px rgba(var(--pc-rgb), .5), inset 0 1px 0 rgba(255,255,255,.04); }
.immersive .stage { height: clamp(520px, 62vw, 680px); }
.immersive-ui { position: absolute; left: 24px; bottom: 24px; width: min(480px, calc(100% - 48px)); padding: 20px 22px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(7, 10, 22, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.seq-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.seq-title { font-size: 1.08rem; letter-spacing: -.015em; }
.seq-toggle { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 6px 12px; font-size: .82rem; cursor: pointer; color: var(--text-2); flex: none; }
.seq-toggle:hover { border-color: var(--pc); color: var(--text-strong); }
.ico-pause, .ico-play { width: 10px; height: 10px; position: relative; display: inline-block; }
.ico-pause { border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.ico-play { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.seq-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.seq-steps button, .wf-steps button { width: 100%; display: flex; align-items: center; gap: 8px; text-align: left; background: var(--tint-1); border: 1px solid var(--line); border-radius: 10px; padding: 8px 9px; cursor: pointer; color: var(--muted); font-size: .8rem; line-height: 1.25; transition: border-color .2s, background .2s, color .2s; position: relative; overflow: hidden; }
.seq-steps button { flex-direction: column; align-items: flex-start; gap: 4px; min-height: 64px; }
.s-n { font: 500 .72rem var(--mono); color: var(--pc); width: 20px; height: 20px; border: 1px solid currentColor; border-radius: 50%; display: inline-grid; place-items: center; flex: none; }
.seq-steps button:hover, .wf-steps button:hover { color: var(--text-strong); border-color: var(--line-2); }
.seq-steps button[aria-current="step"], .wf-steps button[aria-current="step"] { color: var(--text-strong); border-color: var(--pc); background: rgba(var(--pc-rgb), .12); }
.seq-steps button[aria-current="step"]::after, .wf-steps button[aria-current="step"]::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; background: var(--pc); width: 100%; transform-origin: left; animation: stepbar var(--step-ms, 3600ms) linear; }
.is-paused button[aria-current="step"]::after { animation: none; width: 100%; opacity: .4; }
@keyframes stepbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.seq-desc { color: var(--text-2); font-size: .95rem; margin: 0 0 10px; min-height: 4.4em; }
.demo-note { margin: 0; font: 400 .74rem/1.4 var(--mono); color: var(--muted); letter-spacing: .02em; }
.demo-badge { position: absolute; top: 18px; right: 18px; font: 500 .74rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #ffe2a8; background: rgba(245, 184, 74, .12); border: 1px solid rgba(245, 184, 74, .45); padding: 8px 12px; border-radius: 999px; z-index: 2; }

/* Split immersive variants */
.immersive-split, .immersive-arch { display: grid; }
.immersive-split { grid-template-columns: 380px minmax(0, 1fr); }
.immersive-split .stage { grid-column: 2; grid-row: 1; }
.immersive-split .immersive-ui, .immersive-arch .immersive-ui { position: relative; inset: auto; width: auto; border: 0; border-radius: 0; background: rgba(5, 8, 18, .55); backdrop-filter: none; -webkit-backdrop-filter: none; padding: 28px 26px; display: flex; flex-direction: column; }
.immersive-split .immersive-ui { grid-column: 1; grid-row: 1; border-right: 1px solid var(--line); }
.wf-steps { list-style: none; display: grid; gap: 6px; margin-bottom: 16px; counter-reset: wf; }
.wf-steps button { padding: 9px 10px; font-size: .9rem; }
.wf-ui .seq-desc { margin-top: auto; padding-top: 6px; }

.immersive-arch { grid-template-columns: minmax(0, 1fr) 380px; }
.immersive-arch .immersive-ui { border-left: 1px solid var(--line); }
.arch-intro { color: var(--muted); font-size: .92rem; margin: 8px 0 16px; }
.arch-layers { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.arch-layers button { border: 1px solid var(--line-2); background: var(--tint-1); border-radius: 999px; padding: 7px 12px; font-size: .85rem; color: var(--text-2); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.arch-layers button:hover { color: var(--text-strong); border-color: var(--pc); }
.arch-layers button[aria-pressed="true"] { color: var(--text-strong); border-color: var(--pc); background: rgba(var(--pc-rgb), .14); }
.arch-inspector { border-top: 1px solid var(--line); padding-top: 16px; margin-top: auto; min-height: 220px; }
.arch-inspector h4 { font-size: 1.12rem; margin-bottom: 8px; color: var(--text-strong); }
.arch-inspector p { color: var(--text-2); font-size: .95rem; margin-bottom: 12px; }
.arch-tech { font-size: .88rem !important; color: var(--muted) !important; border-left: 2px solid var(--pc); padding-left: 12px; }
.arch-tech span { display: block; font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--pc); margin-bottom: 3px; }
.arch-tip { position: absolute; left: 0; top: 0; pointer-events: none; padding: 6px 10px; border-radius: 8px; background: rgba(7,10,22,.92); border: 1px solid var(--line-2); font-size: .82rem; color: var(--text-strong); opacity: 0; transition: opacity .15s; transform: translate(12px, -130%); white-space: nowrap; }
.arch-tip.is-on { opacity: 1; }
.stage.is-grab { cursor: grab; }
.stage.is-pointer { cursor: pointer; }

/* =========================================================
   Services
   ========================================================= */
.services { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 72px; padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 12px); }
.svc:first-child { border-top: 0; padding-top: 0; }
.svc-head { align-self: center; }
.svc-num { font: 500 .85rem var(--mono); color: var(--pc); margin-bottom: 14px; }
.svc h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.035em; margin-bottom: 18px; }
.svc-sum { font-size: 1.12rem; color: var(--text-2); margin: 0; max-width: 520px; }
.svc-visual { margin: 0; border-radius: 18px; position: relative; width: 100%; max-width: 540px; justify-self: end; }
.svc-flip .svc-visual { justify-self: start; }
.svc-visual > svg { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 30px 80px -50px rgba(var(--pc-rgb), .7); }
.svc-flip .svc-head { grid-column: 2; grid-row: 1; }
.svc-flip .svc-visual { grid-column: 1; grid-row: 1; }
.svc-body { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; padding-top: 8px; }
.svc-cs, .svc-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.svc-body h4 { font: 500 .76rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.svc-cs p { color: var(--text-2); margin: 0; font-size: 1rem; }
.caps, .outs { list-style: none; display: grid; gap: 8px; font-size: .97rem; color: var(--text-2); }
.caps li, .outs li { position: relative; padding-left: 20px; line-height: 1.45; }
.caps li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 6px; height: 6px; border-radius: 2px; border: 1px solid var(--pc); }
.outs li::before { content: ""; position: absolute; left: 0; top: .32em; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg) scale(.8); }
.outs li { color: var(--text); }

/* ---------- Service visual system (SVG) ---------- */
.v-card { fill: #0a1124; stroke: rgba(150,168,220,.16); }
.v-label { font: 500 9.5px var(--mono); letter-spacing: .12em; fill: #8d98b5; }
.v-small { font: 500 11.5px var(--font); fill: #c9d0e2; }
.v-tiny { font: 500 9.5px var(--font); fill: #c9d0e2; }
.v-mid { text-anchor: middle; }
.v-end { text-anchor: end; }
.v-blue { fill: #8fa8ff; } .v-violet { fill: #c4b5fd; } .v-cyan { fill: #67e8f9; }
.v-grid path { stroke: rgba(150,168,220,.1); stroke-dasharray: 2 4; }
.v-line { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 420; }
.v-l1 { stroke: #5b82ff; animation: vdraw 6s ease-in-out infinite; }
.v-l2 { stroke: #a78bfa; opacity: .7; animation: vdraw 6s ease-in-out infinite .3s; }
@keyframes vdraw { 0% { stroke-dashoffset: 420; } 35%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: .0; } }
.v-track { fill: #1a2446; }
.v-bar-a { fill: #5b82ff; transform-box: fill-box; transform-origin: left center; transform: scaleX(1.3); animation: vbudget 6s ease-in-out infinite; }
@keyframes vbudget { 0%, 35% { transform: scaleX(1); } 55%, 100% { transform: scaleX(1.3); } }
.v-chip rect { fill: rgba(34,211,238,.12); stroke: rgba(34,211,238,.6); }
.v-chip text { font: 500 10px var(--font); fill: #a5f3fc; }
.v-chip { animation: vfade 6s ease-in-out infinite; }
@keyframes vfade { 0%, 40% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }
.v-doc { fill: #121b35; stroke: rgba(150,168,220,.3); }
.v-ink { fill: rgba(201,208,226,.25); }
.v-ink-hi { fill: rgba(201,208,226,.7); }
.v-schema { fill: rgba(167,139,250,.18); stroke: rgba(167,139,250,.6); }
.v-flow path { fill: none; stroke: rgba(150,168,220,.28); stroke-width: 1.4; stroke-dasharray: 3 4; }
.v-packets .p1 { fill: #5b82ff; } .v-packets .p2 { fill: #a78bfa; } .v-packets .p3 { fill: #22d3ee; }
.v-surface { fill: #101934; stroke: rgba(150,168,220,.2); }
.v-cite { fill: rgba(34,211,238,.14); stroke: rgba(34,211,238,.55); }
.v-rail path { stroke: rgba(150,168,220,.25); stroke-width: 2; stroke-dasharray: 4 5; }
.v-st { fill: #101934; stroke: rgba(91,130,255,.5); stroke-width: 1.5; }
.v-st-human { stroke: rgba(245,184,74,.8); }
.v-ico { fill: none; stroke: #c9d0e2; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.v-stages > g:nth-child(1) .v-st { animation: vstage 8s infinite 0s; }
.v-stages > g:nth-child(2) .v-st { animation: vstage 8s infinite 2s; }
.v-stages > g:nth-child(3) .v-st { animation: vstage-h 8s infinite 4s; }
.v-stages > g:nth-child(4) .v-st { animation: vstage 8s infinite 6s; }
@keyframes vstage { 0%, 22% { fill: rgba(91,130,255,.25); stroke: #8fa8ff; } 30%, 100% { fill: #101934; stroke: rgba(91,130,255,.5); } }
@keyframes vstage-h { 0%, 22% { fill: rgba(245,184,74,.22); stroke: #f5b84a; } 30%, 100% { fill: #101934; stroke: rgba(245,184,74,.8); } }
.v-doc-move { transform: translate(226px, 62px); animation: vdocmove 8s infinite cubic-bezier(.6,0,.3,1); }
@keyframes vdocmove { 0%, 15% { transform: translate(40px, 62px); } 25%, 40% { transform: translate(133px, 62px); } 50%, 65% { transform: translate(226px, 62px); } 75%, 92% { transform: translate(320px, 62px); } 100% { transform: translate(320px, 62px); opacity: 0; } }
.v-outlets rect { animation: vout 8s infinite; }
.v-outlets rect:nth-of-type(2) { animation-delay: .2s; } .v-outlets rect:nth-of-type(3) { animation-delay: .4s; }
@keyframes vout { 0%, 74% { stroke: rgba(150,168,220,.2); } 80%, 95% { stroke: #22d3ee; } 100% { stroke: rgba(150,168,220,.2); } }
.v-node { fill: #101934; stroke: rgba(150,168,220,.3); }
.v-node-ai { stroke: #a78bfa; fill: rgba(167,139,250,.1); }
.v-node-human { stroke: #f5b84a; fill: rgba(245,184,74,.08); }
.v-check circle { fill: rgba(52,211,153,.15); stroke: #34d399; }
.v-check path { fill: none; stroke: #34d399; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v-check { animation: vcheck 4s infinite; }
@keyframes vcheck { 0%, 85% { opacity: .15; } 90%, 100% { opacity: 1; } }
.v-tags { animation: vfade2 4s infinite; }
@keyframes vfade2 { 0%, 20% { opacity: .2; } 30%, 100% { opacity: 1; } }

/* Knowledge graph */
.kg-edges path { stroke: rgba(150,168,220,.18); stroke-width: 1.4; transition: stroke .4s, stroke-width .4s; }
.kg-edges path.kg-weak { stroke-dasharray: 2 4; stroke: rgba(150,168,220,.12); }
.kg-edges path.is-hit { stroke: #a78bfa; stroke-width: 2.4; }
.kg-nodes circle { fill: #101934; stroke: rgba(150,168,220,.45); stroke-width: 1.5; transition: fill .4s, stroke .4s, r .4s; }
.kg-nodes g.is-hit circle { fill: #a78bfa; stroke: #e9e2ff; r: 9; }
.kg-nodes g text { transition: fill .3s; fill: #97a2bf; }
.kg-nodes g.is-hit text { fill: #fff; }
.kg-query circle { fill: rgba(167,139,250,.18); stroke: #a78bfa; stroke-width: 1.5; animation: kgq 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes kgq { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.kg-ui { display: grid; gap: 10px; margin-top: 14px; font-size: .9rem; }
.kg-label { color: var(--muted); font: 500 .76rem var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.kg-qs { display: flex; flex-wrap: wrap; gap: 6px; }
.kg-qs button { border: 1px solid var(--line-2); background: var(--tint-1); border-radius: 999px; padding: 6px 12px; font-size: .88rem; color: var(--text-2); cursor: pointer; }
.kg-qs button:hover { border-color: var(--violet-hi); color: var(--text-strong); }
.kg-qs button[aria-pressed="true"] { border-color: var(--violet-hi); background: rgba(167,139,250,.16); color: var(--text-strong); }
.kg-result { color: var(--text-2); min-height: 3em; }

/* Chat */
.v-live { fill: #34d399; }
.v-bubble-user { fill: rgba(91,130,255,.2); stroke: rgba(91,130,255,.6); }
.v-bubble-bot { fill: #121b35; stroke: rgba(150,168,220,.25); }
.v-kb { fill: rgba(167,139,250,.12); stroke: rgba(167,139,250,.5); stroke-dasharray: 3 3; }
.v-handoff { fill: transparent; stroke: rgba(245,184,74,.7); }
.chat { animation: vchat 9s infinite; }
.chat.c1 { animation-name: vchat1; } .chat.c2 { animation-name: vchat2; } .chat.c3 { animation-name: vchat3; } .chat.c4 { animation-name: vchat4; } .chat.c5 { animation-name: vchat5; }
@keyframes vchat1 { 0%, 4% { opacity: 0; } 9%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes vchat2 { 0%, 14% { opacity: 0; } 18%, 32% { opacity: 1; } 36%, 100% { opacity: .35; } }
@keyframes vchat3 { 0%, 34% { opacity: 0; } 40%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes vchat4 { 0%, 46% { opacity: 0; } 52%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes vchat5 { 0%, 62% { opacity: 0; } 68%, 92% { opacity: 1; } 100% { opacity: 0; } }

/* Web */
.v-sep { stroke: rgba(150,168,220,.2); }
.v-block { fill: rgba(91,130,255,.12); stroke: rgba(91,130,255,.35); }
.v-btn { fill: #2b5cf6; }
.web-blocks .v-block { animation: vblock 3.6s infinite; }
.web-blocks .b2 { animation-delay: .25s; } .web-blocks .b3 { animation-delay: .5s; }
@keyframes vblock { 0%, 10% { fill: rgba(150,168,220,.06); stroke: rgba(150,168,220,.15); } 30%, 100% { fill: rgba(91,130,255,.12); stroke: rgba(91,130,255,.35); } }

/* Ecosystem */
.eco-orbit ellipse { fill: none; stroke: rgba(34,211,238,.2); stroke-dasharray: 2 5; }
.eco-links path { stroke: rgba(150,168,220,.22); stroke-width: 1.2; }
.eco-core rect { fill: rgba(34,211,238,.12); stroke: #22d3ee; }
.eco-sat rect { fill: #101934; stroke: rgba(150,168,220,.35); }
.eco-sat > g { animation: vsat 6s infinite; }
.eco-sat > g:nth-child(2) { animation-delay: 1s; } .eco-sat > g:nth-child(3) { animation-delay: 2s; } .eco-sat > g:nth-child(4) { animation-delay: 3s; } .eco-sat > g:nth-child(5) { animation-delay: 4s; } .eco-sat > g:nth-child(6) { animation-delay: 5s; }
@keyframes vsat { 0%, 12% { opacity: 1; } 6% { opacity: .55; } 100% { opacity: 1; } }
.eco-pulse circle { fill: #22d3ee; }

/* QA */
.q { fill: rgba(52,211,153,.75); animation: vq 6s infinite; }
.q.t1 { animation-delay: .2s; } .q.t2 { animation-delay: .4s; } .q.t3 { animation-delay: .6s; } .q.t4 { animation-delay: .8s; } .q.t5 { animation-delay: 1s; } .q.t6 { animation-delay: 1.2s; }
@keyframes vq { 0%, 8% { fill: rgba(150,168,220,.12); } 14%, 100% { fill: rgba(52,211,153,.75); } }
.q.q-fail { animation-name: vqfail; }
@keyframes vqfail { 0%, 8% { fill: rgba(150,168,220,.12); } 14%, 55% { fill: #f87171; } 62%, 100% { fill: rgba(52,211,153,.75); } }
.qa-st-run { fill: #fca5a5; animation: vqs1 6s infinite; opacity: .35; }
.qa-st-ok { fill: #6ee7b7; animation: vqs2 6s infinite; }
@keyframes vqs1 { 0%, 14% { opacity: 0; } 18%, 58% { opacity: 1; } 64%, 100% { opacity: .35; } }
@keyframes vqs2 { 0%, 60% { opacity: 0; } 66%, 100% { opacity: 1; } }
.qa-deploy rect { animation: vqd 6s infinite; stroke: #34d399; }
@keyframes vqd { 0%, 64% { stroke: rgba(150,168,220,.3); fill: #101934; } 70%, 100% { stroke: #34d399; fill: rgba(52,211,153,.12); } }
.qa-test-stage { stroke: #22d3ee; }

/* Agentic AI block inside AI Implementation */
.svc-agents { scroll-margin-top: calc(var(--header-h) + 20px); grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding: 24px; border: 1px solid rgba(var(--pc-rgb), .35); border-radius: 18px; background: rgba(var(--pc-rgb), .06); }
.svc-agents h4 { color: var(--pc); }
.svc-agents p { margin: 0; color: var(--text-2); }
@media (max-width: 767px) { .svc-agents { grid-template-columns: 1fr; gap: 0; padding: 4px 16px; } }

/* ---------- Service tabs (one service per pillar visible at a time) ---------- */
.svc-tabs { display: flex; gap: 8px; padding: 6px; margin: 0 0 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--tint-1); width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.svc-tabs::-webkit-scrollbar { display: none; }
.svc-tab { display: inline-flex; align-items: center; gap: 10px; flex: none; padding: 10px 18px; border: 1px solid transparent; border-radius: 999px; background: none; cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--text-2); white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.svc-tab:hover { color: var(--text-strong); }
.svc-tab[aria-selected="true"] { color: var(--text-strong); background: rgba(var(--pc-rgb), .14); border-color: rgba(var(--pc-rgb), .55); }
.st-n { font: 500 .74rem var(--mono); color: var(--pc); }
.services.is-tabbed .svc { border-top: 0; padding-top: clamp(28px, 4vw, 48px); }
.services.is-tabbed .svc[hidden] { display: none; }
.services.is-tabbed .svc:not([hidden]) { animation: svcIn .35s ease; }
@keyframes svcIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* arrows on tab rows wider than the screen */
.tabs-wrap { position: relative; max-width: 100%; width: fit-content; }
.tabs-arrow { position: absolute; top: 0; bottom: 0; z-index: 2; display: grid; place-items: center; width: 52px; border: 0; padding: 0; cursor: pointer; color: var(--text-strong); }
.tabs-arrow[hidden] { display: none; }
.tabs-arrow svg { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .45); box-sizing: border-box; }
.tabs-arrow-left { left: 0; justify-content: start; padding-left: 4px; border-radius: 999px 0 0 999px; background: linear-gradient(90deg, var(--bg) 35%, transparent); }
.tabs-arrow-right { right: 0; justify-content: end; padding-right: 4px; border-radius: 0 999px 999px 0; background: linear-gradient(270deg, var(--bg) 35%, transparent); }
.tabs-arrow:hover svg { border-color: var(--pc, var(--blue-hi)); }
.tabs-arrow:active svg { transform: scale(.94); }

/* detail headings: plain headings on desktop, tap-to-open rows on phones */
.acc-btn { all: unset; display: block; width: 100%; cursor: default; }
@media (max-width: 767px) {
  .tabs-wrap { width: 100%; }
  .tabs-arrow-left { border-radius: 16px 0 0 16px; } .tabs-arrow-right { border-radius: 0 16px 16px 0; }
  .svc-tabs { width: auto; border-radius: 16px; margin-bottom: 4px; scroll-snap-type: x proximity; scroll-padding-inline: 6px; }
  .svc-tab { scroll-snap-align: start; }
  .svc-tab { padding: 9px 14px; font-size: .9rem; }
  .svc-body, .svc-cs, .svc-lists { gap: 0 !important; }
  .svc-body .acc { border-top: 1px solid var(--line); }
  .svc-body h4 { margin: 0; padding: 0; border: 0; }
  .acc-btn { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 2px; box-sizing: border-box; }
  .acc-btn::after { content: ""; width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .25s; flex: none; }
  .acc-btn[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }
  .acc-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
  .acc .acc-body { display: none; }
  .acc:has(.acc-btn[aria-expanded="true"]) .acc-body { display: block; padding-bottom: 16px; }
  .acc:has(.acc-btn[aria-expanded="true"]) ul.acc-body { display: grid; }
}

/* Pause visuals offscreen */
.svc-visual.is-off *, .svc-visual.is-off { animation-play-state: paused !important; }

/* =========================================================
   Search layers
   ========================================================= */
.layers { background: linear-gradient(180deg, transparent, var(--band) 20%, var(--band) 80%, transparent); }
.layers-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 32px; margin-bottom: 56px; }
.layers-head .kicker, .layers-head h2 { grid-column: 1 / span 7; }
.layers-head p:not(.kicker) { grid-column: 8 / span 5; grid-row: 2; align-self: end; color: var(--text-2); margin: 0; }
.layers-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; position: relative; }
.layer-item { padding: 28px 26px 30px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 8%, transparent), transparent 70%); position: relative; }
.layer-item:nth-child(2) { transform: translateY(24px); }
.layer-item:nth-child(3) { transform: translateY(48px); }
.layer-item dt { display: grid; gap: 4px; margin-bottom: 18px; }
.l-num { font: 500 .78rem var(--mono); color: var(--c); }
.l-abbr { font-size: 3rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.l-full { color: var(--muted); font-size: .9rem; }
.layer-item dd { margin: 0; color: var(--text-2); }
.layer-item dd strong { color: var(--text-strong); display: block; margin-bottom: 4px; font-size: 1.08rem; }
.l-goal { display: block; width: fit-content; margin-top: 16px; font: 500 .78rem var(--mono); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); border-radius: 999px; padding: 4px 10px; }
.layers-cta { margin-top: 96px; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 28px 32px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--panel); }
.layers-cta p { margin: 0; color: var(--text-2); max-width: 760px; }
.layers-cta strong { color: var(--text-strong); }

/* =========================================================
   Reels
   ========================================================= */
.reels { background: radial-gradient(900px 500px at 50% 30%, rgba(43,92,246,.10), transparent 70%); }
.reels-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 32px; margin-bottom: 40px; }
.reels-head .kicker, .reels-head h2 { grid-column: 1 / span 7; }
.reels-head p:not(.kicker) { grid-column: 8 / span 5; grid-row: 2; align-self: end; margin: 0; color: var(--text-2); }
.reel-player { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.reel-tabs { display: grid; gap: 8px; }
.reel-tabs button { display: grid; gap: 6px; text-align: left; border: 1px solid var(--line); background: var(--tint-1); border-radius: 14px; padding: 14px 16px; cursor: pointer; font-weight: 600; font-size: 1rem; color: var(--text-2); transition: border-color .2s, background .2s, color .2s; }
.reel-tabs button:hover { color: var(--text-strong); border-color: var(--line-2); }
.reel-tabs button[aria-pressed="true"] { color: var(--text-strong); border-color: var(--blue-hi); background: rgba(91,130,255,.1); }
.rt-n { font: 500 .74rem var(--mono); color: var(--muted); }
.film { margin: 0; grid-column: 2; grid-row: 1 / span 2; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); background: #03050b; box-shadow: 0 50px 120px -60px rgba(43,92,246,.6); }
.film-frame { position: relative; aspect-ratio: 16 / 9; background: #03050b; }
.film-canvas { width: 100%; height: 100%; }
.film-fallback { display: none; }
.film-caption { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); margin: 0; max-width: 86%; text-align: center; padding: 8px 16px; background: rgba(3,5,11,.72); border-radius: 8px; font-size: clamp(.9rem, 1.6vw, 1.2rem); font-weight: 500; color: var(--text-strong); letter-spacing: -.005em; }
.film-tag { position: absolute; top: 14px; right: 14px; font: 500 .7rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #ffe2a8; background: rgba(245,184,74,.12); border: 1px solid rgba(245,184,74,.45); padding: 7px 10px; border-radius: 999px; }
.film-tag[hidden] { display: none; }
.film-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); background: #070a15; }
.film-play { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); display: grid; place-items: center; cursor: pointer; color: var(--text-strong); }
.film-play:hover { border-color: var(--blue-hi); }
.film-play .ico-play { margin-left: 3px; }
.film-title { font-weight: 600; font-size: .95rem; white-space: nowrap; }
.film-progress { flex: 1; height: 3px; border-radius: 3px; background: rgba(150,168,220,.18); overflow: hidden; }
.film-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue-hi), var(--violet-hi), var(--cyan)); }
.film-time { font: 500 .8rem var(--mono); color: var(--muted); white-space: nowrap; }
.film-script { grid-column: 1; list-style: none; counter-reset: sc; display: grid; gap: 10px; padding: 16px 4px 0; border-top: 1px solid var(--line); }
.film-script li { counter-increment: sc; color: var(--muted); font-size: .92rem; padding-left: 28px; position: relative; transition: color .3s; }
.film-script li::before { content: "0" counter(sc); position: absolute; left: 0; top: .15em; font: 500 .72rem var(--mono); color: var(--muted); }
.film-script li.is-on { color: var(--text-strong); }
.film-script li.is-on::before { color: var(--cyan); }

/* =========================================================
   How we work
   ========================================================= */
.how-head { max-width: 760px; margin-bottom: 56px; }
.process { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 1px; background: linear-gradient(90deg, var(--blue-hi), var(--violet-hi), var(--cyan)); opacity: .5; }
.process li { padding: 0 24px 0 0; position: relative; }
.p-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); font: 500 .8rem var(--mono); color: var(--text); margin-bottom: 22px; position: relative; }
.process li:nth-child(1) .p-n { border-color: var(--blue-hi); }
.process li:nth-child(3) .p-n { border-color: var(--violet-hi); }
.process li:nth-child(5) .p-n { border-color: var(--cyan); }
.process h3 { font-size: 1.35rem; margin-bottom: 10px; }
.process p { color: var(--text-2); font-size: .97rem; margin: 0; }
.engage-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin: 110px 0 28px; flex-wrap: wrap; }
.engage-head p { margin: 0; color: var(--muted); }
.engage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.eng-item { padding: 30px 28px; display: flex; flex-direction: column; gap: 6px; }
.eng-item + .eng-item { border-left: 1px solid var(--line); }
.eng-item h4 { font-size: 1.5rem; letter-spacing: -.025em; }
.eng-sub { color: var(--muted); margin: 0 0 14px; }
.eng-item ul { list-style: none; display: grid; gap: 8px; margin-bottom: 24px; color: var(--text-2); }
.eng-item li { padding-left: 18px; position: relative; }
.eng-item li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1.5px; background: var(--blue-hi); }
.eng-item .text-link { margin-top: auto; align-self: flex-start; }
.eng-feature { background: linear-gradient(180deg, rgba(91,130,255,.10), rgba(139,92,246,.05)); }
.principles { margin-top: 110px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; }
.principles ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.principles li { color: var(--text-2); padding-top: 16px; border-top: 1px solid var(--line); }
.principles strong { display: block; color: var(--text-strong); font-size: 1.08rem; margin-bottom: 4px; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { background: linear-gradient(180deg, transparent, var(--band)); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; }
.faq-side { color: var(--muted); margin-top: 20px; }
.faq-side a { color: var(--text); }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 1.15rem; font-weight: 500; letter-spacing: -.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); background: linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 10px no-repeat; transition: transform .25s; }
.faq-list details[open] summary::after { transform: rotate(45deg); border-color: var(--blue-hi); }
.faq-list summary:hover { color: var(--blue-hi); }
.faq-list details p { color: var(--text-2); max-width: 760px; padding-bottom: 20px; margin: 0; }

/* =========================================================
   Contact
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; }
.contact-copy h2 { margin-bottom: 20px; }
.contact-copy > p:not(.kicker) { color: var(--text-2); }
.mail { display: inline-block; margin-top: 12px; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -.02em; color: var(--blue-hi); text-decoration: none; border-bottom: 1px solid rgba(91,130,255,.4); }
.mail:hover { border-color: var(--blue-hi); }
.contact-note { color: var(--muted) !important; margin-top: 20px; font-size: .95rem; }
.form-wrap { border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3vw, 36px); background: linear-gradient(180deg, var(--form-a), var(--form-b)); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { margin: 0 0 20px; display: grid; gap: 8px; min-width: 0; }
.field:nth-of-type(3), .field.chips, .field:has(textarea) { grid-column: 1 / -1; }
.field label, .field legend { font-size: .9rem; font-weight: 500; color: var(--text-2); }
.opt { color: var(--muted); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field textarea { width: 100%; background: var(--input-bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; font: 400 1rem var(--font); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-hi); box-shadow: 0 0 0 3px rgba(91,130,255,.25); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red); }
.err { margin: 0; color: var(--err); font-size: .88rem; min-height: 0; }
.err:empty { display: none; }
.chips { border: 0; padding: 0; }
.chips legend { padding: 0; margin-bottom: 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.chip span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .9rem; color: var(--text-2); transition: border-color .2s, background .2s, color .2s; }
.chip:hover span { border-color: var(--blue-hi); color: var(--text-strong); }
.chip input:checked + span { background: rgba(91,130,255,.18); border-color: var(--blue-hi); color: var(--text-strong); }
.chip input:checked + span::before { content: "✓ "; }
.chip input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.form .btn-wide { grid-column: 1 / -1; margin-top: 4px; }
.form-fine { grid-column: 1 / -1; color: var(--muted); font-size: .85rem; margin: 14px 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }   /* anti-spam honeypot */
.turnstile { grid-column: 1 / -1; }
.turnstile:empty { display: none; }
.form-error { grid-column: 1 / -1; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--red) 50%, transparent); background: color-mix(in srgb, var(--red) 10%, transparent); color: var(--text); font-size: .95rem; }
.form-error a { color: var(--blue-hi); font-weight: 600; }
.form-error[hidden], .form[hidden], .thanks[hidden] { display: none; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.thanks { padding: 12px 0; }
.thanks:focus { outline: none; }
.thanks h3 { font-size: 1.6rem; margin-bottom: 14px; }
.thanks p { color: var(--text-2); }
.thanks a { color: var(--blue-hi); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 110px; background: var(--footer-bg); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
.footer-brand p { color: var(--muted); margin: 16px 0 10px; max-width: 320px; }
.footer-brand > a:last-child { color: var(--text-2); }
.footer-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-nav h2 { font: 500 .76rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; }
.footer-nav ul { list-style: none; display: grid; gap: 8px; }
.footer-nav a { text-decoration: none; color: var(--text-2); font-size: .95rem; }
.footer-nav a:hover { color: var(--text-strong); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer-base p { margin: 0; }
.footer-base a { text-decoration: none; }

/* =========================================================
   Pricing page
   ========================================================= */
.pr-hero { position: relative; padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(48px, 6vw, 80px); overflow: hidden;
  background: radial-gradient(900px 500px at 80% 0%, rgba(43, 92, 246, .14), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(139, 92, 246, .08), transparent 60%); }
.pr-hero-inner > * { max-width: 880px; }
.pr-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); letter-spacing: -.045em; line-height: 1.02; margin-bottom: 24px; }
.pr-hero .lead { max-width: 720px; }
.pr-head { max-width: 760px; margin-bottom: 40px; }
.pr-head h2 { margin-bottom: 16px; }
.pr-head p:not(.kicker) { color: var(--text-2); margin: 0; }
.pr-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pr-pillar { display: flex; flex-direction: column; gap: 12px; padding: 28px 26px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, transparent), transparent 60%); }
.pr-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 500 .78rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.pr-pillar h3 { font-size: 1.4rem; letter-spacing: -.02em; }
.pr-pillar > p:not(.pr-pill):not(.pr-next) { color: var(--text-2); margin: 0; }
.pr-next { margin: 4px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text-2); font-size: .95rem; }
.pr-next span { display: block; font: 500 .74rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--c); margin-bottom: 4px; }
.pr-pillar .text-link { margin-top: auto; align-self: flex-start; --pc: var(--c); }
.pr-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.pr-sticky { position: sticky; top: calc(var(--header-h) + 32px); }
.pr-factors { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.pr-factors li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pf-n { font: 500 .85rem var(--mono); color: var(--blue-hi); padding-top: 4px; }
.pr-factors h3 { font-size: 1.2rem; margin-bottom: 6px; }
.pr-factors p { margin: 0; color: var(--text-2); }
.pr-models .engage { margin-top: 0; }
.pr-included { margin-top: 72px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; }
.pr-included ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; }
.pr-included li { color: var(--text-2); padding-top: 16px; border-top: 1px solid var(--line); }
.pr-included strong { display: block; color: var(--text-strong); font-size: 1.05rem; margin-bottom: 4px; }
.pr-cta { padding-top: 0; }
.pr-cta-box { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line-2); border-radius: 24px; background: linear-gradient(120deg, rgba(43, 92, 246, .14), rgba(139, 92, 246, .08) 60%, transparent), var(--panel); }
.pr-cta-box h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 10px; }
.pr-cta-box p { margin: 0; color: var(--text-2); max-width: 620px; }
.nav a[aria-current="page"], .footer-nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 960px) {
  .pr-pillars { grid-template-columns: 1fr; }
  .pr-split, .pr-included { grid-template-columns: 1fr; gap: 28px; }
  .pr-sticky { position: static; }
  .pr-cta-box { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .pr-included ul { grid-template-columns: 1fr; gap: 18px; }
  .pr-factors li { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
  .pr-cta-box .btn { width: 100%; }
}

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .nav a:not(.btn) { padding: 10px 8px; font-size: .9rem; }
  .immersive-split { grid-template-columns: 330px minmax(0, 1fr); }
  .immersive-arch { grid-template-columns: minmax(0, 1fr) 330px; }
  .svc-body { grid-template-columns: 1fr; gap: 28px; }
  .reel-player { grid-template-columns: 1fr; }
  .reel-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .film { grid-column: 1; grid-row: auto; }
  .film-script { grid-column: 1; }
}

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav { position: fixed; inset: var(--header-h) 0 auto; background: var(--menu-bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; max-height: calc(100svh - var(--header-h)); overflow-y: auto; }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a:not(.btn) { display: flex; padding: 16px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-cta-li { margin: 18px 0 0; }
  .nav-cta-li .btn { width: 100%; min-height: 50px; }
  .intro-head, .intro-body { grid-column: 1 / -1; }
  .pillar-head .kicker, .pillar-head h2, .pillar-lead, .pillar-head-right .kicker, .pillar-head-right h2, .pillar-head-right .pillar-lead { grid-column: 1 / -1; }
  .pillar-lead { grid-row: auto; margin-top: 18px; }
  .layers-head .kicker, .layers-head h2, .layers-head p:not(.kicker), .reels-head .kicker, .reels-head h2, .reels-head p:not(.kicker) { grid-column: 1 / -1; grid-row: auto; }
  .layers-head p:not(.kicker), .reels-head p:not(.kicker) { margin-top: 16px; }
  .immersive-split, .immersive-arch { grid-template-columns: 1fr; }
  .immersive-split .stage, .immersive-arch .stage { grid-column: 1; grid-row: 1; }
  .immersive-split .immersive-ui, .immersive-arch .immersive-ui { grid-column: 1; grid-row: 2; border: 0; border-top: 1px solid var(--line); }
  .wf-steps { grid-template-columns: 1fr 1fr; }
  .svc, .svc-flip { grid-template-columns: 1fr; gap: 28px; }
  .svc-head, .svc-visual, .svc-flip .svc-head, .svc-flip .svc-visual, .svc-body { grid-column: 1; grid-row: auto; }
  .process { grid-template-columns: 1fr; gap: 0; }
  .process::before { left: 19px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--blue-hi), var(--violet-hi), var(--cyan)); }
  .process li { display: grid; grid-template-columns: 40px 1fr; gap: 0 20px; padding: 0 0 28px; }
  .process .p-n { grid-row: span 2; margin: 0; }
  .engage { grid-template-columns: 1fr; }
  .eng-item + .eng-item { border-left: 0; border-top: 1px solid var(--line); }
  .principles, .faq-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layers-grid { grid-template-columns: 1fr; }
  .layer-item:nth-child(2), .layer-item:nth-child(3) { transform: none; }
  .layers-cta { margin-top: 40px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 767px) {
  body { font-size: 16.5px; }
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 16px); }
  .hero-stage { position: relative; inset: auto; height: 340px; order: 2; z-index: 0; margin: 0 0 12px; }
  .hero-fallback { left: 0; width: 100%; top: 0; height: 100%; }
  .hero-inner { order: 1; }
  .hero > .wrap:last-child { order: 3; }
  .hero-copy { padding: 18px 0 8px; }
  .hero-hint { display: none; }
  .hero-copy::before { display: none; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 2.9rem); }
  .eyebrow { font-size: .68rem; letter-spacing: .06em; padding: 6px 12px; margin-bottom: 20px; white-space: normal; }
  .explorer { grid-template-columns: 1fr; }
  .explorer-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .explorer-col:nth-child(3) { border-bottom: 0; }
  .hl { font-size: .68rem; padding: 3px 8px; }
  .hl-hub { font-size: .74rem; padding: 4px 9px; }
  .hl-svc { display: none; }
  .hl-svc.is-on { display: inline-block; }   /* the tapped service shows its name */
  .pillar-index { grid-template-columns: 1fr; margin-top: 32px; }
  .pillar-index li + li { border-left: 0; border-top: 1px solid var(--line); }
  .pillar-index a, .pillar-index li:first-child a { padding: 22px 0; }
  .immersive .stage { height: 360px; }
  .immersive-ui { position: relative; left: auto; bottom: auto; width: auto; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: rgba(5,8,18,.6); }
  .demo-badge { top: 12px; right: 12px; font-size: .66rem; padding: 6px 9px; }
  .seq-steps { grid-template-columns: 1fr 1fr; }
  .wf-steps { grid-template-columns: 1fr; }
  .svc-cs, .svc-lists { grid-template-columns: 1fr; gap: 24px; }
  .reel-tabs { grid-template-columns: 1fr; }
  .reel-tabs button { grid-template-columns: auto 1fr; align-items: baseline; gap: 10px; padding: 12px 14px; }
  .film-title { display: none; }
  .film-caption { font-size: .82rem; bottom: 6%; padding: 6px 10px; max-width: 92%; }
  .film-tag { top: 8px; right: 8px; font-size: .6rem; padding: 5px 7px; }
  .principles ul { grid-template-columns: 1fr; gap: 20px; }
  .form { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; }
}

@media (max-width: 380px) {
  .footer-nav { grid-template-columns: 1fr; }
}

/* Reduced motion: no auto-animation, no parallax */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 767px) {
  .film-frame { aspect-ratio: auto; }
  .film-canvas { aspect-ratio: 16 / 9; height: auto; }
  .film-caption { position: static; transform: none; max-width: none; border-radius: 0; text-align: left; background: #070a15; border-top: 1px solid var(--line); padding: 10px 16px; font-size: .92rem; }
}
