/* ==========================================================================
   YD360 Services — v6 design system
   1. Tokens  2. Base  3. Layout  4. Buttons & type  5. Header / drawer
   6. Intro  7. Hero  8. Home sections  9. CTA  10. Footer
   11. Inner pages  12. Services page  13. Contact  14. 404  15. Motion
   16. Responsive  17. Reduced motion
   ========================================================================== */

/* 1. TOKENS --------------------------------------------------------------- */
:root {
  --navy: #001A4D;
  --blue: #0074FD;
  --deep: #07152F;
  --royal: #155EEF;
  --cool: #F3F6FC;
  --white: #FFFFFF;
  --slate: #5B6478;
  --soft: #EAF2FF;
  --ink: #0B1733;
  --ink-2: #344054;
  --line: #DCE3F0;
  --line-2: #E9EEF7;
  --sky: #6DB3FF;
  --ok: #067647;
  --ok-bg: #ECFDF3;
  --err: #B42318;
  --err-bg: #FEF3F2;

  --grad: linear-gradient(120deg, #001A4D, #0074FD);
  --grad-soft: linear-gradient(120deg, #155EEF, #0074FD);

  --font-display: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-hero: clamp(2.35rem, 1.2rem + 4.2vw, 4.6rem);
  --fs-h1: clamp(2.1rem, 1.3rem + 3.2vw, 3.9rem);
  --fs-h2: clamp(1.8rem, 1.2rem + 2.2vw, 3rem);
  --fs-h3: clamp(1.2rem, 1.05rem + .6vw, 1.55rem);
  --fs-lead: clamp(1.05rem, 1rem + .3vw, 1.22rem);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Fluid layout: gutters and content width grow with the viewport (see 13. WIDE SCREENS) */
  --gutter: clamp(16px, 3.4vw, 96px);
  --max: 96rem;
  --header-h: 4.75rem;
  --section: clamp(76px, 9vw, 8.5rem);

  --shadow-sm: 0 1px 2px rgba(7, 21, 47, .06), 0 2px 8px rgba(7, 21, 47, .04);
  --shadow: 0 10px 30px -12px rgba(7, 21, 47, .18), 0 2px 6px rgba(7, 21, 47, .05);
  --shadow-blue: 0 24px 48px -20px rgba(0, 116, 253, .45);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* 1b. THEME TOKENS (light default, dark via [data-theme="dark"]) ---------- */
:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --field: #FBFCFE;
  --heading: var(--navy);
  --accent-bg: var(--navy);
  --benefits-bg: var(--navy);
  --glass: rgba(255, 255, 255, .6);
  --glass-strong: rgba(255, 255, 255, .8);
  --header-bg: rgba(255, 255, 255, .94);
  --il-ink: var(--navy);
  --il-line: #D5DEEC;
  --info-line: #C3DCFF;
  --grid-line: rgba(0, 26, 77, .055);
  --dial-tick: rgba(0, 26, 77, .22);
  --dial-tick-strong: rgba(0, 26, 77, .45);
  --ring-soft: rgba(0, 26, 77, .1);
}
/* Dark: a calm near-black "ink" scale with a hint of blue. Electric blue is
   reserved for accents, so sections no longer read as heavy navy bands. */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080C15;          /* page */
  --bg-alt: #0C121F;      /* alternate sections */
  --cool: #0C121F;
  --surface: #121A2B;     /* cards, panels */
  --surface-2: #172036;   /* raised / hover */
  --field: #0E1525;
  --soft: #15264A;
  --ink: #EDF1F8;
  --ink-2: #C4CCDB;
  --slate: #9DA8BE;
  --line: #26324A;
  --line-2: #1C2538;
  --royal: #6AA6FF;
  --heading: #F6F8FC;
  --accent-bg: #1D6BF2;
  --benefits-bg: #0C121F;
  --glass: rgba(18, 26, 43, .62);
  --glass-strong: rgba(18, 26, 43, .86);
  --header-bg: rgba(8, 12, 21, .88);
  --il-ink: #D6E4FF;
  --il-line: #2C3A56;
  --info-line: #24406F;
  --grid-line: rgba(160, 190, 255, .045);
  --dial-tick: rgba(170, 200, 255, .22);
  --dial-tick-strong: rgba(170, 200, 255, .5);
  --ring-soft: rgba(170, 200, 255, .12);
  --ok: #4ADE80; --ok-bg: rgba(34, 197, 94, .1);
  --err: #FF8A80; --err-bg: rgba(240, 68, 56, .1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 14px 34px -14px rgba(0, 0, 0, .6);
}
/* Fallback for browsers without View Transitions: fade colours together */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .45s var(--ease), border-color .45s var(--ease), color .45s var(--ease), fill .45s var(--ease), stroke .45s var(--ease), box-shadow .45s var(--ease), opacity .45s var(--ease) !important;
}
/* Theme switch via View Transitions: the whole page changes as one image */
html.theme-vt .site-header { view-transition-name: none; } /* header changes with the page, not separately */
html.theme-vt::view-transition-group(root) { animation: none; }
html.theme-vt::view-transition-old(root), html.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theme-vt-reveal::view-transition-new(root) { animation: themeReveal .75s cubic-bezier(.65, 0, .35, 1) both; }
html.theme-vt-fade::view-transition-new(root) { animation: themeFade .5s var(--ease) both; }
@keyframes themeReveal {
  from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 50%)); }
  to { clip-path: circle(var(--vt-r, 150vmax) at var(--vt-x, 50%) var(--vt-y, 50%)); }
}
@keyframes themeFade { from { opacity: 0; } }

/* 2. BASE ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0; background: var(--bg); color: var(--ink-2);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; letter-spacing: -.025em; margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: var(--royal); text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
main { display: block; outline: none; }
::selection { background: var(--blue); color: #fff; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr-only { 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: fixed; top: 12px; left: 12px; z-index: 1000; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: var(--r-sm); font-weight: 600; transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: none; }

.ic { width: 20px; height: 20px; flex: none; }
.text-blue { color: var(--blue); }
.text-sky { background: linear-gradient(100deg, #8CC4FF, #3D96FF); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 3. LAYOUT -------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split-top { align-items: start; }
.section-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head-text { color: var(--slate); font-size: var(--fs-lead); max-width: 46ch; justify-self: end; }
.prose p { max-width: 62ch; }

/* 4. TYPE & BUTTONS ------------------------------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-family: var(--font-display); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--royal);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow-light { color: var(--sky); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); line-height: 1.3; }
.h2-light { color: #fff; }
.lead { font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.65; }

.btn {
  --bh: 50px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--bh); padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; letter-spacing: -.005em; line-height: 1;
  cursor: pointer; white-space: nowrap; isolation: isolate; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn .ic { width: 18px; height: 18px; }
.btn .ic-arrow { transition: transform .35s var(--ease); }
.btn:hover .ic-arrow, .link-arrow:hover .ic-arrow { transform: translateX(4px); }
.btn-sm { --bh: 42px; padding: 0 18px; font-size: .88rem; }
.btn-lg { --bh: 56px; padding: 0 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent-bg); color: #fff; box-shadow: 0 8px 20px -10px rgba(0, 26, 77, .6); }
.btn-primary::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--grad); opacity: 0; transition: opacity .35s var(--ease); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-blue); }
.btn-primary:hover::before { opacity: 1; }
.btn-outline { background: var(--glass); color: var(--heading); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); background: var(--surface); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -16px rgba(0, 116, 253, .8); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn:active { transform: translateY(0) scale(.98); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-family: var(--font-display); font-weight: 600; color: var(--heading); background: linear-gradient(var(--blue), var(--blue)) left bottom / 0 2px no-repeat; padding-bottom: 4px; transition: background-size .4s var(--ease), color .25s; }
.link-arrow:hover { color: var(--blue); background-size: 100% 2px; }
.link-arrow .ic { width: 18px; height: 18px; }

/* 5. HEADER & DRAWER ----------------------------------------------------- */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 120; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--grad-soft); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); transition: background-color .35s, box-shadow .35s, backdrop-filter .35s, transform .4s var(--ease); }
.site-header.is-scrolled { background: var(--header-bg); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--line-2), 0 8px 24px -18px rgba(7, 21, 47, .25); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: block; flex: none; border-radius: 8px; }
.brand img { height: 3.125rem; width: auto; }
.primary-nav { margin-left: auto; }
.nav-list { position: relative; display: flex; gap: 4px; }
.nav-link { position: relative; z-index: 1; display: block; padding: 10px 16px; border-radius: 999px; font-family: var(--font-display); font-weight: 500; font-size: .93rem; color: var(--ink); transition: color .25s; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--royal); }
.nav-link[aria-current="page"]::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--blue); }
.nav-indicator { position: absolute; top: 0; left: 0; height: 100%; width: var(--w, 0); transform: translateX(var(--x, 0)); background: var(--soft); border-radius: 999px; opacity: 0; transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s; pointer-events: none; }
.nav-list.has-hover .nav-indicator { opacity: 1; }
.header-cta { flex: none; }

.menu-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--glass); cursor: pointer; align-items: center; justify-content: center; }
.menu-bars { position: relative; width: 20px; height: 12px; }
.menu-bars span { position: absolute; left: 0; height: 2px; border-radius: 2px; background: var(--heading); transition: transform .35s var(--ease), width .35s var(--ease), top .35s var(--ease); }
.menu-bars span:first-child { top: 0; width: 20px; }
.menu-bars span:last-child { top: 10px; width: 13px; }
.menu-toggle[aria-expanded="true"] .menu-bars span:first-child { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars span:last-child { top: 5px; width: 20px; transform: rotate(-45deg); }

.drawer { position: fixed; inset: 0; z-index: 99; }
.drawer[hidden] { display: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(7, 21, 47, .45); opacity: 0; transition: opacity .4s; }
.drawer-panel { position: absolute; inset: 0 0 0 auto; width: min(440px, 100%); background: var(--bg); padding: calc(var(--header-h) + 24px) var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; overflow-y: auto; transform: translateX(100%); transition: transform .5s var(--ease); }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-list li { opacity: 0; transform: translateX(24px); transition: opacity .4s, transform .5s var(--ease); transition-delay: calc(var(--i) * 60ms + 120ms); }
.drawer.is-open .drawer-list li { opacity: 1; transform: none; }
.drawer-list a { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-2); font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.drawer-list a .ic { margin-left: auto; color: var(--slate); transition: transform .3s var(--ease), color .3s; }
.drawer-list a:hover .ic, .drawer-list a[aria-current="page"] .ic { color: var(--blue); transform: translate(3px, -3px); }
.drawer-list a[aria-current="page"] { color: var(--royal); }
.drawer-num { font-size: .78rem; color: var(--slate); font-weight: 500; letter-spacing: .08em; width: 22px; }
.drawer-foot { display: grid; gap: 12px; }
.drawer-contact { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 600; padding: 6px 0; word-break: break-word; }
.drawer-contact .ic { color: var(--blue); }
body.menu-open { overflow: hidden; }

/* 6. INTRO --------------------------------------------------------------- */
/* One calm beat: the logo settles into focus while a thin line fills beneath
   it, then the curtain fades to the hero. ~1.4s, skippable on click/key. */
.intro { display: none; }
.intro-play .intro {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--bg);
  transition: opacity .55s var(--ease), visibility 0s .55s;
}
.intro-play .intro.is-leaving { opacity: 0; visibility: hidden; }
.intro-inner { display: grid; justify-items: center; gap: 26px; transition: transform .55s var(--ease); }
.intro.is-leaving .intro-inner { transform: translateY(-10px) scale(.985); }
.intro-logo { width: min(300px, 68vw); opacity: 0; transform: translateY(10px); filter: blur(8px); animation: introLogo .9s var(--ease) .1s forwards; }
.intro-logo img { width: 100%; height: auto; }
.intro-bar { position: relative; width: 112px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; opacity: 0; animation: introFade .4s var(--ease) .3s forwards; }
.intro-bar span { position: absolute; inset: 0; border-radius: inherit; background: var(--grad-soft); transform: scaleX(0); transform-origin: 0 50%; animation: introBar .95s var(--ease-in-out) .35s forwards; }
@keyframes introLogo { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes introFade { to { opacity: 1; } }
@keyframes introBar { to { transform: scaleX(1); } }

/* 7. HERO — editorial headline + "the translator" ------------------------- */
.hero { position: relative; min-height: min(100svh, 1000px); display: flex; align-items: center; padding: calc(var(--header-h) + clamp(28px, 4.5vw, 64px)) 0 clamp(56px, 7vw, 96px); background: var(--bg); overflow: hidden; isolation: isolate; }
.hero > .container { width: 100%; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-glow { position: absolute; width: 1100px; height: 1100px; right: -420px; bottom: -560px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 116, 253, .14), rgba(0, 116, 253, .04) 55%, transparent); }
[data-theme="dark"] .hero-glow { background: radial-gradient(closest-side, rgba(0, 116, 253, .3), rgba(0, 116, 253, .07) 55%, transparent); }
.hero-ring { position: absolute; width: 1000px; max-width: none; right: -680px; top: -560px; animation: spin 240s linear infinite; }
.hero-ring circle { fill: none; stroke: var(--line); stroke-width: 1.2; }
.hero-ring line { stroke: var(--dial-tick); stroke-width: 1.2; }
.hero-ring line.long { stroke: var(--blue); stroke-width: 2; opacity: .55; }

.hero-kicker { display: flex; flex-wrap: wrap; gap: 0 .5em; margin: 0 0 clamp(20px, 3vw, 32px); font-family: var(--font-display); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.hero-kicker span[aria-hidden] { color: var(--blue); }
.hero-title { font-size: clamp(2.6rem, .7rem + 5.2vw, 5.3rem); font-weight: 600; letter-spacing: -.048em; line-height: .98; color: var(--heading); margin: 0 0 clamp(32px, 4vw, 52px); max-width: 16ch; }
.hero-fwd { color: var(--blue); }
[data-theme="dark"] .hero-fwd { color: #3D8BFF; }
.br-lg { display: none; }
@media (min-width: 1025px) { .hero-title { max-width: none; } .br-lg { display: inline; } }

.hero-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.hero-side { padding-top: 8px; }
.hero-lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 44ch; margin-bottom: 32px; padding-left: 20px; border-left: 2px solid var(--blue); }
.hero-ctas { margin: 0; align-items: center; gap: 14px 28px; }
.hero-link { margin-top: 0; }

/* Translator panel */
.translator { position: relative; border-radius: var(--r-xl); background: var(--glass-strong); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -48px rgba(7, 21, 47, .35), 0 1px 0 rgba(255, 255, 255, .6) inset; padding: clamp(20px, 2.6vw, 32px); }
[data-theme="dark"] .translator { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .06) inset; }
.tr-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.tr-mark { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line-2); }
.tr-mark img { width: 30px; height: 30px; border-radius: 50%; }
.tr-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--heading); letter-spacing: -.01em; }
.tr-pause { margin-left: auto; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--slate); cursor: pointer; display: grid; place-items: center; transition: border-color .25s, color .25s; }
.tr-pause:hover { border-color: var(--blue); color: var(--blue); }
.tr-pause-ic { width: 10px; height: 11px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.tr-pause[data-state="paused"] .tr-pause-ic { width: 0; height: 0; border: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }

.tr-stage { display: grid; }
.tr-slide { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .45s var(--ease), visibility 0s .45s; }
.tr-slide.is-active { visibility: visible; opacity: 1; transition: opacity .45s var(--ease), visibility 0s 0s; }
.tr-label { margin: 0 0 8px; font-family: var(--font-display); font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); }
.tr-label-blue { color: var(--royal); }
.tr-q { margin: 0; }
.tr-q p { font-family: var(--font-display); font-size: clamp(1.25rem, .95rem + 1vw, 1.7rem); font-weight: 500; line-height: 1.3; letter-spacing: -.025em; color: var(--heading); text-wrap: balance; }
.tr-bridge { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; }
.tr-line { position: relative; flex: 1; height: 2px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.tr-line span { position: absolute; inset: 0; background: var(--grad-soft); transform-origin: 0 50%; transform: scaleX(0); }
.tr-turn { flex: none; font-family: var(--font-display); font-size: .74rem; font-weight: 600; color: var(--blue); padding: 4px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--blue) 35%, transparent); background: var(--soft); }
.tr-a { margin: 0 0 18px; font-family: var(--font-display); font-size: clamp(1.02rem, .92rem + .4vw, 1.2rem); font-weight: 500; line-height: 1.45; letter-spacing: -.01em; color: var(--ink); }
.tr-link { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border-radius: 999px; background: var(--accent-bg); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .86rem; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tr-link .ic { width: 17px; height: 17px; }
.tr-link .ic:first-child { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.tr-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-blue); }
.tr-link:hover .ic-arrow { transform: translateX(3px); }
.tr-link .ic-arrow { transition: transform .35s var(--ease); }

/* Translation sequence (runs each time a slide becomes active) */
.js .tr-slide .tr-q p, .js .tr-slide .tr-a, .js .tr-slide .tr-link, .js .tr-slide .tr-label, .js .tr-slide .tr-turn { opacity: 0; transform: translateY(10px); }
.js .tr-slide.is-active .tr-label:first-child { animation: trIn .5s var(--ease) .05s forwards; }
.js .tr-slide.is-active .tr-q p { animation: trIn .7s var(--ease) .15s forwards; }
.js .tr-slide.is-active .tr-line span { animation: trLine 1s var(--ease-in-out) .85s forwards; }
.js .tr-slide.is-active .tr-turn { animation: trIn .4s var(--ease) 1.05s forwards, trSpin .9s var(--ease) 1.05s; }
.js .tr-slide.is-active .tr-label-blue { animation: trIn .5s var(--ease) 1.65s forwards; }
.js .tr-slide.is-active .tr-a { animation: trAnswer .8s var(--ease) 1.75s forwards; }
.js .tr-slide.is-active .tr-link { animation: trIn .6s var(--ease) 2.15s forwards; }
@keyframes trIn { to { opacity: 1; transform: none; } }
@keyframes trLine { to { transform: scaleX(1); } }
@keyframes trSpin { from { rotate: -360deg; } to { rotate: 0deg; } }
@keyframes trAnswer { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }

.tr-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.tr-dots { display: flex; gap: 6px; }
.tr-dot { position: relative; width: 34px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.tr-dot span { position: relative; display: block; width: 100%; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.tr-dot span::after { content: ''; position: absolute; inset: 0; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); }
.tr-dot.is-done span::after { transform: scaleX(1); }
.tr-dot.is-active span::after { animation: trProgress var(--tr-dur, 7s) linear forwards; }
.translator.is-paused .tr-dot.is-active span::after { animation-play-state: paused; }
.tr-dot:hover span { background: color-mix(in srgb, var(--blue) 40%, var(--line)); }
@keyframes trProgress { to { transform: scaleX(1); } }
.tr-note { margin: 0; font-size: .8rem; color: var(--slate); text-align: right; }

/* Hero entrance */
.js .hero-kicker, .js .hero-side, .js .translator { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .65s var(--ease); }
.js .hero-side { transition-delay: .2s; }
.js .translator { transition-delay: .3s; }
.js .hero.is-in .hero-kicker, .js .hero.is-in .hero-side, .js .hero.is-in .translator { opacity: 1; transform: none; }
/* The first example waits for the panel to arrive */
.js .hero:not(.is-in) .tr-slide.is-active * { animation-play-state: paused !important; }

/* 8. HOME SECTIONS ------------------------------------------------------- */
/* Positioning strip */
.strip { background: var(--bg); border-bottom: 1px solid var(--line-2); }
.strip-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { display: flex; align-items: center; gap: 14px; padding: 32px 24px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.35; color: var(--heading); border-left: 1px solid var(--line-2); transition: background-color .3s; }
.strip-item:first-child { border-left: 0; padding-left: 0; }
.strip-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--blue); transition: transform .5s var(--ease), background-color .3s, color .3s; }
.strip-item:hover .strip-ic { transform: rotate(-8deg) scale(1.06); background: var(--blue); color: #fff; }
.marquee { overflow: hidden; border-top: 1px solid var(--line-2); padding: 16px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--font-display); font-size: .82rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); }
.marquee i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--blue); }
@keyframes marquee { to { transform: translateX(calc(-50% - 14px)); } }

/* About intro */
.split-copy .h2 { margin-bottom: 24px; }
.split-copy .lead { margin-bottom: 18px; }
.about-intro { overflow: hidden; }
.pillars { position: relative; }
.pillars-art { position: absolute; width: 130%; right: -40%; top: 50%; translate: 0 -50%; z-index: -1; pointer-events: none; }
.pillars-art circle { fill: none; stroke: var(--line); stroke-width: 1; }
.pillars-art circle.dash { stroke: rgba(0, 116, 253, .35); stroke-dasharray: 3 7; }
.pillar-list { position: relative; display: grid; gap: 14px; counter-reset: p; }
.pillar { position: relative; display: grid; grid-template-columns: auto auto 1fr; gap: 18px; align-items: start; padding: 22px 24px; border-radius: var(--r); background: var(--glass-strong); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease); }
.pillar:hover { transform: translateX(6px); border-color: rgba(0, 116, 253, .35); box-shadow: var(--shadow); }
.pillar:nth-child(even) { margin-left: clamp(0px, 4vw, 48px); }
.pillar-num { font-family: var(--font-display); font-size: .8rem; font-weight: 600; color: var(--slate); padding-top: 12px; }
.pillar-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff; }
.pillar h3 { font-size: 1.06rem; margin-bottom: 4px; letter-spacing: -.015em; }
.pillar p { font-size: .95rem; color: var(--slate); line-height: 1.6; }

/* Services overview */
.services-ov { background: var(--cool); }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc-card { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); overflow: hidden; isolation: isolate; transition: transform .5s var(--ease), border-color .35s, box-shadow .5s var(--ease); }
.svc-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 116, 253, .10), transparent 45%); opacity: 0; transition: opacity .4s; }
.svc-card:hover { transform: translateY(-6px); border-color: rgba(0, 116, 253, .45); box-shadow: 0 0 0 1px rgba(0, 116, 253, .15), 0 28px 50px -24px rgba(0, 116, 253, .45); }
.svc-card:hover::before { opacity: 1; }
.svc-grid > .svc-card:nth-child(1), .svc-grid > .svc-card:nth-child(6), .svc-grid > .svc-card:nth-child(7), .svc-grid > .svc-card:nth-child(8) { grid-column: span 2; }
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; }
.svc-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--soft); color: var(--blue); transition: transform .6s var(--ease), background-color .35s, color .35s; }
.svc-ic .ic { width: 24px; height: 24px; }
.svc-card:hover .svc-ic { transform: rotate(-10deg) scale(1.08); background: var(--blue); color: #fff; }
.svc-num { font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: var(--slate); }
.svc-title { font-size: 1.28rem; margin-bottom: 12px; }
.svc-title a { color: inherit; }
.svc-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.svc-title a:focus-visible { outline: none; }
.svc-card:has(.svc-title a:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.svc-text { color: var(--slate); font-size: .98rem; margin-bottom: 20px; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.svc-tags li { font-size: .78rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--cool); color: var(--ink-2); border: 1px solid var(--line-2); }
.svc-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--royal); }
.svc-more .ic { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.svc-card:hover .svc-more .ic { transform: translateX(5px); }
.svc-card-feature { background: var(--grad); border-color: transparent; color: rgba(255, 255, 255, .8); }
.svc-card-feature::after { content: ''; position: absolute; width: 380px; height: 380px; right: -120px; bottom: -160px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 0 0 50px rgba(255, 255, 255, .03), 0 0 0 100px rgba(255, 255, 255, .02); z-index: -1; transition: transform 1s var(--ease); }
.svc-card-feature:hover::after { transform: scale(1.08) rotate(20deg); }
.svc-card-feature .svc-title { color: #fff; font-size: 1.55rem; }
.svc-card-feature .svc-text, .svc-card-feature .svc-num { color: rgba(255, 255, 255, .78); }
.svc-card-feature .svc-ic { background: rgba(255, 255, 255, .12); color: #fff; }
.svc-card-feature .svc-tags li { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .16); color: #fff; }
.svc-card-feature .svc-more { color: #fff; }
.svc-card-feature:hover .svc-ic { background: #fff; color: var(--blue); }

/* Why */
.why { background: var(--deep); color: rgba(255, 255, 255, .75); overflow: hidden; isolation: isolate; }
.why::before { content: ''; position: absolute; z-index: -1; width: 1000px; height: 1000px; left: -380px; top: 50%; translate: 0 -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 116, 253, .22), transparent); }
.why-head { max-width: 47.5rem; margin-bottom: clamp(48px, 6vw, 80px); }
.why-head .h2 { margin-bottom: 20px; }
.why-lead { font-size: var(--fs-lead); color: rgba(255, 255, 255, .68); max-width: 56ch; }
.why-body { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.dial { position: relative; width: min(100%, 440px); aspect-ratio: 1; margin-inline: auto; }
.dial-svg { width: 100%; height: 100%; overflow: visible; }
.dial-outer { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1.5; }
.dial-mid { fill: rgba(255, 255, 255, .02); stroke: rgba(255, 255, 255, .08); stroke-dasharray: 2 6; animation: spin 80s linear infinite; transform-origin: 200px 200px; }
.dial-progress { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-dasharray: var(--dash, 0) 360; transform: rotate(-90deg); transform-origin: 200px 200px; transition: stroke-dasharray .9s var(--ease); filter: drop-shadow(0 0 8px rgba(0, 116, 253, .8)); }
.dial-node { fill: var(--deep); stroke: rgba(255, 255, 255, .35); stroke-width: 2; transition: fill .4s, stroke .4s, r .4s; }
.dial-node.is-on { fill: var(--blue); stroke: #fff; }
.dial-node.is-current { r: 12; }
.dial-pointer { position: absolute; left: 50%; top: 50%; width: 2px; height: 36%; margin-left: -1px; transform-origin: 50% 0; transform: rotate(calc(180deg + var(--angle, 0deg))); transition: transform .9s var(--ease); }
.dial-pointer span { position: absolute; inset: 22% 0 0; background: linear-gradient(rgba(0, 116, 253, 0), var(--blue)); border-radius: 2px; }
.dial-center { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-content: center; text-align: center; padding: 18px; background: radial-gradient(circle at 30% 25%, #12306a, #07152F 70%); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08); }
.dial-deg { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 1rem + 2.5vw, 2.8rem); color: #fff; letter-spacing: -.04em; line-height: 1; }
.dial-cap { margin-top: 8px; font-size: .82rem; line-height: 1.35; color: var(--sky); font-weight: 600; }
.why-list { display: grid; gap: 4px; }
.why-item { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; text-align: left; padding: 18px 20px; border-radius: var(--r); background: transparent; border: 1px solid transparent; cursor: pointer; transition: background-color .35s, border-color .35s; }
.why-item:hover { background: rgba(255, 255, 255, .04); }
.why-item.is-active { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.why-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); color: var(--sky); transition: background-color .35s, color .35s, border-color .35s; }
.why-item.is-active .why-ic { background: var(--blue); border-color: var(--blue); color: #fff; }
.why-txt strong { display: block; font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 1.08rem; letter-spacing: -.01em; margin-bottom: 2px; }
.why-txt span { display: block; font-size: .95rem; line-height: 1.6; color: rgba(255, 255, 255, .62); }

/* Methodology timeline */
.timeline { position: relative; --p: 0; }
.timeline-track { position: absolute; left: 28px; right: 28px; top: 28px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.timeline-fill { position: absolute; inset: 0; background: var(--grad-soft); transform-origin: 0 50%; transform: scaleX(var(--p)); }
.timeline-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.t-dot { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); color: var(--slate); margin-bottom: 28px; transition: background-color .5s var(--ease), border-color .5s, color .5s, box-shadow .5s, transform .5s var(--ease); }
.t-dot .ic { width: 22px; height: 22px; }
.t-step.is-on .t-dot { background: var(--accent-bg); border-color: var(--accent-bg); color: #fff; box-shadow: 0 0 0 8px var(--soft); transform: scale(1.04); }
.t-num { display: block; font-family: var(--font-display); font-weight: 600; font-size: .85rem; letter-spacing: .1em; color: var(--blue); margin-bottom: 8px; }
.t-step h3 { font-size: 1.4rem; margin-bottom: 10px; }
.t-step p { color: var(--slate); font-size: .98rem; max-width: 30ch; }
.t-step { opacity: .55; transition: opacity .6s; }
.t-step.is-on { opacity: 1; }
.no-js .t-step, .reduce .t-step { opacity: 1; }

/* Contact preview */
.contact-pv { background: var(--cool); }
.contact-pv-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.contact-pv .h2 { margin-bottom: 20px; }
.contact-pv .lead { margin-bottom: 28px; max-width: 46ch; }
.contact-tiles { display: grid; gap: 12px; }
.c-tile { position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 18px; align-items: center; padding: 20px 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease); }
.c-tile:hover { transform: translateY(-3px); border-color: rgba(0, 116, 253, .4); box-shadow: var(--shadow); }
.c-ic { grid-row: 1 / 3; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--soft); color: var(--blue); transition: background-color .3s, color .3s; }
.c-tile:hover .c-ic { background: var(--blue); color: #fff; }
.c-label { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.c-val { grid-column: 2; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.45; word-break: break-word; }
.c-go { grid-column: 3; grid-row: 1 / 3; color: var(--slate); transition: transform .35s var(--ease), color .3s; }
.c-tile:hover .c-go { color: var(--blue); transform: translate(3px, -3px); }

/* 9. CTA BAND ------------------------------------------------------------ */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--deep); padding-block: clamp(96px, 12vw, 168px); text-align: center; }
.cta-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cta-glow { position: absolute; left: 50%; top: 100%; width: 1200px; height: 800px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 116, 253, .55), rgba(21, 94, 239, .18) 50%, transparent); animation: breathe 8s ease-in-out infinite; }
.cta-rings { position: absolute; left: 50%; top: 50%; width: 1100px; max-width: none; translate: -50% -50%; animation: spin 90s linear infinite; }
.cta-rings circle { fill: none; stroke: rgba(255, 255, 255, .09); stroke-width: 1; }
.cta-rings .dash { stroke: rgba(109, 179, 255, .35); stroke-dasharray: 2 10; }
.cta-inner { max-width: 56rem; }
.cta-title { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.2rem); color: #fff; letter-spacing: -.035em; line-height: 1.06; margin-bottom: 22px; }
.cta-text { font-size: var(--fs-lead); color: rgba(255, 255, 255, .72); max-width: 54ch; margin: 0 auto 40px; }
.cta-band .btn-row { justify-content: center; }
.cta-band .eyebrow { justify-content: center; }

/* 10. FOOTER ------------------------------------------------------------- */
.site-footer { position: relative; overflow: hidden; background: #050F24; color: rgba(255, 255, 255, .66); padding: clamp(64px, 8vw, 104px) 0 32px; font-size: .95rem; }
.footer-rings { position: absolute; right: -240px; top: -240px; width: 640px; height: 640px; pointer-events: none; }
.footer-rings span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .06); }
.footer-rings span:nth-child(2) { inset: 80px; } .footer-rings span:nth-child(3) { inset: 160px; border-color: rgba(0, 116, 253, .2); }
.footer-top { position: relative; display: grid; grid-template-columns: 1.5fr .8fr 1.2fr 1.3fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-logo { display: inline-block; padding: 12px 18px; background: #fff; border-radius: 14px; margin-bottom: 24px; transition: transform .4s var(--ease); }
.footer-logo:hover { transform: translateY(-2px); }
.footer-logo img { height: 2.875rem; width: auto; }
.footer-brand p { max-width: 40ch; }
.footer-tag { font-family: var(--font-display); color: var(--sky); font-weight: 600; }
.footer-h { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { color: rgba(255, 255, 255, .66); transition: color .25s; }
.footer-col a:hover { color: #fff; }
.footer-contact a { display: flex; gap: 12px; align-items: flex-start; word-break: break-word; }
.footer-contact .ic { color: var(--sky); width: 18px; height: 18px; margin-top: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-legal a { color: rgba(255, 255, 255, .66); }
.footer-legal a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: var(--sky); }

/* 11. INNER PAGES -------------------------------------------------------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--cool); padding: calc(var(--header-h) + clamp(56px, 8vw, 104px)) 0 clamp(64px, 8vw, 112px); }
.page-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.page-hero-bg::before { content: ''; position: absolute; width: 760px; height: 760px; right: -180px; top: -220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 116, 253, .16), transparent); }
.page-hero-rings { position: absolute; width: 760px; right: -200px; top: -160px; max-width: none; }
.page-hero-rings circle { fill: none; stroke: var(--ring-soft); }
.page-hero-rings .dash { stroke: rgba(0, 116, 253, .4); stroke-dasharray: 3 9; }
.page-hero-inner { max-width: calc(54rem + var(--gutter) * 2); margin-left: 0; margin-right: auto; }
.page-hero-inner { margin-left: max(0px, calc((100% - var(--max) - var(--gutter) * 2) / 2)); } /* aligns with .container, never negative */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; margin-bottom: 28px; color: var(--slate); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line); }
.crumbs a { color: var(--slate); }
.crumbs a:hover { color: var(--blue); }
.page-title { font-size: var(--fs-h1); color: var(--heading); letter-spacing: -.035em; line-height: 1.06; margin-bottom: 24px; }
.page-lead { font-size: var(--fs-lead); max-width: 60ch; }

/* About: story */
.story { background: var(--bg); }
.story-inner { max-width: 65rem; }
.story-quote { margin: 0 0 56px; }
.story-quote p { font-family: var(--font-display); font-size: clamp(1.7rem, 1.1rem + 2.2vw, 3rem); font-weight: 500; line-height: 1.18; letter-spacing: -.03em; color: var(--heading); }
.story-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 40px; border-top: 1px solid var(--line); }
.story-cols p { color: var(--ink-2); margin: 0; }

/* About: mission / vision */
.mv { padding-top: 0; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mv-card { position: relative; overflow: hidden; padding: clamp(32px, 4vw, 56px); border-radius: var(--r-xl); min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end; }
.mv-card .h3 { font-weight: 500; line-height: 1.4; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); }
.mv-ic { position: absolute; top: clamp(32px, 4vw, 56px); left: clamp(32px, 4vw, 56px); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; }
.mv-ic .ic { width: 26px; height: 26px; }
.mv-mission { background: var(--soft); }
.mv-mission .mv-ic { background: var(--surface); color: var(--blue); box-shadow: var(--shadow-sm); }
.mv-mission .h3 { color: var(--heading); }
.mv-vision { background: var(--grad); }
.mv-vision .h3 { color: #fff; }
.mv-vision .mv-ic { background: rgba(255, 255, 255, .12); color: #fff; }
.mv-rings { position: absolute; right: 0; top: 0; width: 300px; pointer-events: none; }
.mv-rings circle { fill: none; stroke: rgba(255, 255, 255, .14); }

/* About: values */
.values { background: var(--cool); }
.values-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.value { position: relative; padding: 40px 32px 44px 0; border-bottom: 1px solid var(--line); }
.value:not(:nth-child(3n + 1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.value-num { position: absolute; top: 34px; right: 24px; font-family: var(--font-display); font-weight: 600; font-size: 3.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--il-line); letter-spacing: -.04em; transition: -webkit-text-stroke-color .4s; }
.value:hover .value-num { -webkit-text-stroke-color: var(--blue); }
.value-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--surface); color: var(--blue); box-shadow: var(--shadow-sm); margin-bottom: 28px; transition: transform .5s var(--ease), background-color .3s, color .3s; }
.value:hover .value-ic { transform: rotate(-8deg); background: var(--blue); color: #fff; }
.value h3 { font-size: 1.3rem; margin-bottom: 10px; }
.value p { color: var(--slate); font-size: .98rem; }

/* About: how we work */
.how { background: var(--deep); color: rgba(255, 255, 255, .7); }
.how-sticky { position: sticky; top: calc(var(--header-h) + 40px); }
.how-sticky .h2 { margin-bottom: 20px; }
.how-lead { font-size: var(--fs-lead); color: rgba(255, 255, 255, .66); }
.how-list { display: grid; }
.how-list li { display: grid; grid-template-columns: auto 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.how-list li:first-child { padding-top: 0; }
.how-num { font-family: var(--font-display); font-weight: 600; color: var(--sky); font-size: .9rem; padding-top: 4px; }
.how-list h3 { color: #fff; font-size: 1.35rem; margin-bottom: 8px; }
.how-list p { color: rgba(255, 255, 255, .62); }

/* About: approach */
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.approach-col { padding: clamp(28px, 3vw, 44px); transition: background-color .35s; }
.approach-col + .approach-col { border-left: 1px solid var(--line); }
.approach-col:hover { background: var(--cool); }
.approach-h { display: flex; flex-direction: column; gap: 20px; font-size: 1.2rem; margin-bottom: 12px; }
.approach-h .ic { width: 28px; height: 28px; color: var(--blue); }
.approach-col p { color: var(--slate); }

/* 12. SERVICES PAGE — ecosystem hero, capsule nav, six visual identities --- */

/* Shared atmosphere: gradient mesh + technical grid */
.mesh { position: absolute; inset: 0; background:
  radial-gradient(40% 50% at 82% 30%, rgba(0, 116, 253, .16), transparent 70%),
  radial-gradient(35% 45% at 12% 85%, rgba(21, 94, 239, .10), transparent 70%),
  radial-gradient(30% 35% at 55% 0%, rgba(109, 179, 255, .14), transparent 70%); }
.mesh-dark { background:
  radial-gradient(45% 55% at 80% 35%, rgba(0, 116, 253, .28), transparent 70%),
  radial-gradient(40% 50% at 10% 90%, rgba(21, 94, 239, .2), transparent 70%); }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 75% 70% at 60% 40%, #000 15%, transparent 75%); mask-image: radial-gradient(ellipse 75% 70% at 60% 40%, #000 15%, transparent 75%); }
[data-theme="dark"] .svc-dark .grid-lines { background-image: linear-gradient(rgba(140, 180, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 180, 255, .07) 1px, transparent 1px); }

/* ---- Hero ---- */
.svc-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--cool); padding: calc(var(--header-h) + clamp(32px, 5vw, 72px)) 0 clamp(48px, 6vw, 88px); }
.svc-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.svc-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.svc-hero .page-title { font-size: clamp(2.3rem, 1.1rem + 3.6vw, 4.3rem); }
.svc-hero .page-lead { margin-bottom: 32px; }
.svc-hero .btn-row { align-items: center; gap: 14px 28px; }
.svc-hero .link-arrow { margin-top: 0; }

/* 360° ecosystem */
.eco { position: relative; }
.eco-scene { position: relative; width: 100%; aspect-ratio: 1; max-width: 40rem; margin-inline: auto; }
.eco-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.eco-orbit { fill: none; stroke: var(--line); stroke-width: 1.2; }
.eco-orbit-1 { stroke: color-mix(in srgb, var(--blue) 45%, transparent); stroke-width: 1.5; }
.eco-orbit-2 { stroke-dasharray: 2 7; }
.eco-orbit-4 { fill: color-mix(in srgb, var(--blue) 5%, transparent); }
.eco-sweep { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 9 91; animation: sweep 7s linear infinite; filter: drop-shadow(0 0 6px rgba(0, 116, 253, .8)); }
@keyframes sweep { to { stroke-dashoffset: -100; } }
.eco-mote { fill: var(--blue); opacity: .45; animation: mote 6s ease-in-out infinite; animation-delay: var(--md); }
@keyframes mote { 0%, 100% { opacity: .15; transform: translateY(0); } 50% { opacity: .7; transform: translateY(-8px); } }
.eco-link { stroke: url(#eco-link-g); stroke-width: 1.5; opacity: .35; stroke-dasharray: 4 6; animation: dashflow 1.4s linear infinite; transition: opacity .35s, stroke-width .35s; }
.eco.has-active .eco-link { opacity: .12; }
.eco .eco-link.is-active { opacity: 1; stroke-width: 2.5; stroke-dasharray: none; filter: drop-shadow(0 0 5px rgba(0, 116, 253, .9)); }
@keyframes dashflow { to { stroke-dashoffset: -20; } }
.eco-core { position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: #fff; display: grid; place-items: center; z-index: 5; box-shadow: 0 30px 60px -18px rgba(0, 26, 77, .45), 0 0 0 8px color-mix(in srgb, var(--surface) 70%, transparent); }
.eco-core img { width: 78%; height: 78%; border-radius: 50%; }
.eco-core-ring { position: absolute; inset: -18%; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--blue) 40%, transparent); animation: ripple 3.6s var(--ease) infinite; }
.eco-core-ring.r2 { animation-delay: 1.8s; }
@keyframes ripple { from { opacity: .9; scale: .8; } to { opacity: 0; scale: 1.5; } }
.eco-node { position: absolute; left: var(--x); top: var(--y); z-index: var(--z, 3); translate: -50% -50%; scale: var(--s, 1); opacity: var(--o, 1); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--heading); transition: opacity .3s; }
.eco-dot { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--surface); color: var(--blue); border: 1px solid var(--line); box-shadow: 0 14px 28px -12px rgba(0, 26, 77, .35); transition: background-color .3s, color .3s, transform .4s var(--ease), box-shadow .3s; }
.eco-dot .ic { width: 22px; height: 22px; }
.eco-dot::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--blue) 35%, transparent); opacity: 0; transition: opacity .3s, inset .4s var(--ease); }
.eco-name { display: flex; gap: 6px; align-items: baseline; padding: 4px 10px; border-radius: 999px; background: var(--glass-strong); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-family: var(--font-display); font-weight: 600; font-size: .78rem; white-space: nowrap; border: 1px solid var(--line-2); }
.eco-name b { color: var(--blue); font-size: .7rem; }
.eco-tip { position: absolute; bottom: calc(100% + 10px); left: 50%; width: 220px; translate: -50% 6px; padding: 12px 14px; border-radius: 14px; background: var(--deep); color: rgba(255, 255, 255, .86); font-size: .84rem; line-height: 1.45; box-shadow: 0 20px 40px -16px rgba(7, 21, 47, .55); opacity: 0; pointer-events: none; transition: opacity .3s, translate .4s var(--ease); text-align: left; }
.eco-tip::after { content: ''; position: absolute; top: 100%; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--deep); }
.eco.has-active .eco-node:not(.is-active) { opacity: .45; }
.eco-node.is-active { z-index: 20 !important; }
.eco-node.is-active .eco-dot { background: var(--blue); color: #fff; border-color: var(--blue); transform: scale(1.12); box-shadow: 0 0 0 6px color-mix(in srgb, var(--blue) 18%, transparent), 0 18px 36px -12px rgba(0, 116, 253, .7); }
.eco-node.is-active .eco-dot::after { opacity: 1; inset: -12px; }
.eco-node.is-active .eco-tip { opacity: 1; translate: -50% 0; }
.eco-node:focus-visible { outline: none; }
.eco-node:focus-visible .eco-dot { outline: 3px solid var(--blue); outline-offset: 4px; }
.eco-hint { text-align: center; font-size: .8rem; color: var(--slate); margin: 4px 0 0; letter-spacing: .04em; }
.hint-touch { display: none; }
@media (hover: none) { .hint-desktop { display: none; } .hint-touch { display: inline; } .eco-tip { display: none; } }

/* ---- Capsule service nav ---- */
.svc-nav { position: sticky; top: calc(var(--header-h) + 10px); z-index: 50; padding: 12px 0; margin-top: -40px; pointer-events: none; }
.svc-nav-capsule { pointer-events: auto; position: relative; width: fit-content; max-width: 100%; margin-inline: auto; padding: 6px; border-radius: 999px; background: rgba(7, 21, 47, .9); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 20px 44px -18px rgba(7, 21, 47, .55); }
.svc-nav ul { position: relative; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.svc-nav ul::-webkit-scrollbar { display: none; }
.svc-nav a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 10px clamp(12px, 1.1vw, 18px); border-radius: 999px; font-family: var(--font-display); font-size: .86rem; font-weight: 500; color: rgba(255, 255, 255, .66); white-space: nowrap; transition: color .35s; }
.svc-nav a:hover { color: #fff; }
.sn-num { font-size: .7rem; font-weight: 600; color: var(--sky); transition: color .35s; }
.svc-nav a.is-active { color: #fff; }
.svc-nav a.is-active .sn-num { color: #fff; }
.sn-indicator { position: absolute; top: 0; left: 0; height: 100%; width: var(--w, 0); transform: translateX(var(--x, 0)); border-radius: 999px; background: linear-gradient(120deg, #155EEF, #0074FD); box-shadow: 0 8px 20px -8px rgba(0, 116, 253, .9), inset 0 1px 0 rgba(255, 255, 255, .25); opacity: 0; transition: transform .55s var(--ease), width .55s var(--ease), opacity .3s; pointer-events: none; }
.svc-nav.has-active .sn-indicator { opacity: 1; }
.sn-progress { position: absolute; left: 22px; right: 22px; bottom: -1px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.sn-progress span { position: absolute; inset: 0; background: linear-gradient(90deg, #6DB3FF, #0074FD); transform-origin: 0 50%; transform: scaleX(var(--sp2, 0)); }

/* ---- Statement ---- */
.svc-statement { position: relative; padding: clamp(80px, 10vw, 144px) 0 clamp(56px, 7vw, 96px); background: var(--bg); }
.statement-text { font-family: var(--font-display); font-size: clamp(2.2rem, 1rem + 4.2vw, 4.6rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.02; color: var(--heading); max-width: 17ch; margin: 0 0 clamp(32px, 4vw, 48px); }
.statement-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 56rem; margin-left: auto; padding-top: 28px; border-top: 1px solid var(--line); color: var(--ink-2); }

/* ---- Service sections ---- */
.svc { position: relative; overflow: hidden; isolation: isolate; padding: clamp(80px, 9vw, 8.5rem) 0 clamp(56px, 6vw, 5.5rem); scroll-margin-top: calc(var(--header-h) + 64px); }
.svc-light { background: var(--bg); }
.svc-cool { background: var(--cool); }
[data-theme="dark"] .svc-dark { background: var(--deep); color: rgba(255, 255, 255, .72); }
[data-theme="dark"] .svc-dark { background: #081733; }
.svc-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.svc-bignum { position: absolute; top: clamp(16px, 3vw, 40px); right: -1vw; font-family: var(--font-display); font-weight: 700; font-size: clamp(9rem, 20vw, 20rem); line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px var(--line); opacity: .7; }
.svc-flip .svc-bignum { right: auto; left: -1vw; }
[data-theme="dark"] .svc-dark .svc-bignum { -webkit-text-stroke-color: rgba(140, 180, 255, .14); }
.svc-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 88px); align-items: center; }
.svc-flip .svc-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.svc-flip .svc-copy { order: 2; }
.svc-id { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; font-family: var(--font-display); font-weight: 600; }
.svc-id-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff; box-shadow: 0 12px 24px -12px rgba(0, 116, 253, .8); }
.svc-id-ic .ic { width: 22px; height: 22px; }
.svc-id-num { font-size: 1.1rem; color: var(--blue); }
.svc-id-line { width: 56px; height: 1px; background: var(--line); }
.svc-id-of { font-size: .85rem; color: var(--slate); }
.svc-h { font-size: clamp(2rem, 1.2rem + 2.3vw, 3.4rem); letter-spacing: -.04em; line-height: 1.04; margin-bottom: 18px; }
.svc-lead { font-size: var(--fs-lead); font-weight: 500; color: var(--heading); line-height: 1.5; margin-bottom: 14px; }
.svc-body { color: var(--ink-2); margin-bottom: 26px; max-width: 58ch; }
.caps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-bottom: 26px; }
.caps li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: .95rem; line-height: 1.4; color: var(--ink); }
.caps .ic { width: 18px; height: 18px; flex: none; padding: 3px; margin-top: 1px; border-radius: 50%; background: var(--soft); color: var(--blue); stroke-width: 2.6; box-sizing: content-box; }
.also { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 28px; font-size: .86rem; }
.also span { color: var(--slate); font-weight: 600; margin-right: 4px; }
.also em { font-style: normal; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1px dashed color-mix(in srgb, var(--blue) 50%, transparent); color: var(--royal); }
[data-theme="dark"] .svc-dark .svc-h, [data-theme="dark"] .svc-dark .svc-lead { color: #fff; }
[data-theme="dark"] .svc-dark .svc-body { color: rgba(255, 255, 255, .68); }
[data-theme="dark"] .svc-dark .caps li { color: #fff; }
[data-theme="dark"] .svc-dark .caps .ic { background: rgba(0, 116, 253, .22); color: #8CC4FF; }
[data-theme="dark"] .svc-dark .svc-id-line { background: rgba(255, 255, 255, .16); }
[data-theme="dark"] .svc-dark .svc-id-of { color: rgba(255, 255, 255, .5); }
[data-theme="dark"] .svc-dark .svc-id-num { color: var(--sky); }
[data-theme="dark"] .svc-dark .also em { color: #8CC4FF; border-color: rgba(109, 179, 255, .4); }
[data-theme="dark"] .svc-dark .also span { color: rgba(255, 255, 255, .55); }
.outcomes { display: grid; grid-template-columns: 1fr repeat(4, 1.2fr); gap: 24px; margin-top: clamp(56px, 6vw, 88px); }
.outcomes li { padding-top: 18px; border-top: 1px solid var(--line); font-size: .95rem; line-height: 1.5; color: var(--ink-2); }
.outcomes li span { display: block; font-family: var(--font-display); font-size: .72rem; font-weight: 600; color: var(--blue); margin-bottom: 6px; }
.outcomes .outcomes-h { font-family: var(--font-display); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--heading); border-top-color: var(--blue); }
[data-theme="dark"] .svc-dark .outcomes li { border-top-color: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .7); }
[data-theme="dark"] .svc-dark .outcomes .outcomes-h { color: #fff; border-top-color: var(--sky); }
[data-theme="dark"] .svc-dark .outcomes li span { color: var(--sky); }

/* ---- Visual canvas shared ---- */
.viz { position: relative; width: 100%; aspect-ratio: 4 / 3; }
.viz [data-depth] { transition: transform .6s var(--ease); }
.glass { background: var(--glass-strong); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.doc, .mon-panel, .mon-topo, .mon-stack, .flow-log { position: absolute; border-radius: 18px; background: var(--glass-strong); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -32px rgba(7, 21, 47, .35); padding: 16px 18px; }
[data-theme="dark"] .doc, [data-theme="dark"] .mon-panel, [data-theme="dark"] .mon-topo, [data-theme="dark"] .mon-stack, [data-theme="dark"] .flow-log { box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .7); }
.doc-head, .mon-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--font-display); font-size: .86rem; color: var(--heading); }
.doc-head i { margin-left: auto; font-style: normal; font-size: .72rem; color: var(--slate); }
.doc-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--soft); color: var(--blue); }
.doc-ic .ic { width: 16px; height: 16px; }
.topo-title { font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin-bottom: 12px; }
.tick { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); color: transparent; flex: none; transition: background-color .4s, border-color .4s, color .4s; }
.tick .ic { width: 12px; height: 12px; stroke-width: 3; }
.dot-ok { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }

/* 01 — Roadmap */
.viz-grid { position: absolute; inset: 0; border-radius: 24px; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.road-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.road-base { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 3 7; }
.road-path { fill: none; stroke: url(#road-g); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 8px rgba(0, 116, 253, .45)); transition: stroke-dashoffset 2.2s var(--ease-in-out) .3s; }
.is-in .road-path, .no-anim .road-path { stroke-dashoffset: 0; }
.road-runner { fill: #fff; stroke: var(--blue); stroke-width: 3; filter: drop-shadow(0 0 6px rgba(0, 116, 253, .9)); }
.ms { cursor: pointer; }
.ms-halo { fill: var(--blue); opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity .35s, transform .5s var(--ease); }
.ms-dot { fill: var(--surface); stroke: var(--blue); stroke-width: 3; transition: fill .35s; }
.ms text { font-family: var(--font-display); font-size: 13px; font-weight: 600; fill: var(--heading); text-anchor: middle; }
.viz-road .ms.is-on .ms-dot { fill: var(--blue); }
.viz-road .ms.is-on .ms-halo { opacity: .16; transform: scale(1.5); }
.doc-plan { top: 0; left: 0; width: 54%; }
.doc-check { bottom: 0; right: 0; width: 42%; }
.gantt { display: grid; gap: 9px; }
.g-row { display: grid; grid-template-columns: 42% 1fr; align-items: center; gap: 10px; font-size: .72rem; color: var(--ink-2); padding: 2px 6px; margin: 0 -6px; border-radius: 6px; transition: background-color .35s, color .35s; }
.g-track { position: relative; height: 8px; border-radius: 4px; background: var(--line-2); }
.g-bar { position: absolute; top: 0; bottom: 0; left: var(--s); width: var(--w); border-radius: 4px; background: linear-gradient(90deg, #155EEF, #0074FD); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1s var(--ease); }
.is-in .g-bar { transform: scaleX(1); }
.is-in .g-row:nth-child(2) .g-bar { transition-delay: .2s; } .is-in .g-row:nth-child(3) .g-bar { transition-delay: .4s; } .is-in .g-row:nth-child(4) .g-bar { transition-delay: .6s; }
.g-row.is-on { background: var(--soft); color: var(--heading); font-weight: 600; }
.doc-check ul { display: grid; gap: 10px; }
.doc-check li { display: flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 600; color: var(--ink); }
.is-in .doc-check .tick { animation: tickOn .5s var(--ease) forwards; animation-delay: calc(1s + var(--i) * .35s); }
@keyframes tickOn { to { background: var(--blue); border-color: var(--blue); color: #fff; } }

/* 02 — App interface (dark section) */
.viz-app { aspect-ratio: 16 / 11; }
.app-win { position: absolute; left: 0; top: 6%; width: 80%; border-radius: 16px; background: linear-gradient(180deg, #0F2148, #0B1A3A); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); overflow: hidden; }
.app-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.app-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.app-url { margin-left: 10px; padding: 3px 10px; border-radius: 6px; background: rgba(255, 255, 255, .05); font-size: .66rem; color: rgba(255, 255, 255, .5); font-family: ui-monospace, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-body { display: grid; grid-template-columns: 46px 1fr; min-height: 250px; }
.app-side { display: grid; align-content: start; gap: 12px; padding: 14px 0; justify-items: center; border-right: 1px solid rgba(255, 255, 255, .06); }
.app-side span { width: 20px; height: 20px; border-radius: 6px; background: rgba(255, 255, 255, .08); }
.app-side .on { background: #0074FD; box-shadow: 0 0 12px rgba(0, 116, 253, .8); }
.app-main { padding: 14px 16px; display: grid; gap: 12px; }
.app-title { display: flex; align-items: center; justify-content: space-between; }
.app-title b { width: 34%; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .6); }
.app-btn { font-size: .66rem; font-weight: 700; color: #fff; padding: 5px 10px; border-radius: 7px; background: #0074FD; }
.app-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); display: grid; gap: 8px; }
.kpi-l { width: 50%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .2); }
.kpi-v { width: var(--w); height: 10px; border-radius: 5px; background: linear-gradient(90deg, #6DB3FF, #0074FD); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.2s var(--ease) .4s; }
.is-in .kpi-v { transform: scaleX(1); }
.app-chart svg { width: 100%; height: 70px; }
.chart-area { fill: rgba(0, 116, 253, .14); }
.chart-line { fill: none; stroke: #6DB3FF; stroke-width: 2.5; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 2s var(--ease) .6s; vector-effect: non-scaling-stroke; }
.is-in .chart-line { stroke-dashoffset: 0; }
.app-table { display: grid; gap: 6px; }
.tr-row { display: grid; grid-template-columns: 1.4fr 1fr 44px; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .05); }
.tr-row span:not(.pill) { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); }
.pill { height: 14px; border-radius: 7px; }
.pill.ok { background: rgba(34, 197, 94, .3); } .pill.run { background: rgba(0, 116, 253, .45); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .4; } }
.code-panel { position: absolute; right: 0; bottom: 0; width: 58%; border-radius: 14px; background: #040B1C; border: 1px solid rgba(109, 179, 255, .18); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 116, 253, .08); overflow: hidden; }
.code-tabs { display: flex; font-size: .66rem; font-family: ui-monospace, monospace; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.code-tabs span { padding: 8px 12px; color: rgba(255, 255, 255, .4); }
.code-tabs .on { color: #fff; background: rgba(255, 255, 255, .04); box-shadow: inset 0 -2px 0 #0074FD; }
.code-panel pre { white-space: normal; margin: 0; padding: 12px 14px; font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .7rem; line-height: 1.75; color: #C9D6F0; overflow: hidden; }
.code-panel .ln { display: block; white-space: pre; clip-path: inset(0 100% 0 0); }
.is-in .code-panel .ln { animation: typeLine .6s steps(24, end) forwards; }
.is-in .code-panel .ln:nth-child(2) { animation-delay: .5s; } .is-in .code-panel .ln:nth-child(3) { animation-delay: 1s; } .is-in .code-panel .ln:nth-child(4) { animation-delay: 1.5s; } .is-in .code-panel .ln:nth-child(5) { animation-delay: 2s; } .is-in .code-panel .ln:nth-child(6) { animation-delay: 2.4s; }
@keyframes typeLine { to { clip-path: inset(0 0 0 0); } }
.code-panel i { font-style: normal; } .code-panel .k { color: #7AA2FF; } .code-panel .f { color: #6DE3C2; } .code-panel .s { color: #F6C177; }
.code-status { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: .68rem; color: rgba(255, 255, 255, .6); }
.comp-panel { position: absolute; right: 2%; top: 0; width: 32%; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .95); box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .7); display: grid; gap: 10px; }
.comp-label { font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #667085; }
.comp-row { display: flex; align-items: center; gap: 10px; }
.toggle { position: relative; width: 34px; height: 20px; border-radius: 10px; background: #0074FD; flex: none; }
.toggle i { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; animation: toggle 3s var(--ease) infinite; }
@keyframes toggle { 0%, 40% { transform: translateX(0); } 50%, 90% { transform: translateX(14px); } 100% { transform: translateX(0); } }
.comp-btn { font-size: .7rem; font-weight: 700; color: #fff; background: #001A4D; padding: 6px 12px; border-radius: 8px; }
.chk { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: #0074FD; color: #fff; flex: none; }
.chk .ic { width: 12px; height: 12px; stroke-width: 3; }
.comp-input { flex: 1; height: 18px; border-radius: 6px; border: 1.5px solid #DCE3F0; }

/* 03 — Monitoring */
.mon-panel { left: 0; top: 0; width: 72%; padding: 18px 20px; }
.mon-head b { font-weight: 600; }
.mon-status { margin-left: auto; position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .7rem; font-weight: 700; background: rgba(245, 158, 11, .14); color: #B45309; animation: statusBg 8s infinite; }
.mon-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mon-status em { font-style: normal; }
.mon-status .st-b { position: absolute; left: 23px; opacity: 0; animation: stB 8s infinite; }
.mon-status .st-a { animation: stA 8s infinite; }
@keyframes statusBg { 0%, 45% { background: rgba(245, 158, 11, .14); color: #B45309; } 55%, 95% { background: rgba(34, 197, 94, .14); color: #15803D; } 100% { background: rgba(245, 158, 11, .14); color: #B45309; } }
@keyframes stA { 0%, 45% { opacity: 1; } 55%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes stB { 0%, 45% { opacity: 0; } 55%, 95% { opacity: 1; } 100% { opacity: 0; } }
[data-theme="dark"] .mon-status { animation-name: statusBgD; }
@keyframes statusBgD { 0%, 45% { background: rgba(245, 158, 11, .16); color: #FBBF24; } 55%, 95% { background: rgba(34, 197, 94, .16); color: #4ADE80; } 100% { background: rgba(245, 158, 11, .16); color: #FBBF24; } }
.mon-gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.gauge { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border-radius: 12px; background: var(--cool); font-size: .7rem; font-weight: 600; color: var(--ink-2); text-align: center; }
.gauge svg { width: 64%; max-width: 72px; transform: rotate(-90deg); }
.g-bg { fill: none; stroke: var(--line); stroke-width: 7; }
.g-fg { fill: none; stroke: var(--blue); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.6s var(--ease); transition-delay: calc(.3s + var(--i) * .2s); }
.is-in .g-fg { stroke-dasharray: var(--to) 100; }
.mon-label { font-size: .7rem; font-weight: 600; color: var(--slate); margin-bottom: 6px; }
.mon-graph svg { width: 100%; height: 60px; }
.mg-line { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; vector-effect: non-scaling-stroke; transition: stroke-dashoffset 2.4s var(--ease) .5s; }
.is-in .mg-line { stroke-dashoffset: 0; }
.mon-topo { right: 0; top: 44%; width: 50%; }
.topo { display: flex; align-items: center; }
.t-node { flex: none; padding: 7px 10px; border-radius: 10px; font-size: .72rem; font-weight: 700; color: var(--heading); background: var(--surface); border: 1.5px solid var(--line); }
.t-link { flex: 1; height: 2px; min-width: 14px; background: repeating-linear-gradient(90deg, var(--blue) 0 6px, transparent 6px 10px); background-size: 20px 2px; animation: linkflow 1s linear infinite; }
@keyframes linkflow { to { background-position: 20px 0; } }
.t-hot { animation: hot 8s infinite; }
@keyframes hot { 0%, 45% { border-color: #F59E0B; box-shadow: 0 0 0 4px rgba(245, 158, 11, .15); } 55%, 95% { border-color: #22C55E; box-shadow: 0 0 0 4px rgba(34, 197, 94, .15); } 100% { border-color: #F59E0B; } }
.mon-stack { left: 10%; bottom: 0; width: 50%; }
.tools { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.tools span { aspect-ratio: 1; border-radius: 6px; background: linear-gradient(135deg, var(--royal), var(--blue)); opacity: .85; }
.tools .retire { animation: retire 8s infinite; }
@keyframes retire { 0%, 40% { opacity: .85; transform: none; } 55%, 92% { opacity: .12; transform: scale(.6); } 100% { opacity: .85; transform: none; } }

/* 04 — Infrastructure stack (dark section) */
.viz-infra { aspect-ratio: 5 / 4; }
.stack-scene { position: absolute; left: 2%; top: 12%; width: 58%; aspect-ratio: 1; perspective: 1400px; }
.stack { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-42deg); --gap: 64px; }
.viz-infra:hover .stack, .viz-infra.is-open .stack { --gap: 96px; }
.layer { position: absolute; inset: 10%; transform-style: preserve-3d; transform: translateZ(calc(var(--l) * var(--gap))); transition: transform .8s var(--ease); }
.layer-plane { position: absolute; inset: 0; border-radius: 18px; border: 1px solid rgba(109, 179, 255, .38); background: linear-gradient(135deg, rgba(21, 94, 239, .2), rgba(0, 116, 253, .06)), repeating-linear-gradient(0deg, rgba(140, 180, 255, .08) 0 1px, transparent 1px 22px), repeating-linear-gradient(90deg, rgba(140, 180, 255, .08) 0 1px, transparent 1px 22px); box-shadow: 0 0 40px rgba(0, 116, 253, .15), inset 0 0 30px rgba(0, 116, 253, .12); display: grid; grid-template-columns: 1fr 1fr; gap: 20%; padding: 22%; }
.layer-2 .layer-plane { border-color: rgba(140, 196, 255, .7); background: linear-gradient(135deg, rgba(0, 116, 253, .38), rgba(109, 179, 255, .1)), repeating-linear-gradient(0deg, rgba(140, 180, 255, .1) 0 1px, transparent 1px 22px), repeating-linear-gradient(90deg, rgba(140, 180, 255, .1) 0 1px, transparent 1px 22px); box-shadow: 0 0 60px rgba(0, 116, 253, .35); }
.li { border-radius: 6px; background: linear-gradient(135deg, #1D4ED8, #0074FD); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 6px 14px rgba(0, 0, 0, .35); animation: liPulse 4s ease-in-out infinite; animation-delay: calc(var(--i) * .5s + var(--l, 0) * .25s); }
.li-net, .li-fw { border-radius: 50%; }
.li-fw { background: linear-gradient(135deg, #22C55E, #16A34A); }
.li-db { border-radius: 10px; background: linear-gradient(135deg, #155EEF, #6DB3FF); }
.li-cl { border-radius: 12px; background: linear-gradient(135deg, #6DB3FF, #E0EEFF); }
@keyframes liPulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.45); } }
.stack-legend { position: absolute; right: 0; top: 16%; display: grid; gap: 30px; }
.stack-legend li { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: .86rem; color: #fff; }
.stack-legend span { width: 34px; height: 2px; background: linear-gradient(90deg, transparent, #6DB3FF); position: relative; }
.stack-legend span::after { content: ''; position: absolute; right: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #6DB3FF; box-shadow: 0 0 10px #0074FD; }
.infra-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-family: var(--font-display); font-size: .78rem; font-weight: 600; }
.infra-chip .ic { width: 16px; height: 16px; color: #4ADE80; }
.infra-chip-a { right: 2%; bottom: 26%; }
.infra-chip-b { right: 12%; bottom: 10%; }

/* 05 — Before / after */
.viz-ba { border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 80px -48px rgba(7, 21, 47, .45); user-select: none; touch-action: pan-y; }
.ba-layer { position: absolute; inset: 0; }
.ba-before { background: var(--cool); background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 18px 18px; }
.ba-after { background: radial-gradient(60% 60% at 50% 50%, color-mix(in srgb, var(--blue) 18%, var(--surface)), var(--surface)); clip-path: inset(0 0 0 var(--pos)); }
.ba-tag { position: absolute; top: 16px; left: 16px; z-index: 2; padding: 5px 12px; border-radius: 999px; font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--surface); color: var(--slate); border: 1px solid var(--line); }
.ba-tag-after { left: auto; right: 16px; background: var(--blue); color: #fff; border-color: var(--blue); }
.ba-broken { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba-broken path { fill: none; stroke: #C4CCD9; stroke-width: 2; stroke-dasharray: 5 7; vector-effect: non-scaling-stroke; }
[data-theme="dark"] .ba-broken path { stroke: #3A4B70; }
.bx { position: absolute; padding: 9px 13px; border-radius: 10px; background: var(--surface); border: 1.5px dashed #C4CCD9; color: var(--slate); font-size: .78rem; font-weight: 600; transform: rotate(var(--r)); box-shadow: 0 6px 14px -8px rgba(7, 21, 47, .25); white-space: nowrap; }
[data-theme="dark"] .bx { border-color: #3A4B70; }
.ba-hub { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba-hub line { stroke: var(--blue); stroke-width: 2; stroke-dasharray: 5 5; animation: dashflow 1.2s linear infinite; opacity: .7; }
.hub-ring { fill: none; stroke: color-mix(in srgb, var(--blue) 40%, transparent); stroke-width: 1.5; }
.hub-core { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: var(--grad); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .78rem; line-height: 1.2; text-align: center; box-shadow: 0 0 0 8px color-mix(in srgb, var(--blue) 14%, transparent), 0 20px 40px -14px rgba(0, 116, 253, .7); }
.mod { position: absolute; left: calc(50% + var(--hr, 27%) * var(--cx)); top: calc(50% + 33.3% * var(--cy)); translate: -50% -50%; padding: 8px 13px; border-radius: 999px; background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--blue) 55%, transparent); color: var(--heading); font-size: .76rem; font-weight: 700; white-space: nowrap; box-shadow: 0 10px 20px -12px rgba(0, 116, 253, .6); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 116, 253, .4), 0 0 18px rgba(0, 116, 253, .6); z-index: 3; pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; translate: -50% -50%; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, .7), 0 12px 24px -8px rgba(0, 116, 253, .8); }
.ba-handle .ic { width: 14px; height: 14px; stroke-width: 2.5; }
.ba-handle .ic:first-child { transform: scaleX(-1); }
.ba-range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.viz-ba:has(.ba-range:focus-visible) .ba-handle span { outline: 3px solid var(--heading); outline-offset: 3px; }

/* 06 — Workflow */
.flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fp { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 5 6; animation: dashflow 1.4s linear infinite; }
.fp-yes { stroke: color-mix(in srgb, #22C55E 60%, var(--line)); }
.fa { fill: var(--slate); }
.fn rect, .fn path { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; filter: drop-shadow(0 10px 14px rgba(7, 21, 47, .1)); animation: fnPulse 6s infinite; }
.fn text { font-family: var(--font-display); font-size: 13px; font-weight: 600; fill: var(--heading); text-anchor: middle; }
.fn text.sub { font-size: 11px; font-weight: 500; fill: var(--slate); }
.fn-dec path { stroke: var(--blue); }
.fn-1 rect { animation-delay: 0s; } .fn-2 rect { animation-delay: 1.1s; } .fn-3 path { animation-delay: 2.2s; } .fn-4 rect { animation-delay: 3.6s; } .fn-5 rect { animation-delay: .6s; }
@keyframes fnPulse { 0%, 18%, 100% { stroke: var(--line); } 4%, 12% { stroke: var(--blue); stroke-width: 2.5; } }
.br-l { font-family: var(--font-display); font-size: 11px; font-weight: 700; fill: var(--slate); text-transform: uppercase; letter-spacing: .08em; }
.tok { fill: var(--blue); filter: drop-shadow(0 0 6px rgba(0, 116, 253, .9)); }
.tok-b { fill: #F59E0B; filter: drop-shadow(0 0 6px rgba(245, 158, 11, .8)); }
.flow-log { right: 0; top: -2%; width: 36%; padding: 14px 16px; }
.flow-log ul { display: grid; gap: 9px; }
.flow-log li { display: flex; align-items: center; gap: 10px; font-size: .76rem; font-weight: 600; color: var(--ink); }
.is-in .flow-log .tick { animation: tickLoop 6s infinite; animation-delay: calc(var(--i) * .7s + .6s); }
/* 06 — AI agent node + loop-back label */
.fn-ai rect { stroke: var(--blue); }
.fn-badge { fill: var(--blue); stroke: none !important; filter: drop-shadow(0 0 6px rgba(0, 116, 253, .7)) !important; animation: none !important; }
.fn text.fn-badge-t { font-size: 9px; font-weight: 700; fill: #fff; letter-spacing: .04em; }
.br-mid { text-anchor: middle; font-size: 10px; }
/* 08 — Data pipeline */
.viz-data { aspect-ratio: 4 / 3; }
.fn ellipse { fill: var(--surface); stroke: var(--blue); stroke-width: 1.5; }
.fn-wh path { stroke: var(--blue); }
.tok-sky { fill: #6DB3FF; filter: drop-shadow(0 0 6px rgba(109, 179, 255, .9)); }
.flow-log.data-log { top: auto; bottom: 0; left: 6%; right: auto; width: 40%; }
[data-theme="dark"] .svc-dark .br-l { fill: rgba(255, 255, 255, .55); }
@keyframes tickLoop { 0% { background: transparent; border-color: var(--line); color: transparent; } 8%, 85% { background: #22C55E; border-color: #22C55E; color: #fff; } 100% { background: transparent; border-color: var(--line); color: transparent; } }

/* 13. CONTACT ------------------------------------------------------------ */
.contact-main { padding-top: clamp(48px, 6vw, 88px); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-aside .h3 { margin-bottom: 20px; }
.contact-tiles-stack .c-tile { box-shadow: none; }
.contact-tiles-stack .c-val { font-size: .98rem; }
.contact-note { margin-top: 28px; padding: 28px; border-radius: var(--r-lg); background: var(--cool); }
.contact-note h3 { font-size: 1.05rem; margin-bottom: 14px; }
.contact-note ol { counter-reset: s; display: grid; gap: 12px; }
.contact-note li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 10px; color: var(--ink-2); font-size: .96rem; line-height: 1.55; }
.contact-note li::before { content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); color: var(--blue); font-family: var(--font-display); font-weight: 600; font-size: .8rem; box-shadow: var(--shadow-sm); }
.form-card { padding: clamp(24px, 4vw, 48px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -40px rgba(7, 21, 47, .25); }
.form-card .h3 { margin-bottom: 6px; }
.form-intro { color: var(--slate); font-size: .92rem; margin-bottom: 28px; }
.form { display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 8px; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--field); color: var(--ink); font-size: 1rem;
  transition: border-color .25s, box-shadow .25s, background-color .25s; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #BCC9DF; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--surface); box-shadow: 0 0 0 4px rgba(0, 116, 253, .14); }
.field [aria-invalid="true"] { border-color: var(--err) !important; background: var(--err-bg); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .14); }
.select-wrap { position: relative; }
.select-wrap::after { content: ''; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--slate); border-bottom: 2px solid var(--slate); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field select { padding-right: 44px; cursor: pointer; }
.field-hint { font-size: .85rem; color: var(--slate); margin: 6px 0 0; }
.field-err { font-size: .86rem; color: var(--err); font-weight: 600; margin: 6px 0 0; min-height: 0; }
.field-err:empty { display: none; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--blue); cursor: pointer; }
.field-check label { font-weight: 500; font-size: .93rem; color: var(--ink-2); margin: 0; line-height: 1.55; cursor: pointer; }
.field-check .field-err { grid-column: 2; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit { justify-self: start; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn-submit.is-loading { pointer-events: none; opacity: .85; }
.btn-submit.is-loading .spinner { display: block; }
.btn-submit.is-loading .ic-arrow { display: none; }
.form-status { display: none; padding: 16px 18px; border-radius: 12px; font-size: .95rem; line-height: 1.55; border: 1px solid; }
.form-status.is-visible { display: block; }
.form-status.is-success { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 35%, transparent); color: var(--ok); }
.form-status.is-error { background: var(--err-bg); border-color: color-mix(in srgb, var(--err) 35%, transparent); color: var(--err); }
.form-status.is-info { background: var(--soft); border-color: var(--info-line); color: var(--heading); }
.form-status strong { display: block; margin-bottom: 2px; }
.form-status a { color: inherit; font-weight: 700; text-decoration: underline; }

/* 14. 404 ---------------------------------------------------------------- */
.nf { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 48px) 0 80px; background: var(--cool); text-align: center; }
.nf-inner { max-width: 51rem; }
.nf-art { position: relative; width: 220px; height: 220px; margin: 0 auto 32px; display: grid; place-items: center; }
.nf-art svg { position: absolute; inset: 0; animation: spin 40s linear infinite; }
.nf-art circle { fill: none; stroke: var(--line); stroke-width: 1.5; }
.nf-art .dash { stroke: var(--blue); stroke-dasharray: 4 10; }
.nf-art span { font-family: var(--font-display); font-weight: 600; font-size: 4rem; letter-spacing: -.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf .eyebrow { justify-content: center; }
.nf .page-lead { margin-inline: auto; margin-bottom: 36px; }
.nf-ctas { justify-content: center; }

/* 15. MOTION (scroll reveals, split text, page transitions) -------------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .65s var(--ease); transition-delay: calc(var(--d, 0ms) * .6); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span { display: inline-block; }
.js .split-ready .w > span { transform: translateY(110%); transition: transform .45s var(--ease); transition-delay: calc(min(var(--wi), 8) * 20ms + var(--d, 0ms)); }
.js .split-ready.is-in .w > span, .js .is-in .split-ready .w > span { transform: none; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
.site-header { view-transition-name: site-header; }
::view-transition-group(site-header) { animation-duration: 0s; }
[data-parallax] { will-change: transform; }

/* 16. RESPONSIVE --------------------------------------------------------- */
@media (max-width: 1180px) {
  .header-cta { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .brand img { height: 38px; }
  .hero { min-height: 0; }
  .hero-row { grid-template-columns: 1fr; }
  .hero-lead { max-width: 60ch; }
  .strip-list { grid-template-columns: 1fr 1fr; }
  .strip-item { border-left: 0; padding: 24px 16px 24px 0; }
  .strip-item:nth-child(even) { border-left: 1px solid var(--line-2); padding-left: 24px; }
  .strip-item:nth-child(-n + 2) { border-bottom: 1px solid var(--line-2); }
  .split, .contact-pv-inner, .section-head, .why-body, .contact-grid { grid-template-columns: 1fr; }
  .section-head-text { justify-self: start; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid > .svc-card:nth-child(7), .svc-grid > .svc-card:nth-child(8) { grid-column: auto; }
  .dial { max-width: 360px; }
  .how-sticky { position: static; }
  .values-list { grid-template-columns: 1fr 1fr; }
  .value, .value:not(:nth-child(3n + 1)) { padding: 36px 28px 40px 0; border-left: 0; }
  .value:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
  .pillars-art { display: none; }
}
@media (max-width: 800px) {
  .timeline-track { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
  .timeline-fill { transform-origin: 50% 0; transform: scaleY(var(--p)); }
  .timeline-steps { grid-template-columns: 1fr; gap: 36px; }
  .t-step { display: grid; grid-template-columns: 56px 1fr; column-gap: 24px; }
  .t-dot { grid-row: 1 / 4; margin: 0; }
  .t-step p { max-width: none; }
  .story-cols { grid-template-columns: 1fr; gap: 20px; }
  .mv-grid { grid-template-columns: 1fr; }
  .mv-card { min-height: 340px; }
  .approach-grid { grid-template-columns: 1fr; }
  .approach-col + .approach-col { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .strip-list { grid-template-columns: 1fr; }
  .strip-item, .strip-item:nth-child(even) { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line-2); }
  .strip-item:last-child { border-bottom: 0; }
  .svc-grid { grid-template-columns: 1fr; }
  .hero-lead { padding-left: 16px; }
  .hero-link { margin-inline: auto; }
  .hero-ring { opacity: .6; }
  .tr-foot { flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
  .tr-note { text-align: left; }
  .tr-dot { width: 30px; }
  .svc-grid > .svc-card:nth-child(n) { grid-column: auto; }
  .svc-card { padding: 24px; }
  .svc-top { margin-bottom: 28px; }
  .hero { padding-top: calc(var(--header-h) + 28px); }
  .hide-sm { display: none; }
  .hero-ctas .btn { width: 100%; }
  .btn-lg { --bh: 54px; }
  .pillar { grid-template-columns: auto 1fr; padding: 20px; }
  .pillar-num { display: none; }
  .pillar:nth-child(even) { margin-left: 0; }
  .why-item { padding: 16px 12px; gap: 14px; }
  .dial { max-width: 300px; }
  .values-list { grid-template-columns: 1fr; }
  .value, .value:nth-child(even), .value:not(:nth-child(3n + 1)) { padding: 32px 0 36px; border-left: 0; }
  .field-row { grid-template-columns: 1fr; }
  .btn-submit { width: 100%; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .cta-band .btn-row .btn { width: 100%; }
  .c-tile { padding: 16px; column-gap: 14px; }
  .c-ic { width: 42px; height: 42px; }
  .nf-ctas .btn { width: 100%; }
}
@media (hover: none) {
  .svc-card:hover, .pillar:hover, .c-tile:hover { transform: none; }
}

/* 17. REDUCED MOTION ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  .js [data-reveal], .js .hero-kicker, .js .hero-side, .js .translator { opacity: 1; transform: none; }
  .js .split-ready .w > span { transform: none; }
  .marquee-track { animation: none; }
  .tr-slide *, .tr-slide *::after, .tr-dot span::after { animation-delay: 0s !important; }
  .hero-ring { animation: none; }
  .t-step { opacity: 1; }
}

/* 18. THEME TOGGLE + DARK-MODE SPECIFICS --------------------------------- */
.theme-toggle {
  position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: inline-grid; place-items: center; cursor: pointer; overflow: hidden;
  border: 1.5px solid var(--line); background: var(--glass); color: var(--heading);
  transition: border-color .3s, color .3s, background-color .3s, transform .4s var(--ease);
}
.theme-toggle:hover { border-color: var(--blue); color: var(--blue); transform: rotate(-12deg); }
.theme-toggle .ic { position: absolute; width: 20px; height: 20px; transition: transform .6s var(--ease), opacity .4s; }
.theme-toggle .ic-sun { transform: translateY(150%) rotate(-90deg); opacity: 0; }
[data-theme="dark"] .theme-toggle .ic-sun { transform: none; opacity: 1; }
[data-theme="dark"] .theme-toggle .ic-moon { transform: translateY(-150%) rotate(90deg); opacity: 0; }
@media (max-width: 1024px) {
  .header-inner { gap: 10px; }
  .theme-toggle { margin-left: auto; }
  .theme-toggle ~ .menu-toggle { margin-left: 0; }
}

/* Intro in dark mode: deep backdrop */

/* Dark-mode adjustments for surfaces that were tuned for light */
[data-theme="dark"] .why, [data-theme="dark"] .how, [data-theme="dark"] .cta-band { background: #081733; }
[data-theme="dark"] .dial-node { fill: #081733; }
[data-theme="dark"] .site-footer { background: #030814; }
[data-theme="dark"] .svc-card:hover { box-shadow: 0 0 0 1px rgba(0, 116, 253, .3), 0 28px 50px -24px rgba(0, 116, 253, .5); }
[data-theme="dark"] .svc-card-feature { border-color: transparent; }
[data-theme="dark"] .btn-primary { box-shadow: 0 8px 20px -10px rgba(21, 94, 239, .7); }
[data-theme="dark"] .t-step.is-on .t-dot { box-shadow: 0 0 0 8px rgba(21, 94, 239, .18); }
[data-theme="dark"] .mv-mission { background: linear-gradient(160deg, #10224A, #0B1836); border: 1px solid var(--line-2); }
[data-theme="dark"] .value-num { -webkit-text-stroke-color: #2E4372; }
[data-theme="dark"] .text-blue { color: #3D8BFF; }
[data-theme="dark"] ::selection { background: #3D8BFF; }
[data-theme="dark"] .field select option { background: var(--surface); color: var(--ink); }
[data-theme="dark"] .menu-toggle { background: var(--glass); }
[data-theme="dark"] .drawer-backdrop { background: rgba(0, 0, 0, .6); }

/* 19. SERVICES — responsive + reduced motion ---------------------------- */
@media (max-width: 1100px) {
  .outcomes { grid-template-columns: 1fr 1fr; }
  .outcomes .outcomes-h { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  .svc-hero-inner { grid-template-columns: 1fr; }
  .svc-hero-copy { max-width: 720px; }
  .eco-scene { max-width: 560px; }
  .svc-layout, .svc-flip .svc-layout { grid-template-columns: 1fr; }
  .svc-flip .svc-copy { order: 0; }
  .svc-visual { max-width: 680px; width: 100%; margin-inline: auto; }
  .statement-sub { grid-template-columns: 1fr; gap: 12px; margin-left: 0; }
  .svc-nav { margin-top: -28px; }
}
@media (max-width: 640px) {
  .svc-nav-capsule { width: 100%; border-radius: 18px; }
  .svc-nav a { padding: 10px 14px; }
  .caps { grid-template-columns: 1fr; }
  .outcomes { grid-template-columns: 1fr; gap: 16px; }
  .svc-bignum { font-size: 8rem; opacity: .5; }
  /* Ecosystem: simplified for small screens */
  .eco-name { padding: 3px 8px; font-size: .68rem; }
  .eco-name span, .eco-name { gap: 4px; }
  .eco-dot { width: 42px; height: 42px; }
  .eco-dot .ic { width: 18px; height: 18px; }
  .eco-core { width: 24%; }
  .eco-label { display: none; }
  .eco-name { padding: 2px 7px; }
  /* Visuals: taller frames, panels stacked instead of overlapping */
  .viz { font-size: 13px; }
  .doc, .mon-panel, .mon-topo, .mon-stack, .flow-log { padding: 10px 12px; border-radius: 14px; }
  .viz-road { aspect-ratio: 4 / 5; }
  .doc-plan { top: 0; left: 0; width: 100%; }
  .doc-check { bottom: 0; right: 0; width: 76%; }
  .g-row { font-size: .66rem; }
  .doc-check li, .flow-log li { font-size: .72rem; }
  .viz-app { aspect-ratio: 4 / 4.6; }
  .app-win { top: 0; width: 100%; }
  .app-body { min-height: 210px; }
  .code-panel { width: 92%; }
  .code-panel pre { font-size: .6rem; }
  .comp-panel { display: none; }
  .viz-mon { aspect-ratio: 4 / 5.6; }
  .mon-panel { width: 100%; }
  .mon-topo { top: auto; bottom: 22%; right: 0; width: 84%; }
  .mon-stack { left: 0; bottom: 0; width: 72%; }
  .gauge { font-size: .6rem; }
  .viz-infra { aspect-ratio: 4 / 5.2; }
  .stack-scene { left: 6%; top: 21%; width: 80%; }
  .stack-legend { top: auto; bottom: 0; left: 0; right: auto; gap: 8px; }
  .stack-legend li { font-size: .74rem; }
  .infra-chip { font-size: .68rem; padding: 7px 10px; }
  .infra-chip-a { right: 0; top: 0; bottom: auto; }
  .infra-chip-b { right: 0; top: 9%; bottom: auto; }
  .viz-ba { aspect-ratio: 4 / 4.6; --hr: 20%; }
  .bx, .mod { font-size: .62rem; padding: 6px 8px; }
  .hub-core { width: 66px; height: 66px; font-size: .6rem; }
  .viz-flow { aspect-ratio: 4 / 4.6; }
  .flow-log { top: auto; bottom: 0; right: 0; width: 76%; }
  .viz-data { aspect-ratio: 4 / 4.2; }
  .flow-log.data-log { left: auto; right: 0; width: 76%; }
}
@media (prefers-reduced-motion: reduce) {
  .road-runner, .tok { display: none; }
  .road-path, .chart-line, .mg-line { stroke-dashoffset: 0 !important; }
  .g-bar, .kpi-v { transform: none !important; }
  .g-fg { stroke-dasharray: var(--to) 100 !important; }
  .code-panel .ln { clip-path: none !important; }
  .eco-sweep { display: none; }
}

/* 20. HOME HERO — immersive dark stage ----------------------------------- */
[data-theme="dark"] .hero-dark { background: var(--deep); color: rgba(255, 255, 255, .74); }
[data-theme="dark"] .hero-dark { background: #050D20; }
[data-theme="dark"] .hero-dark .grid-lines { background-image: linear-gradient(rgba(140, 180, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 180, 255, .07) 1px, transparent 1px); background-size: 64px 64px; }
[data-theme="dark"] .hero-dark .hero-glow { right: -200px; bottom: -420px; background: radial-gradient(closest-side, rgba(0, 116, 253, .45), rgba(0, 116, 253, .1) 55%, transparent); }
.hero-ring-wrap { position: absolute; width: 1040px; right: -230px; top: 340px; }
@media (max-width: 1280px) { .hero-ring-wrap { right: -260px; } }
@media (max-width: 1024px) { .hero-ring-wrap { width: 900px; right: -280px; top: auto; bottom: -380px; } }
.hero-ring-wrap.is-turning { animation: ringTurn 1.3s var(--ease-in-out); }
@keyframes ringTurn { from { rotate: 0deg; } to { rotate: 360deg; } }
[data-theme="dark"] .hero-dark .hero-ring { position: static; width: 100%; animation: spin 200s linear infinite; }
[data-theme="dark"] .hero-dark .hr-track { fill: none; stroke: rgba(140, 180, 255, .2); stroke-width: 1.4; }
[data-theme="dark"] .hero-dark .hr-inner { fill: rgba(0, 116, 253, .03); stroke: rgba(140, 180, 255, .1); stroke-dasharray: 2 8; }
[data-theme="dark"] .hero-dark .hero-ring line { stroke: rgba(170, 200, 255, .28); }
[data-theme="dark"] .hero-dark .hero-ring line.long { stroke: #6DB3FF; opacity: .8; }
.hr-sweep { fill: none; stroke: url(#hr-sweep); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 18 82; filter: drop-shadow(0 0 10px rgba(0, 116, 253, .9)); }
.hr-deg { font-family: var(--font-display); font-size: 22px; font-weight: 600; fill: #6DB3FF; text-anchor: middle; }
[data-theme="dark"] .hero-dark .hero-kicker { color: rgba(255, 255, 255, .6); }
[data-theme="dark"] .hero-dark .hero-kicker span[aria-hidden] { color: #6DB3FF; }
[data-theme="dark"] .hero-dark .hero-title { color: #fff; }
[data-theme="dark"] .hero-dark .hero-fwd, [data-theme="dark"] .hero-dark .hero-fwd { color: transparent; background: linear-gradient(100deg, #8CC4FF, #0074FD 70%); -webkit-background-clip: text; background-clip: text; }
[data-theme="dark"] .hero-dark .hero-lead { color: rgba(255, 255, 255, .74); border-left-color: #0074FD; }
[data-theme="dark"] .hero-dark .hero-link { color: #fff; }
[data-theme="dark"] .hero-dark .hero-link:hover { color: #8CC4FF; }
[data-theme="dark"] .hero-dark .translator { background: rgba(10, 24, 52, .55); border-color: rgba(255, 255, 255, .1); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08); }
[data-theme="dark"] .hero-dark .tr-head, [data-theme="dark"] .hero-dark .tr-foot { border-color: rgba(255, 255, 255, .09); }
[data-theme="dark"] .hero-dark .tr-title, [data-theme="dark"] .hero-dark .tr-q p { color: #fff; }
[data-theme="dark"] .hero-dark .tr-a { color: #CFE0FF; }
[data-theme="dark"] .hero-dark .tr-label { color: rgba(255, 255, 255, .5); }
[data-theme="dark"] .hero-dark .tr-label-blue { color: #6DB3FF; }
[data-theme="dark"] .hero-dark .tr-line { background: rgba(255, 255, 255, .1); }
[data-theme="dark"] .hero-dark .tr-turn { background: rgba(0, 116, 253, .18); border-color: rgba(109, 179, 255, .4); color: #8CC4FF; }
[data-theme="dark"] .hero-dark .tr-link { background: #155EEF; }
[data-theme="dark"] .hero-dark .tr-pause { border-color: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .7); }
[data-theme="dark"] .hero-dark .tr-dot span { background: rgba(255, 255, 255, .14); }
[data-theme="dark"] .hero-dark .tr-dot span::after { background: #6DB3FF; }
[data-theme="dark"] .hero-dark .tr-note { color: rgba(255, 255, 255, .5); }
.tr-a .tr-a-vis { display: inline; }

@media (max-width: 640px) { .hero-ring-wrap { width: 640px; right: -300px; top: 62%; } }
@media (prefers-reduced-motion: reduce) { .hero-ring-wrap.is-turning { animation: none; } }

/* Inner page heroes gain the same atmosphere */
.page-hero-bg .mesh { opacity: .9; }

/* 21. THEME COHERENCE — light theme stays light, dark theme stays dark ---- */
/* Hero ring works in both themes */
.hero-ring-wrap .hero-ring { position: static; width: 100%; max-width: 100%; animation: spin 200s linear infinite; }
.hero-ring .hr-sweep { stroke: url(#hr-sweep); }
.hero-ring .hr-inner { fill: color-mix(in srgb, var(--blue) 3%, transparent); stroke: var(--line); stroke-dasharray: 2 8; }
.hr-deg { fill: var(--blue); }
[data-theme="light"] .mesh-dark { background:
  radial-gradient(45% 55% at 80% 35%, rgba(0, 116, 253, .16), transparent 70%),
  radial-gradient(40% 50% at 10% 90%, rgba(21, 94, 239, .10), transparent 70%); }
[data-theme="light"] .hero-dark { background: var(--cool); }
[data-theme="light"] .hero-dark .hero-glow { right: -200px; bottom: -420px; background: radial-gradient(closest-side, rgba(0, 116, 253, .18), rgba(0, 116, 253, .05) 55%, transparent); }
[data-theme="light"] .hero-dark .translator { background: rgba(255, 255, 255, .78); }

/* Why choose YD360 — light */
[data-theme="light"] .why { background: linear-gradient(180deg, #EAF2FF, var(--cool)); color: var(--ink-2); }
[data-theme="light"] .why::before { background: radial-gradient(closest-side, rgba(0, 116, 253, .12), transparent); }
[data-theme="light"] .why .h2-light { color: var(--heading); }
[data-theme="light"] .why .eyebrow-light { color: var(--royal); }
[data-theme="light"] .why-lead { color: var(--slate); }
[data-theme="light"] .dial-outer { stroke: var(--line); }
[data-theme="light"] .dial-mid { fill: rgba(255, 255, 255, .5); stroke: var(--line); }
[data-theme="light"] .dial-node { fill: #fff; stroke: #C6D3EA; }
[data-theme="light"] .dial-node.is-on { fill: var(--blue); stroke: #fff; }
[data-theme="light"] .dial-center { background: radial-gradient(circle at 30% 25%, #fff, #EEF4FF 70%); border-color: var(--line); box-shadow: 0 30px 60px -24px rgba(0, 26, 77, .3); }
[data-theme="light"] .dial-deg { color: var(--navy); }
[data-theme="light"] .dial-cap { color: var(--royal); }
[data-theme="light"] .why-item:hover { background: rgba(255, 255, 255, .6); }
[data-theme="light"] .why-item.is-active { background: #fff; border-color: var(--line-2); box-shadow: var(--shadow-sm); }
[data-theme="light"] .why-ic { border-color: var(--line); color: var(--blue); background: #fff; }
[data-theme="light"] .why-item.is-active .why-ic { background: var(--blue); border-color: var(--blue); color: #fff; }
[data-theme="light"] .why-txt strong { color: var(--heading); }
[data-theme="light"] .why-txt span { color: var(--slate); }

/* About — How we work, light */
[data-theme="light"] .how { background: var(--cool); color: var(--ink-2); }
[data-theme="light"] .how .h2-light { color: var(--heading); }
[data-theme="light"] .how .eyebrow-light { color: var(--royal); }
[data-theme="light"] .how-lead, [data-theme="light"] .how-list p { color: var(--slate); }
[data-theme="light"] .how-list li { border-bottom-color: var(--line); }
[data-theme="light"] .how-list h3 { color: var(--heading); }
[data-theme="light"] .how-num { color: var(--blue); }

/* Call-to-action bands — vivid brand blue in light (not navy) */
[data-theme="light"] .cta-band { background: linear-gradient(120deg, #155EEF 0%, #0074FD 100%); }
[data-theme="light"] .cta-glow { background: radial-gradient(closest-side, rgba(255, 255, 255, .28), rgba(255, 255, 255, .06) 50%, transparent); }
[data-theme="light"] .cta-rings circle { stroke: rgba(255, 255, 255, .18); }
[data-theme="light"] .cta-rings .dash { stroke: rgba(255, 255, 255, .45); }
[data-theme="light"] .cta-band .text-sky { background: none; -webkit-text-fill-color: currentColor; color: #D6E8FF; }
[data-theme="light"] .cta-band .eyebrow-light { color: rgba(255, 255, 255, .85); }
[data-theme="light"] .cta-text { color: rgba(255, 255, 255, .88); }
[data-theme="light"] .cta-band .btn-light { color: #0B3FBF; }
[data-theme="light"] .cta-band .btn-ghost-light { border-color: rgba(255, 255, 255, .55); }

/* Footer — light */
[data-theme="light"] .site-footer { background: var(--cool); color: var(--ink-2); border-top: 1px solid var(--line-2); }
[data-theme="light"] .footer-rings span { border-color: var(--line); }
[data-theme="light"] .footer-rings span:nth-child(3) { border-color: rgba(0, 116, 253, .25); }
[data-theme="light"] .footer-top { border-bottom-color: var(--line); }
[data-theme="light"] .footer-logo { box-shadow: 0 0 0 1px var(--line-2), var(--shadow-sm); }
[data-theme="light"] .footer-h { color: var(--heading); }
[data-theme="light"] .footer-col a, [data-theme="light"] .footer-legal a { color: var(--ink-2); }
[data-theme="light"] .footer-col a:hover, [data-theme="light"] .footer-legal a:hover { color: var(--blue); }
[data-theme="light"] .footer-tag { color: var(--royal); }
[data-theme="light"] .footer-contact .ic { color: var(--blue); }
[data-theme="light"] .site-footer :focus-visible { outline-color: var(--blue); }

/* Services — "dark" sections become soft blue in light; capsule nav goes light */
[data-theme="light"] .svc-dark { background: linear-gradient(180deg, #E8F0FF, #F3F6FC); }
[data-theme="light"] .svc-nav-capsule { background: rgba(255, 255, 255, .88); border-color: var(--line); box-shadow: 0 18px 40px -22px rgba(7, 21, 47, .35); }
[data-theme="light"] .svc-nav a { color: var(--ink-2); }
[data-theme="light"] .svc-nav a:hover { color: var(--heading); }
[data-theme="light"] .sn-num { color: var(--blue); }
[data-theme="light"] .svc-nav a.is-active, [data-theme="light"] .svc-nav a.is-active .sn-num { color: #fff; }
[data-theme="light"] .sn-progress { background: var(--line-2); }
/* The infrastructure visual is a framed "screen" on light pages, like the app window */
[data-theme="light"] .viz-infra { border-radius: 28px; background: radial-gradient(120% 90% at 30% 40%, #0F2552, #07152F 70%); box-shadow: 0 40px 80px -40px rgba(7, 21, 47, .55); overflow: hidden; }
[data-theme="light"] .viz-infra .stack-legend { right: 4%; }

/* 12. AGENTIC AI -------------------------------------------------------- */
/* Console is a framed "screen": dark in both themes */
.agent-console { width: 100%; max-width: 36rem; margin-inline: auto; border-radius: var(--r-lg); background: #07152F; border: 1px solid rgba(140, 180, 255, .18); box-shadow: 0 40px 80px -36px rgba(0, 26, 77, .6), 0 0 0 6px rgba(0, 116, 253, .06); overflow: hidden; color: #fff; }
.ac-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(140, 180, 255, .12); font-size: .78rem; }
.ac-dots { display: flex; gap: 6px; } .ac-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.ac-title { color: rgba(255, 255, 255, .7); font-weight: 600; letter-spacing: .02em; }
.ac-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #4ADE80; font-weight: 600; }
.ac-live i { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; animation: acPulse 1.8s ease-in-out infinite; }
@keyframes acPulse { 50% { opacity: .35; transform: scale(.7); } }
.ac-body { padding: 20px; display: grid; gap: 18px; }
.ac-label { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); font-weight: 600; margin-bottom: 12px; }
.ac-label em { font-style: normal; text-transform: none; letter-spacing: 0; margin-left: 8px; color: rgba(255, 255, 255, .38); font-weight: 500; }
.ac-bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; }
.ac-bars span { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #3D96FF, #155EEF); transform-origin: bottom; animation: acBar 1.2s var(--ease) both; }
.ac-bars span:nth-child(-n+3) { background: linear-gradient(180deg, #5A6B93, #34436A); }
.ac-bars span:nth-child(2) { animation-delay: .08s; } .ac-bars span:nth-child(3) { animation-delay: .16s; } .ac-bars span:nth-child(4) { animation-delay: .24s; } .ac-bars span:nth-child(5) { animation-delay: .32s; } .ac-bars span:nth-child(6) { animation-delay: .4s; } .ac-bars span:nth-child(7) { animation-delay: .48s; }
@keyframes acBar { from { transform: scaleY(0); } }
.ac-axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: .72rem; color: rgba(255, 255, 255, .45); }
.ac-agents { display: grid; gap: 8px; }
.ac-agents li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(140, 180, 255, .1); animation: acIn .6s var(--ease) both; animation-delay: calc(.5s + var(--i) * .12s); }
@keyframes acIn { from { opacity: 0; transform: translateY(8px); } }
.ac-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(0, 116, 253, .22); color: #8CC4FF; flex: none; }
.ac-ic .ic { width: 18px; height: 18px; }
.ac-agents b { display: block; font-size: .9rem; font-weight: 600; line-height: 1.3; }
.ac-agents small { display: block; font-size: .76rem; color: rgba(255, 255, 255, .55); line-height: 1.35; }
.ac-agents div { min-width: 0; flex: 1; }
.ac-state { font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(74, 222, 128, .14); color: #4ADE80; flex: none; }
.ac-state.run { background: rgba(0, 116, 253, .25); color: #8CC4FF; animation: acPulse 1.8s ease-in-out infinite; }
.ac-state.review { background: rgba(251, 191, 36, .14); color: #FBBF24; }

.ai-ov { background: var(--bg); }
.ai-ov .lead { margin: 18px 0 28px; max-width: 52ch; }
.ai-intents { display: grid; gap: 16px; margin-bottom: 32px; }
.ai-intents li { display: flex; gap: 14px; align-items: flex-start; }
.ai-intents .ic { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--soft); color: var(--blue); }
.ai-intents b { display: block; color: var(--heading); font-family: var(--font-display); font-size: 1.02rem; line-height: 1.3; }
.ai-intents span { color: var(--slate); font-size: .95rem; }

.ai-head { margin: clamp(56px, 7vw, 96px) 0 32px; }
.ai-h { font-size: clamp(1.6rem, 1rem + 1.6vw, 2.5rem); letter-spacing: -.035em; color: var(--heading); }
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ai-card { position: relative; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.ai-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue); }
.ai-card-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--soft); color: var(--blue); }
.ai-card h3 { font-size: 1.2rem; letter-spacing: -.02em; color: var(--heading); }
.ai-card dl { margin: 0; display: grid; gap: 12px; flex: 1; }
.ai-card dt { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 2px; }
.ai-card dd { margin: 0; font-size: .95rem; color: var(--ink-2); line-height: 1.55; }
.ai-out { display: flex; align-items: center; gap: 8px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; font-size: .92rem; color: var(--heading); }
.ai-out .ic { width: 18px; height: 18px; color: var(--blue); }
.ai-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: clamp(48px, 6vw, 80px) 0; }
.ai-steps li { padding-top: 20px; border-top: 2px solid var(--line); }
.ai-steps li:first-child { border-top-color: var(--blue); }
.ai-steps span { font-family: var(--font-display); font-weight: 600; color: var(--blue); font-size: .85rem; letter-spacing: .1em; }
.ai-steps h3 { font-size: 1.1rem; margin: 6px 0 8px; color: var(--heading); }
.ai-steps p { color: var(--slate); font-size: .95rem; }
@media (min-width: 1280px) { .ai-grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1279px) { .ai-grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1024px) { .ai-grid { grid-template-columns: 1fr 1fr; } .ai-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ai-grid, .ai-steps { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ac-bars span, .ac-agents li, .ac-live i, .ac-state.run { animation: none; } }

/* 13. WIDE SCREENS ------------------------------------------------------ */
/* The root size grows smoothly above ~1700px, so type, spacing, the 96rem
   container and every rem-based visual scale together instead of leaving
   empty margins: ~1610px of content at 1920, ~1920px at 2560, capped at 4K. */
html { font-size: clamp(100%, .45rem + .5vw, 150%); }

/* 14. LOGO SWAP (light / dark) ------------------------------------------ */
/* Both artworks are in the markup; the theme attribute is set by the inline
   <head> script before first paint, so the right logo shows with no flash.
   Dark artwork: assets/logo/yd360-logo-dark-{360,720}.webp (master: yd360-logo-dark.png). */
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }
[data-theme="dark"] .brand { background: none; padding: 0; border-radius: 0; }
[data-theme="dark"] .footer-logo { background: none; padding: 0; box-shadow: none; border-radius: 0; }

/* 15. DARK THEME REFINEMENT --------------------------------------------- */
/* One quiet ink scale: page (--bg) and alternate sections (--bg-alt) differ by
   a single step, so the page flows instead of switching between navy bands.
   Blue appears as light (glows, accents), not as large flat fills. */
[data-theme="dark"] body { background: var(--bg); }
[data-theme="dark"] .hero-dark { background: var(--bg); }
[data-theme="dark"] .hero-dark .hero-glow { background: radial-gradient(closest-side, rgba(0, 116, 253, .26), rgba(0, 116, 253, .06) 55%, transparent); }
[data-theme="dark"] .hero-dark .grid-lines,
[data-theme="dark"] .svc-dark .grid-lines { background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); }
[data-theme="dark"] .mesh-dark { background:
  radial-gradient(45% 55% at 80% 35%, rgba(0, 116, 253, .14), transparent 70%),
  radial-gradient(40% 50% at 10% 90%, rgba(21, 94, 239, .08), transparent 70%); }
[data-theme="dark"] .mesh { opacity: .7; }
[data-theme="dark"] .svc-hero, [data-theme="dark"] .page-hero { background: var(--bg); }
[data-theme="dark"] .svc-dark,
[data-theme="dark"] .why,
[data-theme="dark"] .how,
[data-theme="dark"] .services-ov { background: var(--bg-alt); }
[data-theme="dark"] .why::before { background: radial-gradient(closest-side, rgba(0, 116, 253, .12), transparent); }
[data-theme="dark"] .dial-node { fill: var(--bg-alt); }
[data-theme="dark"] .cta-band { background: radial-gradient(90% 120% at 50% 110%, rgba(29, 107, 242, .32), transparent 60%), var(--bg-alt); border-block: 1px solid var(--line-2); }
[data-theme="dark"] .cta-glow { opacity: .55; }
[data-theme="dark"] .site-footer { background: #05080F; border-top: 1px solid var(--line-2); color: var(--slate); }
[data-theme="dark"] .footer-col a, [data-theme="dark"] .footer-legal a { color: var(--ink-2); }
[data-theme="dark"] .footer-col a:hover, [data-theme="dark"] .footer-legal a:hover { color: #fff; }
[data-theme="dark"] .footer-tag { color: var(--royal); }
[data-theme="dark"] .svc-dark .svc-bignum, [data-theme="dark"] .svc-bignum { -webkit-text-stroke-color: rgba(160, 190, 255, .09); }

/* Cards and panels: visible edges, gentle lift on hover */
[data-theme="dark"] .svc-card, [data-theme="dark"] .ai-card, [data-theme="dark"] .pillar,
[data-theme="dark"] .c-tile, [data-theme="dark"] .form-card { background: var(--surface); border-color: var(--line); box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 18px 40px -28px rgba(0, 0, 0, .8); }
[data-theme="dark"] .svc-card:hover, [data-theme="dark"] .ai-card:hover { background: var(--surface-2); border-color: rgba(106, 166, 255, .45); }
[data-theme="dark"] .svc-card-feature { background: linear-gradient(135deg, #1648B8, #0A5FD6); }
[data-theme="dark"] .svc-tags li { background: rgba(255, 255, 255, .04); border-color: var(--line); color: var(--ink-2); }
[data-theme="dark"] .mv-mission { background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); }
[data-theme="dark"] .value-num { -webkit-text-stroke-color: #2C3A56; }
[data-theme="dark"] .hero-dark .translator { background: rgba(18, 26, 43, .72); border-color: var(--line); }
[data-theme="dark"] .doc, [data-theme="dark"] .mon-panel, [data-theme="dark"] .mon-topo,
[data-theme="dark"] .mon-stack, [data-theme="dark"] .flow-log { border-color: var(--line); }
[data-theme="dark"] .agent-console { background: #0A0F1B; border-color: var(--line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }

/* Text: brighter body copy on dark surfaces */
[data-theme="dark"] .svc-dark .svc-body, [data-theme="dark"] .why-lead, [data-theme="dark"] .cta-text { color: var(--ink-2); }
[data-theme="dark"] .svc-dark .outcomes li, [data-theme="dark"] .outcomes li { color: var(--ink-2); }
[data-theme="dark"] .hero-dark .hero-lead { color: var(--ink-2); }
[data-theme="dark"] .why-txt span, [data-theme="dark"] .how-list p, [data-theme="dark"] .how-lead { color: var(--slate); }
[data-theme="dark"] .hero-dark .hero-kicker { color: var(--slate); }
[data-theme="dark"] .text-blue { color: #5A9CFF; }

/* 16. READABILITY (both themes) ----------------------------------------- */
/* Slightly larger small text, comfortable measure, calmer heading tracking */
body { font-size: 1.0625rem; line-height: 1.72; }
p { text-wrap: pretty; }
h1, h2, h3, .h2, .svc-h, .page-title, .hero-title, .statement-text, .cta-title { text-wrap: balance; }
.lead, .page-lead, .svc-lead { line-height: 1.6; }
.svc-text, .pillar p, .t-step p, .ai-card dd, .ai-steps p, .outcomes li, .why-txt span, .how-list p { font-size: 1rem; line-height: 1.65; }
.caps li { font-size: 1rem; }
.svc-tags li { font-size: .8rem; }
.svc-body, .prose p, .story-cols p { max-width: 62ch; }
.svc-h { letter-spacing: -.03em; }
.t-step { opacity: .7; }

/* GSTIN in footer */
.footer-contact .f-gst { padding-left: 30px; font-size: .9rem; color: var(--slate); letter-spacing: .02em; }

/* ============================================================
   17. LEGAL PAGES (privacy, terms)
   ============================================================ */
.legal-updated { margin-top: 20px; font-size: .95rem; color: var(--slate); }
.legal-inner { display: grid; grid-template-columns: minmax(200px, 17rem) minmax(0, 46rem); gap: clamp(32px, 6vw, 112px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); }
.legal-toc-h { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin: 0 0 14px; font-weight: 600; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.legal-toc a { display: flex; gap: 12px; padding: 8px 0 8px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-size: .98rem; transition: color .2s, border-color .2s; }
.legal-toc a span { color: var(--slate); font-variant-numeric: tabular-nums; font-size: .85rem; padding-top: .1em; }
.legal-toc a:hover, .legal-toc a.is-active { color: var(--royal); border-left-color: var(--royal); }
.legal-sec { padding-bottom: clamp(32px, 4vw, 48px); margin-bottom: clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line-2); scroll-margin-top: calc(var(--header-h) + 24px); }
.legal-sec:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.legal-num { font-size: .85rem; font-weight: 600; color: var(--royal); letter-spacing: .1em; margin: 0 0 8px; }
.legal-h { font-family: var(--font-display, 'Sora', sans-serif); font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); line-height: 1.25; margin: 0 0 16px; color: var(--ink); }
.legal-body p, .legal-body li { color: var(--ink-2); line-height: 1.75; font-size: 1.05rem; }
.legal-body p { margin: 0 0 14px; }
.legal-body ul { margin: 0 0 14px; padding-left: 1.2em; list-style: disc; }
.legal-body li { margin-bottom: 8px; }
.legal-body li::marker { color: var(--royal); }
.legal-body strong { color: var(--ink); }
.legal-body a { color: var(--royal); text-underline-offset: 3px; }
.legal-dl { margin: 20px 0 0; display: grid; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.legal-dl > div { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line-2); }
.legal-dl > div:first-child { border-top: 0; }
.legal-dl dt { color: var(--slate); font-size: .95rem; }
.legal-dl dd { margin: 0; color: var(--ink); font-weight: 500; }
@media (max-width: 900px) {
  .legal-inner { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .legal-dl > div { grid-template-columns: 1fr; gap: 2px; }
}
