/* =========================================================================
   Admin Software — design system
   Dark, technical, premium. Emerald → cyan → violet signature gradient,
   with a gold accent nodding to the South African flag.
   ========================================================================= */

:root {
    color-scheme: dark;

    --bg: #05070d;
    --bg-elev: #0a0e18;
    --bg-elev-2: #0f1422;
    --card: rgba(255, 255, 255, .028);
    --card-hover: rgba(255, 255, 255, .05);
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .16);

    --text: #eef2f8;
    --muted: #a3adbf;
    --dim: #7e899d;

    --emerald: #34e4a6;
    --cyan: #3cc8f5;
    --violet: #8b7bff;
    --gold: #f7c548;
    --rose: #ff6b8b;

    --grad: linear-gradient(120deg, var(--emerald) 0%, var(--cyan) 50%, var(--violet) 100%);
    --grad-soft: linear-gradient(120deg, rgba(52, 228, 166, .16), rgba(60, 200, 245, .12) 50%, rgba(139, 123, 255, .16));

    --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
    --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 72px;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* No global smooth scrolling: Blazor resets scroll on navigation and it must be instant.
   Same-page anchor links are smooth-scrolled in site.js instead. */
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; interpolate-size: allow-keywords; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .75rem; text-wrap: balance; }
p, li { text-wrap: pretty; }
h1:focus { outline: none; }
::selection { background: rgba(52, 228, 166, .3); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    background: var(--emerald); color: #05070d; padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Ambient backdrop ---------- */
.backdrop { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .45; will-change: transform; }
.aurora-1 { width: 620px; height: 620px; background: #0f8f6a; top: -260px; left: -160px; animation: drift 26s ease-in-out infinite alternate; }
.aurora-2 { width: 560px; height: 560px; background: #1366a8; top: -200px; right: -200px; animation: drift 32s ease-in-out infinite alternate-reverse; }
.aurora-3 { width: 520px; height: 520px; background: #3b2a99; top: 55vh; left: 35vw; opacity: .25; animation: drift 38s ease-in-out infinite alternate; }
.grid-overlay {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}
@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(80px, 60px, 0) scale(1.15); }
}

/* ---------- Typography helpers ---------- */
.gradient-text {
    background: linear-gradient(120deg, var(--emerald), var(--cyan), var(--violet), var(--cyan), var(--emerald));
    background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shimmer 12s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--emerald); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }

.section { padding: clamp(64px, 8vw, 104px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-title { font-size: clamp(2rem, 4.2vw, 3.1rem); }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--card);
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 22px; border-radius: 999px; border: 1px solid var(--line-strong);
    background: var(--btn-bg); color: var(--text);
    font: 600 15px/1 var(--font-body); cursor: pointer; white-space: nowrap;
    transition: transform .3s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
}
.btn.magnet-active { transition: transform .12s linear, box-shadow .25s var(--ease), background .25s, border-color .25s; }
.btn:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .3); background: var(--card-hover); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary {
    background: var(--grad); color: #04110c; border: 0;
    box-shadow: 0 10px 30px -10px rgba(52, 228, 166, .55), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover { background: var(--grad); box-shadow: 0 16px 40px -12px rgba(60, 200, 245, .7), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
    content: ""; position: absolute; top: -10%; bottom: -10%; left: -40%; width: 30%; z-index: -1; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent);
    transform: skewX(-20deg); opacity: 0;
}
.btn-primary:hover::after { animation: shine .9s var(--ease); }
@keyframes shine { 0% { opacity: 0; transform: translateX(0) skewX(-20deg); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateX(560%) skewX(-20deg); } }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 18px 28px; font-size: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--emerald); font-weight: 600; font-size: 15px; }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translate(3px, -3px); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    transition: background .3s, border-color .3s, backdrop-filter .3s;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(5, 7, 13, .72);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.logo-text-accent { color: var(--muted); font-weight: 500; }
.logo-cursor { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.main-nav { display: flex; align-items: center; gap: 6px; position: relative; z-index: 0; }
.main-nav > a:not(.btn) {
    position: relative; padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--muted);
    display: inline-flex; align-items: center; gap: 6px; transition: color .2s, background .2s;
}
.main-nav > a:not(.btn):hover { color: var(--text); background: var(--card-hover); }
.main-nav > a.active { color: var(--text); background: rgba(255, 255, 255, .06); }
.main-nav > a.nav-highlight { color: var(--emerald); }
.nav-cta { margin-left: 10px; }
.nav-indicator {
    position: absolute; top: 50%; left: 0; z-index: -1; height: 38px; margin-top: -19px; width: 0; border-radius: 999px; pointer-events: none;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .07); opacity: 0;
    transition: transform .4s var(--ease), width .4s var(--ease), opacity .25s;
}
@media (min-width: 921px) {
    .main-nav.has-indicator > a:not(.btn), .main-nav.has-indicator > a:not(.btn):hover { background: transparent; }
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.cmdk-trigger {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 12px; border-radius: 12px; cursor: pointer;
    border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); color: var(--muted); font: 500 13px var(--font-body);
    transition: color .2s, border-color .2s, background .2s;
}
.cmdk-trigger:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); }
.cmdk-trigger kbd + kbd { margin-left: -4px; }
kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; font: 500 11.5px/1 var(--font-mono); color: var(--muted); border: 1px solid var(--line-strong); border-bottom-width: 2px; background: rgba(255, 255, 255, .04); }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--card); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
    .nav-toggle { display: inline-flex; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
        padding: 16px var(--gutter) 24px; background: rgba(5, 7, 13, .97); backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--line);
        transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .25s;
    }
    .nav-open .main-nav { transform: none; opacity: 1; pointer-events: auto; }
    .nav-open .main-nav > a { animation: nav-item-in .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
    .nav-indicator { display: none; }
    .nav-open .site-header { background: rgba(5, 7, 13, .97); }
    .main-nav > a:not(.btn) { padding: 14px 16px; font-size: 16px; border-radius: 12px; }
    .nav-cta { margin: 10px 0 0; }
}
@media (max-width: 560px) { .cmdk-trigger kbd { display: none; } .cmdk-trigger .cmdk-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .cmdk-trigger { width: 44px; height: 44px; padding: 0; justify-content: center; } }
@keyframes nav-item-in { from { opacity: 0; transform: translateY(-8px); } }
body.nav-open, body.cmdk-open { overflow: hidden; }
@media (max-width: 920px) {
    body.nav-open::before { content: ""; position: fixed; inset: var(--header-h) 0 0 0; z-index: 40; background: rgba(3, 5, 10, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade-in .25s ease-out; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 6vw, 88px); position: relative; isolation: isolate; }
.hero-canvas {
    position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .55) 40%, #000 70%), linear-gradient(transparent, #000 12%, #000 80%, transparent);
    -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .55) 40%, #000 70%), linear-gradient(transparent, #000 12%, #000 80%, transparent); mask-composite: intersect;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: 1.02; letter-spacing: -.035em; margin-bottom: 24px; }
.hero .lead { margin-bottom: 34px; }

.status-pill {
    display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; margin-bottom: 26px;
    border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255, 255, 255, .03);
    font-size: 13.5px; color: var(--muted);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(52, 228, 166, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 228, 166, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 228, 166, 0); } }

.rotator { display: inline-grid; vertical-align: bottom; }
.rotator > span { grid-area: 1 / 1; opacity: 0; transform: translateY(.35em); filter: blur(6px); transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s; white-space: nowrap; }
.rotator > span.on { opacity: 1; transform: none; filter: none; transition-delay: .2s; }
.rotator > span.out { opacity: 0; transform: translateY(-.35em); filter: blur(6px); transition-duration: .3s; }

.hero-proof { display: grid; grid-template-columns: repeat(2, max-content); justify-content: start; gap: 20px 48px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
@media (min-width: 600px) and (max-width: 980px), (min-width: 1180px) { .hero-proof { grid-template-columns: repeat(4, max-content); justify-content: space-between; gap: 20px 24px; } }
.hero-proof div { display: flex; flex-direction: column; }
.hero-proof strong { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.hero-proof span { font-size: 13.5px; color: var(--dim); white-space: nowrap; }

/* Terminal card */
.hero-visual { position: relative; }
.terminal {
    position: relative; border-radius: var(--radius); overflow: hidden;
    background: linear-gradient(180deg, rgba(16, 21, 35, .92), rgba(9, 12, 21, .96));
    border: 1px solid var(--line-strong);
    box-shadow: 0 40px 120px -40px rgba(60, 200, 245, .35), 0 0 0 1px rgba(255, 255, 255, .02) inset;
}
.terminal::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
    background: linear-gradient(140deg, rgba(52, 228, 166, .6), transparent 35%, transparent 65%, rgba(139, 123, 255, .6));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3142; }
.terminal-bar i:nth-child(1) { background: #ff5f57; } .terminal-bar i:nth-child(2) { background: #febc2e; } .terminal-bar i:nth-child(3) { background: #28c840; }
.terminal-bar span { margin-left: 10px; font: 12.5px var(--font-mono); color: var(--dim); }
.terminal-body {
    padding: 20px 22px 40px; font: 13.5px/1.75 var(--font-mono); min-height: 376px; max-height: 470px; overflow: auto;
    scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .14) transparent; overscroll-behavior: contain;
}
.terminal.interactive .terminal-body { cursor: text; }
.terminal-body .ln.cleared { display: none; }
.tl { white-space: pre-wrap; word-break: break-word; animation: tl-in .25s var(--ease); }
@keyframes tl-in { from { opacity: 0; transform: translateY(3px); } }
.tl a { color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(60, 200, 245, .4); text-underline-offset: 3px; }
.tl a:hover { text-decoration-color: currentColor; }
.tl .tk-cmd { color: var(--emerald); }
.tl .tk-w { color: var(--text); }
.tl-grid { display: grid; grid-template-columns: max-content 1fr; gap: 0 18px; }
.tl-neo { display: flex; gap: 22px; flex-wrap: wrap; }
.tl-neo pre { margin: 0; font: inherit; line-height: 1.35; }
.term-line { display: flex; align-items: center; white-space: pre; margin: 0 -8px; padding: 0 8px; border-radius: 6px; transition: background .2s; }
.term-line:focus-within { background: rgba(52, 228, 166, .06); }
.term-prompt { color: var(--emerald); flex: none; }
.term-prompt b { color: var(--cyan); font-weight: 400; }
.term-input { flex: 1; min-width: 60px; margin-left: 10px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; caret-color: var(--emerald); }
.term-input::placeholder { color: var(--dim); opacity: .7; }
@media (pointer: coarse) { .term-input { font-size: 16px; } }
.term-hint { color: #5c6780; font-style: italic; }
.terminal-body .ln { white-space: pre; }
.js .terminal-body .ln { opacity: 0; transform: translateX(-6px); transition: opacity .35s, transform .35s var(--ease); }
.js .terminal-body .ln.shown { opacity: 1; transform: none; }
.reduce-motion .terminal-body .ln { opacity: 1; transform: none; }
.tk-k { color: #c792ea; } .tk-t { color: #82d9ff; } .tk-s { color: #c3e88d; } .tk-c { color: #5c6780; font-style: italic; }
.tk-m { color: #ffcb6b; } .tk-p { color: #89ddff; } .tk-ok { color: var(--emerald); } .tk-dim { color: var(--dim); }
.caret { display: inline-block; width: 8px; height: 16px; background: var(--emerald); vertical-align: -3px; animation: blink 1s steps(1) infinite; }

.float-chip {
    position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px;
    background: rgba(12, 16, 28, .85); border: 1px solid var(--line-strong); backdrop-filter: blur(12px);
    font-size: 13px; font-weight: 500; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8);
    animation: bob 6s ease-in-out infinite;
}
.float-chip .icon { color: var(--emerald); }
.float-chip.c1 { top: -18px; right: 24px; }
.float-chip.c2 { bottom: -18px; left: 28px; animation-delay: -2s; }
.float-chip.c2 .icon { color: var(--gold); }
.float-chip.c3 { bottom: -18px; right: 28px; animation-delay: -4s; }
.float-chip.c3 .icon { color: var(--violet); }
@keyframes bob { 50% { transform: translateY(-8px); } }

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .float-chip { display: none; }
    .terminal-body { font-size: 12px; padding: 16px; min-height: 0; }
}

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 22px 0; display: grid; gap: 12px; border-block: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track.reverse { animation-direction: reverse; animation-duration: 64s; }
.marquee-item.ghost { background: transparent; border-style: dashed; border-color: rgba(255, 255, 255, .1); color: var(--dim); font-family: var(--font-body); font-size: 14px; }
.marquee-item.ghost .icon { color: var(--emerald); opacity: .8; }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font: 500 14px var(--font-mono); color: var(--muted); white-space: nowrap; }
.marquee-item i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--emerald)); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.card {
    position: relative; border-radius: var(--radius); padding: 28px;
    background: var(--card); border: 1px solid var(--line);
    transition: border-color .3s, transform .35s var(--ease), background .3s;
    overflow: hidden; isolation: isolate;
}
.card.spotlight::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(60, 200, 245, .12), transparent 45%);
}
.card.spotlight:hover::before { opacity: 1; }
.card:hover { border-color: var(--line-strong); }
.card.lift:hover { transform: translateY(-4px); }

.icon-badge {
    width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
    background: var(--grad-soft); border: 1px solid rgba(255, 255, 255, .1); color: var(--emerald);
}
.icon-badge.gold { color: var(--gold); background: rgba(247, 197, 72, .1); }
.icon-badge.violet { color: var(--violet); background: rgba(139, 123, 255, .12); }
.icon-badge.cyan { color: var(--cyan); background: rgba(60, 200, 245, .1); }
.icon-badge.rose { color: var(--rose); background: rgba(255, 107, 139, .1); }

.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.tag-list li { font: 12.5px var(--font-mono); color: var(--muted); padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }

/* Bento services grid */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento > .card { grid-column: span 2; display: flex; flex-direction: column; }
.bento > .card.wide { grid-column: span 3; }
.bento > .card.feature { grid-column: span 4; grid-row: span 2; background: linear-gradient(160deg, rgba(52, 228, 166, .09), rgba(10, 14, 24, .2) 45%, rgba(139, 123, 255, .08)); }
.bento > .card .link-arrow { margin-top: auto; padding-top: 18px; }
.bento > .card.feature h3 { font-size: clamp(24px, 2.6vw, 32px); }
.bento > .card.feature p { font-size: 16.5px; max-width: 52ch; }
@media (max-width: 980px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento > .card, .bento > .card.wide { grid-column: span 1; }
    .bento > .card.feature { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 640px) {
    .bento { grid-template-columns: 1fr; }
    .bento > .card.feature { grid-column: span 1; }
}

.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.check-list li .icon { flex: none; margin-top: 3px; color: var(--emerald); }
.check-list.two-col { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .check-list.two-col { grid-template-columns: 1fr; } }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); overflow: hidden; }
.stat { padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-value { font-family: var(--font-display); font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; margin-bottom: 10px; }
.stat-label { color: var(--muted); font-size: 14.5px; }
@media (max-width: 860px) {
    .stats { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- AI pipeline diagram ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
@media (max-width: 980px) { .split { grid-template-columns: minmax(0, 1fr); } }

.pipeline { display: grid; gap: 0; position: relative; }
.pipe-node {
    position: relative; display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center;
    padding: 18px 20px; border-radius: 16px; background: rgba(12, 16, 28, .75); border: 1px solid var(--line-strong);
}
.pipe-node .icon-badge { margin: 0; width: 52px; height: 52px; }
.pipe-node h4 { font-size: 17px; margin: 0 0 2px; }
.pipe-node p { margin: 0; font-size: 13.5px; color: var(--dim); }
.pipe-node .pipe-meta { font: 12px var(--font-mono); color: var(--emerald); padding: 4px 9px; border-radius: 8px; background: rgba(52, 228, 166, .08); border: 1px solid rgba(52, 228, 166, .2); white-space: nowrap; }
.pipe-link { height: 34px; margin-left: 45px; width: 2px; background: var(--line-strong); position: relative; overflow: hidden; }
.pipe-link::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: linear-gradient(transparent, var(--emerald), transparent); animation: flow 1.8s linear infinite; }
.pipe-link:nth-of-type(4)::after { animation-delay: .45s; } .pipe-link:nth-of-type(6)::after { animation-delay: .9s; } .pipe-link:nth-of-type(8)::after { animation-delay: 1.35s; }
@keyframes flow { to { top: 100%; } }
@media (max-width: 520px) { .pipe-node { grid-template-columns: 44px 1fr; } .pipe-node .pipe-meta { display: none; } .pipe-node .icon-badge { width: 44px; height: 44px; } .pipe-link { margin-left: 41px; } }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; top: 34px; left: 40px; right: calc(25% - 53px); height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), var(--line-strong), transparent); }
.process::after {
    content: ""; position: absolute; top: 34px; left: 40px; right: calc(25% - 53px); height: 2px; margin-top: -.5px; border-radius: 2px;
    background: var(--grad); box-shadow: 0 0 14px rgba(60, 200, 245, .55);
    transform-origin: left center; transform: scaleX(var(--p, 0)); transition: transform .15s linear;
}
.step { position: relative; padding: 0 6px; }
.step-num {
    position: relative; width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 22px;
    font: 600 20px var(--font-mono); background: var(--bg-elev); border: 1px solid var(--line-strong);
}
.step-num::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .35; transition: opacity .5s; }
.step-num { z-index: 1; color: var(--muted); transition: color .5s, box-shadow .5s, transform .5s var(--ease); }
.step.lit .step-num { color: var(--text); box-shadow: 0 0 0 5px rgba(52, 228, 166, .07), 0 12px 34px -8px rgba(52, 228, 166, .55); transform: translateY(-2px); }
.step.lit .step-num::after { opacity: 1; }
.no-progress .step-num { color: var(--text); } .no-progress .step-num::after { opacity: .8; }
.step h3 { font-size: 20px; }
.step p { color: var(--muted); font-size: 15px; }
.step .step-time { display: inline-block; font: 12.5px var(--font-mono); color: var(--gold); margin-bottom: 10px; }
@media (max-width: 920px) { .process { grid-template-columns: 1fr 1fr; gap: 36px 18px; } .process::before, .process::after { display: none; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ---------- Comparison ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare .card { padding: 32px; }
.compare .card.us { background: linear-gradient(160deg, rgba(52, 228, 166, .1), rgba(10, 14, 24, .3) 60%); border-color: rgba(52, 228, 166, .3); }
.compare h3 { display: flex; align-items: center; gap: 10px; }
.compare .x-list li .icon { color: var(--rose); }
.x-list li span { background: linear-gradient(rgba(255, 107, 139, .75), rgba(255, 107, 139, .75)) no-repeat 0 58% / 0 1.5px; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size .7s var(--ease), color .7s; }
.js .compare .card.in .x-list li span { background-size: 100% 1.5px; color: var(--dim); }
.x-list li:nth-child(1) span { transition-delay: .5s; } .x-list li:nth-child(2) span { transition-delay: .7s; } .x-list li:nth-child(3) span { transition-delay: .9s; }
.x-list li:nth-child(4) span { transition-delay: 1.1s; } .x-list li:nth-child(5) span { transition-delay: 1.3s; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* ---------- Industries ---------- */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.industry { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); transition: border-color .3s, background .3s; }
.industry:hover { border-color: var(--line-strong); background: var(--card-hover); }
.industry .icon-badge { margin: 0; flex: none; width: 44px; height: 44px; border-radius: 12px; }
.industry h3 { font-size: 17px; margin-bottom: 4px; }
.industry p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }
@media (max-width: 920px) { .industries { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .industries { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--card); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: var(--line-strong); background: var(--card-hover); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font: 600 17px var(--font-display); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; content: "+" / ""; font: 400 24px var(--font-mono); color: var(--emerald); transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 24px 22px; color: var(--muted); }
.faq .faq-body p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 80px);
    background: radial-gradient(800px 400px at 0% 0%, rgba(52, 228, 166, .22), transparent 60%),
                radial-gradient(700px 400px at 100% 100%, rgba(139, 123, 255, .25), transparent 60%),
                var(--bg-elev);
    border: 1px solid var(--line-strong); text-align: center;
}
.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); max-width: 22ch; margin: 0 auto 18px; }
.cta-band .lead { margin: 0 auto 32px; }
.cta-band .btn-row { justify-content: center; }
.cta-band .cta-note { margin-top: 20px; font-size: 13.5px; color: var(--dim); }
@media (max-width: 520px) {
    .cta-band { padding: 44px 20px; }
    .btn-lg { padding: 16px 22px; font-size: 15px; }
    .btn-row .btn { max-width: 100%; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); letter-spacing: -.035em; max-width: 16ch; }
.page-hero .lead { margin-top: 8px; }

/* ---------- Services page ---------- */
.service-block { display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 4vw, 64px); padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.service-block:first-of-type, .service-tabs-wrap + .service-block { border-top: 0; }
.service-block .service-intro { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.service-block .service-intro .num { font: 13px var(--font-mono); color: var(--dim); display: block; margin-bottom: 14px; }
.service-block h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.service-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.service-detail-grid .card { padding: 22px; }
.service-detail-grid .card h3 { font-size: 16.5px; margin-bottom: 6px; display: flex; gap: 10px; align-items: center; }
.service-detail-grid .card h3 .icon { color: var(--emerald); }
.service-detail-grid .card p { margin: 0; font-size: 14.5px; }
.outcome { margin-top: 14px; padding: 18px 22px; border-radius: 14px; border: 1px dashed rgba(247, 197, 72, .35); background: rgba(247, 197, 72, .05); font-size: 15px; color: var(--muted); }
.outcome strong { color: var(--gold); font-weight: 600; }
@media (max-width: 920px) {
    .service-block { grid-template-columns: 1fr; }
    .service-block .service-intro { position: static; }
}
@media (max-width: 600px) { .service-detail-grid { grid-template-columns: 1fr; } }

.service-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.service-nav a { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; color: var(--muted); background: var(--card); transition: color .2s, border-color .2s; }
.service-nav a:hover { color: var(--text); border-color: var(--emerald); }

.engagements { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.engagements .card { display: flex; flex-direction: column; }
.engagements .card.recommended { border-color: rgba(52, 228, 166, .4); background: linear-gradient(170deg, rgba(52, 228, 166, .08), transparent 55%); }
.engagements .badge { position: absolute; top: 20px; right: 20px; }
.engagements .card .check-list { margin-bottom: 4px; }
@media (max-width: 920px) { .engagements { grid-template-columns: 1fr; } }

.badge { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(52, 228, 166, .12); color: var(--emerald); border: 1px solid rgba(52, 228, 166, .3); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
@media (max-width: 920px) { .about-grid { grid-template-columns: 1fr; } }
.profile-card { position: sticky; top: calc(var(--header-h) + 24px); padding: 0; }
.profile-visual { position: relative; aspect-ratio: 4 / 3.4; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 30% 20%, rgba(52, 228, 166, .25), transparent 55%), radial-gradient(circle at 80% 90%, rgba(139, 123, 255, .3), transparent 55%), var(--bg-elev); border-bottom: 1px solid var(--line); }
.profile-monogram { font: 700 clamp(84px, 12vw, 128px)/1 var(--font-display); letter-spacing: -.05em; }
.profile-visual .orbit { position: absolute; inset: 14%; border: 1px dashed rgba(255, 255, 255, .12); border-radius: 50%; animation: spin 40s linear infinite; }
.profile-visual .orbit::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 18px var(--emerald); }
.profile-visual .orbit.o2 { inset: 4%; animation-duration: 60s; animation-direction: reverse; }
.profile-visual .orbit.o2::before { background: var(--gold); box-shadow: 0 0 18px var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }
.profile-body { padding: 26px 28px 28px; }
.profile-body h2 { font-size: 24px; margin-bottom: 4px; }
.profile-body .role { color: var(--emerald); font-size: 14px; margin-bottom: 18px; }
.profile-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.profile-facts li { display: flex; gap: 12px; align-items: center; font-size: 14.5px; color: var(--muted); }
.profile-facts .icon { color: var(--dim); flex: none; }
@media (max-width: 920px) { .profile-card { position: static; } }

.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 8px; }
.prose p { color: var(--muted); font-size: 17px; }
.prose p strong { color: var(--text); font-weight: 600; }

.timeline { list-style: none; padding: 0; margin: 36px 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--emerald), var(--cyan), var(--violet)); opacity: .5; border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 34px 48px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--emerald); }
.timeline li.now::before { background: var(--emerald); box-shadow: 0 0 0 6px rgba(52, 228, 166, .15); }
.timeline .era { font: 12.5px var(--font-mono); color: var(--gold); letter-spacing: .06em; text-transform: uppercase; }
.timeline h3 { font-size: 20px; margin: 4px 0 6px; }
.timeline p { color: var(--muted); margin: 0; font-size: 15.5px; }

.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 640px) { .values { grid-template-columns: 1fr; } }

.skills-cloud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.skills-cloud .card { padding: 22px; }
.skills-cloud h3 { font-size: 15px; font-family: var(--font-mono); font-weight: 500; color: var(--emerald); letter-spacing: .02em; margin-bottom: 12px; }
.skills-cloud .tag-list { margin: 0; }
@media (max-width: 980px) { .skills-cloud { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .skills-cloud { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { padding: clamp(24px, 4vw, 40px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 13.5px; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.field label .opt { color: var(--dim); font-weight: 400; }
.input, .field input, .field select, .field textarea {
    width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong);
    background: rgba(5, 7, 13, .6); color: var(--text); font: 15px var(--font-body);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a3adbf' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field select option { background: var(--bg-elev); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(52, 228, 166, .14); background: rgba(5, 7, 13, .85); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field .invalid { border-color: var(--rose); }
.validation-message { color: var(--rose); font-size: 13px; margin-top: 6px; }
.form-error { margin-bottom: 20px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid rgba(255, 107, 139, .4); background: rgba(255, 107, 139, .08); font-size: 14.5px; }
.form-error strong { display: block; margin-bottom: 2px; color: var(--rose); }
.form-error a { text-decoration: underline; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-group input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.chip-group label { margin: 0; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); cursor: pointer; font-size: 14px; color: var(--muted); transition: all .2s; }
.chip-group label:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.chip-group input:checked + label { color: #04110c; background: var(--emerald); border-color: var(--emerald); font-weight: 600; }
.chip-group input:focus-visible + label { outline: 2px solid var(--cyan); outline-offset: 2px; }

.form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.form-footer small { color: var(--dim); font-size: 13px; max-width: 42ch; }

.success-panel { text-align: center; padding: clamp(36px, 6vw, 64px) clamp(20px, 4vw, 40px); }
.success-icon { width: 76px; height: 76px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #04110c; box-shadow: 0 0 0 10px rgba(52, 228, 166, .1), 0 20px 50px -10px rgba(52, 228, 166, .5); animation: pop .6s var(--ease); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.success-panel h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }

.contact-side { display: grid; gap: 16px; }
.contact-method { display: flex; gap: 16px; align-items: center; padding: 20px; }
.contact-method .icon-badge { margin: 0; flex: none; }
.contact-method .label { display: block; font-size: 15px; margin: 0 0 2px; color: var(--dim); font-weight: 500; }
.contact-method a, .contact-method span.value { font-size: 16px; font-weight: 600; word-break: break-word; }
.contact-method a:hover { color: var(--emerald); }
.next-steps { list-style: none; padding: 0; margin: 0; counter-reset: ns; display: grid; gap: 16px; }
.next-steps li { counter-increment: ns; display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 14.5px; color: var(--muted); }
.next-steps li::before { content: counter(ns); width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font: 600 13px var(--font-mono); color: var(--emerald); background: rgba(52, 228, 166, .1); border: 1px solid rgba(52, 228, 166, .25); }
.next-steps strong { color: var(--text); display: block; font-weight: 600; }

/* ---------- AI Readiness ---------- */
.quiz-shell { max-width: 860px; margin: 0 auto; }
.quiz-card { padding: clamp(24px, 4vw, 44px); }
.quiz-progress { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.quiz-progress .bar { flex: 1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.quiz-progress .bar span { display: block; height: 100%; background: var(--grad); border-radius: inherit; transition: width .5s var(--ease); }
.quiz-progress .count { font: 13px var(--font-mono); color: var(--dim); white-space: nowrap; }
.quiz-dimension { display: inline-flex; align-items: center; gap: 8px; font: 12.5px var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin-bottom: 14px; }
.quiz-question { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin-bottom: 26px; }
.quiz-options { display: grid; gap: 12px; }
.quiz-option {
    display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 18px 20px; border-radius: 14px;
    border: 1px solid var(--line-strong); background: rgba(5, 7, 13, .4); color: var(--text); font: 15.5px var(--font-body); cursor: pointer;
    transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.quiz-option:hover { border-color: var(--emerald); background: rgba(52, 228, 166, .06); transform: translateX(4px); }
.quiz-option.selected { border-color: var(--emerald); background: rgba(52, 228, 166, .1); }
.quiz-option .key { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font: 600 13px var(--font-mono); border: 1px solid var(--line-strong); color: var(--muted); }
.quiz-option.selected .key { background: var(--emerald); color: #04110c; border-color: var(--emerald); }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; }
.quiz-anim { animation: slideIn .45s var(--ease); }
@keyframes slideIn { from { opacity: 0; transform: translateY(14px); } }

.result-top { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center; margin-bottom: 36px; }
@media (max-width: 640px) { .result-top { grid-template-columns: 1fr; text-align: center; } .result-top .gauge { margin: 0 auto; } }
.gauge { position: relative; width: 220px; height: 220px; }
.gauge svg { transform: rotate(-90deg); }
.gauge-track { stroke: rgba(255, 255, 255, .07); }
.gauge-value { transition: stroke-dashoffset 1.4s var(--ease); }
.gauge-label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.gauge-label strong { display: block; font: 600 54px/1 var(--font-display); letter-spacing: -.04em; }
.gauge-label span { font-size: 13px; color: var(--dim); }
.level-name { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 8px; }
.dim-bars { display: grid; gap: 16px; margin: 8px 0 36px; }
.dim-bar-head { display: flex; justify-content: space-between; font-size: 14.5px; margin-bottom: 7px; }
.dim-bar-head span:last-child { font-family: var(--font-mono); color: var(--muted); }
.dim-bar { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.dim-bar span { display: block; height: 100%; border-radius: inherit; background: var(--grad); animation: grow 1.2s var(--ease) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.recs { display: grid; gap: 12px; margin-bottom: 32px; }
.rec { display: flex; gap: 14px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: rgba(5, 7, 13, .4); }
.rec .icon { flex: none; color: var(--gold); margin-top: 2px; }
.rec h4 { font-size: 16px; margin: 0 0 4px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.rec p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }


@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
    .js .terminal-body .ln { opacity: 1; transform: none; }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(10, 14, 24, .8)); padding: clamp(48px, 6vw, 72px) 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 36px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; margin: 18px 0 20px; max-width: 38ch; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-strong); color: var(--muted); transition: color .2s, border-color .2s; }
.footer-social a:hover { color: var(--emerald); border-color: var(--emerald); }
.footer-heading { font: 500 13px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--muted); font-size: 14.5px; transition: color .2s; }
.site-footer ul a:hover { color: var(--text); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.footer-contact .icon { flex: none; margin-top: 4px; color: var(--emerald); }
.footer-contact a { word-break: break-all; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.za-badge { display: inline-flex; align-items: center; gap: 10px; }
.za-stripe { width: 28px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #007749 0 25%, #ffb612 25% 40%, #000 40% 55%, #de3831 55% 70%, #fff 70% 80%, #002395 80%); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.not-found .code { font: 700 clamp(96px, 18vw, 180px)/1 var(--font-display); letter-spacing: -.06em; }

/* ---------- Blazor plumbing ---------- */
#blazor-error-ui {
    color-scheme: light only; background: #fff4d6; color: #222; bottom: 0; box-shadow: 0 -1px 2px rgba(0, 0, 0, .2);
    box-sizing: border-box; display: none; left: 0; padding: .6rem 1.25rem .7rem 1.25rem; position: fixed; width: 100%; z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }
.blazor-error-boundary { background: #b32121; padding: 1rem; color: white; border-radius: 12px; }
.blazor-error-boundary::after { content: "An error has occurred."; }

.gauge-value { animation: gaugeFill 1.6s var(--ease) both; }
@keyframes gaugeFill { from { stroke-dashoffset: 603.19; } }

@media (max-width: 920px) and (min-width: 601px) {
    .profile-card { display: grid; grid-template-columns: 260px 1fr; }
    .profile-visual { aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-right: 1px solid var(--line); }
}
@media (max-width: 600px) { .profile-visual { aspect-ratio: 16 / 9; } }

/* =========================================================================
   Interaction layer: motion, delight and a few easter eggs.
   Everything below is progressive enhancement; the site reads fine without it.
   ========================================================================= */

/* ---------- Ambient extras ---------- */
body::after {
    content: ""; position: fixed; inset: 0; z-index: 95; pointer-events: none; opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scroll-progress {
    position: fixed; top: 0; left: 0; z-index: 70; width: 100%; height: 2px; pointer-events: none;
    transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); box-shadow: 0 0 12px rgba(60, 200, 245, .6);
}
.cursor-glow {
    position: fixed; top: 0; left: 0; z-index: -1; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%;
    pointer-events: none; opacity: 0; transition: opacity .8s; will-change: transform;
    background: radial-gradient(circle, rgba(60, 200, 245, .085), rgba(52, 228, 166, .04) 35%, transparent 65%);
}
.cursor-glow.on { opacity: 1; }
main.page-enter { animation: page-in .55s var(--ease); }
@keyframes page-in { from { opacity: 0; transform: translateY(12px); } }

/* Rotating conic highlight that travels around a card's border */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.glow-border::after {
    content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1px; pointer-events: none;
    background: conic-gradient(from var(--angle), transparent 0deg 220deg, rgba(52, 228, 166, .95) 275deg, rgba(60, 200, 245, .95) 315deg, rgba(139, 123, 255, .95) 345deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    animation: border-spin 6s linear infinite;
}
@keyframes border-spin { to { --angle: 360deg; } }

/* 3D tilt (transform is driven from site.js) */
.tilt { will-change: transform; transition: transform .6s var(--ease), border-color .3s, background .3s; }
.tilt.tilting { transition: transform .1s linear, border-color .3s, background .3s; }

/* Icon micro-animations on hover */
.card:hover .icon-badge[data-anim] .icon,
.industry:hover .icon-badge[data-anim] .icon,
.pipe-node:hover .icon-badge[data-anim] .icon { animation: var(--icon-anim, icon-pulse) .9s var(--ease); }
.icon-badge { transition: box-shadow .4s; }
.card:hover .icon-badge, .industry:hover .icon-badge { box-shadow: 0 0 26px -8px currentColor; }
[data-anim="spin"] { --icon-anim: icon-spin; }
[data-anim="wiggle"] { --icon-anim: icon-wiggle; }
[data-anim="bounce"] { --icon-anim: icon-bounce; }
[data-anim="pulse"] { --icon-anim: icon-pulse; }
[data-anim="float"] { --icon-anim: icon-float; }
[data-anim="swing"] { --icon-anim: icon-swing; }
@keyframes icon-spin { to { transform: rotate(360deg); } }
@keyframes icon-wiggle { 20% { transform: rotate(-14deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(3deg); } }
@keyframes icon-bounce { 30% { transform: translateY(-6px); } 55% { transform: translateY(0); } 75% { transform: translateY(-3px); } }
@keyframes icon-pulse { 35% { transform: scale(1.25); } 65% { transform: scale(.94); } }
@keyframes icon-float { 50% { transform: translateY(-5px) scale(1.06); } }
@keyframes icon-swing { 25% { transform: rotate(-35deg); } 55% { transform: rotate(25deg); } 80% { transform: rotate(-8deg); } }

/* ---------- Live eval panel (AI feature card) ---------- */
.evals { margin-top: 24px; padding: 16px 18px 12px; border-radius: 14px; background: rgba(5, 7, 13, .55); border: 1px solid var(--line); font-size: 13.5px; }
.evals-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; margin-bottom: 8px; font: 12px var(--font-mono); color: var(--dim); }
.evals-status { color: var(--emerald); }
.eval-row { display: grid; grid-template-columns: minmax(110px, 150px) 1fr 70px; align-items: center; gap: 14px; padding: 6px 0; }
.eval-row > span { color: var(--muted); }
.eval-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.eval-bar b { display: block; height: 100%; border-radius: inherit; background: var(--bar, var(--emerald)); transform-origin: left; transform: scaleX(var(--v, 0)); transition: transform 1.2s var(--ease); }
.js .reveal:not(.in) .eval-bar b { transform: scaleX(0); }
.eval-row em { font: 500 13px var(--font-mono); font-style: normal; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .eval-row { grid-template-columns: 96px 1fr 58px; gap: 10px; font-size: 12.5px; } }

/* ---------- RAG chat demo ---------- */
.chat {
    position: relative; border-radius: var(--radius); overflow: hidden;
    background: linear-gradient(180deg, rgba(16, 21, 35, .92), rgba(9, 12, 21, .96));
    border: 1px solid var(--line-strong); box-shadow: 0 40px 120px -40px rgba(139, 123, 255, .35);
}
.chat-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-bar strong { display: block; font-size: 14.5px; line-height: 1.2; }
.chat-bar small { display: block; font: 11.5px var(--font-mono); color: var(--dim); }
.chat-bar .badge { margin-left: auto; }
.chat-body { padding: 20px 18px 12px; height: 318px; overflow: hidden; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 90%; padding: 12px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.6; animation: msg-in .45s var(--ease) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.msg.user { align-self: flex-end; color: var(--text); background: linear-gradient(135deg, rgba(52, 228, 166, .16), rgba(60, 200, 245, .12)); border: 1px solid rgba(52, 228, 166, .25); border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.bot p { margin: 0; color: var(--text); }
.typing { display: inline-flex; gap: 5px; padding: 6px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .35; } 30% { transform: translateY(-4px); opacity: 1; } }
.stream-caret { display: inline-block; width: 7px; height: 15px; margin-left: 3px; background: var(--emerald); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.cites { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cite { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 8px; font: 12px var(--font-mono); color: var(--cyan); background: rgba(60, 200, 245, .08); border: 1px solid rgba(60, 200, 245, .22); animation: msg-in .4s var(--ease) both; }
.cite:nth-child(2) { animation-delay: .12s; } .cite:nth-child(3) { animation-delay: .24s; }
.trace { list-style: none; margin: 0; padding: 14px 18px 4px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; border-top: 1px solid var(--line); background: rgba(5, 7, 13, .35); }
.trace li { display: flex; flex-direction: column; gap: 5px; font: 11.5px var(--font-mono); color: var(--dim); overflow-wrap: anywhere; }
.trace li::before { content: ""; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); transition: background .3s; }
.trace li[data-state="running"]::before { background: linear-gradient(90deg, transparent, var(--cyan), transparent) 0 0 / 200% 100%, rgba(60, 200, 245, .15); animation: trace-run .9s linear infinite; }
.trace li[data-state="done"]::before { background: var(--emerald); }
.trace li[data-state="running"] span { color: var(--text); }
.trace li[data-state="done"] span { color: var(--muted); }
.trace em { font-style: normal; min-height: 1.5em; color: var(--dim); font-variant-numeric: tabular-nums; }
.trace li[data-state="done"] em { color: var(--emerald); }
@keyframes trace-run { from { background-position: 100% 0, 0 0; } to { background-position: -100% 0, 0 0; } }
.chat-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 18px 16px; font: 12px var(--font-mono); color: var(--dim); background: rgba(5, 7, 13, .35); }
.chat-foot b { color: var(--text); font-weight: 500; transition: color .3s; }
@media (max-width: 520px) { .trace { gap: 6px; padding-inline: 12px; } .trace li { font-size: 10px; } .chat-body { height: 430px; } }

/* ---------- FAQ: animate open/close where supported ---------- */
.faq details::details-content { block-size: 0; overflow-y: clip; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* ---------- Live SAST status ---------- */
.live-status { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--dim); }
.live-status .live-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--gold); box-shadow: 0 0 10px rgba(247, 197, 72, .5); }
.live-status.online .live-dot { background: var(--emerald); box-shadow: none; animation: pulse 2s infinite; }
.live-status time { font-family: var(--font-mono); color: var(--muted); }
.cta-band .live-status { margin-top: 18px; }

/* ---------- Footer extras ---------- */
.ls-toggle {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; cursor: pointer;
    border: 1px dashed rgba(247, 197, 72, .35); background: transparent; color: var(--dim); font: 12.5px var(--font-body);
    transition: color .2s, border-color .2s, background .2s;
}
.ls-toggle:hover { color: var(--gold); border-color: var(--gold); background: rgba(247, 197, 72, .06); }
.ls-toggle .icon { color: var(--gold); }
.footer-wordmark {
    position: relative; margin: clamp(40px, 6vw, 72px) 0 calc(-1 * clamp(24px, 3vw, 40px)); text-align: center; white-space: nowrap; overflow: hidden;
    font: 700 min(calc((100vw - 2 * var(--gutter)) / 7.9), 150px)/.82 var(--font-display); letter-spacing: -.055em;
    color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .07); user-select: none;
    background: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(52, 228, 166, .7), rgba(60, 200, 245, .35) 35%, transparent 70%);
    -webkit-background-clip: text; background-clip: text;
}

/* ---------- Command palette ---------- */
.cmdk { position: fixed; inset: 0; z-index: 200; display: grid; justify-items: center; align-items: start; padding: max(12vh, 64px) 16px 16px; }
.cmdk[hidden] { display: none; }
.cmdk-backdrop { position: absolute; inset: 0; background: rgba(3, 5, 10, .66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade-in .2s ease-out; }
@keyframes fade-in { from { opacity: 0; } }
.cmdk-panel {
    position: relative; width: min(640px, 100%); max-height: calc(100vh - max(12vh, 64px) - 16px); display: flex; flex-direction: column;
    border-radius: 18px; overflow: hidden; background: rgba(12, 16, 28, .97); border: 1px solid var(--line-strong);
    box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .03) inset;
    animation: cmdk-in .3s var(--ease);
}
@keyframes cmdk-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.cmdk-search { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--dim); }
.cmdk-search input { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: none; color: var(--text); font: 16px var(--font-body); }
.cmdk-search input::placeholder { color: var(--dim); }
.cmdk-list { list-style: none; margin: 0; padding: 8px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.cmdk-group { padding: 12px 12px 6px; font: 500 11px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-size: 14.5px; cursor: pointer; scroll-margin: 8px; }
.cmdk-item .icon { color: var(--dim); flex: none; transition: color .15s; }
.cmdk-item .cmdk-hint { margin-left: auto; font: 12px var(--font-mono); color: var(--dim); }
.cmdk-item[aria-selected="true"] { color: var(--text); background: rgba(52, 228, 166, .1); }
.cmdk-item[aria-selected="true"] .icon { color: var(--emerald); }
.cmdk-item[hidden], .cmdk-group[hidden] { display: none; }
.cmdk-empty { padding: 30px 16px; text-align: center; color: var(--dim); font-size: 14px; }
.cmdk-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.cmdk-foot span { display: inline-flex; align-items: center; gap: 6px; }
@media (pointer: coarse) { .cmdk-foot, .cmdk-search kbd { display: none; } }

/* ---------- Toasts ---------- */
.toast-host { position: fixed; left: 50%; bottom: 28px; z-index: 250; display: grid; gap: 8px; justify-items: center; transform: translateX(-50%); pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast {
    display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; font-size: 14px; color: var(--text);
    background: rgba(14, 19, 32, .96); border: 1px solid var(--line-strong); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9);
    animation: toast-in .4s var(--ease);
}
.toast-icon { font-size: 16px; line-height: 1; }
.toast.out { animation: toast-out .3s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(.97); } }

/* ---------- Back to top ---------- */
.to-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 50px; height: 50px; padding: 0; border-radius: 50%; cursor: pointer;
    display: grid; place-items: center; color: var(--text); border: 1px solid var(--line-strong);
    background: rgba(10, 14, 24, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9);
    transition: opacity .3s, transform .4s var(--ease), visibility 0s .4s, border-color .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .4s var(--ease), border-color .2s; }
.to-top:hover { border-color: var(--emerald); }
.to-top .ring { position: absolute; inset: -1px; width: 50px; height: 50px; transform: rotate(-90deg); pointer-events: none; }
.to-top .ring circle { fill: none; stroke: var(--emerald); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 150.8; stroke-dashoffset: 150.8; }
.to-top .icon { transition: transform .3s var(--ease); }
.to-top:hover .icon { transform: translateY(-2px); }

/* ---------- Load-shedding mode (easter egg) ---------- */
.ls-overlay {
    position: fixed; inset: 0; z-index: 150; pointer-events: none; opacity: 0; visibility: hidden;
    background: radial-gradient(circle 220px at var(--lx, 50%) var(--ly, 45%), rgba(255, 214, 140, .06) 0%, rgba(255, 200, 120, .03) 35%, rgba(1, 2, 4, .955) 100%);
    transition: opacity .6s, visibility 0s linear .6s;
}
html.loadshedding .ls-overlay { opacity: 1; visibility: visible; transition: none; animation: power-cut 1.2s steps(1, end) both; }
html.ls-restoring .ls-overlay { visibility: visible; animation: power-back .8s steps(1, end) both; }
@keyframes power-cut { 0% { opacity: 0; } 8% { opacity: 1; } 15% { opacity: .15; } 22% { opacity: 1; } 30% { opacity: .45; } 36%, 100% { opacity: 1; } }
@keyframes power-back { 0% { opacity: 1; } 20% { opacity: .25; } 35% { opacity: .9; } 55%, 100% { opacity: 0; } }
html.loadshedding .aurora { opacity: .06; transition: opacity .3s; }
html.loadshedding .cursor-glow { opacity: 0; }
.ls-banner {
    position: fixed; top: 14px; left: 50%; z-index: 160; width: min(720px, calc(100% - 24px));
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 12px 12px 18px; border-radius: 16px;
    background: rgba(20, 15, 4, .94); border: 1px solid rgba(247, 197, 72, .45); color: #f3dfa6; font-size: 14px;
    box-shadow: 0 20px 60px -20px rgba(247, 197, 72, .35);
    visibility: hidden; transform: translate(-50%, calc(-100% - 30px)); transition: transform .6s var(--ease), visibility 0s .6s;
}
html.loadshedding .ls-banner { visibility: visible; transform: translate(-50%, 0); transition: transform .6s var(--ease) .5s; }
.ls-banner strong { color: var(--gold); }
.ls-banner .ls-bolt { display: inline-flex; color: var(--gold); animation: icon-pulse 1.6s ease-in-out infinite; }
.ls-banner .ls-timer { font: 500 13px var(--font-mono); color: var(--gold); font-variant-numeric: tabular-nums; }
.ls-banner .btn { margin-left: auto; padding: 10px 16px; font-size: 13.5px; border: 0; background: var(--gold); color: #1b1300; }
.ls-banner .btn:hover { background: #ffd666; }

/* ---------- Services: sticky tabs + scrollspy ---------- */
.service-tabs-wrap { position: sticky; top: calc(var(--header-h) + 10px); z-index: 30; display: flex; margin-bottom: 6px; pointer-events: none; }
.service-tabs {
    pointer-events: auto; position: relative; display: flex; gap: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none;
    padding: 5px; border-radius: 999px; border: 1px solid var(--line-strong);
    background: rgba(8, 11, 20, .84); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .9);
}
.service-tabs::-webkit-scrollbar { display: none; }
@media (max-width: 760px) { .service-tabs { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); } }
.service-tabs a { flex: none; padding: 8px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .2s, background .25s; }
.service-tabs a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.service-tabs a.active { color: #04110c; background: var(--emerald); font-weight: 600; }
.service-block { scroll-margin-top: 60px; } /* added to html's scroll-padding: clears the sticky tabs */
.service-block .service-intro { top: calc(var(--header-h) + 90px); }
.service-visual { margin-top: 14px; }

/* Before / after modernisation slider */
.ba {
    --pos: 50%; position: relative; margin: 0; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line-strong); container-type: inline-size; user-select: none; touch-action: pan-y; background: #0b1020;
}
.ba-pane { position: absolute; inset: 0; font-size: clamp(6px, 1.55cqw, 12px); line-height: 1.35; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 18px rgba(60, 200, 245, .9); pointer-events: none; }
.ba-handle span {
    position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px; border-radius: 50%; display: grid; place-items: center;
    color: #05070d; background: #fff; box-shadow: 0 8px 26px -6px rgba(0, 0, 0, .7), 0 0 0 6px rgba(255, 255, 255, .18);
}
.ba-range:focus-visible ~ .ba-handle span { outline: 3px solid var(--cyan); outline-offset: 3px; }
.ba-label { position: absolute; top: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px; font: 600 11px var(--font-mono); letter-spacing: .04em; pointer-events: none; }
.ba-label.left { left: 12px; background: #fff; color: #000080; }
.ba-label.right { right: 12px; background: var(--emerald); color: #04110c; }
.ba-caption { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--dim); }

.ba-before { background: #3a6ea5; padding: 3.5%; }
.w98 { height: 100%; display: flex; flex-direction: column; padding: 3px; background: #d4d0c8; color: #000; font-family: Tahoma, "MS Sans Serif", Verdana, sans-serif; box-shadow: inset -1px -1px #404040, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf; }
.w98-title { display: flex; justify-content: space-between; align-items: center; padding: .25em .4em; color: #fff; font-weight: bold; background: linear-gradient(90deg, #0a246a, #a6caf0); }
.w98-btns { display: flex; gap: 2px; }
.w98-btns i { display: grid; place-items: center; width: 1.45em; height: 1.25em; font-style: normal; font-size: .85em; color: #000; background: #d4d0c8; box-shadow: inset -1px -1px #404040, inset 1px 1px #fff; }
.w98-menu { display: flex; gap: 1.1em; padding: .3em .5em; }
.w98-body { flex: 1; margin: 2px; padding: .7em; overflow: hidden; background: #fff; font-family: "Times New Roman", Times, serif; box-shadow: inset 1px 1px #808080, inset -1px -1px #fff; }
.w98-banner { margin-bottom: .45em; font: bold 1.7em "Comic Sans MS", "Times New Roman", serif; color: #000080; }
.w98-new { margin-left: .3em; font: bold .55em Arial, sans-serif; color: red; vertical-align: super; animation: blink 1s steps(1) infinite; }
.w98-form { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; margin-bottom: .7em; font-family: Tahoma, sans-serif; }
.w98-input { min-width: 9em; padding: .15em .4em; background: #fff; box-shadow: inset 1px 1px #808080, inset -1px -1px #dfdfdf; }
.w98-btn { padding: .2em .8em; background: #d4d0c8; box-shadow: inset -1px -1px #404040, inset 1px 1px #fff, inset -2px -2px #808080; }
.w98-grid { width: 100%; border-collapse: collapse; font-family: Arial, sans-serif; }
.w98-grid th { padding: .2em .45em; text-align: left; color: #fff; background: #000080; border: 1px solid #808080; }
.w98-grid td { padding: .2em .45em; border: 1px solid #c0c0c0; }
.w98-grid tr:nth-child(even) td { background: #ffffe1; }
.w98-pager { margin-top: .6em; font-family: Arial, sans-serif; color: #0000ee; text-decoration: underline; }
.w98-status { display: flex; justify-content: space-between; margin: 2px; padding: .2em .45em; font-size: .9em; box-shadow: inset 1px 1px #808080, inset -1px -1px #fff; }

.m-app { position: absolute; inset: 0; display: grid; grid-template-columns: 4.4em 1fr; background: #0b1020; color: var(--text); font-family: var(--font-body); }
.m-side { display: flex; flex-direction: column; align-items: center; gap: 1.1em; padding-top: 1.3em; background: #070b16; border-right: 1px solid var(--line); }
.m-side i { width: 1.7em; height: 1.7em; border-radius: .55em; background: rgba(255, 255, 255, .07); }
.m-side i.on { background: var(--grad); }
.m-main { display: flex; flex-direction: column; gap: 1em; min-width: 0; padding: 1.4em 1.6em; overflow: hidden; }
.m-head { display: flex; justify-content: space-between; align-items: center; }
.m-head b { font: 600 1.55em var(--font-display); letter-spacing: -.02em; }
.m-note { font-size: .9em; color: var(--muted); }
.m-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8em; }
.m-kpi { padding: .75em .9em; border-radius: .8em; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.m-kpi span { display: block; font-size: .82em; color: var(--dim); }
.m-kpi strong { font: 600 1.45em var(--font-display); }
.m-kpi em { margin-left: .4em; font-style: normal; font-size: .8em; color: var(--emerald); }
.m-chart { height: 6.2em; padding: .6em; border-radius: .8em; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.m-chart svg { width: 100%; height: 100%; }
.m-table { display: grid; gap: .35em; font-size: .92em; }
.m-row { display: grid; grid-template-columns: 1fr 2.3fr .8fr 1.1fr; align-items: center; padding: .5em .8em; border-radius: .6em; background: rgba(255, 255, 255, .03); }
.m-row.h { padding-block: 0; background: none; color: var(--dim); font-size: .85em; }
.m-pill { justify-self: start; padding: .15em .65em; border-radius: 999px; font-size: .82em; color: var(--emerald); background: rgba(52, 228, 166, .12); }
.m-pill.low { color: var(--gold); background: rgba(247, 197, 72, .12); }

/* Retail: printing receipt + sync log */
.receipt-demo { display: grid; grid-template-columns: minmax(200px, 250px) 1fr; gap: 28px; align-items: start; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.printer { position: relative; z-index: 1; height: 28px; border-radius: 10px 10px 4px 4px; background: linear-gradient(#2c3346, #171c2a); border: 1px solid var(--line-strong); }
.printer::before { content: ""; position: absolute; left: 9%; right: 9%; bottom: 5px; height: 3px; border-radius: 3px; background: #020306; }
.printer::after { content: ""; position: absolute; right: 10px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 8px var(--emerald); }
.receipt-demo.printing .printer::after { animation: blink .3s steps(1) infinite; }
.receipt-clip { height: 262px; margin: -6px 11% 0; overflow: hidden; }
.receipt { padding: 16px 14px 18px; background: #f7f5ef; color: #1d1d1f; font: 11.5px/1.65 var(--font-mono); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
.receipt-demo.armed .receipt { transform: translateY(-101%); }
.receipt-demo.armed.printing .receipt { transform: none; transition: transform 2.4s steps(24, end); }
.receipt-demo.armed.fading .receipt { transform: none; opacity: 0; transition: opacity .5s; }
.r-head { margin-bottom: 8px; padding-bottom: 6px; text-align: center; border-bottom: 1px dashed #9a9a9a; }
.r-head b { display: block; letter-spacing: .12em; }
.r-line { display: flex; justify-content: space-between; gap: 8px; }
.r-line.promo { color: #0a7a52; }
.r-total { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 6px; border-top: 1px dashed #9a9a9a; font-weight: 700; }
.r-barcode { height: 30px; margin-top: 12px; background: repeating-linear-gradient(90deg, #1d1d1f 0 2px, transparent 2px 3px, #1d1d1f 3px 4px, transparent 4px 7px, #1d1d1f 7px 10px, transparent 10px 11px); }
.r-foot { margin-top: 6px; text-align: center; font-size: 10px; color: #6b6b6b; }
.sync-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font: 12px var(--font-mono); color: var(--dim); }
.sync-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.sync-log li { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; color: var(--dim); border: 1px solid var(--line); background: rgba(5, 7, 13, .4); transition: color .4s, border-color .4s, background .4s; }
.sync-log li .icon { flex: none; color: var(--dim); opacity: .4; transition: color .4s, opacity .4s; }
.sync-log li em { margin-left: auto; padding-left: 8px; font: 12px var(--font-mono); font-style: normal; white-space: nowrap; color: var(--emerald); opacity: 0; transition: opacity .4s; }
.sync-log li.done { color: var(--text); border-color: rgba(52, 228, 166, .3); background: rgba(52, 228, 166, .06); }
.sync-log li.done .icon { color: var(--emerald); opacity: 1; }
.sync-log li.done em { opacity: 1; }
.demo-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 680px) { .receipt-demo { grid-template-columns: 1fr; } .receipt-demo > div:first-child { width: min(260px, 100%); margin: 0 auto; } }

/* Cloud: CI/CD pipeline run */
.deploy { padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.deploy-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 22px; font: 12.5px var(--font-mono); color: var(--dim); }
.deploy-head .icon { display: inline-block; margin-right: 6px; vertical-align: -4px; }
.deploy-badge { padding: 4px 10px; border-radius: 999px; color: var(--cyan); background: rgba(60, 200, 245, .08); border: 1px solid rgba(60, 200, 245, .3); transition: color .3s, background .3s, border-color .3s; }
.deploy.done .deploy-badge { color: var(--emerald); background: rgba(52, 228, 166, .08); border-color: rgba(52, 228, 166, .35); }
.deploy-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.deploy-stages li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; }
.deploy-stages li::after { content: ""; position: absolute; top: 17px; left: calc(50% + 22px); right: calc(-50% + 17px); height: 2px; border-radius: 2px; background: var(--line-strong); transition: background .4s; }
.deploy-stages li:last-child::after { display: none; }
.deploy-stages li[data-state="done"]::after { background: var(--emerald); }
.deploy-stages li > div { display: flex; flex-direction: column; gap: 2px; }
.st-icon { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: transparent; border: 2px solid var(--line-strong); background: var(--bg-elev); transition: border-color .3s, background .3s, color .3s; }
li[data-state="running"] .st-icon { border-color: rgba(60, 200, 245, .25); border-top-color: var(--cyan); animation: spin .8s linear infinite; }
li[data-state="done"] .st-icon { color: #04110c; border-color: var(--emerald); background: var(--emerald); animation: pop .4s var(--ease); }
.deploy-stages b { font-weight: 600; color: var(--muted); transition: color .3s; }
.deploy-stages em { font: 11.5px var(--font-mono); font-style: normal; color: var(--dim); }
.deploy-stages li[data-state="running"] b, .deploy-stages li[data-state="done"] b { color: var(--text); }
.deploy-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim); }
.deploy-foot b { color: var(--text); font-weight: 600; }
@media (max-width: 640px) {
    .deploy-stages { grid-template-columns: 1fr; gap: 12px; }
    .deploy-stages li { flex-direction: row; text-align: left; gap: 12px; }
    .deploy-stages li::after { display: none; }
}

/* ---------- Approach: sticky intro, timeline progress, Gantt ---------- */
.split.top { align-items: start; }
.split.top > .sticky-col { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 980px) { .split.top > .sticky-col { position: static; } }
.timeline-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: clamp(32px, 5vw, 72px); align-items: start; }
.timeline-layout .timeline { margin-top: 0; }
.timeline-layout .gantt { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 980px) { .timeline-layout { grid-template-columns: 1fr; } .timeline-layout .gantt { position: static; } }

.js .timeline[data-progress]::before { background: var(--line-strong); opacity: 1; }
.js .timeline[data-progress]::after {
    content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px;
    background: linear-gradient(var(--emerald), var(--cyan), var(--violet)); box-shadow: 0 0 12px rgba(52, 228, 166, .55);
    transform-origin: top; transform: scaleY(var(--p, 0));
}
.js .timeline[data-progress] li::before { z-index: 1; border-color: var(--line-strong); transition: border-color .4s, box-shadow .4s, background .4s; }
.js .timeline[data-progress] li.lit::before { border-color: var(--emerald); box-shadow: 0 0 0 5px rgba(52, 228, 166, .1); }
.js .timeline[data-progress] li.now:not(.lit)::before { background: var(--bg); box-shadow: none; }
.js .timeline[data-progress] li.now.lit::before { background: var(--emerald); box-shadow: 0 0 0 6px rgba(52, 228, 166, .18), 0 0 22px var(--emerald); }

.gantt { padding: 24px; }
.gantt-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; font: 12.5px var(--font-mono); color: var(--dim); }
.gantt-head strong { font: 600 16px var(--font-display); color: var(--text); }
.gantt-scale, .gantt-row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 12px; }
.gantt-days { display: grid; grid-template-columns: repeat(10, 1fr); font: 10.5px var(--font-mono); color: var(--dim); text-align: center; }
.gantt-rows { position: relative; display: grid; gap: 10px; margin-top: 10px; }
.gantt-row > span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.gantt-track { position: relative; height: 26px; border-radius: 8px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 calc(10% - 1px), rgba(255, 255, 255, .07) calc(10% - 1px) 10%); }
.gantt-track i {
    position: absolute; top: 4px; bottom: 4px; left: calc(var(--s) * 10% + 2px); width: calc((var(--e) - var(--s)) * 10% - 4px); border-radius: 6px;
    background: var(--c, var(--emerald)); box-shadow: 0 0 16px -4px var(--c, var(--emerald));
    transform-origin: left; transition: transform .9s var(--ease); transition-delay: calc(var(--s) * 110ms + .25s);
}
.js .gantt:not(.in) .gantt-track i { transform: scaleX(0); }
.gantt-track i.diamond { top: 6px; bottom: auto; width: 14px; height: 14px; left: calc(var(--s) * 10% - 10px); border-radius: 3px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 16px var(--gold); }
.js .gantt:not(.in) .gantt-track i.diamond { transform: rotate(45deg) scale(0); }
.gantt-sweep { position: absolute; top: -6px; bottom: -6px; left: 104px; right: 0; pointer-events: none; }
.gantt-sweep::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: linear-gradient(transparent, var(--rose), transparent); box-shadow: 0 0 10px var(--rose); animation: sweep 10s linear infinite; }
@keyframes sweep { to { left: 100%; } }
.gantt-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.gantt-foot b { color: var(--text); font-weight: 600; }

/* ---------- About: orbiting skill chips + fun facts ---------- */
.profile-visual .orbit { inset: auto; left: 50%; top: 50%; height: 62%; aspect-ratio: 1; translate: -50% -50%; }
.profile-visual .orbit.o2 { inset: auto; left: 50%; top: 50%; height: 90%; }
.sat { position: absolute; inset: 0; transform: rotate(var(--a)); pointer-events: none; }
.sat b {
    position: absolute; top: 0; left: 50%; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
    font: 500 11.5px var(--font-mono); color: var(--text); background: rgba(10, 14, 24, .92); border: 1px solid var(--line-strong);
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .8);
    transform: translate(-50%, -50%) rotate(calc(-1 * var(--a))); animation: counter-spin 40s linear infinite;
}
.o2 .sat b { animation-duration: 60s; animation-direction: reverse; }
@keyframes counter-spin { from { transform: translate(-50%, -50%) rotate(calc(-1 * var(--a))); } to { transform: translate(-50%, -50%) rotate(calc(-1 * var(--a) - 360deg)); } }
.fact-inf { display: inline-block; animation: inf-breathe 3.5s ease-in-out infinite; }
@keyframes inf-breathe { 50% { transform: scale(1.12) rotate(-4deg); } }

/* ---------- AI Readiness extras ---------- */
.quiz-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--dim); }
@media (pointer: coarse) { .quiz-hint { display: none; } }
.quiz-option:active, .quiz-option.pressed { transform: scale(.985); }
@property --num { syntax: "<integer>"; initial-value: 0; inherits: false; }
.score-count { counter-reset: score var(--num); animation: count-up 1.8s var(--ease) .2s both; }
.score-count::after { content: counter(score); }
@keyframes count-up { from { --num: 0; } to { --num: var(--target); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- Contact extras ---------- */
.availability { display: flex; align-items: center; gap: 16px; padding: 20px; }
.availability .clock { font: 600 28px/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.availability .clock small { margin-left: 6px; font: 500 12px var(--font-mono); letter-spacing: 0; color: var(--dim); }
.availability .live-status { margin-top: 8px; }
.field-meta { display: flex; justify-content: flex-end; margin-top: 6px; font: 12px var(--font-mono); color: var(--dim); }
.field-meta .over { color: var(--rose); }
.btn-spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(4, 17, 12, .3); border-top-color: #04110c; animation: spin .7s linear infinite; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading .icon { display: none; }
.success-visual { position: relative; width: 76px; height: 76px; margin: 0 auto 24px; }
.success-visual .success-icon { margin: 0; animation: pop .6s var(--ease) 1s both; }
.plane { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px; color: var(--cyan); pointer-events: none; animation: fly 1.6s cubic-bezier(.45, .05, .55, .95) both; }
@keyframes fly {
    0% { transform: translate(-200px, 70px) rotate(25deg) scale(.6); opacity: 0; }
    15% { opacity: 1; }
    55% { transform: translate(-6px, -10px) rotate(-5deg) scale(1); opacity: 1; }
    100% { transform: translate(240px, -160px) rotate(-25deg) scale(.5); opacity: 0; }
}

/* ---------- 404 glitch ---------- */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: .85; }
.glitch::before { color: var(--cyan); animation: glitch-a 2.6s steps(1) infinite; }
.glitch::after { color: var(--rose); animation: glitch-b 2.6s steps(1) infinite; }
@keyframes glitch-a {
    0% { clip-path: inset(12% 0 62% 0); transform: translate(-5px, 0); } 10% { clip-path: inset(0 0 100% 0); }
    30% { clip-path: inset(44% 0 38% 0); transform: translate(4px, -2px); } 38% { clip-path: inset(0 0 100% 0); }
    62% { clip-path: inset(72% 0 6% 0); transform: translate(-3px, 2px); } 70%, 100% { clip-path: inset(0 0 100% 0); }
}
@keyframes glitch-b {
    0% { clip-path: inset(0 0 100% 0); } 12% { clip-path: inset(60% 0 14% 0); transform: translate(5px, 1px); } 20% { clip-path: inset(0 0 100% 0); }
    48% { clip-path: inset(8% 0 76% 0); transform: translate(-4px, 0); } 56% { clip-path: inset(0 0 100% 0); }
    84% { clip-path: inset(36% 0 46% 0); transform: translate(3px, -1px); } 92%, 100% { clip-path: inset(0 0 100% 0); }
}

/* ---------- Canvas effects ---------- */
.fx-canvas { position: fixed; inset: 0; z-index: 230; pointer-events: none; }
.fx-matrix { position: fixed; inset: 0; z-index: 240; cursor: pointer; opacity: 0; transition: opacity .6s; }
.fx-matrix.on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    .cursor-glow, .scroll-progress { display: none; }
    .tilt { transform: none !important; }
}

/* ---------- Showcase video ("42 Days: Software That Ships") ---------- */
.hero-watch { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.hero-watch:hover { color: var(--text); }
.hero-watch-icon { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #04110c; box-shadow: 0 8px 24px -8px rgba(52, 228, 166, .6); transition: transform .3s var(--ease); }
.hero-watch-icon .icon { margin-left: 2px; }
.hero-watch:hover .hero-watch-icon { transform: scale(1.08); }
.hero-watch-time { font: 500 12.5px var(--font-mono); color: var(--dim); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); }
.hero-watch + .hero-proof { margin-top: 32px; }

.video-player { max-width: 1080px; margin: 0 auto; }
.video-frame {
    position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
    background: var(--bg); border: 1px solid var(--line-strong);
    box-shadow: 0 50px 120px -50px rgba(60, 200, 245, .45), 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.video-frame > video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: var(--bg); }
.video-frame > video:focus-visible { outline: 2px solid var(--cyan); outline-offset: -3px; }

.video-section:focus { outline: none; }
.video-section.flush { padding-top: 0; }

/* The cover (before play), end screen and chapters appear once js/video.js has set the player up
   (data-enhanced); until then, or without JavaScript, the native controls show. */
.video-cover, .video-end { position: absolute; inset: 0; z-index: 2; display: none; }
.video-player[data-enhanced][data-state="idle"] .video-cover { display: block; }
.video-player[data-enhanced][data-state="ended"] .video-end { display: grid; }
.video-poster, .video-teaser { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-teaser { opacity: 0; transition: opacity .9s var(--ease); }
.video-teaser.on { opacity: 1; }
.video-shade {
    position: absolute; inset: 0; pointer-events: none;
    /* Darkens behind the label (bottom left) but leaves the frame's own disclaimer banner (top) clear. */
    background: radial-gradient(120% 100% at 0% 100%, rgba(5, 7, 13, .9) 0%, rgba(5, 7, 13, .55) 40%, transparent 70%), linear-gradient(0deg, rgba(5, 7, 13, .9) 0%, rgba(5, 7, 13, .55) 26%, transparent 52%);
}

/* The whole cover is the play button; its label sits bottom-left. */
.video-play {
    position: absolute; inset: 0; display: flex; align-items: flex-end; gap: clamp(12px, 2vw, 22px);
    padding: clamp(14px, 5%, 52px); border: 0; border-radius: inherit; background: none;
    color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.video-play:focus-visible { outline: 2px solid var(--cyan); outline-offset: -6px; }
.video-play-icon {
    position: relative; flex: none; width: clamp(52px, 8vw, 92px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
    background: var(--grad); color: #04110c;
    box-shadow: 0 18px 50px -12px rgba(52, 228, 166, .65), inset 0 1px 0 rgba(255, 255, 255, .4);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.video-play-icon .icon { width: 42%; height: 42%; margin-left: 7%; }
.video-play-icon::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1.5px solid rgba(60, 200, 245, .55); opacity: 0; }
/* The ring pulses while the preview plays (at most 5 s by itself) or while the button is hovered or focused. */
.video-teaser.on ~ .video-play .video-play-icon::before, .video-play:hover .video-play-icon::before, .video-play:focus-visible .video-play-icon::before { animation: video-ring 2.4s var(--ease) infinite; }
@keyframes video-ring { 0% { transform: scale(.82); opacity: 0; } 35% { opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.video-play:hover .video-play-icon { transform: scale(1.06); box-shadow: 0 22px 60px -12px rgba(60, 200, 245, .75), inset 0 1px 0 rgba(255, 255, 255, .4); }
.video-play-text { display: grid; gap: 6px; min-width: 0; padding-bottom: 4px; }
.video-play-text b { font: 600 clamp(1.05rem, 2.4vw, 1.75rem)/1.12 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.video-play-meta { font: 500 clamp(10.5px, 1.2vw, 13px) var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.video-end {
    place-content: center; justify-items: center; gap: clamp(12px, 2.4vw, 22px); padding: 20px; text-align: center;
    background: radial-gradient(circle at 50% 50%, rgba(5, 7, 13, .78), rgba(5, 7, 13, .94));
    -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); animation: video-fade .5s var(--ease);
}
@keyframes video-fade { from { opacity: 0; } }
.video-end-title { margin: 0; font: 600 clamp(1.3rem, 3.4vw, 2.4rem)/1.1 var(--font-display); letter-spacing: -.02em; }
.video-end .btn-row { justify-content: center; }

.video-chapters {
    list-style: none; margin: 16px 0 0; padding: 2px 2px 8px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(108px, 1fr); gap: 8px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.video-player:not([data-enhanced]) .video-chapters { display: none; }
[data-video-scope]:not([data-enhanced]) .transcript-time { visibility: hidden; }
.video-chapters li { scroll-snap-align: start; }
.video-chapters button {
    position: relative; width: 100%; height: 100%; display: grid; align-content: start; gap: 3px; padding: 10px 12px 12px; overflow: hidden;
    border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--muted);
    font: 500 13.5px/1.3 var(--font-body); text-align: left; cursor: pointer; transition: color .2s, border-color .2s, background .2s;
}
.video-chapters button:hover { color: var(--text); border-color: var(--line-strong); }
.video-chapters button:focus-visible { outline-offset: -3px; }
.video-chapters button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--p, 0) * 100%); background: var(--grad); }
.video-chapters button[aria-current="true"] { color: var(--text); border-color: rgba(52, 228, 166, .45); background: rgba(52, 228, 166, .06); }
.video-chapter-time { font: 500 12px var(--font-mono); color: var(--dim); }
.video-chapters button[aria-current="true"] .video-chapter-time { color: var(--emerald); }
.video-note { margin: 14px auto 0; max-width: 72ch; font-size: 13.5px; color: var(--dim); text-align: center; text-wrap: balance; }
.video-note .icon { display: inline-block; vertical-align: -3px; margin-right: 6px; }
.video-more { display: flex; justify-content: center; margin: 10px 0 0; }
/* Chapters scroll sideways once they no longer fit: fade the edge to show there is more. */
@media (max-width: 1100px) {
    .video-chapters { padding-right: 44px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
}

.transcript { max-width: 860px; margin: clamp(24px, 4vw, 40px) auto 0; border: 1px solid var(--line); border-radius: 16px; background: var(--card); transition: border-color .3s, background .3s; }
.transcript[open] { border-color: var(--line-strong); background: var(--card-hover); }
.transcript summary { list-style: none; cursor: pointer; padding: 18px 22px; font: 600 16px var(--font-display); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary > span { display: inline-flex; align-items: center; gap: 10px; }
.transcript summary .icon { color: var(--emerald); }
.transcript summary::after { content: "+"; content: "+" / ""; flex: none; font: 400 22px var(--font-mono); color: var(--emerald); transition: transform .3s var(--ease); }
.transcript[open] summary::after { transform: rotate(45deg); }
.transcript::details-content { block-size: 0; overflow-y: clip; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.transcript[open]::details-content { block-size: auto; }
.transcript-list { list-style: none; margin: 0; padding: 6px 22px 20px; display: grid; gap: 14px; }
.transcript-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: baseline; }
.transcript-list p { margin: 0; color: var(--muted); font-size: 15px; transition: color .3s; }
.transcript-list li.now p { color: var(--text); }
.transcript-speaker { display: block; margin-bottom: 2px; font: 500 11.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.transcript-time { padding: 2px 0; border: 0; background: none; color: var(--cyan); font: 500 13px var(--font-mono); text-align: left; cursor: pointer; }
.transcript-time:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
/* Watch page: a compact heading so the whole player is visible without scrolling on most screens. */
.watch-hero { padding: clamp(28px, 4vw, 48px) 0 clamp(18px, 2.5vw, 28px); }
.watch-hero h1 { max-width: none; font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: 12px; }
.watch-hero .lead { max-width: 70ch; margin: 0; }
.video-section.flush .video-player { max-width: 960px; }
.watch-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.watch-links .card { display: flex; flex-direction: column; }
.watch-links .card p { flex: 1; }
@media (max-width: 860px) { .watch-links { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
    .video-frame { border-radius: var(--radius); }
    .video-shade { background: linear-gradient(0deg, rgba(5, 7, 13, .94) 0%, rgba(5, 7, 13, .7) 50%, rgba(5, 7, 13, .35) 100%); }
    .video-end .btn { padding: 10px 16px; font-size: 14px; }
    .transcript-list li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Completed work (/work, home section, project pages) ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.work-card { border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); overflow: hidden; transition: border-color .25s; }
.work-card:hover { border-color: var(--line-strong); }
.work-card-link { display: flex; flex-direction: column; height: 100%; }
.work-cover { aspect-ratio: 16 / 10; background: var(--bg-elev-2); border-bottom: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.work-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.work-card:hover .work-cover img { transform: scale(1.03); }
.work-cover-empty { font: 600 2.4rem var(--font-display); color: var(--dim); }
.work-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.work-card-body h3 { font-size: 1.25rem; margin-bottom: 8px; }
.work-card-body p { margin: 0 0 16px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.work-card-more { margin-top: auto; color: var(--emerald); font-weight: 600; font-size: 15px; }
.work-card-link:focus-visible { outline-offset: -3px; }
.work-all { margin: 28px 0 0; }
.work-empty { max-width: 720px; }
.work-empty h2 { font-size: 1.4rem; }
.work-empty p { color: var(--muted); margin: 0 0 22px; }
.work-back { display: inline-block; margin-bottom: 18px; color: var(--muted); font-size: 15px; }
.work-back:hover { color: var(--text); }
.work-hero h1 { max-width: 24ch; }
.work-detail { display: grid; gap: 32px; }
.work-gallery-main { margin: 0; max-width: 1000px; }
.work-gallery-main img, .work-gallery img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-elev-2); }
.work-text { max-width: 70ch; font-size: 1.05rem; color: var(--muted); }
.work-text p { margin: 0 0 1.1em; }
.work-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.work-gallery img { aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- Open source page ---------- */
.os-license { margin: 20px 0 0; color: var(--muted); font-size: 15px; }
.os-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.os-text { font-size: 1.05rem; color: var(--muted); }
.os-text p { margin: 0 0 1.1em; }
.os-install { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; padding: 10px 10px 10px 18px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(5, 7, 13, .6); }
.os-install code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font: 14px var(--font-mono); color: var(--text); }
.os-repos-title { font-size: 1.25rem; margin-bottom: 16px; }
.os-repos { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.os-repo { display: grid; gap: 6px; padding: 20px 22px; }
.os-repo-name { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.os-repo-desc { color: var(--muted); font-size: 15px; }
.os-repo-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 13px var(--font-mono); color: var(--dim); }
@media (max-width: 860px) { .os-layout { grid-template-columns: 1fr; } }

/* ---------- Admin area ---------- */
.admin-shell { min-height: 100vh; background: var(--bg); }
.admin-bar { border-bottom: 1px solid var(--line); background: var(--bg-elev); }
.admin-bar-inner { max-width: 1100px; margin: 0 auto; padding: 12px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.admin-bar .brand { display: flex; align-items: center; gap: 10px; }
.admin-tag { font: 600 12px var(--font-mono); color: var(--gold); border: 1px solid rgba(247, 197, 72, .4); border-radius: 6px; padding: 2px 8px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.admin-nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 15px; }
.admin-nav a:hover, .admin-nav a.active { color: var(--text); background: var(--card-hover); }
.admin-logout { margin: 0; }
.admin-main { max-width: 1100px; margin: 0 auto; padding: 32px var(--gutter) 80px; }
.admin-main h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 20px; }
.admin-main h2 { font-size: 1.2rem; }
.admin-main code { font: 13.5px var(--font-mono); color: var(--cyan); }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.admin-head h1, .admin-head h2 { margin: 0; }
.admin-back { margin: 0 0 12px; }
.admin-back a { color: var(--muted); }
.admin-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.admin-card { display: grid; gap: 8px; color: var(--text); }
.admin-card .icon { color: var(--emerald); }
.admin-card h2 { margin: 0; }
.admin-card p { margin: 0; color: var(--muted); }
.admin-empty p, .admin-note { color: var(--muted); margin: 0; }
.admin-form { padding: clamp(20px, 3vw, 32px); margin-bottom: 24px; }
.admin-form > h2 { margin-bottom: 18px; }
.admin-form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 22px; }
.admin-status { color: var(--emerald); font-weight: 600; margin: 0 0 14px; }
.admin-form-footer .admin-status { margin: 0; }
.admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.admin-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.admin-row-main { flex: 1; min-width: 200px; display: grid; gap: 4px; overflow-wrap: anywhere; }
.admin-meta { color: var(--dim); font-size: 14px; }
.admin-meta a { color: var(--muted); text-decoration: underline; }
.admin-thumb { width: 72px; height: 48px; flex: none; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--bg-elev-2); color: var(--dim); }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.state { color: var(--dim); }
.state.on { color: var(--emerald); font-weight: 600; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card); color: var(--text); cursor: pointer; }
.icon-btn:hover:not(:disabled) { background: var(--card-hover); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.btn-danger { background: rgba(255, 107, 139, .14); border-color: rgba(255, 107, 139, .5); color: #ffd2dc; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.field-hint { display: block; margin-top: 6px; font-size: 13px; color: var(--dim); }
.field-label { display: block; font-size: 13.5px; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.field input.mono { font-family: var(--font-mono); font-size: 14px; }
.field .admin-check { display: inline-flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; color: var(--text); font-size: 15px; }
.field .admin-check input { width: 20px; height: 20px; padding: 0; accent-color: var(--emerald); }
.admin-images { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.admin-images li { display: flex; flex-wrap: wrap; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.admin-images img { width: 160px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; background: var(--bg-elev-2); }
.admin-image-fields { flex: 1; min-width: 220px; display: grid; gap: 8px; align-content: start; }
.field .admin-image-fields label { margin: 0; }
.field .admin-upload { display: flex; margin: 0; font-size: 15px; }
.admin-upload { position: relative; display: flex; align-items: center; gap: 10px; padding: 16px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--muted); cursor: pointer; }
.admin-upload:hover, .admin-upload:focus-within { border-color: var(--emerald); color: var(--text); }
.admin-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.admin-repo-edit { padding: 16px; border: 1px solid var(--line-strong); border-radius: 14px; }
.admin-login { min-height: calc(100vh - 160px); display: grid; place-items: center; }
.admin-login .card { width: min(100%, 420px); display: grid; gap: 16px; }
.admin-login h1 { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; margin: 0; }
.admin-login form { display: grid; gap: 16px; }
@media (max-width: 640px) { .admin-images img { width: 100%; } }

/* ---------- Reviews (home section, /review/{token}, admin) ---------- */
.reviews-grid { columns: 3 300px; column-gap: 24px; }
.review-card { break-inside: avoid; margin-bottom: 24px; }
.review { margin: 0; display: grid; gap: 14px; }
.review-stars { margin: 0; letter-spacing: 2px; font-size: 17px; color: var(--line-strong); }
.review-stars .on { color: var(--gold); }
.review blockquote { margin: 0; font-size: 1.05rem; line-height: 1.65; color: var(--text); }
.review blockquote p { margin: 0 0 .8em; }
.review blockquote p:last-child { margin: 0; }
.review figcaption { display: grid; gap: 2px; font-size: 15px; }
.review figcaption span { color: var(--muted); }
.review-hero h1 { max-width: 22ch; }
.review-form { max-width: 820px; }
.review-rating { border: 0; padding: 0; margin: 0; }
.review-rating legend { font-size: 13.5px; font-weight: 500; color: var(--muted); margin-bottom: 10px; padding: 0; }
.review-link-box { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.review-link-box p { margin: 0; }
.review-link-box .os-install { margin: 0; }
.review-link-box code { overflow-wrap: anywhere; white-space: normal; }
.admin-review { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.admin-subhead { font-size: 1rem; margin: 22px 0 10px; color: var(--muted); }
