/* ============================================================
   Tchaditech Services — "Le Trait de Lumière" (v2)
   Futuristic direction built on Brand Identity v1.0 - dark (default) + light
   Violet #262262 · Orange #F16623 · Light and dark responsive themes
   ============================================================ */
:root {
    /* Brand scales (theme-independent) */
    --ink: #211D3A;
    --azure-100: #EEE9FF;
    --azure-300: #BEB1F0;
    --azure-400: #9F8CE0;
    --azure: #6453B8;
    --azure-600: #51439B;
    --azure-700: #262262;
    --amber: #F16623;
    --amber-300: #FFA16D;
    --success: #16845A;
    --grad: linear-gradient(135deg, #51439B 0%, #262262 100%);

    /* ---- Light theme ---- */
    --bg: #FAF8FF;
    --text: #211D3A;
    --muted: #514963;
    --dim: #675D78;
    --hl: #262262;              /* azure text / links */
    --hl-brand: #51439B;
    --stroke: #6453B8;          /* decorative strokes */
    --amber-text: #A63B0B;      /* amber used as small text */
    --success-text: #0E7A4E;
    --danger-text: #C73E3E;
    --line: rgba(38,34,98, 0.12);
    --line-strong: rgba(38,34,98, 0.24);
    --glass: rgba(255, 255, 255, 0.72);
    --glass-strong: rgba(255, 255, 255, 0.86);
    --menu-bg: rgba(250,248,255, 0.97);
    --well: rgba(244,239,252, 0.75);
    --well-focus: #FFFFFF;
    --tint: rgba(100,83,184, 0.07);
    --card-bg: linear-gradient(180deg, #FFFFFF, rgba(255, 255, 255, 0.82));
    --shot-bar: #F0EBFA;
    --ic-fg: #262262;
    --spot: rgba(100,83,184, 0.55);
    --mega-stroke: rgba(38,34,98, 0.2);
    --numbers-mid: rgba(255, 255, 255, 0.6);
    --shadow-lg: 0 30px 60px -30px rgba(33,29,58, 0.22);
    --shadow-nav: 0 16px 40px -20px rgba(33,29,58, 0.25);
    --aurora-opacity: .45;
    --floor-opacity: .22;
    --grad-text: linear-gradient(100deg, #262262 0%, #51439B 60%, #A63B0B 100%);
    color-scheme: light;

    --r-sm: 10px;
    --r: 20px;
    --r-lg: 28px;

    --font-display: 'Poppins', 'Montserrat', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Open Sans', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;

    --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---- Dark theme (default: <html data-theme="dark">) ---- */
:root[data-theme="dark"] {
    --bg: #100E21;
    --text: #F4F0FF;
    --muted: #C7BED8;
    --dim: #B4A8C8;
    --hl: #BEB1F0;
    --hl-brand: #9F8CE0;
    --stroke: #BEB1F0;
    --amber-text: #F16623;
    --success: #65D5A1;
    --success-text: #65D5A1;
    --danger-text: #F08080;
    --line: rgba(190,177,240, 0.14);
    --line-strong: rgba(190,177,240, 0.28);
    --glass: rgba(33,29,58, 0.5);
    --glass-strong: rgba(23,19,46, 0.75);
    --menu-bg: rgba(16,14,33, 0.96);
    --well: rgba(16,14,33, 0.55);
    --well-focus: rgba(16,14,33, 0.85);
    --tint: rgba(190,177,240, 0.07);
    --card-bg: linear-gradient(180deg, rgba(42,35,72, .6), rgba(27,22,49, .6));
    --shot-bar: rgba(34,28,58, .9);
    --ic-fg: #EEE9FF;
    --spot: rgba(190,177,240, 0.75);
    --mega-stroke: rgba(190,177,240, 0.28);
    --numbers-mid: rgba(28,22,48, 0.5);
    --shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, .8);
    --shadow-nav: 0 20px 50px -20px rgba(0, 0, 0, .6);
    --aurora-opacity: .7;
    --floor-opacity: .35;
    --grad-text: linear-gradient(100deg, #EEE9FF 0%, #BEB1F0 35%, #6453B8 65%, #F16623 100%);
    color-scheme: dark;
}

/* Smooth cross-fade while the visitor switches theme */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
    transition: background-color .5s ease, border-color .5s ease, color .5s ease, fill .5s ease, stroke .5s ease !important;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; font-weight: 600; }
em { font-style: normal; }
::selection { background: var(--azure); color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.mono { font-family: var(--font-mono); letter-spacing: 0; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(47, 181, 122, .6); animation: ping 2s infinite; flex: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(47, 181, 122, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(47, 181, 122, 0); } }

/* Subtle ambient noise + grid on the whole page */
body::before {
    content: "";
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(900px 600px at 85% -10%, rgba(100,83,184, .18), transparent 60%),
        radial-gradient(700px 500px at -10% 60%, rgba(38,34,98, .14), transparent 60%),
        linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 64px 64px,
        linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 64px 64px,
        var(--bg);
    mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.2) 100%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.2) 100%);
}

/* Cursor-following glow (desktop only, set by JS) */
#glow {
    position: fixed; z-index: 0; left: 0; top: 0; width: 520px; height: 520px;
    margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(100,83,184, .12), transparent 65%);
    transform: translate3d(var(--gx, -999px), var(--gy, -999px), 0);
    transition: opacity .4s; opacity: 0;
}
body.has-glow #glow { opacity: 1; }

#progress {
    position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
    background: linear-gradient(90deg, var(--azure), var(--amber));
    transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}

/* ============ LOADER ============ */
/* Opaque until it leaves, then lifts like a curtain: the page never shows through it */
#loader {
    position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
    background: radial-gradient(520px circle at 50% 46%, rgba(100,83,184,.16), transparent 65%), var(--bg);
    clip-path: inset(0 0 0 0);
    transition: clip-path .9s var(--ease), visibility 0s linear .9s;
}
#loader.done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.loader-inner { display: grid; justify-items: center; gap: 18px; transition: transform .9s var(--ease), opacity .45s ease; }
#loader.done .loader-inner { transform: translateY(-70px); opacity: 0; }
.loader-mark { position: relative; width: 150px; filter: drop-shadow(0 10px 28px rgba(100,83,184,.5)); }
.loader-mark img { display: block; width: 100%; height: auto; clip-path: inset(0 100% 0 0); animation: wipe 1s var(--ease) .1s forwards; }
/* Light sweep clipped to the logo's silhouette */
.loader-mark::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.75) 48%, transparent 60%) 150% 0 / 250% 100% no-repeat;
    -webkit-mask: url(img/logo-symbol.webp) center / 100% 100% no-repeat;
    mask: url(img/logo-symbol.webp) center / 100% 100% no-repeat;
    animation: sheenOnce 1s ease-in-out 1s forwards;
}
.loader-name { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1; animation: rise .7s var(--ease) .55s both; }
.loader-name b { color: var(--hl-brand); }
.loader-name span { display: block; margin-top: 6px; text-align: center; font-family: var(--font-mono); font-weight: 400; font-size: .62rem; letter-spacing: .4em; color: var(--muted); text-transform: uppercase; }
.loader-bar { width: 180px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.loader-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--azure), var(--amber)); transform-origin: 0 50%; transform: scaleX(0); animation: loadFill 1.4s var(--ease) .2s forwards; }
.loader-tag { font-family: var(--font-display); font-style: italic; font-size: .92rem; color: var(--muted); letter-spacing: .06em; animation: rise .7s var(--ease) .8s both; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes sheenOnce { to { background-position: -60% 0; } }
@keyframes loadFill { to { transform: scaleX(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ============ BUTTONS ============ */
.btn {
    --bg: transparent;
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
    padding: .85em 1.4em; border-radius: 999px;
    font-family: var(--font-display); font-weight: 600; font-size: .95rem; line-height: 1;
    white-space: nowrap; isolation: isolate; overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn i { font-size: .9em; transition: transform .35s var(--ease); }
.btn:hover i.fa-arrow-right, .btn:hover i.fa-paper-plane { transform: translateX(3px); }
.btn-sm { padding: .7em 1.1em; font-size: .85rem; }
.btn-lg { padding: 1.05em 1.7em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary {
    background: var(--azure-600); color: #fff;
    box-shadow: 0 0 0 1px rgba(190,177,240,.35) inset, 0 10px 30px -10px rgba(100,83,184,.8);
}
.btn-primary::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.28) 45%, transparent 70%) -150% 0 / 200% 100% no-repeat, var(--grad);
    transition: background-position .9s var(--ease);
}
.btn-primary:hover::before { background-position: 150% 0, 0 0; }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(190,177,240,.55) inset, 0 16px 40px -10px rgba(100,83,184,1); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); background: var(--glass); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--azure-300); background: rgba(100,83,184,.12); }

/* ============ NAV ============ */
#nav {
    position: fixed; top: 14px; left: 50%; z-index: 50;
    width: min(1240px, 100% - 24px); height: 64px;
    transform: translateX(-50%);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 0 10px 0 16px;
    border-radius: 999px; border: 1px solid transparent;
    transition: background .4s, border-color .4s, box-shadow .4s, top .4s;
}
#nav.scrolled {
    background: var(--glass-strong); border-color: var(--line);
    backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow: var(--shadow-nav);
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 40px; height: auto; filter: drop-shadow(0 0 12px rgba(100,83,184,.5)); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1; display: flex; flex-direction: column; }
.brand-name b { color: var(--hl-brand); font-weight: 700; }
.brand-name small { font-family: var(--font-mono); font-weight: 400; font-size: .58rem; letter-spacing: .32em; color: var(--muted); text-transform: uppercase; margin-top: 4px; }

.nav-links { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 999px; }
.nav-links a { position: relative; z-index: 1; padding: .55em 1em; font-size: .88rem; font-weight: 500; color: var(--muted); border-radius: 999px; transition: color .3s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-pill {
    position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px;
    background: rgba(100,83,184,.16); box-shadow: 0 0 0 1px rgba(190,177,240,.25) inset;
    transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s; opacity: 0;
}
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: .75rem; color: var(--muted); transition: .3s; }
.lang-btn:hover { color: var(--text); border-color: var(--azure-300); }
.theme-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--muted); overflow: hidden; transition: color .3s, border-color .3s; }
.theme-btn:hover { color: var(--text); border-color: var(--azure-300); }
.theme-btn i { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .6s var(--ease), opacity .4s; }
.theme-btn .fa-sun { transform: translateY(120%) rotate(90deg); opacity: 0; color: var(--amber); }
[data-theme="dark"] .theme-btn .fa-moon { transform: translateY(-120%) rotate(-90deg); opacity: 0; }
[data-theme="dark"] .theme-btn .fa-sun { transform: none; opacity: 1; }

#menuBtn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; }
#menuBtn span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
#menuBtn span:first-child { top: 17px; }
#menuBtn span:last-child { top: 25px; }
#menuBtn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
#menuBtn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

#mobileMenu {
    position: fixed; inset: 0; z-index: 45; padding: 110px 24px 32px;
    background: var(--menu-bg); backdrop-filter: blur(20px);
    display: flex; flex-direction: column; justify-content: space-between;
    clip-path: circle(0 at calc(100% - 46px) 46px);
    transition: clip-path .7s var(--ease); visibility: hidden;
}
#mobileMenu.open { clip-path: circle(150% at calc(100% - 46px) 46px); visibility: visible; }
#mobileMenu nav a { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; font-family: var(--font-display); font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 600; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s var(--ease); }
#mobileMenu nav a small { font-family: var(--font-mono); font-size: .75rem; color: var(--amber-text); }
#mobileMenu.open nav a { opacity: 1; transform: none; }
#mobileMenu.open nav a:nth-child(2) { transition-delay: .05s; } #mobileMenu.open nav a:nth-child(3) { transition-delay: .1s; }
#mobileMenu.open nav a:nth-child(4) { transition-delay: .15s; } #mobileMenu.open nav a:nth-child(5) { transition-delay: .2s; }
#mobileMenu.open nav a:nth-child(6) { transition-delay: .25s; }
.mm-foot { display: grid; gap: 10px; color: var(--muted); font-size: .95rem; }
.mm-foot i { color: var(--azure-400); width: 20px; }

/* ============ HERO ============ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 90px; overflow: hidden; isolation: isolate; }
#flow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
    mask-image: linear-gradient(100deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.6) 40%, #000 70%);
    -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.6) 40%, #000 70%); }
.hero-aurora {
    position: absolute; inset: -20% -10% auto; height: 80%; z-index: -2; filter: blur(60px); opacity: var(--aurora-opacity);
    background:
        radial-gradient(40% 50% at 70% 40%, rgba(100,83,184,.35), transparent 70%),
        radial-gradient(30% 40% at 85% 70%, rgba(241,102,35,.14), transparent 70%),
        radial-gradient(35% 45% at 20% 30%, rgba(38,34,98,.3), transparent 70%);
    animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora { to { transform: translate3d(-4%, 6%, 0) scale(1.08); } }
.hero-grid-floor {
    position: absolute; left: -50%; right: -50%; bottom: -10%; height: 55%; z-index: -1;
    background:
        linear-gradient(rgba(100,83,184,.35) 1px, transparent 1px) 0 0 / 80px 80px,
        linear-gradient(90deg, rgba(100,83,184,.35) 1px, transparent 1px) 0 0 / 80px 80px;
    transform: perspective(500px) rotateX(70deg); transform-origin: 50% 0;
    mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 50%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 50%, transparent);
    animation: floor 4s linear infinite; opacity: var(--floor-opacity);
}
@keyframes floor { to { background-position: 0 80px, 0 0; } }

.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(6px); font-size: .74rem; color: var(--muted); margin-bottom: 28px; }
.status .sep { color: var(--dim); }
.hero-title { font-size: clamp(2.4rem, 5.2vw, 4.7rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 26px; }
.hero-title .line { display: block; }
.rotator {
    position: relative; display: inline-block; vertical-align: bottom; height: 1.12em; overflow: hidden;
    white-space: nowrap;
}
.rw-stack { display: flex; flex-direction: column; transition: transform .75s var(--ease); }
.rw-stack.no-anim { transition: none; }
.rw {
    display: block; height: 1.12em; line-height: 1.12em; white-space: nowrap; width: max-content; padding-right: .04em;
    background: var(--grad-text); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.hero-lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.hero-lead strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-proof { display: flex; gap: 32px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); max-width: 560px; }
.hero-proof li { display: grid; gap: 2px; }
.hero-proof b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--text); }
.hero-proof span { font-size: .8rem; color: var(--dim); max-width: 14ch; line-height: 1.35; }

/* Hero visual: orb + console */
.hero-visual { position: relative; min-height: 560px; }
.orb { position: absolute; top: -50px; right: -30px; width: min(500px, 105%); aspect-ratio: 1; display: grid; place-items: center; perspective: 1100px; }

/* 3D logo */
.logo-stage {
    position: relative; z-index: 1; width: 78%;
    transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
    transform-style: preserve-3d; transition: transform .7s var(--ease);
}
.logo3d { position: relative; animation: logoFloat 8s ease-in-out infinite; filter: drop-shadow(0 22px 34px rgba(38,34,98, .45)) drop-shadow(0 0 46px rgba(100,83,184, .35)); }
.logo3d img { display: block; width: 100%; height: auto; }
/* A light sweep clipped to the logo's own silhouette */
.logo3d::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.7) 48%, rgba(214,230,251,.25) 54%, transparent 62%) 0 0 / 250% 100% no-repeat;
    -webkit-mask: url(img/logo-3d.webp) center / 100% 100% no-repeat;
    mask: url(img/logo-3d.webp) center / 100% 100% no-repeat;
    animation: sheen 6s ease-in-out infinite;
}
.logo-shadow { position: absolute; left: 18%; right: 18%; bottom: -16%; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(100,83,184,.5), transparent); filter: blur(6px); animation: shadowPulse 8s ease-in-out infinite; }
[data-theme="light"] .logo-shadow { background: radial-gradient(closest-side, rgba(38,34,98,.3), transparent); }
@keyframes logoFloat {
    0%, 100% { transform: translate3d(0, 0, 0) rotateY(-14deg) rotateX(5deg) rotateZ(-1.5deg); }
    50% { transform: translate3d(0, -18px, 40px) rotateY(14deg) rotateX(-4deg) rotateZ(1.5deg); }
}
@keyframes sheen { 0%, 50% { background-position: 150% 0; } 80%, 100% { background-position: -60% 0; } }
@keyframes shadowPulse { 50% { transform: scale(.78); opacity: .55; } }
/* Entrance once the loader has gone */
.js .logo3d img { opacity: 0; }
.js body:not(.ready) .logo3d::after { opacity: 0; }
body.ready .logo3d img { animation: logoIn 1.2s var(--ease) .35s both; }
@keyframes logoIn { from { opacity: 0; transform: translateY(40px) scale(.85); } to { opacity: 1; transform: none; } }
.orb .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line-strong); }
.orb .ring::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--azure-300); box-shadow: 0 0 14px var(--azure); }
.orb .r1 { animation: spin 14s linear infinite; }
.orb .r2 { inset: 14%; animation: spin 10s linear infinite reverse; border-style: dashed; }
.orb .r2::after { background: var(--amber); box-shadow: 0 0 14px var(--amber); }
.orb .r3 { inset: 30%; animation: spin 7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.console {
    --text: #F4F0FF; --muted: #C7BED8; --dim: #B4A8C8; --hl: #BEB1F0;
    --line: rgba(190,177,240, 0.14); --line-strong: rgba(190,177,240, 0.28);
    color: var(--text);
    position: absolute; z-index: 2; left: -16px; bottom: -36px; width: min(100%, 370px); border-radius: var(--r);
    background: linear-gradient(180deg, rgba(34,28,58, .88), rgba(23,19,46, .92));
    border: 1px solid var(--line-strong);
    box-shadow: 0 40px 80px -30px rgba(33,29,58,.55), 0 0 0 1px rgba(255,255,255,.03) inset, 0 0 60px -20px rgba(100,83,184,.5);
    backdrop-filter: blur(12px); overflow: hidden;
    transition: transform .5s var(--ease);
}
.console::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.015) 0 1px, transparent 1px 3px); }
.console-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .74rem; color: var(--dim); }
.console-bar > i { width: 11px; height: 11px; border-radius: 50%; background: #E05252; }
.console-bar > i:nth-child(2) { background: var(--amber); }
.console-bar > i:nth-child(3) { background: var(--success); }
.console-bar > span:first-of-type { margin-left: 8px; }
.console-bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-size: .68rem; }
.console-body { display: flex; flex-direction: column; justify-content: flex-end; -webkit-mask-image: linear-gradient(transparent, #000 28px); mask-image: linear-gradient(transparent, #000 28px); height: 172px; padding: 16px; font-size: .74rem; line-height: 1.75; color: var(--muted); white-space: pre-wrap; overflow: hidden; }
.console-body .p { color: var(--amber); }
.console-body .c { color: var(--text); }
.console-body .ok { color: var(--success); }
.console-body .in { color: var(--hl); }
.console-body .cur { display: inline-block; width: .55em; height: 1.1em; background: var(--azure-300); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.console-foot { display: flex; justify-content: space-between; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .7rem; color: var(--dim); }
.console-foot i { color: var(--azure-400); margin-right: 4px; }

.float-chip {
    position: absolute; display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px; border-radius: 999px; font-size: .74rem; color: var(--text);
    background: var(--glass-strong); border: 1px solid var(--line-strong); backdrop-filter: blur(10px);
    box-shadow: var(--shadow-nav);
    animation: bob 6s ease-in-out infinite;
}
.float-chip i { color: var(--hl); }
.float-chip { z-index: 3; }
.float-chip.c1 { top: 6%; left: 0; }
.float-chip.c2 { top: 52%; right: -2%; animation-delay: -2s; }
.float-chip.c2 i { color: var(--amber); }
.float-chip.c3 { bottom: 2%; right: 6%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-12px); } }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font-size: .68rem; color: var(--dim); letter-spacing: .2em; text-transform: uppercase; }
.mouse { width: 22px; height: 34px; border: 1.5px solid var(--line-strong); border-radius: 12px; display: grid; justify-items: center; padding-top: 6px; }
.mouse span { width: 3px; height: 7px; border-radius: 2px; background: var(--azure-300); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

/* ============ MARQUEE ============ */
.stack { padding: 34px 0; border-block: 1px solid var(--line); background: var(--glass); overflow: hidden; }
.stack-title { text-align: center; font-size: .74rem; color: var(--dim); margin-bottom: 18px; }
.marquee { display: flex; width: max-content; animation: marquee 40s linear infinite; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.stack:hover .marquee { animation-play-state: paused; }
.marquee-track { display: flex; gap: 48px; padding-right: 48px; }
.marquee span { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; color: var(--dim); transition: color .3s; white-space: nowrap; }
.marquee span:hover { color: var(--text); }
.marquee span i { font-size: 1.3rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.section { position: relative; padding: clamp(48px, 5.5vw, 80px) 0; }
.section-tight { padding-top: clamp(32px, 4vw, 56px); }
.sec-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-head-row > div { max-width: 720px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .76rem; color: var(--hl); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px; }
.eyebrow .idx { color: var(--amber-text); padding: 3px 7px; border: 1px solid rgba(241,102,35,.35); border-radius: 6px; letter-spacing: 0; }
.sec-head h2, .contact-copy h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); margin-bottom: 18px; }
.sec-head h2 em, .contact-copy h2 em, .manifesto em {
    background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-head p { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }

/* Card base with cursor-tracked border light */
.card, .aud-panel, .project, .voices, .form {
    position: relative; border-radius: var(--r-lg);
    background: var(--card-bg);
    border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(33,29,58, .04);
}
.spot::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
    background: radial-gradient(380px circle at var(--mx, -500px) var(--my, -500px), var(--spot), transparent 45%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .4s;
}
.spot:hover::after { opacity: 1; }
.spot::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(500px circle at var(--mx, -500px) var(--my, -500px), rgba(100,83,184,.08), transparent 40%);
    opacity: 0; transition: opacity .4s;
}
.spot:hover::before { opacity: 1; }

/* ============ AUDIENCES ============ */
.aud-tabs { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); margin-bottom: 20px; }
.aud-tabs button { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 12px; border-radius: 999px; font-family: var(--font-display); font-weight: 500; font-size: .95rem; color: var(--muted); transition: color .3s; }
.aud-tabs button i { color: var(--dim); transition: color .3s; }
.aud-tabs button[aria-selected="true"] { color: #fff; }
.aud-tabs button[aria-selected="true"] i { color: var(--amber); }
.aud-ind { position: absolute; top: 0; left: 0; border-radius: 999px; background: var(--grad); box-shadow: 0 8px 30px -8px rgba(100,83,184,.8); transition: transform .55s var(--ease), width .55s var(--ease); }

.aud-panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; padding: clamp(28px, 4vw, 52px); overflow: hidden; }
.aud-panel[hidden] { display: none; }
.aud-panel.is-active .aud-copy > *, .aud-panel.is-active .kpi { animation: rise .7s var(--ease) both; }
.aud-panel.is-active .aud-copy > :nth-child(2) { animation-delay: .06s; }
.aud-panel.is-active .aud-copy > :nth-child(3) { animation-delay: .12s; }
.aud-panel.is-active .aud-copy > :nth-child(4) { animation-delay: .18s; }
.aud-panel.is-active .kpi:nth-child(2) { animation-delay: .1s; }
.aud-panel.is-active .kpi:nth-child(3) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.aud-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 14px; }
.aud-copy p { color: var(--muted); margin-bottom: 22px; max-width: 54ch; }
.checks { display: grid; gap: 12px; margin-bottom: 30px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px; background: rgba(100,83,184,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%2384B0F0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; box-shadow: 0 0 0 1px rgba(190,177,240,.3) inset; }

.aud-visual { display: grid; gap: 14px; align-content: center; }
.kpi { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 16px; padding: 18px 20px; border-radius: var(--r); background: var(--well); border: 1px solid var(--line); }
.kpi > span { font-size: .72rem; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.kpi b { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; grid-row: span 2; text-align: right; }
.kpi svg { width: 100%; height: 30px; overflow: visible; }
.kpi svg path { fill: none; stroke: var(--stroke); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 200; filter: drop-shadow(0 0 6px rgba(100,83,184,.8)); }
.is-active .kpi svg path { animation: draw 1.6s var(--ease) .3s forwards; }
.bar { display: block; height: 6px; border-radius: 6px; background: rgba(190,177,240,.12); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--azure-600), var(--azure-300)); transform-origin: 0; transform: scaleX(0); transition: transform 1.4s var(--ease) .3s; }
.is-active .bar i, .in-view .bar i { transform: scaleX(1); }
.nodes { display: flex; gap: 8px; }
.nodes i { width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); animation: ping 2s infinite; }
.nodes i:nth-child(2) { animation-delay: .3s; } .nodes i:nth-child(3) { animation-delay: .6s; } .nodes i:nth-child(4) { animation-delay: .9s; } .nodes i:nth-child(5) { animation-delay: 1.2s; }

/* ============ BENTO ============ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card { padding: 28px; overflow: hidden; display: flex; flex-direction: column; transition: transform .5s var(--ease), border-color .4s; }
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card h3 { font-size: 1.3rem; margin: 18px 0 8px; }
.card p { color: var(--muted); font-size: .95rem; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; font-size: 1.15rem; color: var(--ic-fg); background: linear-gradient(135deg, rgba(100,83,184,.35), rgba(38,34,98,.15)); box-shadow: 0 0 0 1px rgba(190,177,240,.3) inset, 0 8px 24px -8px rgba(100,83,184,.6); }
.tag { font-size: .68rem; padding: 5px 10px; border-radius: 999px; color: var(--hl); border: 1px solid rgba(190,177,240,.3); text-transform: uppercase; letter-spacing: .06em; }
.tag-amber { color: var(--amber-text); border-color: rgba(241,102,35,.4); }
.viz { margin-top: auto; padding-top: 24px; }

.b-web { grid-column: span 4; grid-row: span 2; }
.b-cyber { grid-column: span 2; }
.b-cloud { grid-column: span 2; }
.b-net { grid-column: span 2; }
.b-ai { grid-column: span 2; }
.b-train { grid-column: span 2; }

/* web: a mini storefront that builds itself and takes orders */
.viz-browser { border-radius: 14px; border: 1px solid var(--line); background: var(--well); overflow: hidden; padding: 0; margin-top: 28px; }
.b-web .viz-browser { margin-top: auto; }
.vb-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.vb-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.vb-bar span { margin-left: 10px; font-size: .7rem; color: var(--dim); padding: 3px 12px; border-radius: 999px; background: var(--tint); }

/* The mock site keeps its own light palette, like a real client website */
.mock { position: relative; display: grid; gap: 12px; padding: 16px; background: #FFFFFF; color: #211D3A; font-size: .74rem; line-height: 1.35; }
[data-theme="dark"] .mock { filter: brightness(.94); }
.ms-nav { display: flex; align-items: center; gap: 14px; }
.ms-logo { display: flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 700; font-size: .82rem; }
.ms-logo i { width: 16px; height: 16px; border-radius: 5px; background: var(--grad); }
.ms-links { display: flex; gap: 14px; margin-left: auto; color: #675D78; }
.ms-links b { font-weight: 500; }
.ms-links b:first-child { color: #262262; }
.ms-cart { position: relative; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #F0EBFA; color: #262262; }
.ms-cart em { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; display: grid; place-items: center; background: #F16623; color: #211D3A; font-size: .6rem; font-style: normal; font-weight: 700; animation: msBadge 6s var(--ease) infinite; }
.ms-hero { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; align-items: center; padding: 18px; border-radius: 12px; overflow: hidden; color: #fff; background: linear-gradient(120deg, #201B52, #262262 45%, #6453B8); }
.ms-hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(241,102,35,.35), transparent 70%); }
.ms-hero small { display: inline-block; margin-bottom: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: .62rem; }
.ms-hero strong { display: block; margin-bottom: 12px; font-family: var(--font-display); font-size: clamp(.95rem, 1.6vw, 1.2rem); line-height: 1.2; }
.ms-btn { display: inline-block; padding: 7px 14px; border-radius: 999px; background: #F16623; color: #211D3A; font-weight: 600; }
.ms-art { position: relative; z-index: 1; padding: 12px; border-radius: 10px; background: #fff; color: #211D3A; box-shadow: 0 12px 24px -12px rgba(0,0,0,.45); }
.ms-art span { font-size: .6rem; color: #675D78; }
.ms-art b { display: block; font-family: var(--font-display); font-size: .95rem; }
.ms-bars { display: flex; align-items: flex-end; gap: 4px; height: 38px; margin-top: 8px; }
.ms-bars i { flex: 1; height: var(--h); border-radius: 3px; background: #CEC3EF; transform-origin: bottom; }
.ms-bars i:last-child { background: #F16623; }
.in-view .ms-bars i { animation: msGrow 1s var(--ease) both; }
.in-view .ms-bars i:nth-child(2) { animation-delay: .08s; } .in-view .ms-bars i:nth-child(3) { animation-delay: .16s; }
.in-view .ms-bars i:nth-child(4) { animation-delay: .24s; } .in-view .ms-bars i:nth-child(5) { animation-delay: .32s; } .in-view .ms-bars i:nth-child(6) { animation-delay: .4s; }
.ms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ms-card { display: grid; gap: 4px; padding: 10px; border-radius: 10px; border: 1px solid #DCE2EB; }
.ms-card b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-thumb { height: 52px; margin-bottom: 4px; border-radius: 8px; display: grid; place-items: center; background: #F4EFFC; color: #51439B; font-size: 1.2rem; }
.ms-row { display: flex; justify-content: space-between; align-items: center; }
.ms-row em { font-style: normal; font-weight: 700; color: #262262; }
.ms-add { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #211D3A; color: #fff; font-weight: 600; }
.ms-card:first-child .ms-add { animation: msClick 6s var(--ease) infinite; }
.ms-toast { position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 10px; background: #211D3A; color: #fff; box-shadow: 0 14px 30px -10px rgba(33,29,58,.6); opacity: 0; animation: msToast 6s var(--ease) infinite; }
.ms-toast i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #2FB57A; font-size: .6rem; }
/* Staged build when the card enters the viewport */
.in-view .mock > :not(.ms-toast) { animation: rise .8s var(--ease) both; }
.in-view .mock > :nth-child(2) { animation-delay: .12s; }
.in-view .mock > :nth-child(3) { animation-delay: .24s; }
@keyframes msGrow { from { transform: scaleY(0); } }
@keyframes msClick { 0%, 14%, 24%, 100% { transform: scale(1); background: #211D3A; } 18% { transform: scale(.8); background: #F16623; } }
@keyframes msBadge { 0%, 20% { transform: scale(1); } 25% { transform: scale(1.45); } 32%, 100% { transform: scale(1); } }
@keyframes msToast { 0%, 20% { opacity: 0; transform: translateY(12px); } 27%, 72% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; transform: translateY(12px); } }

/* cyber: shield + scanning beam */
.viz-shield { position: relative; height: 130px; display: grid; place-items: center; }
.viz-shield svg { width: 92px; }
.viz-shield path { fill: rgba(100,83,184,.1); stroke: var(--stroke); stroke-width: 2.5; stroke-linejoin: round; }
.viz-shield .ck { fill: none; stroke: var(--success); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
.in-view .viz-shield .ck { animation: draw 1s var(--ease) .6s forwards; }
.scan { position: absolute; left: 20%; right: 20%; height: 2px; top: 24px; background: linear-gradient(90deg, transparent, var(--azure-300), transparent); box-shadow: 0 0 16px var(--azure); animation: scan 2.6s ease-in-out infinite; }
@keyframes scan { 50% { top: 128px; } }

/* cloud: data packets */
.viz-cloud { position: relative; height: 130px; }
.viz-cloud .big { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); font-size: 2.6rem; color: var(--azure-400); filter: drop-shadow(0 0 14px rgba(100,83,184,.7)); }
.viz-cloud .s1, .viz-cloud .s2, .viz-cloud .s3 { position: absolute; bottom: 0; color: var(--muted); font-size: 1.05rem; }
.viz-cloud .s1 { left: 14%; } .viz-cloud .s2 { left: 50%; transform: translateX(-50%); } .viz-cloud .s3 { right: 14%; }
.pkt { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); bottom: 26px; animation: up 2.2s ease-in infinite; }
.pkt.p1 { left: calc(14% + 6px); } .pkt.p2 { left: calc(50% - 3px); animation-delay: .7s; background: var(--azure-300); box-shadow: 0 0 10px var(--azure); } .pkt.p3 { right: calc(14% + 6px); animation-delay: 1.4s; }
@keyframes up { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-56px); opacity: 0; } }

/* network */
.viz-net { height: 120px; width: 100%; }
.viz-net .links path { fill: none; stroke: var(--stroke); stroke-width: 1.2; opacity: .5; stroke-dasharray: 4 6; animation: dash 3s linear infinite; }
.viz-net .nodes circle { fill: var(--bg); stroke: var(--stroke); stroke-width: 2; }
.viz-net .nodes .core { fill: var(--amber); stroke: var(--amber); filter: drop-shadow(0 0 8px var(--amber)); animation: pulse 2s ease-in-out infinite; transform-origin: 120px 72px; }
@keyframes dash { to { stroke-dashoffset: -40; } }
@keyframes pulse { 50% { transform: scale(1.35); } }

/* AI bars */
.viz-bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.viz-bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--azure-300), rgba(38,34,98,.3)); transform-origin: bottom; transform: scaleY(.1); transition: transform 1s var(--ease); }
.viz-bars i:last-child { background: linear-gradient(180deg, var(--amber), rgba(241,102,35,.25)); }
.in-view .viz-bars i { transform: scaleY(1); }
.in-view .viz-bars i:nth-child(2) { transition-delay: .06s; } .in-view .viz-bars i:nth-child(3) { transition-delay: .12s; } .in-view .viz-bars i:nth-child(4) { transition-delay: .18s; }
.in-view .viz-bars i:nth-child(5) { transition-delay: .24s; } .in-view .viz-bars i:nth-child(6) { transition-delay: .3s; } .in-view .viz-bars i:nth-child(7) { transition-delay: .36s; } .in-view .viz-bars i:nth-child(8) { transition-delay: .42s; }

/* training */
.viz-train { display: grid; gap: 14px; }
.viz-train div { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 12px; font-size: .72rem; color: var(--muted); }
.viz-train .bar i { background: linear-gradient(90deg, var(--amber), var(--amber-300)); }

.more { margin-top: 28px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px 24px; border-radius: var(--r); border: 1px dashed var(--line-strong); }
.more-title { color: var(--amber-text); font-size: .8rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: .85rem; color: var(--muted); background: var(--tint); border: 1px solid var(--line); transition: .3s; }
.chips li:hover { color: var(--text); border-color: var(--azure-300); transform: translateY(-2px); }
.chips i { color: var(--azure-400); font-size: .85em; }

/* ============ PROCESS ============ */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; --p: 0; }
.track { position: absolute; left: 28px; right: calc((100% - 72px) / 4 - 28px); top: 27px; height: 2px; background: var(--line); }
.track-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--azure), var(--amber)); transform-origin: 0 50%; transform: scaleX(var(--p)); box-shadow: 0 0 12px rgba(100,83,184,.8); }
.step { position: relative; padding-right: 8px; }
.node { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; font-size: .85rem; background: var(--bg); border: 1px solid var(--line-strong); color: var(--dim); margin-bottom: 26px; transition: .5s var(--ease); }
.step.on .node { color: #fff; border-color: transparent; background: var(--grad); box-shadow: 0 0 0 6px rgba(100,83,184,.15), 0 0 30px rgba(100,83,184,.6); }
.step h3 { font-size: 1.35rem; margin-bottom: 8px; transition: color .4s; color: var(--muted); }
.step.on h3 { color: var(--text); }
.step p { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.when { font-size: .7rem; color: var(--amber-text); text-transform: uppercase; letter-spacing: .08em; }

/* ============ NUMBERS ============ */
.numbers { padding: 64px 0; border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(38,34,98,.1), var(--numbers-mid), rgba(241,102,35,.08)); }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.num { display: grid; gap: 6px; padding-left: 20px; border-left: 1px solid var(--line-strong); }
.num b { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num > span { color: var(--muted); font-size: .92rem; }

/* ============ WORK ============ */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project { overflow: hidden; display: flex; flex-direction: column; transition: transform .5s var(--ease), border-color .4s; }
.project:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.p-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.35fr 1fr; }
.shot { margin: 14px 14px 0; border-radius: 16px 16px 0 0; overflow: hidden; border: 1px solid var(--line); border-bottom: 0; background: var(--bg); }
.p-wide .shot { margin: 18px 0 18px 18px; border-radius: 16px; border-bottom: 1px solid var(--line); }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--shot-bar); }
.shot-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.shot-bar span { font-size: .66rem; color: var(--dim); margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-img { aspect-ratio: 16 / 10; overflow: hidden; }
.p-wide .shot-img { aspect-ratio: 16 / 9; }
.shot-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: object-position 3.5s ease-in-out, transform .8s var(--ease); }
.project:hover .shot-img img { object-position: bottom; transform: scale(1.03); }
.project-meta { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.p-wide .project-meta { padding: 40px; justify-content: center; }
.project-meta h3 { font-size: 1.4rem; }
.p-wide .project-meta h3 { font-size: 2rem; }
.project-meta p { color: var(--muted); font-size: .95rem; }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: .68rem; padding: 5px 10px; border-radius: 999px; color: var(--success-text); border: 1px solid rgba(47,181,122,.35); background: rgba(47,181,122,.08); text-transform: uppercase; letter-spacing: .06em; }
.badge .dot { width: 6px; height: 6px; }
.badge-amber { color: var(--amber-text); border-color: rgba(241,102,35,.4); background: rgba(241,102,35,.08); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.tags li { font-size: .68rem; padding: 4px 9px; border-radius: 6px; background: var(--tint); color: var(--muted); border: 1px solid var(--line); }
.link { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--hl); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px; transition: background-size .4s var(--ease), color .3s; }
.link:hover { background-size: 100% 1px; color: var(--text); }
.link i { font-size: .8em; }

/* ============ STORY ============ */
.manifesto { position: relative; max-width: 980px; margin-bottom: 56px; padding-left: 28px; border-left: 2px solid; border-image: linear-gradient(var(--azure), var(--amber)) 1; }
.manifesto p { font-family: var(--font-display); font-size: clamp(1.4rem, 2.8vw, 2.2rem); font-weight: 500; line-height: 1.35; letter-spacing: -0.015em; margin-bottom: 14px; }
.manifesto footer { font-size: .78rem; color: var(--dim); }

.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 56px; padding-top: 34px; }
.tl-line { position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: var(--line); }
.tl-line span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--azure), var(--amber)); transform-origin: 0; transform: scaleX(0); transition: transform 2s var(--ease); }
.timeline.in-view .tl-line span { transform: scaleX(1); }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; top: -34px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--azure-300); }
.tl-item.now::before { border-color: var(--amber); background: var(--amber); box-shadow: 0 0 0 6px rgba(241,102,35,.15), 0 0 20px var(--amber); }
.tl-year { display: block; color: var(--amber-text); font-size: .82rem; margin-bottom: 8px; }
.tl-item h3 { font-size: 1.15rem; margin-bottom: 6px; }
.tl-item p { color: var(--muted); font-size: .92rem; }

.voices { padding: clamp(28px, 4vw, 52px); overflow: hidden; }
.voices-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.voices-head .eyebrow { margin: 0; }
.voices-score { display: flex; align-items: center; gap: 10px; }
.voices-score b { font-family: var(--font-display); font-size: 1.6rem; }
.stars { color: var(--amber); font-size: .85rem; display: flex; gap: 3px; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateX(30px); transition: opacity .7s var(--ease), transform .7s var(--ease), visibility .7s; }
.slide.is-active { opacity: 1; visibility: visible; transform: none; }
.slide blockquote { font-family: var(--font-display); font-size: clamp(1.2rem, 2.3vw, 1.75rem); font-weight: 500; line-height: 1.45; letter-spacing: -0.01em; margin-bottom: 26px; max-width: 900px; }
.slide figcaption { display: flex; align-items: center; gap: 14px; }
.slide figcaption b { display: block; font-family: var(--font-display); }
.slide figcaption small { color: var(--dim); font-size: .85rem; }
.av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: #fff; background: var(--grad); }
.av-g { background: linear-gradient(135deg, #2FB57A, #0E7A4E); }
.av-a { background: linear-gradient(135deg, #FFA16D, #AD410E); color: var(--ink); }
.slides-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.sc-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); transition: .3s; }
.sc-btn:hover { border-color: var(--azure-300); background: rgba(100,83,184,.12); }
.dots { display: flex; gap: 8px; flex: 1; }
.dots button { flex: 1; max-width: 90px; height: 24px; display: grid; align-items: center; }
.dots i { display: block; height: 3px; border-radius: 3px; background: var(--line-strong); position: relative; overflow: hidden; }
.dots i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--azure), var(--amber)); transform-origin: 0; transform: scaleX(0); }
.dots .on i::after { animation: fill var(--dur, 7s) linear forwards; }
.dots .done i::after { transform: scaleX(1); }
.voices.paused .dots .on i::after { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }

/* ============ FAQ ============ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-grid .sec-head { position: sticky; top: 110px; }
.faq-grid .sec-head .btn { margin-top: 22px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; cursor: pointer; font-family: var(--font-display); font-size: 1.12rem; font-weight: 500; transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--hl); }
.faq summary i { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); transition: .4s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .4s var(--ease); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { background: var(--azure-600); border-color: var(--azure-600); color: #fff; }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.ans { overflow: hidden; }
.ans p { color: var(--muted); padding: 0 48px 26px 0; }

/* ============ CONTACT ============ */
.contact { overflow: hidden; }
.contact::before { content: ""; position: absolute; left: 50%; top: 10%; width: 900px; height: 900px; transform: translateX(-50%); background: radial-gradient(circle, rgba(100,83,184,.16), transparent 60%); pointer-events: none; z-index: -1; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-copy > p { color: var(--muted); font-size: 1.08rem; margin-bottom: 32px; }
.channels { display: grid; gap: 10px; margin-bottom: 24px; }
.channels a, .channels li > div { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--glass); transition: .35s var(--ease); }
.channels a:hover { border-color: var(--azure-300); transform: translateX(6px); background: rgba(100,83,184,.08); }
.channels small { display: block; font-size: .72rem; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.channels span:not(.ch-ic) { font-weight: 500; }
.ch-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(100,83,184,.15); color: var(--hl); }
.ch-ic.wa { background: rgba(37,211,102,.14); color: #1DA851; }
.go { margin-left: auto; color: var(--dim); transition: .3s; }
.channels a:hover .go { color: var(--hl); transform: translateX(3px); }
.contact-copy .hours { display: flex; margin: 0; align-items: center; gap: 10px; font-size: .78rem; color: var(--muted); }

.form { padding: clamp(24px, 3.5vw, 44px); display: grid; gap: 18px; box-shadow: var(--shadow-lg); }
.svc-pick { border: 0; }
.svc-pick legend { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin-bottom: 14px; }
.svc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-chips label { position: relative; cursor: pointer; }
.svc-chips input { position: absolute; opacity: 0; pointer-events: none; }
.svc-chips span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .86rem; color: var(--muted); transition: .3s var(--ease); }
.svc-chips label:hover span { border-color: var(--azure-300); color: var(--text); }
.svc-chips input:checked + span { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -8px rgba(100,83,184,.9); }
.svc-chips input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; }
.field input, .field textarea {
    width: 100%; padding: 26px 16px 10px; border-radius: 14px; border: 1px solid var(--line-strong);
    background: var(--well); color: var(--text); font: inherit; font-size: 1rem; resize: vertical;
    transition: border-color .3s, box-shadow .3s, background .3s;
}
.field textarea { min-height: 140px; }
.field label { position: absolute; left: 17px; top: 18px; color: var(--dim); font-size: .98rem; pointer-events: none; transform-origin: 0 0; transition: transform .3s var(--ease), color .3s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--azure); background: var(--well-focus); box-shadow: 0 0 0 4px rgba(100,83,184,.18); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.78); color: var(--hl); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#formStatus { font-size: .95rem; min-height: 1.4em; }
#formStatus.ok { color: var(--success-text); }
#formStatus.err { color: var(--danger-text); }
.form-note { font-size: .72rem; color: var(--dim); }
.form-note a { color: var(--hl); text-decoration: underline; text-underline-offset: 3px; }
.form-note i { color: var(--success-text); }
.form.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 30% { box-shadow: 0 0 0 2px var(--amber), 0 0 60px -10px rgba(241,102,35,.6); } }

/* ============ FOOTER ============ */
.footer { position: relative; padding-top: 40px; border-top: 1px solid var(--line); overflow: hidden; background: linear-gradient(180deg, transparent, rgba(38,34,98,.08)); }
.footer-mega { display: flex; width: max-content; gap: 60px; animation: marquee 30s linear infinite; margin-bottom: 60px; }
.footer-mega span { font-family: var(--font-display); font-weight: 800; font-size: clamp(3.5rem, 11vw, 9rem); letter-spacing: -0.04em; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--mega-stroke); white-space: nowrap; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.f-brand p { color: var(--muted); margin: 18px 0 22px; max-width: 36ch; font-size: .95rem; }
.footer h4 { font-size: .74rem; font-weight: 500; color: var(--amber-text); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px; }
.footer ul { display: grid; gap: 10px; }
.footer-col { min-width: 0; }
.footer li, .footer li a { color: var(--muted); font-size: .93rem; transition: color .3s; }
.footer li a:hover { color: var(--text); }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--muted); transition: .3s var(--ease); }
.socials a:hover { color: #fff; background: var(--azure-600); border-color: var(--azure-600); transform: translateY(-3px); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 28px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--dim); }
.footer-bottom em { font-family: var(--font-display); font-style: italic; color: var(--muted); }
.legal { display: flex; gap: 18px; flex-wrap: wrap; }
.legal a:hover { color: var(--text); }

#waFab { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: #25D366; box-shadow: 0 12px 30px -8px rgba(37,211,102,.7); transition: transform .4s var(--ease); }
#waFab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: ripple 2.4s ease-out infinite; }
#waFab:hover { transform: scale(1.08) rotate(-6deg); }
@keyframes ripple { to { transform: scale(1.6); opacity: 0; } }

/* Back to top, with a ring that fills as you read */
#toTop {
    position: fixed; right: 24px; bottom: 90px; z-index: 40; width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center; color: var(--text);
    background: var(--glass-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-nav);
    opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9);
    transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s, background .3s, color .3s;
}
#toTop.show { opacity: 1; visibility: visible; transform: none; }
#toTop svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.tt-track { fill: none; stroke: var(--line-strong); stroke-width: 2; }
.tt-ring { fill: none; stroke: var(--azure); stroke-width: 2.5; stroke-linecap: round; transition: stroke-dashoffset .15s linear; }
#toTop i { position: relative; font-size: .95rem; }
#toTop:hover { background: var(--azure-600); color: #fff; }
#toTop:hover .tt-ring { stroke: var(--amber); }
#toTop:hover i { animation: ttUp .7s var(--ease); }
@keyframes ttUp { 50% { transform: translateY(-4px); } }

/* ============ SUBPAGES (legal) ============ */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: 150px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero .hero-aurora { height: 140%; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 26px; font-size: .74rem; color: var(--dim); }
.crumbs a { color: var(--muted); transition: color .3s; }
.crumbs a:hover { color: var(--hl); }
.crumbs > i { font-size: .6rem; }
.crumbs [aria-current] { color: var(--text); }
.page-title { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.page-title h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); font-weight: 700; letter-spacing: -0.03em; }
.page-ic { flex: none; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; font-size: 1.5rem; color: #fff; background: var(--grad); box-shadow: 0 0 0 6px rgba(100,83,184,.12), 0 18px 40px -12px rgba(100,83,184,.8); animation: bob 6s ease-in-out infinite; }
.page-lead { max-width: 62ch; margin-bottom: 22px; font-size: 1.1rem; color: var(--muted); }
.update-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: .72rem; color: var(--muted); border: 1px solid var(--line); background: var(--glass); }
.update-badge i { color: var(--amber-text); }

.legal-wrap { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 40px; align-items: start; padding: 56px 0 40px; }
.toc { position: sticky; top: 100px; padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card-bg); }
.toc-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: .72rem; color: var(--hl); text-transform: uppercase; letter-spacing: .14em; }
.toc nav { display: grid; gap: 2px; }
.toc nav a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: .9rem; line-height: 1.35; color: var(--muted); transition: background .3s, color .3s, box-shadow .3s; }
.toc nav a:hover { color: var(--text); background: var(--tint); }
.toc nav a.active { color: var(--text); background: rgba(100,83,184,.12); box-shadow: inset 2px 0 0 var(--azure); }
.toc-num { flex: none; min-width: 20px; padding-top: 2px; font-family: var(--font-mono); font-size: .7rem; color: var(--amber-text); }
.toc-progress { display: block; height: 2px; margin-top: 14px; border-radius: 2px; background: var(--line); overflow: hidden; }
.toc-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--azure), var(--amber)); transform-origin: 0 50%; transform: scaleX(0); transition: transform .4s var(--ease); }

.legal-content { display: grid; gap: 16px; }
.legal-card { position: relative; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card-bg); scroll-margin-top: 100px; }
.legal-card h2 { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font-size: clamp(1.2rem, 2vw, 1.45rem); }
.legal-card .num { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-family: var(--font-mono); font-size: .8rem; font-weight: 500; color: var(--amber-text); border: 1px solid rgba(241,102,35,.35); background: rgba(241,102,35,.08); }
.legal-card p, .legal-card li { color: var(--muted); }
.legal-card p + p, .legal-card ul + p, .legal-card .table-scroll + p { margin-top: 12px; }
.legal-card strong { color: var(--text); font-weight: 600; }
.legal-card a { color: var(--hl); text-decoration: underline; text-decoration-color: rgba(100,83,184,.4); text-underline-offset: 3px; transition: text-decoration-color .3s; }
.legal-card a:hover { text-decoration-color: currentColor; }
.legal-card ul { display: grid; gap: 10px; margin: 12px 0; }
.legal-card li { position: relative; padding-left: 22px; }
.legal-card li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--azure); box-shadow: 0 0 8px rgba(100,83,184,.6); }
.legal-card li > i:first-child { width: 18px; color: var(--hl); }
.legal-card .fact-list { gap: 0; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.legal-card .fact-list li { padding: 12px 16px; border-top: 1px solid var(--line); }
.legal-card .fact-list li:first-child { border-top: 0; }
.legal-card .fact-list li::before { display: none; }
.legal-card .fact-list li:nth-child(odd) { background: var(--tint); }
.legal-card code { padding: 2px 7px; border-radius: 6px; font-family: var(--font-mono); font-size: .85em; color: var(--hl); background: var(--tint); }
.table-scroll { margin: 14px 0; overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
.legal-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.legal-table th { padding: 12px 16px; text-align: left; font-family: var(--font-mono); font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); background: var(--well); }
.legal-table td { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); }
.legal-table tr:hover td { background: var(--tint); }

.page-cta { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 72px; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); border: 1px solid var(--line-strong); overflow: hidden;
    background: radial-gradient(500px circle at 100% 0%, rgba(241,102,35,.12), transparent 60%), radial-gradient(600px circle at 0% 100%, rgba(100,83,184,.18), transparent 60%), var(--card-bg); }
.page-cta h2 { margin-bottom: 6px; font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.page-cta p { color: var(--muted); }
.page-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============ 404 ============ */
.err-hero { text-align: center; }
.err-inner { display: grid; justify-items: center; }
.dot-err { background: #E05252; animation-name: pingErr; }
@keyframes pingErr { 0% { box-shadow: 0 0 0 0 rgba(224, 82, 82, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(224, 82, 82, 0); } }
.err-code {
    position: relative; margin: 6px 0 10px; font-size: clamp(7rem, 24vw, 15rem); font-weight: 800; line-height: .85; letter-spacing: -0.06em;
    background: var(--grad-text); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shimmer 8s linear infinite;
}
/* Glitch slices */
.err-code::before, .err-code::after {
    content: attr(data-text); position: absolute; inset: 0; -webkit-text-fill-color: currentColor; background: none;
    clip-path: inset(0 0 100% 0); pointer-events: none;
}
.err-code::before { color: var(--azure); animation: glitchA 4.5s steps(1) infinite; }
.err-code::after { color: var(--amber); animation: glitchB 4.5s steps(1) infinite; }
@keyframes glitchA { 0%, 86%, 100% { clip-path: inset(0 0 100% 0); transform: none; } 88% { clip-path: inset(18% 0 58% 0); transform: translate(-8px, 0); } 91% { clip-path: inset(62% 0 14% 0); transform: translate(6px, 0); } 94% { clip-path: inset(40% 0 42% 0); transform: translate(-4px, 0); } }
@keyframes glitchB { 0%, 87%, 100% { clip-path: inset(0 0 100% 0); transform: none; } 89% { clip-path: inset(70% 0 8% 0); transform: translate(7px, 0); } 92% { clip-path: inset(10% 0 72% 0); transform: translate(-6px, 0); } 95% { clip-path: inset(48% 0 30% 0); transform: translate(3px, 0); } }
.err-title { margin-bottom: 12px; font-size: clamp(1.4rem, 3vw, 2.2rem); }
.err-text { max-width: 52ch; margin-bottom: 26px; color: var(--muted); font-size: 1.05rem; }
.err-term { width: min(100%, 460px); margin-bottom: 30px; padding: 16px 18px; border-radius: var(--r); text-align: left; font-size: .8rem; line-height: 1.8; color: #F4F0FF; border: 1px solid rgba(190,177,240,.28); background: linear-gradient(180deg, rgba(34,28,58,.92), rgba(23,19,46,.95)); box-shadow: var(--shadow-lg); overflow-wrap: anywhere; }
.err-term .p { color: var(--amber); }
.err-term .c { color: #BEB1F0; }
.err-term .bad { color: #F08080; }
.err-term .ok { color: #2FB57A; }
.err-term .cur { display: inline-block; width: .55em; height: 1.1em; margin-left: 4px; vertical-align: text-bottom; background: #BEB1F0; animation: blink 1s steps(1) infinite; }
.err-cta { justify-content: center; margin-bottom: 0; }

@media (max-width: 960px) {
    .legal-wrap { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
    .toc { position: static; }
    .toc nav { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .page-hero { padding: 120px 0 40px; }
    .page-title { gap: 14px; }
    .page-ic { width: 52px; height: 52px; font-size: 1.2rem; border-radius: 14px; }
    .toc nav { grid-template-columns: 1fr; }
    .page-cta-actions, .page-cta-actions .btn { width: 100%; }
    .err-cta .btn { width: 100%; }
}

/* ============ REVEAL ============ */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="clip"] { opacity: 1; transform: none; }
.js [data-reveal="clip"] .line { clip-path: inset(0 0 100% 0); transform: translateY(40%); transition: clip-path 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal="clip"] .line:nth-child(2) { transition-delay: .1s; }
.js [data-reveal="clip"] .line:nth-child(3) { transition-delay: .2s; }
.js [data-reveal].in-view { opacity: 1; transform: none; }
.js [data-reveal="clip"].in-view .line { clip-path: inset(-10% -5% -20% -5%); transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
    .nav-links { display: none; }
    #menuBtn { display: block; }
    .hero-inner { grid-template-columns: 1fr; gap: 64px; }
    .hero-visual { min-height: 560px; max-width: 620px; width: 100%; margin-inline: auto; }
    .orb { right: 0; left: 0; margin-inline: auto; width: min(480px, 100%); }
    .console { left: 0; }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .b-web { grid-column: 1 / -1; grid-row: auto; }
    .b-cyber, .b-cloud, .b-net, .b-ai, .b-train { grid-column: span 1; }
    .work { grid-template-columns: 1fr 1fr; }
    .p-wide { grid-template-columns: 1fr; }
    .p-wide .shot { margin: 14px 14px 0; border-radius: 16px 16px 0 0; border-bottom: 0; }
    .p-wide .project-meta { padding: 24px 26px 28px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 641px) and (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr; text-align: center; justify-items: center; }
    .f-brand { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; }
    .footer-grid .brand { justify-content: center; }
    .footer-grid ul { justify-items: center; }
    .footer-explore, .footer-expertise { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: baseline; text-align: left; }
    .footer-explore h4, .footer-expertise h4 { margin: 0; }
    .footer-explore ul, .footer-expertise ul { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px 18px; }
}
@media (max-width: 860px) {
    .aud-tabs { grid-template-columns: 1fr 1fr; border-radius: 22px; }
    .aud-tabs button { border-radius: 16px; }
    .aud-ind { border-radius: 16px; }
    .aud-panel { grid-template-columns: 1fr; }
    .process { grid-template-columns: 1fr; gap: 34px; padding-left: 0; }
    .track { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
    .track-fill { transform-origin: 50% 0; transform: scaleY(var(--p)); }
    .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; }
    .step .node { grid-row: span 3; margin: 0; }
    .numbers-grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
    .timeline { grid-template-columns: 1fr; padding: 0 0 0 30px; gap: 30px; }
    .tl-line { top: 0; bottom: 0; left: 6px; right: auto; width: 2px; height: auto; }
    .tl-line span { transform: scaleY(0); transform-origin: 50% 0; }
    .timeline.in-view .tl-line span { transform: scaleY(1); }
    .tl-item::before { top: 4px; left: -30px; }
    .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .faq-grid .sec-head { position: static; }
}
@media (max-width: 640px) {
    #nav { top: 8px; height: 58px; }
    #nav .btn-sm { display: none; }
    .hero { padding-top: 110px; }
    .status { font-size: .68rem; }
    .hero-cta .btn { width: 100%; }
    .hero-proof {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
        max-width: 100%;
        padding-inline: 0;
        margin-inline: auto;
        text-align: center;
    }
    .hero-proof li { min-width: 0; justify-items: center; align-content: start; }
    .hero-proof span { max-width: 100%; overflow-wrap: anywhere; }
    .hero-visual { min-height: 0; display: flex; flex-direction: column; align-items: center; }
    .orb { position: relative; top: 0; width: min(340px, 100%); }
    .console { position: relative; left: 0; bottom: auto; width: 100%; margin-top: -30px; }
    .float-chip.c1 { left: 0; top: 0; }
    .float-chip.c2 { right: 0; top: 36%; }
    .float-chip.c3 { display: none; }
    .console-body { height: 172px; font-size: .7rem; padding: 14px; }
    .bento, .work { grid-template-columns: 1fr; }
    .row { grid-template-columns: 1fr; }
    .aud-tabs button { font-size: .82rem; padding: 12px 8px; gap: 6px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid { text-align: center; justify-items: center; gap: 28px; }
    .f-brand { display: flex; flex-direction: column; align-items: center; }
    .footer-grid .brand { justify-content: center; }
    .footer-grid ul { justify-items: center; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .f-brand, .footer-contact { grid-column: 1 / -1; }
    .footer-explore, .footer-expertise { display: block; width: 100%; max-width: none; text-align: center; }
    .footer-explore h4, .footer-expertise h4 { margin-bottom: 12px; white-space: normal; }
    .footer-explore ul, .footer-expertise ul { display: grid; justify-items: center; gap: 8px; }
    .footer-bottom { justify-content: center; text-align: center; }
    .footer-bottom .legal { justify-content: center; }
    .scroll-cue { display: none; }
    .ans p { padding-right: 0; }
    .ms-links, .ms-art { display: none; }
    .ms-cart { margin-left: auto; }
    .ms-hero { grid-template-columns: 1fr; }
    .ms-grid { grid-template-columns: 1fr 1fr; }
    .ms-card:nth-child(3) { display: none; }
}
@media (max-width: 640px) {
    .numbers-grid { display: flex; justify-content: center; flex-wrap: wrap; text-align: center; }
    .numbers-grid .num { flex: 0 1 28%; min-width: 88px; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .marquee, .footer-mega { animation: none !important; }
    .js [data-reveal], .js [data-reveal="clip"] .line { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* Mobile navigation: full width and theme control outside the header. */
@media (max-width: 640px) {
    #nav {
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        transform: none;
        border-radius: 0;
        padding-inline: 12px;
        gap: 8px;
    }
    #nav .brand { flex: 1 1 auto; min-width: 0; gap: 8px; }
    #nav .brand img { width: 34px; flex-shrink: 0; }
    #nav .brand-name { min-width: 0; font-size: clamp(.9rem, 4.1vw, 1.15rem); }
    #nav .brand-name small { font-size: .5rem; letter-spacing: .22em; }
    #nav .nav-actions { flex: 0 0 auto; gap: 6px; }
    #nav .lang-btn, #nav #menuBtn { flex-shrink: 0; }
    .theme-btn.theme-mobile-float {
        position: fixed;
        inset: auto auto calc(20px + env(safe-area-inset-bottom, 0px)) 16px;
        z-index: 60;
        width: 44px;
        height: 44px;
        background: var(--glass-strong);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: var(--shadow-nav);
    }
}

/* Violet & orange identity: common controls on every screen size. */
:root {
    --brand-violet: #262262;
    --brand-orange: #F16623;
    --cta-bg: #F16623;
    --cta-text: #211D3A;
    --cta-hover: #FF955D;
    --focus-ring: #51439B;
}
:root[data-theme="dark"] { --focus-ring: #FFA16D; }
.btn-primary {
    background: var(--cta-bg);
    color: var(--cta-text);
    box-shadow: 0 12px 30px -12px rgba(241,102,35,.55);
}
.btn-primary::before { background: none; }
.btn-primary:hover, .btn-primary:active {
    background: var(--cta-hover);
    color: var(--cta-text);
    box-shadow: 0 16px 36px -12px rgba(241,102,35,.65);
}
.btn:focus-visible, button:focus-visible, a:focus-visible,
summary:focus-visible, select:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 4px;
}
.theme-btn .fa-sun { color: var(--amber-text); }
.console .console-bar .live, .console .console-body .ok { color: #65D5A1; }
.console .console-body .p { color: #FFA16D; }
.console .console-foot i { color: #BEB1F0; }
.err-term .ok { color: #65D5A1; }
.ch-ic.wa { color: var(--success-text); }
::selection { background: #262262; color: #FFFFFF; }
/* Tint existing brand bitmaps to match the violet accents. */
.brand img, .loader-mark img, .logo3d img { filter: hue-rotate(30deg); }
/* Demo panels follow the selected theme too. */
.mock { background: var(--well-focus); color: var(--text); }
.ms-links, .ms-art span { color: var(--dim); }
.ms-links b:first-child, .ms-row em { color: var(--hl); }
.ms-cart { background: var(--tint); color: var(--hl); }
.ms-art { background: var(--glass-strong); color: var(--text); }
.ms-thumb { background: var(--tint); color: var(--hl); }
.ms-add, .ms-toast { background: #262262; color: #FFFFFF; }
#waFab {
    background: var(--cta-bg);
    color: var(--cta-text);
    box-shadow: 0 12px 30px -8px rgba(241,102,35,.55);
}
#waFab::before { border-color: var(--brand-orange); }
