/* ════════════════════════════════════════════════════════════════
   3CODEX — STYLESHEET
   Dark  mode: accent #9cff00 | bg #000000
   Light mode: accent #7e00ff | bg #ffffff
════════════════════════════════════════════════════════════════ */

/* ── Performance: reduced motion ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration:       0.01ms !important;
        animation-iteration-count: 1     !important;
        transition-duration:      0.01ms !important;
        scroll-behavior:          auto   !important;
    }
}

/* ── Mobile: 16px inputs prevent iOS focus auto-zoom ────────── */
@media (max-width: 1024px) {
    input, textarea, select { font-size: 16px !important; }
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design tokens ──────────────────────────────────────────── */
:root {
    --accent:          #9cff00;
    --bg:              #000000;
    --ton-accent:      #000000;
    --ton-bg:          #ffffff;
    --text-on-accent:  #000000;
    --text-on-bg:      #ffffff;

    --hdr-h:           68px;
    --mq-h:            36px;      /* marquee height */

    --ease-menu:       cubic-bezier(0.77, 0, 0.175, 1);
    --dur-menu:        0.75s;
    --font:            'Space Mono', 'Courier New', monospace;
    --mergebar: white;

    --grid-line:       rgba(156, 255,   0, 0.30);
    --grid-scan:       rgba(156, 255,   0, 0.90);
    --grid-glow:       rgba(156, 255,   0, 0.45);
}

[data-theme="light"] {
    --accent: #7e00ff;
    --bg: #ffffff;
    --ton-accent: #ffffff;
    --ton-bg: #000000;
    --text-on-accent: #ffffff;
    --text-on-bg:     #000000;
    --mergebar: black;

    --grid-line:       rgba( 84,   2, 199, 0.30);
    --grid-scan:       rgba( 84,   2, 199, 0.90);
    --grid-glow:       rgba( 84,   2, 199, 0.45);
}

/* ── Base ────────────────────────────────────────────────────── */
html  {
    font-size: 14px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    background-color: var(--bg);
    transition: background-color .3s;
    overflow-x: clip;          /* kill any horizontal scroll (sticky-safe) */
}
body  {
    font-family: var(--font);
    background-color: transparent;
    color: var(--ton-bg);
    overflow-x: clip;
    max-width: 100%;
    scrollbar-width: none;
    transition: background-color .3s, color .3s;
}
a       { color: inherit; text-decoration: none; }
button  { cursor: pointer; border: none; background: none; font-family: var(--font); padding: 0; }
img, svg { display: block; }

/* ════════════════════════════════════════════════════════════════
   PRELOADER
════════════════════════════════════════════════════════════════ */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: all;
    overflow: hidden;
}

.pl-bg {
    position: absolute;
    inset: 0;
    background: var(--accent);
    transition: background-color .3s;
}

/* SVG centred in the preloader */
.pl-logo-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8vw;
}

.pl-svg {
    width: 100%;
    max-width: 320px;
    height: auto;
    color: var(--ton-accent);
    transition: color .3s;
    overflow: visible;
}

@media (max-width: 768px) {
    .pl-svg { max-width: 220px; }
}

@media (max-width: 480px) {
    .pl-svg { max-width: 160px; }
}

/* ── Symmetric expand + mask animation ───────────────────────────
   "3" and "X" inner edges start exactly at SVG centre (x=252).
   "CODE" is STATIONARY — the clip-path rect controls its visibility.

   SVG viewBox: 0 0 504.43 119.04  →  centre = 252.215
   "3"  natural right edge =  89.58  →  starts at 251.58  (+ translateX 162)
   "X"  natural left  edge = 376.99  →  starts at 251.99  (+ translateX -125)

   Both inner edges touch at x≈252 (between O and D in CODE).
   Clip opens from x=252 outward — O and D appear first (closest to centre),
   C and E last (farthest from centre).
   Same ease-out on all three → edges track perfectly.

   Timing: 0–15 % hold · 15–70 % expand (ease-out) · 70–100 % hold.
─────────────────────────────────────────────────────────────────── */

/* "3": right edge starts at SVG centre, slides LEFT to natural position */
.pl-g3 {
    transform: translateX(162px);
    animation: pl3Expand 1.6s linear forwards;
}

/* "CODE": never moves — clip rect handles visibility entirely */

/* "X": left edge starts at SVG centre, slides RIGHT to natural position */
.pl-gx {
    transform: translateX(-125px);
    animation: plXExpand 1.6s linear forwards;
}

/* Clip rect: opens from centre (x=252) — left tracks "3" right, right tracks "X" left */
.code-clip-rect {
    animation: codeReveal 1.6s linear forwards;
}

@keyframes pl3Expand {
    0%   { transform: translateX(162px); }
    15%  { transform: translateX(162px); animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); }
    70%  { transform: translateX(0);     }
    100% { transform: translateX(0);     }
}

@keyframes plXExpand {
    0%   { transform: translateX(-125px); }
    15%  { transform: translateX(-125px); animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); }
    70%  { transform: translateX(0);      }
    100% { transform: translateX(0);      }
}

@keyframes codeReveal {
    /* Hold: closed at SVG centre (between O and D) */
    0%   { x: 252px;    width: 0px;      }
    15%  { x: 252px;    width: 0px;      animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); }
    /* Full open: left = "3" natural right (89.58), right covers full E (x≈401) */
    70%  { x: 89.58px;  width: 311.42px; }
    100% { x: 89.58px;  width: 311.42px; }
}

/* Exit: whole preloader slides UP out of view */
#preloader.pl-exit {
    animation: plExit .7s .1s var(--ease-menu) forwards;
}
@keyframes plExit {
    from { transform: translateY(0); }
    to   { transform: translateY(-100%); }
}
#preloader.pl-done { display: none; }

/* ══════════════════════════════════════════════════════════════
   PORTFOLIO LOADER — distinct, cycling variants (pl-v1 … pl-v5)
   Theme-aware via tokens:
     dark  → black bg · neon-green accents · white logo
     light → white bg · purple accents · black logo
   Each variant has its own logo motion + background detail.
══════════════════════════════════════════════════════════════ */
.pl-portfolio {
    --pl-bg:  #000;
    --pl-fg:  #fff;
    --pl-acc: #9cff00;
}
[data-theme="light"] .pl-portfolio {
    --pl-bg:  #fff;
    --pl-fg:  #000;
    --pl-acc: #7e00ff;
}
.pl-portfolio .pl-bg {
    background:
        radial-gradient(circle at 0% 0%,    color-mix(in srgb, var(--pl-acc) 22%, transparent), transparent 38%),
        radial-gradient(circle at 100% 0%,  color-mix(in srgb, var(--pl-acc) 14%, transparent), transparent 38%),
        radial-gradient(circle at 0% 100%,  color-mix(in srgb, var(--pl-acc) 14%, transparent), transparent 38%),
        radial-gradient(circle at 100% 100%,color-mix(in srgb, var(--pl-acc) 24%, transparent), transparent 38%),
        var(--pl-bg);
    overflow: hidden;
    animation: plPortfolioGlow 3.2s ease-in-out infinite alternate;
}
@keyframes plPortfolioGlow {
    from { filter: brightness(.9);  }
    to   { filter: brightness(1.12); }
}
.pl-portfolio .pl-svg { color: var(--pl-fg); }

/* free pseudo-elements for per-variant background detail */
.pl-portfolio .pl-bg::before,
.pl-portfolio .pl-bg::after { content: ''; position: absolute; pointer-events: none; }

/* ── Variant 1 — original slide/clip reveal + center light line ── */
.pl-v1 .pl-bg::before {
    top: 50%; left: 50%; height: 2px; width: 0;
    transform: translate(-50%, -50%);
    background: var(--pl-acc);
    box-shadow: 0 0 14px var(--pl-acc);
    animation: plLineX 1.6s cubic-bezier(.25,.46,.45,.94) forwards;
}
@keyframes plLineX { 0% { width: 0; opacity: 0; } 30% { opacity: 1; } 100% { width: 64%; opacity: 0; } }

/* ── Variant 2 — "scan-print" rise: logo reveals bottom→top while a
   glowing beam sweeps upward across it ──────────────────────────── */
.pl-v2 .pl-g3, .pl-v2 .pl-gx { transform: none; animation: none; }
.pl-v2 .code-clip-rect { x: 89.58px; width: 311.42px; animation: none; }
.pl-v2 .pl-svg {
    clip-path: inset(100% 0 0 0);
    animation: plV2Print 1.5s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes plV2Print {
    0%   { opacity: .35; clip-path: inset(100% 0 0 0); transform: translateY(12px); }
    100% { opacity: 1;   clip-path: inset(0 0 0 0);    transform: translateY(0);    }
}
.pl-v2 .pl-bg::before {
    top: 50%; left: 50%; width: 64%; height: 2px;
    transform: translate(-50%, 64px);
    background: linear-gradient(90deg, transparent, var(--pl-acc), transparent);
    box-shadow: 0 0 18px var(--pl-acc);
    opacity: 0;
    animation: plBeamUp 1.5s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes plBeamUp {
    0%   { opacity: 0; transform: translate(-50%, 64px); }
    25%  { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -64px); }
}

/* ── Variant 3 — logo resolves from blur · diagonal stripe field ── */
.pl-v3 .pl-g3, .pl-v3 .pl-gx { transform: none; animation: none; }
.pl-v3 .code-clip-rect { x: 89.58px; width: 311.42px; animation: none; }
.pl-v3 .pl-svg { animation: plV3 1.45s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes plV3 {
    0%   { opacity: 0; filter: blur(18px); transform: scale(1.14); }
    100% { opacity: 1; filter: blur(0);    transform: scale(1);    }
}
.pl-v3 .pl-bg::before {
    inset: -25%;
    background: repeating-linear-gradient(45deg,
        transparent 0 24px,
        color-mix(in srgb, var(--pl-acc) 10%, transparent) 24px 25px);
    animation: plDiag 1.6s ease forwards;
    opacity: 0;
}
@keyframes plDiag { 0% { opacity: 0; transform: translateX(-50px); } 60% { opacity: .55; } 100% { opacity: .35; transform: translateX(0); } }

/* ── Variant 4 — "3" drops · "X" rises · CODE fades · vertical lines ── */
.pl-v4 .code-clip-rect { x: 89.58px; width: 311.42px; animation: none; }
.pl-v4 .pl-g3 { transform: translateY(-140px); animation: plV4Drop 1.4s cubic-bezier(.34,1.56,.64,1) forwards; }
.pl-v4 .pl-gx { transform: translateY(140px);  animation: plV4Rise 1.4s cubic-bezier(.34,1.56,.64,1) forwards; }
.pl-v4 .pl-gcode { opacity: 0; animation: plV4Fade 1s .45s ease forwards; }
@keyframes plV4Drop { to { transform: translateY(0); } }
@keyframes plV4Rise { to { transform: translateY(0); } }
@keyframes plV4Fade { to { opacity: 1; } }
.pl-v4 .pl-bg::before {
    inset: 0;
    background: repeating-linear-gradient(90deg,
        transparent 0 64px,
        color-mix(in srgb, var(--pl-acc) 9%, transparent) 64px 65px);
    -webkit-mask: linear-gradient(transparent, #000 35%, #000 65%, transparent);
            mask: linear-gradient(transparent, #000 35%, #000 65%, transparent);
    opacity: 0;
    animation: plVLines 1.5s ease forwards;
}
@keyframes plVLines { 0% { opacity: 0; transform: translateY(-24px); } 60% { opacity: .5; } 100% { opacity: .32; transform: translateY(0); } }

/* ── Variant 5 — glitch assemble (sliced flicker) · scanlines ─── */
.pl-v5 .pl-g3, .pl-v5 .pl-gx { transform: none; animation: none; }
.pl-v5 .code-clip-rect { x: 89.58px; width: 311.42px; animation: none; }
.pl-v5 .pl-svg { animation: plV5Glitch 1.4s steps(1) forwards; }
@keyframes plV5Glitch {
    0%   { opacity: 0; transform: translateX(-9px); clip-path: inset(0 0 72% 0); }
    14%  { opacity: 1; transform: translateX(7px);  clip-path: inset(42% 0 30% 0); }
    28%  { transform: translateX(-5px); clip-path: inset(8% 0 58% 0); }
    42%  { transform: translateX(4px);  clip-path: inset(62% 0 6% 0); }
    56%  { transform: translateX(-3px); clip-path: inset(22% 0 22% 0); }
    70%  { transform: translateX(2px);  clip-path: inset(4% 0 40% 0); }
    84%  { transform: translateX(-1px); clip-path: inset(0 0 0 0); }
    100% { opacity: 1; transform: translateX(0); clip-path: inset(0 0 0 0); }
}
.pl-v5 .pl-bg::before {
    inset: 0;
    background: repeating-linear-gradient(0deg,
        transparent 0 3px,
        color-mix(in srgb, var(--pl-acc) 9%, transparent) 3px 4px);
    opacity: .4;
    animation: plScan .55s linear infinite;
}
@keyframes plScan { from { background-position: 0 0; } to { background-position: 0 8px; } }

/* ── Variant 6 — 3D flip-in · expanding rectangle outline ─────── */
.pl-v6 .pl-g3, .pl-v6 .pl-gx { transform: none; animation: none; }
.pl-v6 .code-clip-rect { x: 89.58px; width: 311.42px; animation: none; }
.pl-v6 .pl-logo-wrap { perspective: 900px; }
.pl-v6 .pl-svg {
    transform-origin: center;
    animation: plV6Flip 1.5s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes plV6Flip {
    0%   { opacity: 0; transform: rotateX(-92deg) scale(.92); }
    60%  { opacity: 1; }
    100% { opacity: 1; transform: rotateX(0) scale(1); }
}
.pl-v6 .pl-bg::before {
    top: 50%; left: 50%; width: 220px; height: 96px;
    transform: translate(-50%, -50%) scale(.3);
    border: 1px solid color-mix(in srgb, var(--pl-acc) 50%, transparent);
    opacity: 0;
    animation: plBox 1.9s ease-out forwards;
}
.pl-v6 .pl-bg::after {
    top: 50%; left: 50%; width: 220px; height: 96px;
    transform: translate(-50%, -50%) scale(.3);
    border: 1px solid color-mix(in srgb, var(--pl-acc) 30%, transparent);
    opacity: 0;
    animation: plBox 1.9s .35s ease-out forwards;
}
@keyframes plBox {
    0%   { opacity: .8; transform: translate(-50%,-50%) scale(.3);  }
    100% { opacity: 0;  transform: translate(-50%,-50%) scale(3.2); }
}

/* ════════════════════════════════════════════════════════════════
   HEADER  (fixed, always on top)
════════════════════════════════════════════════════════════════ */
#site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--hdr-h);
    background: var(--accent);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    transition: background-color .3s;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    height: 42px;
    flex-shrink: 0;
}
.header-logo img { height: 100%; width: auto; object-fit: contain; }
.header-logo .logo-for-light { display: none; }
[data-theme="light"] .header-logo .logo-for-dark  { display: none; }
[data-theme="light"] .header-logo .logo-for-light { display: block; }

/* Right cluster */
.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Theme toggle */
.theme-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.theme-btn {
    width: 52px; height: 26px;
    border-radius: 13px;
    background: var(--ton-accent);
    position: relative;
    flex-shrink: 0;
    transition: background .3s;
}
.toggle-track { display: block; width: 100%; height: 100%; border-radius: inherit; }
.toggle-thumb {
    position: absolute;
    top: 3px; right: 3px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--accent);
    transition: right .3s, left .3s, background .3s;
}
[data-theme="light"] .toggle-thumb { right: auto; left: 3px; }

.theme-lbl {
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ton-accent);
    white-space: nowrap;
    transition: color .3s;
}

/* Hamburger */
.hbg-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    padding: 4px;
    color: var(--ton-accent);
    flex-shrink: 0;
}
.hbg-line {
    display: block;
    width: 100%; height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform .3s, opacity .3s, background .3s;
}

/* Desktop hamburger: left side only */
.hbg-btn--desktop { display: none; }

/* ════════════════════════════════════════════════════════════════
   MARQUEE
════════════════════════════════════════════════════════════════ */
.marquee-bar {
    position: fixed;
    top: var(--hdr-h); left: 0; right: 0;
    height: 30px;
    background: var(--mergebar);
    color:var(--bg);
    z-index: 998;
    overflow: hidden;
    display: flex;
    align-items: center;
    transition: background-color .3s, border-color .3s, opacity .3s;
}

.marquee-bar.mq-hidden { opacity: 0; pointer-events: none; }

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: mqScroll 32s linear infinite;
    /* Stay paused until JS fills the text + fonts load, then start clean
       from frame 0 (prevents the jump seen on slower hosting loads). */
    animation-play-state: paused;
}
html.motion-ready .marquee-track { animation-play-state: running; }

.marquee-text {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ton-accent);
    padding-right: 24px;
    transition: color .3s;
}

@keyframes mqScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ════════════════════════════════════════════════════════════════
   MAIN CONTENT
════════════════════════════════════════════════════════════════ */
#main-content {
    padding-top: calc(var(--hdr-h) + var(--mq-h));
    min-height: 100vh;
    background-color: transparent;
}

/* ════════════════════════════════════════════════════════════════
   MENU OVERLAY  —  slides DOWN from top, behind navbar
   z-index 999 > marquee 998  →  covers marquee when open
   z-index 999 < header 1000  →  navbar always on top
   Height: 85vh mobile · 60vh desktop (not full screen)
════════════════════════════════════════════════════════════════ */
.menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 85vh;
    z-index: 999;
    background: var(--accent);
    transform: translateY(-100%);
    transition: transform var(--dur-menu) var(--ease-menu),
                background-color .3s;
    pointer-events: none;
    overflow: hidden;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 80% 85%, 20% 85%, 0% 100%);
}
.menu-overlay.menu-open {
    transform: translateY(0);
    pointer-events: all;
}

/* ── Content (shared) ────────────────────────────────────────── */
.menu-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--ton-accent);
    padding-top: calc(var(--hdr-h) + 16px);
    padding-bottom: 32px;
    transition: color .3s;
}

/* ── Desktop layout (≥1025px) ────────────────────────────────── */
@media (min-width: 1025px) {
    .menu-overlay { height: 60vh; }
    .menu-inner   { padding-top: calc(var(--hdr-h) + 28px); }

    .menu-grid {
        display: flex;
        flex: 1;
        gap: 0;
        padding: 32px 6vw 0;
    }

    .menu-col { display: flex; flex-direction: column; flex: 1; }
    .menu-col--lang     { align-items: flex-start; }
    .menu-col--services { align-items: center; }
    .menu-col--links    { align-items: flex-end; }

    .menu-social { gap: 14px; }
}

/* ── Mobile split panels ─────────────────────────────────────── */
.mob-panel-top,
.mob-panel-btm {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 100vh;
    background: var(--accent);
    z-index: 999;
    pointer-events: none;
    transition: transform var(--dur-menu) var(--ease-menu), background-color .3s;
    overflow: hidden;
}
.mob-panel-top {
    transform: translateY(-100%);
    clip-path: polygon(0% 0%, 100% 0%, 100% 58%, 80% 52%, 20% 52%, 0% 58%);
}
.mob-panel-btm {
    transform: translateY(100%);
    clip-path: polygon(0% 57%, 20% 51%, 80% 51%, 100% 57%, 100% 100%, 0% 100%);
}
.mob-panel-top.mob-open,
.mob-panel-btm.mob-open { transform: translateY(0); pointer-events: all; }

.mob-panel-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    color: var(--ton-accent);
    transition: color .3s;
    overflow: hidden;
}
.mob-top-inner {
    padding: calc(var(--hdr-h) + 3vh) 32px 52vh;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.mob-btm-inner {
    padding: 59vh 32px 100px;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}
.mob-btm-inner .close-btn {
    margin-top: clamp(24px, 6vmin, 48px);
}
.mob-lang-nav {
    flex-direction: row !important;
    justify-content: center;
    gap: clamp(20px, 7vmin, 48px) !important;
}
.mob-lang-nav .lang-btn {
    text-align: center;
    font-size: clamp(10px, 3.2vmin, 15px);
    line-height: 1.2;
}
.mob-svc-nav {
    display: flex; flex-direction: column; align-items: center; width: 100%;
    gap: clamp(2px, 1.8vmin, 10px);
}
.mob-svc-nav .menu-link {
    text-align: center;
    width: 100%;
    font-size: clamp(11px, 3.6vmin, 17px);
    line-height: 1.2;
}
.mob-page-nav {
    display: flex; flex-direction: column; align-items: center; width: 100%;
    gap: clamp(2px, 1.8vmin, 10px);
}
.mob-page-nav .menu-link {
    text-align: center;
    width: 100%;
    font-size: clamp(11px, 3.6vmin, 17px);
    line-height: 1.2;
}

/* ── Mobile/tablet layout (≤1024px) ─────────────────────────── */
@media (max-width: 1024px) {
    .mob-panel-top, .mob-panel-btm { display: block; }
    .menu-overlay { display: none !important; }

    .menu-social { gap: 12px; }
    .theme-lbl { display: none; }
    .theme-wrap { display: none; }
    body.menu-is-open .theme-wrap { display: flex; }
    body.menu-is-open .hbg-btn--mobile { display: none; }
    .menu-social {
        transition: none;
    }
    body.menu-is-open .menu-social {
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
        transition-duration: var(--dur-menu);
        transition-delay: 0.65s;
    }
}

/* ════════════════════════════════════════════════════════════════
   STAR BUTTON
════════════════════════════════════════════════════════════════ */
.star-btn-wrap {
    display: none;
}

/* Hero sides — shared container that bottom-aligns both CTA and text */
.hero-sides {
    position: absolute;
    left: 5%;
    right: 5%;
    top: 50%;
    transform: translateY(calc(-50% + (var(--hdr-h) + var(--mq-h)) / 2));
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    z-index: 2;
    pointer-events: none;
}

/* Hero CTA (left side) */
.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    pointer-events: auto;
}

.hero-cta__sub {
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ton-bg);
    opacity: .5;
}

@keyframes heroBtnPulse {
    0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); }
    60%  { box-shadow: 0 0 0 18px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

.star-btn--pulse {
    animation: heroBtnPulse .7s ease-out forwards;
}

@media (max-width: 1024px) {
    .hero-sides {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        padding-top: calc(var(--hdr-h) + var(--mq-h));
    }

    .hero-cta {
        order: 2;
        align-items: center;
    }
}

.star-btn {
    position: relative;
    background: color-mix(in srgb, var(--accent) 18%, var(--bg));
    border-radius: 9999px;
    padding: 1px;
    overflow: hidden;
    font-family: var(--font);
    display: inline-block;
    transition: transform .2s;
}
.star-btn:hover { transform: translateY(-2px); }

/* Static glow blob top-left */
.star-btn__glow-bg {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}
.star-btn__glow-bg > span {
    display: block;
    width: 96px; height: 96px;
    transform: translate(-50%, -33%);
    filter: blur(24px);
    background: var(--accent);
    opacity: .7;
}

/* Animated travelling glow border */
.star-btn__glow-border {
    position: absolute;
    inset: 0;
    pointer-events: none;
    user-select: none;
    animation: 10s ease-in-out infinite alternate border-glow-translate;
}
.star-btn__glow-border > span {
    display: block;
    height: 100%; width: 48px;
    transform: translateX(-50%);
    border-radius: 9999px;
    filter: blur(24px);
    background: var(--accent);
    animation: 10s ease-in-out infinite alternate border-glow-scale;
}

/* Inner pill */
.star-btn__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    z-index: 1;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    border-radius: 9999px;
    padding: 8px 18px 8px 10px;
}

/* Icon + shine */
.star-btn__icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .5s;
}
.star-btn:hover .star-btn__icon-wrap { transform: scale(1.08) rotate(360deg); }

.star-btn__svg {
    display: block;
    animation: 14s cubic-bezier(.68, -.55, .27, 1.55) infinite alternate star-rotate;
}

.star-btn__shine {
    position: absolute;
    top: 50%; left: 50%;
    width: 44px; height: 44px;
    border-radius: 9999px;
    transform: translate(-50%, -50%);
    filter: blur(16px);
    background: var(--accent);
    opacity: 0;
    animation: 14s ease-in-out infinite alternate star-shine;
    pointer-events: none;
}

/* Label */
.star-btn__label {
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ton-bg);
    transition: transform .3s;
    white-space: nowrap;
}
.star-btn:hover .star-btn__label { transform: scale(1.05); }

/* Keyframes */
@keyframes border-glow-translate {
    0%   { transform: translateX(-10%); }
    100% { transform: translateX(110%); }
}
@keyframes border-glow-scale {
    0%   { transform: translateX(-50%) scaleY(1.4); }
    100% { transform: translateX(-50%) scaleY(.6); }
}
@keyframes star-rotate {
    0%   { transform: rotate(-12deg); }
    100% { transform: rotate(12deg);  }
}
@keyframes star-shine {
    0%   { opacity: 0;   transform: translate(-50%, -50%) scale(.8); }
    50%  { opacity: .35; transform: translate(-50%, -50%) scale(1.2); }
    100% { opacity: 0;   transform: translate(-50%, -50%) scale(.8); }
}

/* ── Wave polygon colour ──────────────────────────────────────── */
.wave-poly {
    fill: var(--bg);
    transition: fill .3s;
}

/* ── Menu section label ──────────────────────────────────────── */
.menu-section-label {
    font-size: clamp(9px, 1vh, 11px);
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .65;
    margin-bottom: clamp(4px, .6vh, 8px);
}

/* ── Language nav ────────────────────────────────────────────── */
.lang-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

/* ── Language buttons ────────────────────────────────────────── */
.lang-btn {
    font-family: var(--font);
    font-size: clamp(11px, 1.6vh, 16px);
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ton-accent);
    opacity: .55;
    transition: opacity .2s;
    line-height: 1.8;
    text-align: left;
}
.lang-btn:hover { opacity: 1; }
.lang-btn--active { opacity: 1; }
.lang-btn--active::before { content: '<'; }
.lang-btn--active::after  { content: '>'; }

/* ── Page nav (col 3) ────────────────────────────────────────── */
.page-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* ── Service nav (col 2) ─────────────────────────────────────── */
.svc-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── Menu nav links (services + pages) ───────────────────────── */
.menu-link {
    display: block;
    font-size: clamp(11px, 1.6vh, 16px);
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ton-accent);
    line-height: 1.8;
    opacity: .7;
    transition: opacity .2s;
}
.menu-link:hover { opacity: 1; }
.menu-link--active { opacity: 1; }
.menu-link--active::before { content: '<'; }
.menu-link--active::after  { content: '>'; }

/* Services (col 2) — larger text, centered */
.menu-col--services .menu-link {
    font-size: clamp(13px, 2vh, 20px);
    text-align: center;
}

/* ── Divider between services and close btn ──────────────────── */
.menu-divider {
    width: 90px;
    height: 1px;
    background: var(--ton-accent);
    opacity: .35;
    margin: clamp(8px, 1.2vh, 18px) auto;
}

/* ── Close button (double up-chevron) ────────────────────────── */
.close-btn {
    color: var(--ton-accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0 auto;
    transition: transform .2s;
    padding-top:20px;
}
.close-btn:hover { transform: translateY(-5px); }
.close-btn svg            { width: 44px; height: 32px; }
.close-btn--desk svg      { transform: none; }
.mob-panel-btm .close-btn svg { transform: rotate(180deg); }
.close-btn__label {
    font-size: clamp(9px, 1.4vh, 14px);
    letter-spacing: 0.12em;
    line-height: 1;
}

/* ── Email row ───────────────────────────────────────────────── */
.menu-email-row {
    padding: 14px 6vw 6px;
    text-align: center;
}
.menu-email {
    font-size: 12px;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ton-accent);
    opacity: .6;
    transition: opacity .2s;
}
.menu-email:hover { opacity: 1; }

/* ── Bottom wave (V-cut illusion) ────────────────────────────── */
.menu-bottom-wave {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 52px;
    pointer-events: none;
}
.menu-bottom-wave svg { display: block; width: 100%; height: 100%; }

/* ── Social icons (fixed to page bottom, shown via sibling selector) */
.menu-social {
    position: fixed;
    bottom: 28px;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 14px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity var(--dur-menu) ease, transform var(--dur-menu) ease;
    z-index: 1001;
}
.menu-overlay.menu-open ~ .menu-social {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.soc-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ton-accent);
    transition: background .2s, color .2s, transform .2s;
    flex-shrink: 0;
}
.soc-icon:hover {
    background: var(--ton-bg);
    color: var(--bg);
    transform: translateY(-5px);
}
.soc-icon svg { width: 20px; height: 20px; }

/* ════════════════════════════════════════════════════════════════
   FOOTER  (minimal: wave + email)
════════════════════════════════════════════════════════════════ */
#site-footer {
    background: var(--accent);
    transition: background-color .3s;
    position: relative;
    z-index: 0;
}

.footer-wave { width: 100%; height: 55px; }
.footer-wave svg { width: 100%; height: 100%; display: block; }

/* Portfolio pages: drop the chevron notch so the footer top reads as a clean
   edge (no wave seam line against tinted portfolio backgrounds). */
html.pg-portfolio    .footer-wave,
html.pg-webdev       .footer-wave,
html.pg-graphicdesign .footer-wave,
html.pg-motiondesign .footer-wave,
html.pg-chatbots     .footer-wave,
html.pg-adcampaigns  .footer-wave { display: none; }

.footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 16px 20px 28px;
}

.footer-email {
    font-size: 12px;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ton-accent);
    opacity: .6;
    transition: opacity .2s;
    text-decoration: none;
}
.footer-email:hover { opacity: 1; }

.footer-totop {
    position: absolute;
    left: 20px;
    font-size: 9px;
    letter-spacing: .22em;
    color: var(--ton-accent);
    text-decoration: none;
    opacity: .45;
    transition: opacity .2s;
    font-weight: 700;
}
.footer-totop:hover { opacity: 1; }
.footer-totop__arrow {
    display: inline-block;
    transition: transform .5s ease;
}
.footer-totop:hover .footer-totop__arrow { transform: scale(1.8); }

/* ════════════════════════════════════════════════════════════════
   DESKTOP LAYOUT ADJUSTMENTS  (≥ 1025px)
════════════════════════════════════════════════════════════════ */
@media (min-width: 1025px) {
    :root { --hdr-h: 72px; --mq-h: 40px; }

    #site-header { padding: 0 32px; }

    /* Center logo absolutely */
    .header-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        height: 48px;
    }

    /* Show desktop hamburger (left), hide mobile one */
    .hbg-btn--desktop { display: flex; }
    .hbg-btn--mobile  { display: none; }

    /* Theme wrap: column on all sizes, label below toggle */
    .theme-wrap { align-items: center; gap: 4px; }
    .theme-lbl  { font-size: 8px; }

    /* Desktop lang nav: vertical */
    .lang-nav { flex-direction: column; gap: 2px; }
}

/* ════════════════════════════════════════════════════════════════
   LARGE DESKTOP  (≥ 1200px)
════════════════════════════════════════════════════════════════ */
@media (min-width: 1200px) {
    :root { --hdr-h: 80px; --mq-h: 44px; }

    #site-header { padding: 0 48px; }
    .header-logo { height: 54px; }

    .menu-grid      { padding: 40px 8vw 0; }
    .menu-email-row { padding: 18px 8vw 8px; }

    .menu-link { font-size: clamp(14px, 1.25vw, 18px); }
}

/* ════════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    height: 100vh;
    margin-top: calc(-1 * (var(--hdr-h) + var(--mq-h)));
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0.3;
    pointer-events: none;
    user-select: none;
    will-change: opacity;
}
@media (max-width: 1024px) {
    .hero-video {
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
        width: auto;
        height: auto;
        min-width: 100vw;
        min-height: 100vh;
        transform: translate(-50%, -50%);
        object-fit: unset;
    }
}

[data-theme="light"] .hero-video {
    filter: grayscale(1);
}

.hero-grid {
    position: absolute;
    inset: 0;
    --cell: 60px;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent calc(var(--cell) - 1px),
            var(--grid-line) calc(var(--cell) - 1px),
            var(--grid-line) var(--cell)
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent calc(var(--cell) - 1px),
            var(--grid-line) calc(var(--cell) - 1px),
            var(--grid-line) var(--cell)
        );
    mask-image: radial-gradient(ellipse 70% 65% at 50% 50%, black 25%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 50%, black 25%, transparent 75%);
    pointer-events: none;
    animation: heroGridScroll 10s linear infinite;
}

.hero-grid::after {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--grid-scan) 20%,
        var(--grid-scan) 80%,
        transparent 100%
    );
    box-shadow:
        0 0 6px  2px var(--grid-glow),
        0 0 24px 6px var(--grid-glow),
        0 0 60px 8px var(--grid-glow);
    animation: heroScanLine 6s linear infinite;
}

@keyframes heroScanGlow {
    0%   { text-shadow: none; opacity: 0; }
    15%  {
        text-shadow:
            0 0 6px  currentColor,
            0 0 20px currentColor,
            0 0 50px currentColor;
        opacity: 0.4;
    }
    40%  {
        text-shadow:
            0 0 4px  currentColor,
            0 0 14px currentColor;
        opacity: 1;
    }
    100% { text-shadow: none; opacity: 1; }
}

.hero-line--scanning {
    animation: heroScanGlow 0.9s ease-out forwards;
}

@media (max-width: 1024px) {
    .hero-grid { --cell: 36px; }
}

.hero-text {
    text-align: right;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .hero-text {
        order: 1;
        text-align: center;
        width: 90%;
    }
}

.hero-line {
    display: block;
    font-size: clamp(2.5rem, 5vw, 6rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--ton-bg);
    line-height: 1.05;
}

@media (max-width: 1024px) {
    .hero-line {
        font-size: clamp(3rem, 8vw, 5.5rem);
    }
}

.hero-line--change {
    color: var(--accent);
    transition: opacity 0.15s ease;
}

.hero-line:not(.hero-line--change) + .hero-line--change {
    margin-top: 0.2em;
}

.hero-line--hidden {
    opacity: 0;
}

@keyframes heroGridScroll {
    from { background-position: 0 0, 0 0; }
    to   { background-position: var(--cell) var(--cell), var(--cell) var(--cell); }
}

@keyframes heroScanLine {
    from { transform: translateY(0); }
    to   { transform: translateY(100vh); }
}

/* ════════════════════════════════════════════════════════════════
   SCROLLBAR — hidden everywhere
════════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { display: none; }

/* ════════════════════════════════════════════════════════════════
   AI CHAT WIDGET
════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════
   COOKIE BANNER
════════════════════════════════════════════════════════════════ */

/* ── Desktop: floating card bottom-left ─────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1098;
    width: 320px;
    background: var(--accent);
    color: var(--ton-accent);
    padding: 24px;
    transform: translateY(calc(100% + 30px));
    transition: transform .55s var(--ease-menu), background .3s, color .3s;
    pointer-events: none;
}
.cookie-banner--in  { transform: translateY(0); pointer-events: all; }
.cookie-banner--out { animation: cookieSlideOut .45s var(--ease-menu) forwards; pointer-events: none; }
@keyframes cookieSlideOut {
    to { transform: translateY(calc(100% + 30px)); }
}

.cookie-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cookie-text-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.cookie-icon { flex-shrink: 0; margin-top: 1px; opacity: .85; }
.cookie-text {
    font-size: 10px;
    letter-spacing: .07em;
    line-height: 1.6;
    text-transform: uppercase;
}
.cookie-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.cookie-btn {
    font-family: var(--font);
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 8px 14px;
    cursor: pointer;
    border: none;
    transition: opacity .2s;
}
.cookie-btn:hover { opacity: .8; }
.cookie-btn--accept {
    background: var(--ton-accent);
    color: var(--accent);
    transition: background .3s, color .3s, opacity .2s;
}
.cookie-btn--decline {
    background: transparent;
    color: var(--ton-accent);
    border: 1px solid color-mix(in srgb, var(--ton-accent) 50%, transparent);
    transition: color .3s, border-color .3s, opacity .2s;
}

/* ── Mobile / tablet: centered modal overlay ─────────────────── */
@media (max-width: 1024px) {
    .cookie-banner {
        top: 0; right: 0; bottom: 0; left: 0;
        width: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        background: color-mix(in srgb, var(--bg) 75%, transparent);
        transform: none;
        opacity: 0;
        transition: opacity .4s ease, background .3s;
    }
    .cookie-banner--in  { opacity: 1; pointer-events: all; }
    .cookie-banner--out { animation: cookieFadeOut .35s ease forwards; pointer-events: none; }
    @keyframes cookieFadeOut { to { opacity: 0; } }

    .cookie-inner {
        background: var(--accent);
        max-width: 380px;
        width: 100%;
        padding: 28px;
    }

    /* Block chat toggle until cookie choice is made */
    .cookie-pending .chat-toggle-btn { display: none; }
}

/* Toggle button */
.chat-toggle-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--ton-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1099;
    box-shadow: 0 4px 24px color-mix(in srgb, var(--accent) 35%, transparent);
    transition: transform .2s, background .3s, box-shadow .3s, opacity .25s;
}
.chat-toggle-btn:hover { transform: scale(1.08); }
body.menu-is-open .chat-toggle-btn {
    opacity: 0;
    pointer-events: none;
}

/* ── Scroll-to-top button (left, mirrors chat button) ────────── */
.totop-btn {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--ton-accent);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1099;
    box-shadow: 0 4px 24px color-mix(in srgb, var(--accent) 35%, transparent);
    transition: transform .2s, background .3s, box-shadow .3s, opacity .25s;
    /* hidden until user scrolls down */
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
}
.totop-btn.totop-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.totop-btn:hover { transform: translateY(0) scale(1.08); }
body.menu-is-open .totop-btn { opacity: 0; pointer-events: none; }
@media (max-width: 600px) {
    .totop-btn { bottom: 20px; left: 20px; width: 46px; height: 46px; }
}

/* ── Menu open: blur content behind overlay ──────────────────── */
#main-content,
#site-footer {
    transition: filter 0.38s ease;
}
body.menu-is-open #main-content,
body.menu-is-open #site-footer {
    filter: blur(6px) brightness(0.55);
}
.chat-toggle--active svg { display: none; }
.chat-toggle--active::after {
    content: '×';
    font-size: 26px;
    line-height: 1;
    color: var(--ton-accent);
}

/* Panel base */
.chat-panel {
    position: fixed;
    z-index: 1100;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: transform .45s var(--ease-menu),
                clip-path .55s var(--ease-menu),
                opacity .3s;
}

/* Desktop — floating card, opens with V-notch polygon (like mobile menu panels) */
@media (min-width: 1025px) {
    .chat-panel {
        bottom: 96px;
        right: 28px;
        width: 360px;
        height: 520px;
        border: 1px solid var(--accent);
        border-radius: 2px;
        transform: none;
        /* Closed: two V-notches pinched at horizontal centre */
        clip-path: polygon(0% 50%, 20% 44%, 80% 44%, 100% 50%,
                           100% 50%, 80% 56%, 20% 56%, 0% 50%);
    }
    .chat-panel.chat-panel--open {
        transform: none;
        /* Open: full rectangle, same 8 points */
        clip-path: polygon(0% 0%,  20% 0%,  80% 0%,  100% 0%,
                           100% 100%, 80% 100%, 20% 100%, 0% 100%);
        opacity: 1;
        pointer-events: all;
    }
}

/* Mobile / tablet — full screen slide up */
@media (max-width: 1024px) {
    .chat-panel {
        inset: 0;
        border: none;
        transform: translateY(100%);
        clip-path: none;
    }
    .chat-panel.chat-panel--open {
        transform: translateY(0);
        clip-path: none;
        opacity: 1;
        pointer-events: all;
    }
    .chat-toggle-btn { bottom: 20px; right: 20px; }
}

/* Header */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--accent);
    color: var(--ton-accent);
    flex-shrink: 0;
    transition: background .3s, color .3s;
}
.chat-header-info {
    display: flex;
    align-items: center;
    gap: 8px;
}
.chat-title-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.chat-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ton-accent);
    flex-shrink: 0;
    animation: chat-pulse 2.4s ease-in-out infinite;
    transition: background .3s;
}
@keyframes chat-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .25; }
}
/* Thinking state: dot spins */
.chat-header--thinking .chat-status-dot {
    animation: chat-spin .7s linear infinite;
}
@keyframes chat-spin {
    from { transform: rotate(0deg) scale(1.1); }
    to   { transform: rotate(360deg) scale(1.1); }
}
.chat-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
}
.chat-status-text {
    font-size: 8px;
    letter-spacing: .1em;
    opacity: .75;
    transition: opacity .3s;
}
.chat-header--thinking .chat-status-text {
    opacity: 1;
    animation: chat-blink .9s step-end infinite;
}
@keyframes chat-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: .3; }
}
.chat-close-btn {
    color: var(--ton-accent);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .8;
    transition: opacity .2s;
}
.chat-close-btn:hover { opacity: 1; }

/* Message slide-in */
@keyframes msgIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.chat-msg { animation: msgIn .25s ease forwards; }

/* Spinning avatar while bot thinks */
.chat-msg__avatar--spin svg {
    animation: chat-spin .9s linear infinite;
}

/* Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: none;
}
.chat-msg         { display: flex; gap: 7px; }
.chat-msg--user   { justify-content: flex-end; }
.chat-msg--bot    { justify-content: flex-start; align-items: flex-start; }

.chat-msg__avatar {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--ton-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
    transition: color .3s;
}

.chat-msg__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 82%;
}
.chat-msg--user .chat-msg__body { align-items: flex-end; }
.chat-msg--bot  .chat-msg__body { align-items: flex-start; }

.chat-msg__bubble {
    padding: 8px 12px;
    font-size: 11px;
    letter-spacing: .05em;
    line-height: 1.55;
    word-break: break-word;
}
.chat-msg--user .chat-msg__bubble {
    background: var(--accent);
    color: var(--ton-accent);
    transition: background .3s, color .3s;
}
.chat-msg--bot .chat-msg__bubble {
    background: color-mix(in srgb, var(--accent) 10%, var(--bg));
    color: var(--ton-bg);
    border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
    transition: background .3s, border-color .3s, color .3s;
}

/* Typewriter blinking cursor */
.chat-bubble--typing-cursor::after {
    content: '▋';
    display: inline-block;
    animation: chat-blink .6s step-end infinite;
    margin-left: 1px;
    font-size: .85em;
}

.chat-msg__time {
    font-size: 9px;
    letter-spacing: .06em;
    color: color-mix(in srgb, var(--ton-bg) 40%, transparent);
    align-self: flex-end;
    white-space: nowrap;
}

/* Typing indicator */
.chat-msg__bubble--typing {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 11px 14px;
}
.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ton-bg);
    animation: typing-bounce .55s ease-in-out infinite alternate;
    flex-shrink: 0;
}
.typing-dot:nth-child(2) { animation-delay: .15s; }
.typing-dot:nth-child(3) { animation-delay: .30s; }
@keyframes typing-bounce {
    from { transform: translateY(0);    opacity: .35; }
    to   { transform: translateY(-5px); opacity: 1;   }
}

/* Input area */
.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
    background: var(--bg);
    flex-shrink: 0;
    transition: background .3s, border-color .3s;
}
.chat-input {
    flex: 1;
    background: transparent;
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    color: var(--ton-bg);
    font-family: var(--font);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 8px 12px;
    outline: none;
    transition: border-color .2s, color .3s;
    border-radius: 2px;
}
.chat-input:focus          { border-color: var(--accent); }
.chat-input::placeholder   { color: color-mix(in srgb, var(--ton-bg) 38%, transparent); }
.chat-send-btn {
    background: var(--accent);
    color: var(--ton-accent);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    flex-shrink: 0;
    transition: opacity .2s, background .3s, color .3s;
}
.chat-send-btn:hover              { opacity: .85; }
.chat-send-btn:disabled           { opacity: .35; cursor: not-allowed; }

/* ── Chat: portfolio cards ─────────────────────────────────── */
.chat-msg--cards .chat-msg__body { display: block; }

.chat-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 4px 0 8px;
    width: 260px;
    max-width: 100%;
}

.chat-card {
    display: flex;
    flex-direction: column;
    border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, transform .2s;
}
.chat-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.chat-card__img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    background: color-mix(in srgb, var(--accent) 8%, var(--bg));
}

.chat-card__no-img {
    width: 100%;
    aspect-ratio: 16/9;
    background: color-mix(in srgb, var(--accent) 12%, var(--bg));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    opacity: .4;
}

.chat-card__title {
    font-size: 9px;
    letter-spacing: .08em;
    padding: 5px 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: color-mix(in srgb, var(--accent) 6%, var(--bg));
    display: block;
}

.chat-see-all {
    display: inline-block;
    font-size: 9px;
    letter-spacing: .12em;
    color: var(--accent);
    text-decoration: none;
    margin-top: 4px;
    opacity: .8;
    transition: opacity .2s;
}
.chat-see-all:hover { opacity: 1; }

/* ── Lead capture offer ──────────────────────────────────── */
.chat-lead-offer {
    background: color-mix(in srgb, var(--accent) 8%, var(--bg));
    border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
    padding: 12px 14px;
    max-width: 260px;
}

.chat-lead-offer__text {
    font-size: 10px;
    letter-spacing: .06em;
    line-height: 1.65;
    margin: 0 0 10px;
    opacity: .85;
}

.chat-lead-offer__btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.chat-lead-btn {
    font-family: inherit;
    font-size: 9px;
    letter-spacing: .14em;
    padding: 6px 12px;
    border: 1px solid color-mix(in srgb, var(--text-on-bg) 25%, transparent);
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: background .15s, border-color .15s, opacity .15s;
}
.chat-lead-btn:hover { border-color: var(--accent); }
.chat-lead-btn:disabled { opacity: .4; cursor: default; }
.chat-lead-btn--yes.chat-lead-btn--chosen {
    background: var(--accent);
    color: var(--text-on-accent);
    border-color: var(--accent);
}
.chat-lead-btn--no.chat-lead-btn--chosen { opacity: .45; }

/* All-categories grouped view */
.chat-portfolio-all {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 4px 0 8px;
    width: 280px;
    max-width: 100%;
}

.chat-portfolio-section { display: flex; flex-direction: column; gap: 6px; }

.chat-portfolio-section__title {
    font-size: 9px;
    letter-spacing: .18em;
    color: var(--accent);
    opacity: .75;
    text-decoration: none;
    transition: opacity .2s;
    display: block;
}
.chat-portfolio-section__title:hover { opacity: 1; }

/* ════════════════════════════════════════════════════════════════
   FOCUS
════════════════════════════════════════════════════════════════ */
:focus-visible { outline: 2px solid var(--ton-bg); outline-offset: 3px; }

/* ════════════════════════════════════════════════════════════════
   PORTFOLIO — PUBLIC
════════════════════════════════════════════════════════════════ */
/* ── Portfolio page: orbiting glow blob ── */
@keyframes pfGradDrift {
    0%   { background-position: 30% 35%; }
    25%  { background-position: 68% 28%; }
    50%  { background-position: 72% 68%; }
    75%  { background-position: 32% 72%; }
    100% { background-position: 30% 35%; }
}
html.pg-portfolio {
    background-image:
        linear-gradient(to bottom, transparent 55%, var(--bg) 100%),
        radial-gradient(
            ellipse 85% 75% at 50% 50%,
            color-mix(in srgb, var(--accent) 18%, var(--bg)) 0%,
            color-mix(in srgb, var(--accent) 6%, var(--bg)) 45%,
            var(--bg) 72%
        );
    background-size: 100% 100%, 200% 200%;
    animation: pfGradDrift 16s ease-in-out infinite;
}

/* ── Portfolio hero ── */
@keyframes pfLetterUp {
    from { opacity: 0; transform: translateY(70%); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pfAccentLine {
    from { opacity: 0; transform: scaleX(0); }
    to   { opacity: 1; transform: scaleX(1); }
}
@keyframes pfSubFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: .5; transform: translateY(0); }
}
@keyframes pfCardIn {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pf-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 5% 48px;
    text-align: center;
}
.pf-hero__title {
    font-size: clamp(3.2rem, 10.4vw, 8rem);
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--ton-bg);
    margin: 0 0 20px;
    line-height: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    overflow: hidden;
}
.pf-hero__letter {
    display: inline-block;
    opacity: 0;
    animation: pfLetterUp .65s cubic-bezier(.22,1,.36,1) forwards;
}
.pf-hero__accent-line {
    display: block;
    width: 52px; height: 2px;
    background: var(--accent);
    margin-bottom: 20px;
    transform-origin: left;
    opacity: 0;
    box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 60%, transparent);
    animation: pfAccentLine .5s .65s ease forwards;
}
.pf-hero__sub {
    font-size: 11px;
    letter-spacing: .18em;
    color: var(--ton-bg);
    margin: 0;
    opacity: 0;
    animation: pfSubFade .6s .8s ease forwards;
}

/* ── Sticky filters ── */
.pf-filters-wrap {
    padding: 14px 5% 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}
.pf-search {
    display: flex;
    align-items: center;
    border: 1px solid color-mix(in srgb, var(--ton-bg) 22%, transparent);
    border-radius: 9999px;
    padding: 0 12px 0 16px;
    width: 320px;
    max-width: 90vw;
    transition: border-color .25s, box-shadow .25s;
}
.pf-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 20%, transparent);
}
.pf-search__input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--ton-bg);
    font: inherit;
    font-size: 11px;
    letter-spacing: .1em;
    width: 100%;
    padding: 8px 0;
}
.pf-search__input::placeholder { opacity: .4; }
.pf-search__btn { background: none; border: none; color: var(--ton-bg); cursor: pointer; padding: 6px 4px; opacity: .5; transition: opacity .2s; }
.pf-search__btn:hover { opacity: 1; }

.pf-cats { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.pf-cat-btn {
    position: relative;
    font: inherit;
    font-size: 10px;
    letter-spacing: .13em;
    padding: 7px 18px;
    border-radius: 9999px;
    border: 1px solid color-mix(in srgb, var(--ton-bg) 22%, transparent);
    color: var(--ton-bg);
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .25s, color .25s, box-shadow .25s, background .25s;
    overflow: hidden;
}
.pf-cat-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 22%, transparent),
                inset 0 0 14px color-mix(in srgb, var(--accent) 8%, transparent);
}
.pf-cat-btn--active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-on-accent);
    box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 45%, transparent);
}
.pf-cat-btn--active:hover {
    color: var(--text-on-accent);
    box-shadow: 0 0 32px color-mix(in srgb, var(--accent) 60%, transparent);
}

/* ── Card grid ── */
.pf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
    margin: 48px 5% 140px;
}
.pf-empty { padding: 60px 5%; color: var(--ton-bg); opacity: .4; font-size: 12px; letter-spacing: .12em; }
.pf-swipe-hint { display: none; }
.pf-db-error { padding: 20px 5%; font-size: 11px; letter-spacing: .12em; color: #e55; border-bottom: 1px solid #e5555533; }

.pf-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--ton-bg);
    background: color-mix(in srgb, var(--ton-bg) 3%, var(--bg));
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
    animation: pfCardIn .6s cubic-bezier(.22,1,.36,1) both;
}
.pf-card:nth-child(1)  { animation-delay: .05s; }
.pf-card:nth-child(2)  { animation-delay: .12s; }
.pf-card:nth-child(3)  { animation-delay: .19s; }
.pf-card:nth-child(4)  { animation-delay: .26s; }
.pf-card:nth-child(5)  { animation-delay: .33s; }
.pf-card:nth-child(6)  { animation-delay: .40s; }
.pf-card:nth-child(7)  { animation-delay: .47s; }
.pf-card:nth-child(8)  { animation-delay: .54s; }
.pf-card:nth-child(9)  { animation-delay: .61s; }
.pf-card:nth-child(10) { animation-delay: .68s; }
.pf-card:nth-child(11) { animation-delay: .75s; }
.pf-card:nth-child(12) { animation-delay: .82s; }

.pf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px color-mix(in srgb, var(--accent) 14%, transparent);
}
.pf-card:hover .pf-card__thumb img,
.pf-card:hover .pf-card__thumb video { transform: scale(1.05); }
.pf-card:hover .pf-card__title { color: var(--accent); }

.pf-card__thumb {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: color-mix(in srgb, var(--ton-bg) 6%, var(--bg));
}
.pf-card__thumb img,
.pf-card__thumb video {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
.pf-card__no-thumb { width: 100%; height: 100%; }
.pf-card__cat {
    position: absolute; bottom: 10px; left: 10px;
    font-size: 9px; letter-spacing: .14em;
    background: var(--accent); color: var(--text-on-accent);
    padding: 3px 8px;
}
.pf-card__body {
    padding: 18px 20px;
    flex: 1;
    border-top: 1px solid color-mix(in srgb, var(--ton-bg) 8%, transparent);
}
.pf-card__title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    margin: 0 0 6px;
    transition: color .25s;
}
.pf-card__link-hint { font-size: 9px; letter-spacing: .1em; opacity: .45; display: block; }

/* ── Detail page ── */
.pf-detail { max-width: 1100px; margin: 0 auto; padding: calc(var(--hdr-h) + var(--mq-h) - 5vh) 5% 80px; position: relative; z-index: 1; }
.pf-back {
    display: inline-block; font-size: 10px; letter-spacing: .14em;
    color: var(--ton-bg); opacity: .55; text-decoration: none;
    margin-bottom: 24px;
    transition: opacity .2s;
}
.pf-back:hover { opacity: 1; }
.pf-detail__cat { display: block; font-size: 10px; letter-spacing: .16em; color: var(--accent); margin-bottom: 10px; }
.pf-detail__title { font-size: clamp(1.6rem, 4vw, 3rem); font-weight: 700; letter-spacing: .04em; margin: 0 0 16px; }
.pf-detail__link {
    display: inline-block; font-size: 11px; letter-spacing: .12em;
    color: var(--accent); text-decoration: none;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 1px; margin-bottom: 32px;
}
.pf-detail__desc { margin-top: 40px; font-size: 14px; line-height: 1.8; opacity: .8; max-width: 680px; }
.pf-detail__footer { margin-top: 60px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.pf-admin-link { font-size: 10px; letter-spacing: .14em; color: var(--ton-bg); opacity: .4; text-decoration: none; }
.pf-admin-link:hover { opacity: 1; }

/* WebDev: scrollable screenshots */
.pf-webdev { display: flex; flex-direction: column; gap: 4px; }
.pf-webdev__screen { overflow: hidden; border: 1px solid color-mix(in srgb, var(--ton-bg) 10%, transparent); }
.pf-webdev__screen img { width: 100%; display: block; }

/* Graphic Design: diagonal-line background */

html.pg-adcampaigns {
    background-image:
        radial-gradient(ellipse 70% 55% at 0% 5%,  color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 65%),
        radial-gradient(ellipse 55% 45% at 100% 95%, color-mix(in srgb, var(--accent)  7%, transparent) 0%, transparent 60%);
}

html.pg-motiondesign {
    background-image: radial-gradient(
        circle,
        color-mix(in srgb, var(--accent) 9%, transparent) 1.5px,
        transparent 1.5px
    );
    background-size: 28px 28px;
}

html.pg-graphicdesign {
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 22px,
        color-mix(in srgb, var(--accent) 8%, transparent) 22px,
        color-mix(in srgb, var(--accent) 8%, transparent) 23px
    );
}

/* Graphic Design: carousel */
.pf-carousel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: 1fr auto;
    align-items: center;
    gap: 0 16px;
    margin: 32px 0 72px;
    user-select: none;
}
.pf-carousel__clip {
    grid-column: 2; grid-row: 1;
    position: relative;
    overflow: hidden;
}
.pf-carousel__track {
    display: flex;
    gap: 20px;
    transition: transform .45s cubic-bezier(.25,.46,.45,.94);
    will-change: transform;
}
.pf-carousel__track.is-dragging { transition: none; }
.pf-carousel__track.is-panning  { cursor: move; }
@media (hover: hover) {
    .pf-carousel__track              { cursor: grab; }
    .pf-carousel__track.is-dragging { cursor: grabbing; }
}
.pf-carousel__slide {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    overflow: hidden;
    cursor: pointer;
    /* faint card so a contained image still "peeks" at the edges */
    background: color-mix(in srgb, var(--ton-bg) 4%, transparent);
    border-radius: 10px;
    /* non-active slides recede; the centered one pops */
    opacity: .3;
    transform: scale(.92);
    transition: opacity .45s ease, transform .45s ease;
}
.pf-carousel__slide.is-active {
    opacity: 1;
    transform: scale(1);
}
.pf-carousel__slide img {
    display: block;
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    transform-origin: center center;
    transition: transform .25s ease;
    pointer-events: none;
}
/* Nav buttons — icon-only, outside the clip */
.pf-carousel__btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 12px 4px;
    line-height: 1;
    opacity: .55;
    transition: opacity .2s;
    display: flex; align-items: center; justify-content: center;
}
.pf-carousel__btn:hover { opacity: 1; }
.pf-carousel__btn--prev { grid-column: 1; grid-row: 1; }
.pf-carousel__btn--next { grid-column: 3; grid-row: 1; }
/* Dots */
.pf-carousel__dots {
    grid-column: 1 / -1; grid-row: 2;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}
.pf-carousel__dot {
    width: 6px; height: 6px; border-radius: 3px;
    background: var(--text-on-bg); opacity: .22;
    border: none; cursor: pointer; padding: 0;
    transition: all .25s ease;
}
.pf-carousel__dot--active { opacity: 1; background: var(--accent); width: 22px; }


/* Image modal */
.pf-img-modal {
    position: fixed; inset: 0;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(12px);
    display: flex; align-items: center; justify-content: center;
    z-index: 9000;
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
}
.pf-img-modal.is-open { opacity: 1; pointer-events: all; }
.pf-img-modal__img {
    max-width: 92vw; max-height: 88vh;
    object-fit: contain;
    display: block;
}
.pf-img-modal__close {
    position: absolute; top: 16px; right: 20px;
    background: none; border: none;
    color: var(--accent); font-size: 2rem; cursor: pointer;
    line-height: 1; opacity: .7; transition: opacity .2s;
    z-index: 2;
}
.pf-img-modal__close:hover { opacity: 1; }
.pf-img-modal__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: none; border: none;
    color: var(--accent); cursor: pointer;
    padding: 16px 12px; opacity: .6;
    transition: opacity .2s; z-index: 2;
}
.pf-img-modal__nav:hover { opacity: 1; }
.pf-img-modal__nav--prev { left: 12px; }
.pf-img-modal__nav--next { right: 12px; }
.pf-img-modal__counter {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    font-size: .6rem; letter-spacing: .12em;
    color: var(--text-on-bg); opacity: .45;
}

/* Motion: video player */
.pf-video-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; background: transparent; }
.pf-video { width: 100%; height: 100%; object-fit: contain; display: block; }
.pf-video__cover { width: 100%; height: 100%; object-fit: cover; display: block; }

/* play/pause — centered circle, shows on wrap hover or when paused */
.pf-video__play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2;
    width: 72px; height: 72px; border-radius: 50%;
    background: color-mix(in srgb, var(--bg) 65%, transparent);
    backdrop-filter: blur(6px);
    border: none; color: #fff;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .25s, color .2s, background .2s;
    pointer-events: none;
}
.pf-video-wrap:hover .pf-video__play-btn,
.pf-video-wrap--paused .pf-video__play-btn { opacity: 1; pointer-events: auto; }
.pf-video__play-btn:hover { color: var(--accent); background: color-mix(in srgb, var(--bg) 82%, transparent); }
@media (hover: none) { .pf-video__play-btn { opacity: .75; pointer-events: auto; } }

/* fullscreen — top-left */
.pf-video__fullscreen-btn {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    width: 34px; height: 34px; border-radius: 50%;
    background: color-mix(in srgb, var(--bg) 65%, transparent);
    backdrop-filter: blur(6px);
    border: none; color: var(--text-on-bg);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    opacity: .55; transition: opacity .2s, color .2s;
}
.pf-video__fullscreen-btn:hover { opacity: 1; color: var(--accent); }

/* mute — top-right */
.pf-video__mute-btn {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 34px; height: 34px; border-radius: 50%;
    background: color-mix(in srgb, var(--bg) 65%, transparent);
    backdrop-filter: blur(6px);
    border: none; color: var(--text-on-bg);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    opacity: .55; transition: opacity .2s, color .2s;
}
.pf-video__mute-btn:hover { opacity: 1; color: var(--accent); }

/* mobile: video breaks out of side padding for full width */
@media (max-width: 640px) {
    .pf-video-wrap { margin-left: -5%; margin-right: -5%; }
}

/* Ads: blog style */
.pf-blog { max-width: 760px; margin: 0 auto; }
.pf-blog__images { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.pf-blog__images img { max-width: 100%; max-height: 400px; object-fit: cover; flex: 1 1 280px; }
.pf-blog__text { font-size: 14px; line-height: 1.85; opacity: .85; }

/* Chatbot UI */
.pf-chat {
    --chat-primary: var(--accent);
    --chat-bg: var(--bg);
    --chat-user-bubble: var(--chat-primary);
    --chat-user-text: #000;
    --chat-bot-bubble: color-mix(in srgb, var(--text-on-bg) 7%, transparent);
    --chat-bot-text: var(--text-on-bg);
    max-width: 680px; margin: 0 auto;
    background: var(--chat-bg);
    border: 1px solid color-mix(in srgb, var(--chat-primary) 30%, transparent);
    display: flex; flex-direction: column;
    height: 480px;
}
[data-theme="light"] .pf-chat { --chat-user-text: #fff; }
.pf-chat__messages {
    flex: 1; overflow-y: auto; padding: 20px 16px; display: flex; flex-direction: column; gap: 14px;
    scrollbar-width: thin; scrollbar-color: var(--chat-primary) transparent;
}
.pf-chat__msg { display: flex; align-items: flex-end; gap: 8px; }
.pf-chat__msg--user { flex-direction: row-reverse; }
.pf-chat__icon {
    flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
    background: color-mix(in srgb, var(--chat-primary) 15%, transparent);
    display: flex; align-items: center; justify-content: center;
    color: var(--chat-primary);
}
.pf-chat__icon--emoji { font-size: 16px; background: none; }
.pf-chat__icon--svg svg { width: 16px; height: 16px; }
.pf-chat__bubble {
    max-width: 72%; padding: 10px 14px;
    font-size: 12px; letter-spacing: .04em; line-height: 1.7;
    background: var(--chat-bot-bubble);
    color: var(--chat-bot-text);
}
.pf-chat__msg--user .pf-chat__bubble {
    background: var(--chat-user-bubble);
    color: var(--chat-user-text);
}
.pf-chat__dots { display: inline-flex; gap: 4px; align-items: center; height: 16px; }
.pf-chat__dots i {
    display: block; width: 5px; height: 5px; border-radius: 50%;
    background: var(--chat-primary); opacity: .6;
    animation: chat-dot .9s infinite both;
}
.pf-chat__dots i:nth-child(2) { animation-delay: .2s; }
.pf-chat__dots i:nth-child(3) { animation-delay: .4s; }
@keyframes chat-dot { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-5px)} }
.pf-chat__input-row {
    display: flex; align-items: flex-end;
    border-top: 1px solid color-mix(in srgb, var(--chat-primary) 30%, transparent);
}
.pf-chat__input {
    flex: 1; background: none; border: none; outline: none; resize: none;
    padding: 14px 16px; font: inherit; font-size: 12px; letter-spacing: .06em;
    color: var(--text-on-bg); line-height: 1.5; min-height: 48px;
}
.pf-chat__input::placeholder { opacity: .4; }
.pf-chat__send {
    flex-shrink: 0; width: 48px; height: 48px; background: none; border: none;
    color: var(--chat-primary); cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: opacity .2s;
}
.pf-chat__send:hover { opacity: .7; }

/* ── Chatbot bg pattern ── */
.pf-chat-bg {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 0; overflow: hidden;
}
.pf-chat-bg__i {
    position: absolute;
    left: var(--x); top: var(--y);
    width: var(--s); height: var(--s);
    color: var(--accent); display: block;
    opacity: var(--op);
    animation:
        cb-fl var(--dur)                 ease-in-out infinite var(--del),
        cb-fd calc(var(--dur) * 1.6)     ease-in-out infinite var(--del);
}
@keyframes cb-fl {
    0%,100% { transform: translateY(0)     rotate(var(--rot,0deg)) scale(1); }
    50%     { transform: translateY(-18px) rotate(var(--rot,0deg)) scale(1.06); }
}
@keyframes cb-fd {
    0%,100% { opacity: var(--op); }
    50%     { opacity: calc(var(--op) * 0.25); }
}

/* Admin: color pickers + two-theme layout */
.admin-field--row { display: flex; gap: 24px; flex-wrap: wrap; }
.admin-field--themes { display: flex; gap: 24px; flex-wrap: wrap; }
.admin-theme-col { flex: 1 1 260px; }
.admin-theme-label { display: block; font-size: 9px; letter-spacing: .18em; opacity: .5; margin-bottom: 10px; }
.admin-color-row { display: flex; gap: 12px; flex-wrap: wrap; }
.admin-color-cell { display: flex; flex-direction: column; gap: 4px; }
.admin-color-cell .admin-label { font-size: 8px; }
.admin-color { width: 40px; height: 30px; border: none; padding: 0; background: none; cursor: pointer; border-radius: 3px; }
.admin-color-wrap { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.admin-color-hint { font-size: 9px; letter-spacing: .1em; opacity: .5; }
.admin-textarea--sm { font-size: 11px; }

/* Automation flow */
.pf-automation { max-width: 900px; }
.pf-automation__flow {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    margin-bottom: 32px;
}
.pf-automation__side { flex: 1 1 200px; display: flex; flex-direction: column; gap: 12px; }
.pf-automation__label {
    font-size: 9px; letter-spacing: .18em; color: var(--accent);
    padding-bottom: 6px; border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.pf-automation__side img { width: 100%; object-fit: contain; max-height: 320px; }
.pf-automation__empty { opacity: .35; font-size: 11px; }
.pf-automation__arrow {
    flex-shrink: 0; color: var(--accent); opacity: .7;
    display: flex; align-items: center;
}
.pf-automation__others {
    display: flex; flex-wrap: wrap; gap: 12px;
    border-top: 1px solid color-mix(in srgb, var(--text-on-bg) 10%, transparent);
    padding-top: 20px; margin-top: 4px;
}
.pf-automation__others img { flex: 1 1 200px; max-height: 280px; object-fit: contain; }

/* Admin: chatbot-specific inputs */
.admin-radio-group { display: flex; gap: 24px; align-items: center; margin-top: 4px; }
.admin-radio { display: flex; gap: 8px; align-items: center; font-size: 11px; letter-spacing: .12em; cursor: pointer; }
.admin-radio input[type=radio] { accent-color: var(--accent); cursor: pointer; }
.admin-select { background: var(--bg); color: var(--text-on-bg); border: 1px solid color-mix(in srgb, var(--text-on-bg) 25%, transparent); padding: 8px 10px; font: inherit; font-size: 11px; letter-spacing: .08em; width: 100%; }
.admin-select--sm { width: auto; padding: 4px 6px; font-size: 9px; }

/* ════════════════════════════════════════════════════════════════
   PORTFOLIO ADMIN
════════════════════════════════════════════════════════════════ */
.admin-section { padding: calc(var(--hdr-h) + var(--mq-h) + 40px) 5% 80px; }
.admin-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.admin-title { font-size: clamp(1.2rem, 3vw, 2rem); font-weight: 700; letter-spacing: .06em; margin: 0; }
.admin-add-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-add-btn {
    font: inherit; font-size: 10px; letter-spacing: .14em;
    padding: 7px 14px; background: var(--accent); color: var(--text-on-accent);
    text-decoration: none; transition: opacity .2s;
}
.admin-add-btn:hover { opacity: .8; }

.admin-list { display: flex; flex-direction: column; gap: 2px; }
/* ── Sort toolbar ────────────────────────────────────────────── */
.admin-sort-bar {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px;
    background: color-mix(in srgb, var(--accent) 5%, var(--bg));
    border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent);
    margin-bottom: 3px;
    font-size: 9px; letter-spacing: .16em;
}
.admin-sort-status { font-size: 9px; letter-spacing: .14em; color: var(--accent); min-width: 80px; }

/* Reorder mode — highlight entire list */
.admin-list--reorder { outline: 1px dashed color-mix(in srgb, var(--accent) 30%, transparent); }

.admin-row {
    display: flex; align-items: center; gap: 16px;
    padding: 12px; background: color-mix(in srgb, var(--ton-bg) 4%, var(--bg));
    transition: background .15s;
}
.admin-row[draggable="true"] { cursor: default; }
.admin-row--dragging {
    opacity: .45;
    background: color-mix(in srgb, var(--accent) 8%, var(--bg));
    outline: 1px dashed var(--accent);
}
.admin-row__drag {
    flex-shrink: 0;
    font-size: 16px;
    opacity: .3;
    cursor: grab;
    padding: 0 4px;
    user-select: none;
    transition: opacity .15s;
}
.admin-row:hover .admin-row__drag { opacity: .7; }
.admin-row__drag:active { cursor: grabbing; }
.admin-row__thumb { width: 80px; height: 56px; object-fit: cover; flex-shrink: 0; }
.admin-row__thumb--empty { width: 80px; height: 56px; background: color-mix(in srgb, var(--ton-bg) 10%, var(--bg)); flex-shrink: 0; }
.admin-row__info { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.admin-row__cat { font-size: 9px; letter-spacing: .14em; color: var(--accent); }
.admin-row__title { font-size: 13px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-row__url { font-size: 10px; opacity: .5; text-decoration: none; color: var(--ton-bg); }
.admin-row__url:hover { opacity: 1; }
.admin-row__actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ── Chart builder (admin) ── */
.cbuilder { display: flex; flex-direction: column; gap: 20px; margin-bottom: 8px; }
.cbuilder-card { border: 1px solid color-mix(in srgb,var(--ton-bg) 18%,transparent); padding: 20px 20px 16px; }
.cbuilder-card__hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cbuilder-num { font-size: 9px; letter-spacing: .2em; opacity: .45; }
.cbuilder-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.cbuilder-row .admin-field { flex: 1 1 180px; margin-bottom: 0; }
.cbuilder-pts { width: 100%; border-collapse: collapse; margin: 8px 0; }
.cbuilder-pts th { font-size: 8px; letter-spacing: .15em; opacity: .4; padding: 4px 8px; text-align: left; border-bottom: 1px solid color-mix(in srgb,var(--ton-bg) 10%,transparent); }
.cbuilder-pts td { padding: 4px 4px; vertical-align: middle; }
.cbuilder-pts td:last-child { width: 32px; }
.cbuilder-pts .admin-input { padding: 5px 8px; font-size: 11px; }
.cbuilder-preview-wrap { height: 220px; position: relative; margin-top: 6px; }
.cbuilder-preview { width: 100% !important; height: 100% !important; }

/* ── AdCampaigns detail charts ── */
.pf-client { display: block; font-size: 10px; letter-spacing: .16em; opacity: .5; margin-bottom: 20px; }
.pf-charts { max-width: 900px; margin: 56px auto 0; display: flex; flex-direction: column; gap: 56px; }
.pf-chart-card { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.pf-chart-card--visible { opacity: 1; transform: none; }
.pf-chart-card__title { font-size: 11px; letter-spacing: .14em; opacity: .6; margin-bottom: 18px; }
.pf-chart-wrap { position: relative; height: 340px; }
.pf-chart-wrap canvas { width: 100% !important; height: 100% !important; }

.admin-btn {
    font: inherit; font-size: 9px; letter-spacing: .14em;
    padding: 5px 12px; border: 1px solid transparent;
    cursor: pointer; text-decoration: none; transition: all .2s;
    background: transparent; color: var(--ton-bg);
}
.admin-btn--view  { border-color: color-mix(in srgb, var(--ton-bg) 30%, transparent); }
.admin-btn--view:hover { border-color: var(--ton-bg); }
.admin-btn--edit  { border-color: var(--accent); color: var(--accent); }
.admin-btn--edit:hover { background: var(--accent); color: var(--text-on-accent); }
.admin-btn--del   { border-color: #e55; color: #e55; }
.admin-btn--del:hover { background: #e55; color: #fff; }
.admin-btn--cancel { border-color: color-mix(in srgb, var(--ton-bg) 30%, transparent); }
.admin-empty { font-size: 12px; letter-spacing: .12em; opacity: .4; padding: 40px 0; }

/* ── Admin search ────────────────────────────────────────────── */
.admin-search-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.admin-search-input {
    flex: 1;
    max-width: 360px;
    background: transparent;
    border: none;
    border-bottom: 1px solid color-mix(in srgb, var(--text-on-bg) 20%, transparent);
    outline: none;
    font-family: var(--font);
    font-size: 11px;
    letter-spacing: .12em;
    color: var(--text-on-bg);
    padding: 8px 0 10px;
    transition: border-color .2s;
}
.admin-search-input:focus { border-color: var(--accent); }
.admin-search-input::placeholder { opacity: .35; }
.admin-search-count {
    font-size: 9px;
    letter-spacing: .18em;
    color: var(--accent);
    opacity: .6;
}

/* ── Admin pagination ────────────────────────────────────────── */
.admin-pagination {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}
.admin-page-btn { min-width: 130px; justify-content: center; }
.admin-page-btn:disabled { opacity: .25; cursor: default; }
.admin-page-info {
    font-size: 10px;
    letter-spacing: .18em;
    opacity: .5;
}

/* ── Admin account bar (bottom) ──────────────────────────────── */
.admin-account-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid color-mix(in srgb, var(--text-on-bg) 10%, transparent);
}
.admin-account-user {
    font-size: 9px;
    letter-spacing: .2em;
    opacity: .4;
}
.admin-account-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Admin form */
.admin-form { max-width: 720px; display: flex; flex-direction: column; gap: 24px; margin-top: 32px; }
.admin-field { display: flex; flex-direction: column; gap: 8px; }
.admin-label { font-size: 10px; letter-spacing: .14em; opacity: .6; }
.admin-input {
    background: color-mix(in srgb, var(--ton-bg) 5%, var(--bg));
    border: 1px solid color-mix(in srgb, var(--ton-bg) 20%, transparent);
    color: var(--ton-bg); font: inherit; font-size: 13px;
    padding: 10px 14px; outline: none;
    transition: border-color .2s;
}
.admin-input:focus { border-color: var(--accent); }
.admin-textarea {
    background: color-mix(in srgb, var(--ton-bg) 5%, var(--bg));
    border: 1px solid color-mix(in srgb, var(--ton-bg) 20%, transparent);
    color: var(--ton-bg); font: inherit; font-size: 13px;
    padding: 10px 14px; outline: none; resize: vertical;
    transition: border-color .2s; line-height: 1.7;
}
.admin-textarea:focus { border-color: var(--accent); }
.admin-input--textarea { resize: vertical; line-height: 1.6; }
.admin-input--svg { font-size: 10px; font-family: monospace; opacity: .7; }

/* Icon picker */
.icon-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-bottom: 8px;
}
.icon-picker__btn {
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid color-mix(in srgb, var(--ton-bg) 20%, transparent);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: border-color .15s, background .15s;
    position: relative;
}
.icon-picker__btn:hover { border-color: var(--accent); }
.icon-picker__btn.is-active {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.icon-picker__btn svg {
    width: 10px; height: 10px;
    fill: none; stroke: var(--ton-bg);
    stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
    transition: stroke .15s;
}
.icon-picker__btn:hover svg,
.icon-picker__btn.is-active svg { stroke: var(--accent); }
/* Tooltip on hover */
.icon-picker__btn::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%; transform: translateX(-50%);
    font: 400 8px/1 var(--font); letter-spacing: .08em;
    background: var(--bg); color: var(--ton-bg);
    border: 1px solid color-mix(in srgb, var(--ton-bg) 20%, transparent);
    padding: 3px 6px; white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: opacity .15s;
    z-index: 20;
}
.icon-picker__btn:hover::after { opacity: 1; }
.admin-input--file { padding: 8px 14px; cursor: pointer; }
.wp-root-fields { border-left: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); padding-left: 14px; margin-bottom: 4px; }
.admin-input--file::file-selector-button {
    font: inherit; font-size: 10px; letter-spacing: .12em;
    background: var(--accent); color: var(--text-on-accent);
    border: none; padding: 5px 12px; cursor: pointer; margin-right: 12px;
}
.admin-hint { font-size: 10px; opacity: .5; letter-spacing: .08em; margin: 0; }
.admin-error { font-size: 10px; color: #e55; letter-spacing: .1em; }
.admin-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.admin-submit {
    font: inherit; font-size: 11px; letter-spacing: .14em;
    background: var(--accent); color: var(--text-on-accent);
    border: none; padding: 12px 28px; cursor: pointer; transition: opacity .2s;
}
.admin-submit:hover { opacity: .85; }

/* ── Language tabs (admin forms) ── */
.lang-tabs-wrap { margin-bottom: 8px; }
.lang-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--ton-bg) 15%, transparent);
    margin-bottom: 16px;
}
.lang-tab {
    font: inherit; font-size: 10px; letter-spacing: .14em;
    padding: 7px 18px;
    background: transparent; border: none; color: var(--ton-bg);
    cursor: pointer; opacity: .4;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: opacity .2s, border-color .2s, color .2s;
}
.lang-tab--active { opacity: 1; border-bottom-color: var(--accent); color: var(--accent); }
.lang-tab:hover:not(.lang-tab--active) { opacity: .7; }
.lang-panel { display: none; }
.lang-panel--active { display: block; }

/* ── Multilingual public blocks ── */
.ml-block { display: none; }
.ml-block.ml-active { display: block; }

/* Admin existing media */
.admin-existing-media { display: flex; flex-wrap: wrap; gap: 12px; }
.admin-media-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.admin-media-thumb { width: 120px; height: 80px; object-fit: cover; border: 1px solid color-mix(in srgb, var(--ton-bg) 15%, transparent); }
.admin-media-badge { font-size: 8px; letter-spacing: .12em; background: var(--accent); color: var(--text-on-accent); padding: 2px 6px; }
.admin-media-del { font-size: 9px; letter-spacing: .12em; color: #e55; cursor: pointer; display: flex; gap: 4px; align-items: center; }
.admin-media-drag { cursor: grab; font-size: 16px; line-height: 1; color: color-mix(in srgb, var(--text-on-bg) 40%, transparent); }
.admin-media-drag:active { cursor: grabbing; }
.admin-media-item.is-dragging { opacity: .3; }
.admin-media-cover { font-size: 9px; letter-spacing: .12em; color: var(--accent); cursor: pointer; display: flex; gap: 4px; align-items: center; }
.admin-media-cover input[type=radio] { accent-color: var(--accent); cursor: pointer; }
.admin-label-hint { font-size: 9px; letter-spacing: .08em; color: color-mix(in srgb, var(--text-on-bg) 45%, transparent); font-weight: 400; }

/* Admin image preview */
.admin-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.admin-preview__img { width: 100px; height: 70px; object-fit: cover; border: 1px solid color-mix(in srgb, var(--ton-bg) 20%, transparent); }

@media (max-width: 768px) {
    .pf-grid { grid-template-columns: 1fr; margin: 72px 4% 0; padding-bottom: 220px; }
    .pf-filters-wrap { flex-direction: column; align-items: flex-start; padding: 8px 5% 0; gap: 20px; }
    .pf-search { width: 100%; max-width: 100%; }
    .pf-cats {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        scrollbar-width: none;
        padding-bottom: 2px;
        mask-image: linear-gradient(to right, black 75%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black 75%, transparent 100%);
    }
    .pf-cat-btn {
        font-size: 7px;
        letter-spacing: .08em;
        padding: 4px 10px;
        flex-shrink: 0;
        border-color: color-mix(in srgb, var(--ton-bg) 14%, transparent);
        box-shadow: none;
    }
    .pf-hero__sub { font-size: 9px; letter-spacing: .14em; }
    .pf-hero { padding: 48px 5% 24px; }
    .pf-swipe-hint { display: block; font-size: 7px; letter-spacing: .14em; opacity: .3; margin-top: 6px; }
    .admin-row { flex-wrap: wrap; }
    .admin-row__thumb, .admin-row__thumb--empty { width: 60px; height: 42px; }
    .admin-header { flex-direction: column; }
}

/* ════════════════════════════════════════════════════════════════
   WEBSITE PAGES — DIAGRAM
════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════
   WEBSITE PAGES — CIRCULAR WORKFLOW DIAGRAM
════════════════════════════════════════════════════════════════ */
html.pg-webdev #main-content {
    background-image:
        linear-gradient(color-mix(in srgb, var(--accent) 8%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--accent) 8%, transparent) 1px, transparent 1px);
    background-size: 32px 32px;
}

.wdd-wrap {
    margin-top: 8px;
    padding: 24px 0 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: auto;
}

/* Desktop: root nodes flow left → right */
.wdd-tree {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    min-width: max-content;
    padding: 40px 64px;
}

.wdd-panel {
    width: 100%;
}

.wdd-branch {
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* ── Circular node ── */
.wdd-card {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bg);
    box-shadow:
        0 0 10px color-mix(in srgb, var(--accent) 40%, transparent),
        0 0 28px color-mix(in srgb, var(--accent) 12%, transparent);
    transition: box-shadow .3s;
    overflow: visible;
}
.wdd-card--root {
    width: 68px;
    height: 68px;
}
.wdd-card:hover {
    box-shadow:
        0 0 24px color-mix(in srgb, var(--accent) 60%, transparent),
        0 0 60px color-mix(in srgb, var(--accent) 20%, transparent);
}
.wdd-card--active {
    box-shadow:
        0 0 30px color-mix(in srgb, var(--accent) 70%, transparent),
        0 0 72px color-mix(in srgb, var(--accent) 26%, transparent);
}

/* SVG icon directly inside the circle */
.wdd-card > svg {
    width: 22px; height: 22px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: var(--accent);
    position: relative; z-index: 1;
}
.wdd-card--root > svg {
    width: 28px; height: 28px;
}

/* Page title label below the circle */
.wdd-node-label {
    position: absolute;
    top: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    letter-spacing: .1em;
    color: var(--ton-bg);
    opacity: .6;
    white-space: nowrap;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    pointer-events: none;
}

/* ── Desktop connectors: L-shaped glow lines (left → right) ── */

/* children group sits to the right; border-left = vertical spine */
.wdd-children {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: center;
    margin-left: 28px;
    border-left: 2px solid var(--accent);
    padding-left: 28px;
    filter: drop-shadow(0 0 4px color-mix(in srgb, var(--accent) 55%, transparent));
}
.wdd-children--single {
    border-left: none;
    filter: none;
}

/* Horizontal line: node right → spine */
.wdd-children::before {
    content: '';
    position: absolute;
    left: -28px; top: 50%;
    width: 28px; height: 2px;
    background: var(--accent);
    transform: translateY(-50%);
    filter: drop-shadow(0 0 4px var(--accent));
}
.wdd-children--single::before { filter: drop-shadow(0 0 4px var(--accent)); }

/* Stub: spine → each child */
.wdd-children > .wdd-branch { position: relative; }
.wdd-children > .wdd-branch::before {
    content: '';
    position: absolute;
    left: -28px; top: 50%;
    width: 22px; height: 2px;
    background: var(--accent);
    transform: translateY(-50%);
}
/* No arrowheads — lines only */
.wdd-children > .wdd-branch::after { display: none; }

/* Extend stub to full padding width (no gap for removed arrowhead) */
.wdd-children > .wdd-branch::before {
    width: 28px;
}

/* ── Mobile: top → bottom ── */
@media (max-width: 768px) {
    .wdd-wrap  { overflow-x: hidden; padding: 4px 0 32px; margin-top: 4px; }
    .wdd-tree  { flex-direction: column; align-items: center;
                 min-width: unset; width: 100%; padding: 24px 16px; }
    .wdd-branch { flex-direction: column; align-items: center; }

    /* Hide labels on mobile/tablet */
    .wdd-node-label { display: none; }

    /* Smaller nodes on mobile */
    .wdd-card       { width: 38px; height: 38px; }
    .wdd-card--root { width: 46px; height: 46px; }
    .wdd-card > svg       { width: 15px; height: 15px; }
    .wdd-card--root > svg { width: 18px; height: 18px; }

    .wdd-children {
        flex-direction: column;
        margin-left: 0;
        margin-top: 28px;
        border-left: none;
        border-top: none;
        padding-left: 0;
        padding-top: 0;
        gap: 28px;
        align-self: center;
        filter: none;
    }
    .wdd-children--single { margin-top: 28px; }

    /* Vertical line: node bottom → child top */
    .wdd-children::before {
        left: 50%; top: -28px;
        width: 2px; height: 28px;
        transform: translateX(-50%);
        filter: drop-shadow(0 0 4px var(--accent));
    }
    .wdd-children > .wdd-branch::before {
        left: 50%; top: -28px;
        width: 2px; height: 28px;
        transform: translateX(-50%);
    }
}

/* ── Image panel below diagram ── */
.wdd-panel {
    margin-top: 32px;
    border-top: 1px solid color-mix(in srgb, var(--ton-bg) 12%, transparent);
    padding-top: 24px;
}
.wdd-panel__hint { font-size: 11px; letter-spacing: .12em; opacity: .4; }
.wdd-panel__header {
    display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 12px;
}
.wdd-panel__title { font-size: 16px; font-weight: 700; letter-spacing: .06em; }
.wdd-panel__url {
    font-size: 10px; letter-spacing: .12em; color: var(--accent);
    text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 1px;
}
.wdd-panel__desc { font-size: 11px; opacity: .6; margin-bottom: 20px; line-height: 1.6; }
.wdd-panel__images { display: flex; flex-direction: column; gap: 4px; }
.wdd-panel__screen { border: 1px solid color-mix(in srgb, var(--ton-bg) 10%, transparent); overflow: hidden; }
.wdd-panel__screen img { width: 100%; display: block; }
.wdd-panel__empty { font-size: 11px; opacity: .4; letter-spacing: .1em; }

/* Admin manage pages layout */
.wp-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin-top: 32px;
    align-items: start;
}
.wp-section-title {
    font-size: 10px; letter-spacing: .16em; opacity: .5;
    margin: 0 0 16px; font-weight: 400;
}
.wp-add-form { margin-top: 32px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--ton-bg) 12%, transparent); }

/* Admin tree */
.wp-admin-node { margin-bottom: 4px; }
.wp-admin-details { border: 1px solid color-mix(in srgb, var(--ton-bg) 15%, transparent); }
.wp-admin-summary {
    padding: 10px 14px; cursor: pointer; list-style: none;
    display: flex; align-items: center; gap: 12px;
    font-size: 11px; letter-spacing: .1em;
}
.wp-admin-summary::-webkit-details-marker { display: none; }
.wp-admin-summary::before { content: '▶'; font-size: 8px; opacity: .5; transition: transform .2s; }
details[open] .wp-admin-summary::before { transform: rotate(90deg); }
.wp-admin-title { font-weight: 700; flex: 1; }
.wp-admin-url { color: var(--accent); text-decoration: none; font-size: 10px; }
.wp-admin-imgcount { font-size: 9px; opacity: .5; margin-left: auto; }
.wp-admin-body { padding: 16px; border-top: 1px solid color-mix(in srgb, var(--ton-bg) 10%, transparent); }
.wp-admin-children { margin-left: 20px; padding-left: 12px; border-left: 2px solid color-mix(in srgb, var(--accent) 30%, transparent); margin-top: 4px; }

/* Diagram preview in admin */
.wdd-preview {
    position: sticky; top: calc(var(--hdr-h) + var(--mq-h) + 20px);
    background: color-mix(in srgb, var(--ton-bg) 3%, var(--bg));
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
}
.wdd-empty { font-size: 11px; opacity: .4; letter-spacing: .1em; }

@media (max-width: 900px) {
    .wp-layout { grid-template-columns: 1fr; }
    .wdd-preview { position: static; }
}

/* ── Stats / Charts section ──────────────────────────────────── */
.stats-section {
    padding: 100px 5% 120px;
    position: relative;
}
.stats-section::before {
    content: '';
    display: block;
    height: 1px;
    background: var(--accent);
    width: 60px;
    margin: 0 auto 80px;
}
.stats-section__inner { max-width: 1280px; margin: 0 auto; }

.stats-header { text-align: center; margin-bottom: 64px; }
.stats-eyebrow {
    display: block;
    font-size: 10px; letter-spacing: .22em;
    color: var(--accent); margin-bottom: 16px;
}
.stats-title {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 700; letter-spacing: .07em;
    margin: 0 0 20px; line-height: 1.1;
}
.stats-sub {
    font-size: 10px; letter-spacing: .12em;
    opacity: .5; max-width: 580px;
    margin: 0 auto; line-height: 2;
}

/* 4-column grid — one row on desktop */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* card base */
.stat-card {
    padding: 28px 28px 24px;
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
    opacity: 0;
}
.stat-card--visible {
    animation: statCardIn .45s ease forwards;
}
.stat-card--visible:nth-child(2) { animation-delay: .07s; }
.stat-card--visible:nth-child(3) { animation-delay: .14s; }
.stat-card--visible:nth-child(4) { animation-delay: .21s; }
@keyframes statCardIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.stat-card__tag {
    display: block;
    font-size: 9px; letter-spacing: .2em;
    color: var(--accent); margin-bottom: 6px;
}
.stat-card__title {
    font-size: 13px; letter-spacing: .12em;
    font-weight: 700; margin-bottom: 20px;
}
.stat-card__num {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 700; letter-spacing: .04em;
    color: var(--accent); line-height: 1;
    margin-bottom: 6px;
}
.stat-card__num--inf  { font-size: clamp(64px, 9vw, 104px); margin-top: -40px; }
.stat-card__num--hash { font-size: clamp(52px, 7.5vw, 88px); margin-top: -24px; }
.stat-card__desc {
    font-size: 9px; letter-spacing: .14em;
    opacity: .45; margin-bottom: 20px;
}
.stat-card__divider {
    height: 1px;
    background: color-mix(in srgb, var(--text-on-bg) 8%, transparent);
    margin-bottom: 20px;
}

/* canvas wrap — fixed height so grid rows stay aligned */
.stat-card__canvas-wrap { position: relative; flex: 1; min-height: 180px; }
.stat-card__canvas-wrap canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }

/* donut legend */
.stat-card__donut-legend {
    margin-top: 20px;
    display: flex; flex-direction: column; gap: 7px;
}
.stat-donut-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 9px; letter-spacing: .14em;
}
.stat-donut-swatch {
    width: 8px; height: 8px; flex-shrink: 0;
    border-radius: 50%;
}
.stat-donut-pct {
    margin-left: auto; opacity: .6;
}

/* responsive grid */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stats-section { padding: 70px 5% 80px; }
    .stat-card { padding: 20px 18px 18px; }
    .stat-card__canvas-wrap { min-height: 160px; }
}

/* ── Shared section header helpers ──────────────────────────── */
.section-eyebrow {
    display: block;
    font-size: 10px; letter-spacing: .22em;
    color: var(--accent); margin-bottom: 16px;
}
.section-title {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 700; letter-spacing: .07em;
    margin: 0 0 20px; line-height: 1.1;
}
.section-sub {
    font-size: 10px; letter-spacing: .12em;
    opacity: .5; max-width: 580px;
    margin: 0 auto; line-height: 2;
}

/* ── Portfolio Ticker ────────────────────────────────────────── */
.ticker-section {
    padding: 100px 0 80px;
    overflow: hidden;
    position: relative;
}
.ticker-section::before {
    content: '';
    display: block;
    height: 1px;
    background: var(--accent);
    width: 60px;
    margin: 0 auto 80px;
}
.ticker-section__head {
    text-align: center;
    padding: 0 5%;
    margin-bottom: 60px;
}
.ticker-section__head .section-sub { margin: 0 auto; }

.ticker-track {
    width: 100%;
    overflow: hidden;
    margin-bottom: 14px;
}
.ticker-inner {
    display: flex;
    gap: 6px;
    width: max-content;
}
.ticker-track--ltr .ticker-inner {
    animation: tickerLtr 22s linear infinite;
}
.ticker-track--rtl .ticker-inner {
    animation: tickerRtl 22s linear infinite;
}
@keyframes tickerLtr {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes tickerRtl {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}
.ticker-track:hover .ticker-inner { animation-play-state: paused; }

.ticker-bg-orbs {
    position: absolute; inset: 0;
    overflow: hidden; pointer-events: none; z-index: 0;
}
.ticker-bg-orbs span {
    position: absolute; border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 70%);
    animation: orbFloat ease-in-out infinite;
}
.ticker-bg-orbs span:nth-child(1) { width: 420px; height: 420px; top: -210px; left: 12%; animation-duration: 24s; }
.ticker-bg-orbs span:nth-child(2) { width: 520px; height: 520px; top: -260px; left: 48%; animation-duration: 32s; animation-delay: -14s; }
.ticker-bg-orbs span:nth-child(3) { width: 360px; height: 360px; top: -180px; left: 79%; animation-duration: 20s; animation-delay: -8s; }
@keyframes orbFloat {
    0%,100% { transform: translate(0,0) scale(1); }
    25%  { transform: translate(-22px,18px) scale(1.06); }
    50%  { transform: translate(16px,-12px) scale(.97); }
    75%  { transform: translate(-12px,22px) scale(1.03); }
}
.ticker-track, .ticker-section__head, .ticker-section__cta { position: relative; z-index: 1; }

.ticker-item {
    flex-shrink: 0;
    width: 260px;
    cursor: default;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: color-mix(in srgb, var(--accent) 5%, var(--bg));
    transition: transform .35s;
}
.ticker-item:hover { transform: translateY(-4px); }
.ticker-item__img {
    width: 260px; height: 170px;
    object-fit: cover;
    display: block;
    background: color-mix(in srgb, var(--accent) 6%, var(--bg));
    filter: grayscale(1) brightness(0.75);
    transition: filter .4s, transform .4s;
    position: relative; z-index: 1;
}
.ticker-item:hover .ticker-item__img {
    filter: grayscale(0) brightness(1);
    transform: scale(1.06);
}
.ticker-item__img--empty { background: color-mix(in srgb, var(--accent) 6%, var(--bg)); }
.ticker-item--placeholder .ticker-item__img { background: color-mix(in srgb, var(--accent) 4%, var(--bg)); }
.ticker-item__label {
    display: block;
    font-size: 9px; letter-spacing: .16em;
    padding: 8px 10px 6px;
    opacity: .6;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    position: relative; z-index: 1;
}

/* Logo separator between loop iterations — fitted to item height */
.ticker-item--logo {
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 150px;
    padding: 0 30px;
}
.ticker-item--logo:hover { transform: none; }
.ticker-logo-mark { height: 38px; width: auto; opacity: .45; }
.ticker-logo-mark.logo-for-light { display: none; }
[data-theme="light"] .ticker-logo-mark.logo-for-dark  { display: none; }
[data-theme="light"] .ticker-logo-mark.logo-for-light { display: block; }
@media (max-width: 600px) {
    .ticker-item--logo { min-width: 140px; padding: 0 32px; }
    .ticker-logo-mark { height: 26px; }
}

.ticker-section__cta {
    text-align: center;
    margin-top: 48px;
    padding: 0 5%;
}
@media (max-width: 600px) {
    .ticker-item { width: 160px; }
    .ticker-item__img { width: 160px; height: 105px; }
    .ticker-track { margin-bottom: 10px; }
    .ticker-section { padding: 70px 0 60px; }
}
.accent-link {
    display: inline-block;
    font-size: 10px; letter-spacing: .22em;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 12px 32px;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.accent-link:hover {
    background: var(--accent);
    color: var(--bg);
}

/* ── World Map ───────────────────────────────────────────────── */
.map-section {
    padding: 100px 5% 80px;
    position: relative;
}
.map-section::before {
    content: '';
    display: block;
    height: 1px;
    background: var(--accent);
    width: 60px;
    margin: 0 auto 80px;
}
.map-section__inner { max-width: 1280px; margin: 0 auto; }
.map-header { text-align: center; margin-bottom: 56px; }
.map-canvas-wrap {
    position: relative;
    width: 100%;
}
.map-canvas-wrap canvas {
    display: block;
    width: 100% !important;
}

/* ── Services Section ────────────────────────────────────────── */
.services-section {
    padding: 100px 5% 80px;
    position: relative;
}
.services-section::before {
    content: '';
    display: block;
    height: 1px;
    background: var(--accent);
    width: 60px;
    margin: 0 auto 80px;
}
.services-section__inner { max-width: 1280px; margin: 0 auto; }
.services-header { text-align: center; margin-bottom: 64px; }

.srv-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
}

.srv-card {
    padding: 40px 28px 44px;
    border-left: 1px solid color-mix(in srgb, var(--text-on-bg) 8%, transparent);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s ease, transform .5s ease, border-left-color .3s;
}
.srv-card:last-child {
    border-right: 1px solid color-mix(in srgb, var(--text-on-bg) 8%, transparent);
}
.srv-card--visible {
    opacity: 1;
    transform: translateY(0);
}
.srv-card--visible:nth-child(2) { transition-delay: .08s; }
.srv-card--visible:nth-child(3) { transition-delay: .16s; }
.srv-card--visible:nth-child(4) { transition-delay: .24s; }
.srv-card--visible:nth-child(5) { transition-delay: .32s; }
.srv-card:hover { border-left-color: var(--accent); }

.srv-card__bg-num {
    position: absolute;
    bottom: -10px; right: 12px;
    font-size: 80px; font-weight: 700; letter-spacing: -.02em;
    color: var(--accent); opacity: 0;
    line-height: 1;
    transition: opacity .35s, transform .35s;
    transform: translateY(8px);
    pointer-events: none;
    user-select: none;
}
.srv-card:hover .srv-card__bg-num { opacity: .07; transform: translateY(0); }

.srv-card__num {
    display: block;
    font-size: 9px; letter-spacing: .22em;
    color: var(--accent); margin-bottom: 20px;
    transition: letter-spacing .25s;
}
.srv-card:hover .srv-card__num { letter-spacing: .3em; }
.srv-card__title {
    font-size: 13px; font-weight: 700;
    letter-spacing: .1em; line-height: 1.4;
    margin: 0 0 16px;
}
.srv-card__desc {
    font-size: 9px; letter-spacing: .12em;
    line-height: 1.9; opacity: .45;
    margin: 0;
}
.srv-card__line {
    position: absolute; bottom: 0; left: 28px; right: 28px;
    height: 1px;
    background: color-mix(in srgb, var(--text-on-bg) 8%, transparent);
}
.srv-card__arrow {
    position: absolute; bottom: 14px; right: 18px;
    font-size: 14px; color: var(--accent);
    opacity: 0; transform: translateX(-8px);
    transition: opacity .25s, transform .25s;
}
.srv-card:hover .srv-card__arrow { opacity: 1; transform: translateX(0); }

@media (max-width: 1100px) {
    .srv-grid { grid-template-columns: repeat(3, 1fr); }
    .srv-card:nth-child(4) { border-left: 1px solid color-mix(in srgb, var(--text-on-bg) 8%, transparent); }
    .srv-card:last-child { border-right: none; }
}
@media (max-width: 700px) {
    .srv-grid { grid-template-columns: 1fr; }
    .srv-card { border-left: none; border-top: 1px solid color-mix(in srgb, var(--text-on-bg) 8%, transparent); }
    .srv-card:last-child { border-right: none; }
    .srv-card__line { display: none; }
}

/* ── Contact Section ─────────────────────────────────────────── */
.contact-section {
    padding: 100px 5% 100px;
    position: relative;
}
.contact-section::before {
    content: '';
    display: block;
    height: 1px;
    background: var(--accent);
    width: 60px;
    margin: 0 auto 80px;
}
.contact-section__inner { max-width: 1100px; margin: 0 auto; }
.contact-header { text-align: center; margin-bottom: 64px; }

.contact-split {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 36px; }
.ci-item { display: flex; flex-direction: column; gap: 8px; }
.ci-label {
    font-size: 9px; letter-spacing: .22em;
    color: var(--accent);
}
.ci-value {
    font-size: 11px; letter-spacing: .1em;
    color: var(--text-on-bg);
    text-decoration: none;
    transition: color .2s;
}
a.ci-value:hover { color: var(--accent); }
.ci-socials {
    display: flex; gap: 16px;
    margin-top: 4px;
}
.ci-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    color: var(--text-on-bg); text-decoration: none;
    border: 1px solid color-mix(in srgb, var(--text-on-bg) 20%, transparent);
    transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.ci-social svg { width: 18px; height: 18px; }
.ci-social:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--text-on-accent);
    transform: translateY(-2px);
}

/* Social links disabled for now (no live profiles yet) — dimmed + inert.
   Remove this block once real profile URLs are added. */
.ci-social,
.soc-icon {
    pointer-events: none;
    opacity: .35;
    cursor: default;
}

@media (max-width: 800px) {
    .contact-split { grid-template-columns: 1fr; gap: 48px; }
}

.contact-form { display: flex; flex-direction: column; gap: 32px; }

.cf-row { display: flex; gap: 32px; }
.cf-row--half .cf-field { flex: 1; }
.cf-row--submit { flex-direction: column; align-items: center; gap: 16px; }
/* center the widget across the row, on mobile and desktop */
.cf-recaptcha { justify-content: center; }
.cf-recaptcha .g-recaptcha-box { display: inline-block; }
.cf-recaptcha .g-recaptcha-box:empty { display: none; }
/* collapse the row entirely until the widget is rendered (keys configured) */
.cf-recaptcha:not(:has(iframe)) { display: none; }

.cf-field {
    display: flex; flex-direction: column;
    position: relative; flex: 1;
}
.cf-label {
    font-size: 9px; letter-spacing: .22em;
    color: var(--accent); margin-bottom: 10px;
}
.cf-input {
    background: transparent;
    border: none; outline: none;
    font-family: 'Space Mono', monospace;
    font-size: 12px; letter-spacing: .1em;
    color: var(--text-on-bg);
    padding: 8px 0 10px;
    width: 100%;
    text-transform: uppercase;
}
.cf-textarea { resize: vertical; min-height: 120px; }
.cf-line {
    display: block;
    height: 1px;
    background: color-mix(in srgb, var(--text-on-bg) 20%, transparent);
    transition: background .25s;
}
.cf-field:focus-within .cf-line {
    background: var(--accent);
}
.cf-status {
    font-size: 9px; letter-spacing: .18em;
    transition: opacity .3s;
}
.cf-status--ok  { color: var(--accent); }
.cf-status--err { color: #ff4444; }

@media (max-width: 600px) {
    .cf-row--half { flex-direction: column; gap: 20px; }
}

/* ── Image Strip Section ─────────────────────────────────────── */
.imgstrip-section {
    padding: 80px 5% 0;
    overflow: hidden;
    position: relative;
}
.imgstrip-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
}
.imgstrip-item {
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 5;
}
.imgstrip-item--tall,
.imgstrip-item--wide { /* equal to all others */ }
.imgstrip-placeholder {
    width: 100%; height: 100%;
    background-color: color-mix(in srgb, var(--accent) 5%, var(--bg));
    background-size: cover;
    background-position: center center;
    display: flex; flex-direction: column;
    justify-content: flex-end;
    padding: 18px 16px;
    transition: background-color .35s;
    position: relative;
}
/* default dim */
.imgstrip-placeholder::before {
    content: '';
    position: absolute; inset: 0;
    background: rgba(0,0,0,.4);
    transition: opacity .35s;
    z-index: 0;
}
/* hover: overlay disappears, image fully visible */
.imgstrip-item:hover .imgstrip-placeholder::before { opacity: 0; }
.imgstrip-placeholder::after { display: none; }
.imgstrip-cat {
    display: inline-block;
    align-self: flex-start;
    font-size: 9px; letter-spacing: .2em;
    color: #fff;
    background: #000;
    padding: 5px 10px;
    position: relative; z-index: 1;
    transform: translateY(4px);
    transition: transform .3s, opacity .3s;
    opacity: 0;
}
.imgstrip-item:hover .imgstrip-cat { opacity: 1; transform: translateY(0); }
.imgstrip-num { display: none; }
.imgstrip-item:hover .imgstrip-placeholder { background-color: transparent; }
.imgstrip-link { display: block; width: 100%; height: 100%; text-decoration: none; color: inherit; }
.imgstrip-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; filter: grayscale(0.4) brightness(0.65);
    transition: filter .4s, transform .5s;
    z-index: 0;
}
.imgstrip-item:hover .imgstrip-img { filter: grayscale(0) brightness(0.8); transform: scale(1.06); }

@media (max-width: 900px) {
    .imgstrip-inner { grid-template-columns: repeat(3, 1fr); }
    .imgstrip-item--wide { grid-column: span 1; }
}
@media (max-width: 500px) {
    .imgstrip-section { padding: 60px 5% 0; }
    .imgstrip-inner { grid-template-columns: 1fr; }
}

/* ── Fine Print Section ──────────────────────────────────────── */
.fine-section {
    padding: 100px 5% 120px;
    position: relative;
}
.fine-section::before {
    content: '';
    display: block;
    height: 1px;
    background: var(--accent);
    width: 60px;
    margin: 0 auto 80px;
}
.fine-section__inner {
    max-width: 1280px; margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}
.fine-left { position: sticky; top: calc(var(--hdr-h) + var(--mq-h) + 40px); }
.fine-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700; letter-spacing: .07em;
    margin: 0 0 28px; line-height: 1.1;
}
.fine-accent-bar {
    width: 40px; height: 3px;
    background: var(--accent);
}

.fine-right { display: flex; flex-direction: column; gap: 0; }
.fine-block {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--text-on-bg) 8%, transparent);
    opacity: 0; transform: translateX(-12px);
    transition: opacity .5s ease, transform .5s ease;
}
.fine-block:first-child { border-top: 1px solid color-mix(in srgb, var(--text-on-bg) 8%, transparent); }
.fine-block--visible { opacity: 1; transform: translateX(0); }
.fine-block:nth-child(2).fine-block--visible { transition-delay: .06s; }
.fine-block:nth-child(3).fine-block--visible { transition-delay: .12s; }
.fine-block:nth-child(4).fine-block--visible { transition-delay: .18s; }
.fine-block:nth-child(5).fine-block--visible { transition-delay: .24s; }
.fine-block:nth-child(6).fine-block--visible { transition-delay: .30s; }

.fine-block__tag {
    font-size: 9px; letter-spacing: .2em;
    color: var(--accent); padding-top: 3px;
}
.fine-block__text {
    font-size: 9px; letter-spacing: .13em;
    line-height: 2.2; opacity: .55;
    margin: 0;
}

@media (max-width: 900px) {
    .fine-section__inner { grid-template-columns: 1fr; gap: 40px; }
    .fine-left { position: static; }
}
@media (max-width: 600px) {
    .fine-block { grid-template-columns: 36px 1fr; gap: 12px; }
}

/* ══════════════════════════════════════════════════════════════
   Individual Service Sections
══════════════════════════════════════════════════════════════ */
.svc-section {
    padding: 100px 5%;
    position: relative;
}
.svc-section::before {
    content: '';
    display: block;
    height: 1px;
    background: var(--accent);
    width: 60px;
    margin: 0 auto 80px;
}
.svc-section__inner {
    max-width: 1280px; margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.svc-section--reverse .svc-visual { order: -1; }

.svc-eyebrow {
    display: block;
    font-size: 9px; letter-spacing: .26em;
    color: var(--accent); margin-bottom: 14px;
}
.svc-title {
    font-size: clamp(24px, 3.5vw, 42px);
    font-weight: 700; letter-spacing: .07em;
    margin: 0 0 20px; line-height: 1.15;
}
.svc-desc {
    font-size: 9px; letter-spacing: .12em;
    line-height: 2.2; opacity: .5;
    margin: 0 0 28px; max-width: 480px;
}
.svc-features {
    list-style: none; padding: 0; margin: 0 0 36px;
    display: flex; flex-direction: column; gap: 10px;
}
.svc-features li {
    font-size: 9px; letter-spacing: .16em;
    display: flex; align-items: center; gap: 12px;
    opacity: .7;
}
.svc-features li::before { content: '→'; color: var(--accent); flex-shrink: 0; }
.svc-visual {
    display: flex; align-items: center; justify-content: center;
    min-height: 300px;
}

/* ── Visual 1: Code editor ─────────────────────── */
.code-mock {
    width: 100%;
    border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
    border-radius: 6px; overflow: hidden;
    font-family: 'Space Mono', monospace; font-size: 11px;
}
.code-mock__bar {
    background: color-mix(in srgb, var(--accent) 6%, var(--bg));
    padding: 10px 14px;
    display: flex; gap: 7px; align-items: center;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 10%, transparent);
}
.code-dot { width: 9px; height: 9px; border-radius: 50%; }
.code-dot--r { background: #ff5f56; }
.code-dot--y { background: #ffbd2e; }
.code-dot--g { background: #27c93f; }
.code-mock__body { padding: 22px 20px; background: var(--bg); line-height: 2; }
.code-line {
    display: block; opacity: 0;
    animation: codeIn .35s ease forwards;
}
.code-kw  { color: var(--accent); }
.code-str { color: color-mix(in srgb, var(--accent) 65%, var(--text-on-bg)); }
.code-com { opacity: .35; }
.code-line:nth-child(1) { animation-delay: .3s; }
.code-line:nth-child(2) { animation-delay: .8s; }
.code-line:nth-child(3) { animation-delay: 1.2s; }
.code-line:nth-child(4) { animation-delay: 1.6s; }
.code-line:nth-child(5) { animation-delay: 2.0s; }
.code-line:nth-child(6) { animation-delay: 2.4s; }
.code-line:nth-child(7) { animation-delay: 2.8s; }
@keyframes codeIn {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}
.code-cursor {
    display: inline-block; color: var(--accent);
    animation: cursorBlink .9s step-end infinite;
    animation-delay: 3.1s; opacity: 0;
}
@keyframes cursorBlink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Visual 2: Shape grid ──────────────────────── */
.shape-grid {
    display: grid;
    grid-template-columns: repeat(4, 68px);
    grid-template-rows: repeat(4, 68px);
    gap: 8px;
}
.sg-cell {
    border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
    background: color-mix(in srgb, var(--accent) 3%, var(--bg));
    transition: border-color .3s, background .3s;
    animation: sgCycle 6s ease-in-out infinite;
}
.sg-cell:nth-child(2)  { animation-delay: -.8s; }
.sg-cell:nth-child(3)  { animation-delay: -1.6s; }
.sg-cell:nth-child(4)  { animation-delay: -2.4s; border-radius: 50%; }
.sg-cell:nth-child(5)  { animation-delay: -3.2s; }
.sg-cell:nth-child(6)  { animation-delay: -.4s; background: color-mix(in srgb, var(--accent) 12%, var(--bg)); }
.sg-cell:nth-child(7)  { animation-delay: -1.2s; border-radius: 50%; }
.sg-cell:nth-child(8)  { animation-delay: -2.0s; }
.sg-cell:nth-child(9)  { animation-delay: -2.8s; border-radius: 4px 20px; }
.sg-cell:nth-child(10) { animation-delay: -3.6s; }
.sg-cell:nth-child(11) { animation-delay: -.6s; background: color-mix(in srgb, var(--accent) 18%, var(--bg)); }
.sg-cell:nth-child(12) { animation-delay: -1.4s; border-radius: 50%; }
.sg-cell:nth-child(13) { animation-delay: -2.2s; }
.sg-cell:nth-child(14) { animation-delay: -3.0s; border-radius: 4px 20px; }
.sg-cell:nth-child(15) { animation-delay: -3.8s; background: color-mix(in srgb, var(--accent) 8%, var(--bg)); }
.sg-cell:nth-child(16) { animation-delay: -.2s; border-radius: 50%; }
@keyframes sgCycle {
    0%,100% { border-color: color-mix(in srgb, var(--accent) 18%, transparent); }
    50%     { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 10%, var(--bg)); }
}

/* ── Visual 3: Motion canvas (interactive ribbons) ─────────── */
.motion-canvas-wrap {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}
.motion-canvas-wrap canvas {
    display: block;
    width: 100% !important;
    cursor: crosshair;
}
.motion-hint {
    position: absolute; bottom: 10px; right: 14px;
    font-family: 'Space Mono', monospace;
    font-size: 8px; letter-spacing: .18em; text-transform: uppercase;
    color: color-mix(in srgb, var(--accent) 50%, transparent);
    pointer-events: none;
    animation: motionHintPulse 2.4s ease-in-out infinite;
}
@keyframes motionHintPulse { 0%,100% { opacity: .4; } 50% { opacity: 1; } }

/* ── Visual 4: Chat mock ───────────────────────── */
.chat-mock {
    width: 100%;
    border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
    border-radius: 12px; overflow: hidden;
    font-family: 'Space Mono', monospace;
}
.chat-mock__hdr {
    background: color-mix(in srgb, var(--accent) 8%, var(--bg));
    padding: 12px 16px; font-size: 9px; letter-spacing: .18em;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 10%, transparent);
    display: flex; align-items: center; gap: 8px;
}
.chat-mock__hdr::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
    animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.chat-mock__body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-bubble {
    padding: 10px 14px; font-size: 9px; letter-spacing: .1em; line-height: 1.7;
    border-radius: 10px; max-width: 82%;
    opacity: 0; animation: bubbleIn .4s ease forwards;
}
.chat-bubble--bot {
    background: color-mix(in srgb, var(--accent) 10%, var(--bg));
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
    align-self: flex-start; border-radius: 2px 10px 10px 10px;
}
.chat-bubble--user {
    background: var(--accent); color: var(--bg);
    align-self: flex-end; border-radius: 10px 10px 2px 10px;
}
/* bubble 1=user, 2=bot, 3=action-card(not bubble), 4=user, 5=bot */
.chat-bubble:nth-child(1) { animation-delay: .4s; }
.chat-bubble:nth-child(2) { animation-delay: 1.1s; }
.chat-bubble:nth-child(4) { animation-delay: 4.4s; }
.chat-bubble:nth-child(5) { animation-delay: 5.1s; }
@keyframes bubbleIn {
    from { opacity: 0; transform: translateY(8px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-hdr-badge {
    margin-left: auto; font-size: 7px; letter-spacing: .16em;
    padding: 2px 9px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
    border-radius: 20px; color: var(--accent);
}
.chat-action-card {
    opacity: 0; animation: bubbleIn .4s ease 1.9s forwards;
    background: color-mix(in srgb, var(--accent) 5%, var(--bg));
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
    border-radius: 2px 10px 10px 10px;
    padding: 11px 13px; align-self: flex-start; max-width: 88%;
}
.cac-title {
    font-size: 8px; letter-spacing: .15em; color: var(--accent);
    margin-bottom: 9px; padding-bottom: 7px;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
}
.cac-steps { display: flex; flex-direction: column; gap: 5px; }
.cac-step {
    font-size: 8px; letter-spacing: .1em; color: var(--accent);
    opacity: 0; animation: stepIn .28s ease forwards;
    display: flex; align-items: center; gap: 6px;
}
.cac-step:nth-child(1) { animation-delay: 2.3s; }
.cac-step:nth-child(2) { animation-delay: 2.7s; }
.cac-step:nth-child(3) { animation-delay: 3.1s; }
.cac-step:nth-child(4) { animation-delay: 3.5s; }
.cac-step:nth-child(5) { animation-delay: 3.9s; }
@keyframes stepIn {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}
.cac-footer {
    font-size: 7px; letter-spacing: .13em; opacity: 0;
    color: color-mix(in srgb, var(--accent) 60%, transparent);
    margin-top: 9px; padding-top: 7px;
    border-top: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
    animation: stepIn .3s ease 4.2s forwards;
}
.chat-typing {
    display: flex; gap: 5px; align-items: center; padding: 10px 14px;
    align-self: flex-start;
    opacity: 0; animation: bubbleIn .4s ease 5.7s forwards;
}
.chat-typing span {
    width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
    animation: typingDot .9s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .18s; }
.chat-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes typingDot { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }

/* ── Visual 5: Ads Dashboard ────────────────────── */
.ads-dash {
    width: 100%;
    border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
    border-radius: 14px; overflow: hidden;
    font-family: 'Space Mono', monospace;
    background: color-mix(in srgb, var(--accent) 3%, var(--bg));
}
.ads-dash__hdr {
    display: flex; align-items: center; gap: 8px;
    padding: 11px 18px;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 10%, transparent);
    background: color-mix(in srgb, var(--accent) 7%, var(--bg));
}
.ads-live-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent);
    animation: livePulse 1.4s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes livePulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 40%, transparent); }
    50% { opacity: .4; box-shadow: 0 0 0 4px transparent; } }
.ads-live-lbl { font-size: 8px; letter-spacing: .2em; color: var(--accent); }
.ads-dash__title { font-size: 8px; letter-spacing: .12em; opacity: .4; }
.ads-kpis {
    display: grid; grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 10%, transparent);
}
.ads-kpi {
    padding: 16px 10px; text-align: center;
}
.ads-kpi + .ads-kpi { border-left: 1px solid color-mix(in srgb, var(--accent) 10%, transparent); }
.ads-kpi__num {
    display: block;
    font-size: clamp(20px, 2.8vw, 28px); font-weight: 700;
    color: var(--accent); line-height: 1.1; letter-spacing: -.02em;
}
.ads-kpi--neg .ads-kpi__num { color: color-mix(in srgb, var(--accent) 75%, var(--text-on-bg)); }
.ads-kpi__lbl {
    display: block; font-size: 7px; letter-spacing: .15em;
    opacity: .5; margin-top: 4px;
}
.ads-bars { padding: 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.ads-bar-row { display: grid; grid-template-columns: 54px 1fr 44px; align-items: center; gap: 10px; }
.ads-bar-lbl { font-size: 8px; letter-spacing: .12em; opacity: .6; }
.ads-bar-track {
    height: 5px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border-radius: 3px; overflow: hidden;
}
.ads-bar-fill {
    height: 100%; background: var(--accent); border-radius: 3px;
    width: 0; transition: width 1.2s cubic-bezier(.22,1,.36,1);
}
.ads-bar-val { font-size: 9px; font-weight: 700; color: var(--accent); text-align: right; }

/* ── Light mode — heavier body text ──────────────────────────── */
[data-theme="light"] .svc-desc,
[data-theme="light"] .svc-features li,
[data-theme="light"] .fine-block__text,
[data-theme="light"] .section-sub,
[data-theme="light"] .ci-value,
[data-theme="light"] .ticker-item__label,
[data-theme="light"] .contact-form label,
[data-theme="light"] .cf-label { font-weight: 700; }

/* Responsive */
@media (max-width: 900px) {
    .svc-section__inner { grid-template-columns: 1fr; gap: 48px; }
    .svc-section--reverse .svc-visual { order: 0; }
    .shape-grid { grid-template-columns: repeat(4, 56px); grid-template-rows: repeat(4, 56px); }
}
@media (max-width: 600px) {
    .svc-section { padding: 70px 5%; }
    .ads-bar-row { grid-template-columns: 44px 1fr 40px; gap: 8px; }
}

/* ══════════════════════════════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════════════════════════════ */

.about-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 6%;
}

/* ── Intro ───────────────────────────────────────────────────── */
.about-intro-section {
    padding: 100px 0 80px;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
}

.about-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 64px;
    margin: 48px 0 64px;
}

.about-p {
    font-size: clamp(11px, 1.05vw, 13px);
    line-height: 1.9;
    letter-spacing: .06em;
    opacity: .75;
}

/* ── Numbers ─────────────────────────────────────────────────── */
.about-nums {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}

.about-num {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-right: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
}
.about-num:last-child { border-right: none; }

.about-num__val {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -.02em;
    line-height: 1;
}

.about-num__label {
    font-size: 9px;
    letter-spacing: .2em;
    opacity: .5;
}

/* ── Approach (3 cols) ───────────────────────────────────────── */
.about-cols-section {
    padding: 100px 0 80px;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
}

.about-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 56px;
}

.about-col {
    padding: 40px 36px 40px 0;
    border-right: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.about-col:first-child { padding-left: 0; }
.about-col:last-child  { border-right: none; padding-right: 0; padding-left: 36px; }

.about-col__num {
    font-size: 11px;
    letter-spacing: .2em;
    color: var(--accent);
    opacity: .6;
}

.about-col__title {
    font-size: clamp(13px, 1.2vw, 15px);
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.3;
}

.about-col__text {
    font-size: clamp(10px, .95vw, 12px);
    line-height: 1.85;
    letter-spacing: .05em;
    opacity: .65;
}

/* ── Services list ───────────────────────────────────────────── */
.about-svcs-section {
    padding: 100px 0 80px;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
}

.about-svcs {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
}

.about-svc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
    text-decoration: none;
    color: var(--text-on-bg);
    transition: color .25s, padding-left .25s;
}
.about-svc:first-child { border-top: 1px solid color-mix(in srgb, var(--accent) 12%, transparent); }
.about-svc:hover { color: var(--accent); padding-left: 12px; }

.about-svc__name {
    font-size: clamp(12px, 1.1vw, 14px);
    letter-spacing: .14em;
    font-weight: 700;
}

.about-svc__arrow {
    font-size: 18px;
    transition: transform .25s;
    opacity: .4;
}
.about-svc:hover .about-svc__arrow { transform: translateX(6px); opacity: 1; color: var(--accent); }

/* ── CTA ─────────────────────────────────────────────────────── */
.about-cta-section {
    padding: 100px 0;
    display: flex;
    justify-content: center;
}
.about-cta-section .about-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}
.about-cta-teaser {
    font-size: clamp(11px, 1.1vw, 14px);
    letter-spacing: .1em;
    line-height: 1.8;
    opacity: .65;
    text-align: center;
    max-width: 560px;
}

/* ══════════════════════════════════════════════════════════════
   CONTACT PAGE — PROCESS SECTION
══════════════════════════════════════════════════════════════ */

.contact-process-section {
    padding: 100px 5%;
    border-top: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
}

.contact-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 56px;
}

.contact-step {
    padding: 40px 36px 40px 0;
    border-right: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact-step:first-child { padding-left: 0; }
.contact-step:last-child  { border-right: none; padding-right: 0; padding-left: 36px; }

.contact-step__num {
    font-size: 11px;
    letter-spacing: .2em;
    color: var(--accent);
    opacity: .6;
}

.contact-step__title {
    font-size: clamp(13px, 1.2vw, 15px);
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.3;
}

.contact-step__text {
    font-size: clamp(10px, .95vw, 12px);
    line-height: 1.85;
    letter-spacing: .05em;
    opacity: .65;
}

/* ── Responsive: About & Contact ─────────────────────────────── */
@media (max-width: 900px) {
    .about-text          { grid-template-columns: 1fr; gap: 24px; }
    .about-nums          { grid-template-columns: repeat(2, 1fr); }
    .about-num           { border-bottom: 1px solid color-mix(in srgb, var(--accent) 12%, transparent); }
    .about-num:nth-child(2n) { border-right: none; }
    .about-cols          { grid-template-columns: 1fr; gap: 0; }
    .about-col           { padding: 32px 0; border-right: none;
                           border-bottom: 1px solid color-mix(in srgb, var(--accent) 12%, transparent); }
    .about-col:last-child { border-bottom: none; padding-left: 0; }
    .contact-steps       { grid-template-columns: 1fr; gap: 0; }
    .contact-step        { padding: 32px 0; border-right: none;
                           border-bottom: 1px solid color-mix(in srgb, var(--accent) 12%, transparent); }
    .contact-step:last-child { border-bottom: none; padding-left: 0; }
}

@media (max-width: 600px) {
    .about-intro-section,
    .about-cols-section,
    .about-svcs-section,
    .about-cta-section { padding: 70px 0; }
    .contact-process-section { padding: 70px 5%; }
    .about-nums { grid-template-columns: repeat(2, 1fr); }
    .about-num__val { font-size: 32px; }
}

/* ══════════════════════════════════════════════════════════════
   ONLINE SECTION — "Vaši kupci su online"
══════════════════════════════════════════════════════════════ */
.online-section {
    padding: 100px 5% 100px;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
}
.online-section__inner {
    max-width: 1100px;
    margin: 0 auto;
}
.online-header {
    text-align: center;
    margin-bottom: 72px;
}
.online-header .section-sub {
    margin: 0 auto;
    max-width: 640px;
}
.online-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-bottom: 56px;
}
.online-stat {
    padding: 48px 40px;
    border-right: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}
.online-stat:last-child { border-right: none; }
.online-stat__num {
    font-size: clamp(44px, 6.5vw, 72px);
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--accent);
    line-height: 1;
}
.online-stat__desc {
    font-size: clamp(10px, 1vw, 12px);
    letter-spacing: .08em;
    line-height: 1.8;
    opacity: .65;
    flex: 1;
}
.online-stat__src {
    font-size: 9px;
    letter-spacing: .2em;
    color: var(--accent);
    opacity: .5;
}
.online-closing {
    text-align: center;
    font-size: clamp(11px, 1.1vw, 13px);
    letter-spacing: .1em;
    line-height: 1.9;
    opacity: .6;
    max-width: 700px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 900px) {
    .online-stats { grid-template-columns: 1fr; gap: 0; }
    .online-stat  { border-right: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 12%, transparent); padding: 40px 24px; }
    .online-stat:last-child { border-bottom: none; }
}
@media (max-width: 600px) {
    .online-section { padding: 70px 5%; }
    .online-header  { margin-bottom: 48px; }
}

/* ══════════════════════════════════════════════════════════════
   AI BANNER
══════════════════════════════════════════════════════════════ */
.aibanner-section {
    padding: 64px 5%;
    background: color-mix(in srgb, var(--accent) 8%, var(--bg));
    border-top: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
.aibanner-section__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.aibanner-text {
    font-size: clamp(12px, 1.3vw, 15px);
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1.6;
    flex: 1;
}
.aibanner-btn {
    flex-shrink: 0;
    background: var(--accent);
    color: var(--text-on-accent);
    border: none;
    padding: 14px 28px;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    cursor: pointer;
    transition: opacity .2s, transform .2s;
}
.aibanner-btn:hover { opacity: .85; transform: translateY(-1px); }

/* Responsive */
@media (max-width: 700px) {
    .aibanner-section__inner { flex-direction: column; align-items: flex-start; }
    .aibanner-btn { width: 100%; text-align: center; }
}

/* ══════════════════════════════════════════════════════════════
   TESTIMONIALS SECTION
══════════════════════════════════════════════════════════════ */
/* CONTRAST BAND — accent background, slanted top & bottom edges.
   Dark theme → neon-green bg + black text; light → purple bg + white text
   (both via --accent / --text-on-accent, automatic). */
.testimonials-section {
    position: relative;
    background: var(--accent);
    color: var(--text-on-accent);
    padding: calc(120px + 3vw) 5%;
    margin: 40px 0;
    clip-path: polygon(0 3vw, 100% 0, 100% 100%, 0 calc(100% - 3vw));
    transition: background .3s, color .3s;
}
.testimonials-section__inner {
    max-width: 1100px;
    margin: 0 auto;
}
.testimonials-header {
    text-align: center;
    margin-bottom: 64px;
}
/* override generic eyebrow/title colors inside the band */
.testimonials-section .section-eyebrow { color: var(--text-on-accent); opacity: .7; }
.testimonials-section .section-title   { color: var(--text-on-accent); }
.testimonials-section::before {
    content: '';
    display: block;
    height: 2px;
    width: 60px;
    background: var(--text-on-accent);
    opacity: .6;
    margin: 0 auto 36px;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.testimonial-card {
    padding: 36px 32px;
    border: 1px solid color-mix(in srgb, var(--text-on-accent) 25%, transparent);
    background: color-mix(in srgb, var(--text-on-accent) 5%, transparent);
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: transform .3s, border-color .3s, background .3s;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: var(--text-on-accent);
    background: color-mix(in srgb, var(--text-on-accent) 10%, transparent);
}
.testimonial-card__text {
    font-size: clamp(11px, 1.05vw, 13px);
    letter-spacing: .06em;
    line-height: 1.9;
    flex: 1;
    font-style: italic;
    color: var(--text-on-accent);
}
.testimonial-card__author {
    font-size: 10px;
    letter-spacing: .16em;
    color: var(--text-on-accent);
    font-weight: 700;
    font-style: normal;
}

/* Responsive */
@media (max-width: 900px) {
    .testimonials-grid { grid-template-columns: 1fr; gap: 12px; }
    .testimonials-section { clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0 calc(100% - 5vw)); }
}
@media (max-width: 600px) {
    .testimonials-section { padding: calc(80px + 5vw) 5%; }
    .testimonials-header  { margin-bottom: 40px; }
    .testimonial-card     { padding: 28px 20px; }
}

/* ══════════════════════════════════════════════════════════════
   FAQ SECTION
══════════════════════════════════════════════════════════════ */
.faq-section {
    padding: 100px 5% 120px;
}
.faq-section__inner {
    max-width: 900px;
    margin: 0 auto;
}
.faq-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 56px;
}
.faq-header__text { flex: 1; }
.faq-header__text .section-sub { margin: 0; }
.faq-ai-btn {
    flex-shrink: 0;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 12px 24px;
    font-family: inherit;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .18em;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.faq-ai-btn:hover {
    background: var(--accent);
    color: var(--text-on-accent);
}
.faq-list {
    border-top: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
.faq-item {
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
.faq-q {
    display: flex;
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    padding: 24px 0;
    font-family: inherit;
    font-size: clamp(11px, 1.1vw, 13px);
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--text-on-bg);
    cursor: pointer;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: color .2s;
}
.faq-q:hover { color: var(--accent); }
.faq-q::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    flex-shrink: 0;
    color: var(--accent);
    transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.faq-item--open .faq-q::after { transform: rotate(45deg); }
.faq-a {
    font-size: clamp(10px, .95vw, 12px);
    letter-spacing: .06em;
    line-height: 1.95;
    opacity: .6;
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.22,1,.36,1), padding .3s;
    padding-bottom: 0;
}
.faq-item--open .faq-a {
    max-height: 400px;
    padding-bottom: 24px;
}

/* Responsive */
@media (max-width: 900px) {
    .faq-header { flex-direction: column; align-items: flex-start; gap: 24px; }
    .faq-ai-btn { width: 100%; text-align: center; }
}
@media (max-width: 600px) {
    .faq-section { padding: 70px 5% 80px; }
    .faq-header  { margin-bottom: 40px; }
    .faq-q       { font-size: 11px; padding: 20px 0; }
}

/* ══════════════════════════════════════════════════════════════
   ABOUT HOOK & CONTACT HOOK
══════════════════════════════════════════════════════════════ */
.about-hook {
    font-size: clamp(14px, 1.5vw, 18px);
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1.5;
    color: var(--accent);
    margin: 0 0 40px;
}
.pf-hero__hook {
    font-size: clamp(13px, 1.3vw, 16px);
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.5;
    color: var(--accent);
    margin: 12px 0 8px;
}

/* Light-mode: heavier body text for new sections */
[data-theme="light"] .online-closing,
[data-theme="light"] .online-stat__desc,
[data-theme="light"] .testimonial-card__text,
[data-theme="light"] .faq-a { font-weight: 700; }

/* ═══════════════════════════════════════════════════════════
   ADMIN NAV
═══════════════════════════════════════════════════════════ */
.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 20px 40px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 15%, transparent);
    margin-bottom: 0;
}

.anav-link {
    font-size: 11px;
    letter-spacing: .15em;
    padding: 10px 18px 12px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    opacity: .55;
    transition: opacity .2s, border-color .2s;
    text-decoration: none;
    color: inherit;
}

.anav-link:hover { opacity: 1; }

.anav-link--active {
    opacity: 1;
    border-bottom-color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════
   ADMIN COMMON: messages, hints
═══════════════════════════════════════════════════════════ */
.admin-msg {
    margin: 16px 40px;
    padding: 12px 20px;
    font-size: 11px;
    letter-spacing: .1em;
    border-left: 3px solid;
}
.admin-msg--ok  { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.admin-msg--err { border-color: #ff4040;       background: color-mix(in srgb, #ff4040 8%, transparent); color: #ff4040; }

.admin-hint {
    font-size: 10px;
    letter-spacing: .06em;
    opacity: .5;
    margin-top: 6px;
    line-height: 1.6;
}

.admin-field--inline {
    display: flex;
    align-items: center;
    gap: 20px;
}
.admin-field--inline .admin-label { margin-bottom: 0; min-width: 180px; }

/* ═══════════════════════════════════════════════════════════
   TOGGLE SWITCH (Settings: UseSsl)
═══════════════════════════════════════════════════════════ */
.ec-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.ec-toggle input { display: none; }

.ec-toggle__track {
    width: 36px;
    height: 20px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--text-on-bg) 20%, transparent);
    border: 1px solid color-mix(in srgb, var(--text-on-bg) 30%, transparent);
    position: relative;
    transition: background .2s, border-color .2s;
    flex-shrink: 0;
}
.ec-toggle__track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-on-bg);
    transition: transform .2s;
}
.ec-toggle input:checked ~ .ec-toggle__track {
    background: var(--accent);
    border-color: var(--accent);
}
.ec-toggle input:checked ~ .ec-toggle__track::after {
    transform: translateX(16px);
    background: var(--text-on-accent);
}
.ec-toggle__label { font-size: 10px; letter-spacing: .12em; opacity: .7; }

/* ═══════════════════════════════════════════════════════════
   EMAIL COMPOSE — layout
═══════════════════════════════════════════════════════════ */
.ec-page { padding-bottom: 60px; }

.ec-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 0;
    min-height: calc(100vh - 200px);
}

.ec-left {
    padding: 32px 40px;
    border-right: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
    display: flex;
    flex-direction: column;
}

.ec-right {
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
}

/* ── Filter bar ──────────────────────────────────────────── */
.ec-filter-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.ec-filter-label {
    font-size: 10px;
    letter-spacing: .2em;
    opacity: .5;
    margin-right: 4px;
}

.ec-fbtn {
    font-family: inherit;
    font-size: 10px;
    letter-spacing: .15em;
    padding: 5px 12px;
    border: 1px solid color-mix(in srgb, var(--text-on-bg) 25%, transparent);
    background: transparent;
    color: inherit;
    cursor: pointer;
    opacity: .55;
    transition: opacity .2s, border-color .2s, background .2s;
}
.ec-fbtn:hover { opacity: 1; }
.ec-fbtn--active {
    opacity: 1;
    background: var(--accent);
    color: var(--text-on-accent);
    border-color: var(--accent);
}

.ec-sel-btn {
    font-family: inherit;
    font-size: 10px;
    letter-spacing: .12em;
    padding: 5px 12px;
    border: 1px solid color-mix(in srgb, var(--text-on-bg) 20%, transparent);
    background: transparent;
    color: inherit;
    cursor: pointer;
    opacity: .5;
    transition: opacity .2s;
    margin-left: 4px;
}
.ec-sel-btn:hover { opacity: 1; }

/* ── Client list ─────────────────────────────────────────── */
.ec-clients {
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.ec-client {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 8%, transparent);
    cursor: pointer;
    transition: background .15s;
}
.ec-client:last-child { border-bottom: none; }
.ec-client:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }

.ec-check {
    accent-color: var(--accent);
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    cursor: pointer;
}

.ec-client-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.ec-client-name {
    font-size: 11px;
    letter-spacing: .1em;
    font-weight: 700;
}

.ec-client-co {
    font-size: 10px;
    letter-spacing: .08em;
    opacity: .6;
}

.ec-client-email {
    font-size: 10px;
    letter-spacing: .06em;
    opacity: .45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ec-client-lang {
    font-size: 10px;
    letter-spacing: .15em;
    opacity: .4;
    flex-shrink: 0;
    width: 24px;
    text-align: right;
}

/* ── Sel count ───────────────────────────────────────────── */
.ec-sel-count {
    font-size: 10px;
    letter-spacing: .12em;
    opacity: .5;
    align-self: center;
}

/* ── Preview panel ───────────────────────────────────────── */
.ec-prev-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.ec-frame-wrap {
    flex: 1;
    border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent);
    background: #fff;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 400px;
    overflow: hidden;
    transition: width .3s ease;
}

.ec-frame-wrap--mobile {
    max-width: 390px;
}

.ec-frame {
    width: 100%;
    height: 100%;
    min-height: 560px;
    border: none;
    display: block;
}

/* ── Body textarea ───────────────────────────────────────── */
.ec-body { font-family: monospace; font-size: 12px; }

/* ═══════════════════════════════════════════════════════════
   EMAIL LOG TABLE
═══════════════════════════════════════════════════════════ */
.ec-log { padding: 32px 40px; }

.ec-log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    letter-spacing: .06em;
}

.ec-log-table th {
    text-align: left;
    padding: 10px 16px;
    font-size: 10px;
    letter-spacing: .18em;
    opacity: .45;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 15%, transparent);
    font-weight: 400;
}

.ec-log-table td {
    padding: 12px 16px;
    border-bottom: 1px solid color-mix(in srgb, var(--text-on-bg) 6%, transparent);
    vertical-align: middle;
}

.ec-log-row--err td { background: color-mix(in srgb, #ff4040 5%, transparent); }

.ec-log-date   { opacity: .55; white-space: nowrap; }
.ec-log-subject { font-weight: 700; max-width: 280px; }
.ec-log-count  { text-align: center; opacity: .65; }
.ec-log-by     { opacity: .55; }

.ec-status {
    font-size: 10px;
    letter-spacing: .12em;
    padding: 3px 8px;
    border-radius: 2px;
}
.ec-status--ok  { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.ec-status--err { background: color-mix(in srgb, #ff4040 15%, transparent); color: #ff4040; }

/* ═══════════════════════════════════════════════════════════
   KNOWLEDGE BASE PREVIEW
═══════════════════════════════════════════════════════════ */
.ec-kb-preview {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 520px;
    display: block;
}

/* ═══════════════════════════════════════════════════════════
   ADMIN SECTION: ensure top padding accounts for nav
═══════════════════════════════════════════════════════════ */
.admin-section { padding-top: 0; }

/* ── Responsive: admin ───────────────────────────────────── */
@media (max-width: 900px) {
    .admin-nav { padding: 16px 20px 0; }
    .ec-wrap { grid-template-columns: 1fr; }
    .ec-left { border-right: none; padding: 24px 20px; border-bottom: 1px solid color-mix(in srgb, var(--accent) 12%, transparent); }
    .ec-right { padding: 24px 20px; }
    .ec-log { padding: 24px 20px; }
    .ec-log-table { font-size: 10px; }
    .ec-log-table th,
    .ec-log-table td { padding: 8px 10px; }
}

/* ══════════════════════════════════════════════════════════════
   404 NOT FOUND PAGE
══════════════════════════════════════════════════════════════ */
.notfound-wrap {
    position: relative;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ── Animated gradient orbs ──────────────────────────────── */
.notfound-wrap::before,
.notfound-wrap::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}
.notfound-wrap::before {
    width: 640px; height: 640px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: .07;
    top: -180px; left: -120px;
    animation: nfOrb1 11s ease-in-out infinite alternate;
}
.notfound-wrap::after {
    width: 480px; height: 480px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: .05;
    bottom: -140px; right: -80px;
    animation: nfOrb2 14s ease-in-out infinite alternate;
}
@keyframes nfOrb1 {
    from { transform: translate(0,   0)   scale(1);    }
    to   { transform: translate(90px, 70px) scale(1.18); }
}
@keyframes nfOrb2 {
    from { transform: translate(0,    0)    scale(1.08); }
    to   { transform: translate(-70px,-50px) scale(0.88); }
}

/* ── Content ─────────────────────────────────────────────── */
.notfound-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    padding: 60px 5%;
}

/* ── Logo ────────────────────────────────────────────────── */
.notfound-logo-wrap { margin-bottom: 8px; }
.notfound-logo {
    height: 28px;
    width: auto;
}
.notfound-logo--light { display: none; }
[data-theme="light"] .notfound-logo--dark  { display: none; }
[data-theme="light"] .notfound-logo--light { display: block; }

/* ── Big 404 watermark ───────────────────────────────────── */
.notfound-code {
    font-size: clamp(120px, 24vw, 260px);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: .85;
    color: var(--accent);
    opacity: .08;
    user-select: none;
    margin: 0;
    /* pull it behind visually without absolute positioning */
}

/* ── Text ────────────────────────────────────────────────── */
.notfound-title {
    font-size: clamp(18px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: .1em;
    margin: 0;
    line-height: 1.2;
}
.notfound-sub {
    font-size: clamp(10px, 1vw, 12px);
    letter-spacing: .12em;
    line-height: 1.9;
    opacity: .5;
    max-width: 480px;
    margin: 0;
}

@media (max-width: 600px) {
    .notfound-wrap { min-height: calc(100vh - 100px); }
    .notfound-content { gap: 16px; }
}

/* ══════════════════════════════════════════════════════════════
   PERFORMANCE OPTIMIZATIONS
══════════════════════════════════════════════════════════════ */

/* GPU-accelerated animated elements */
.menu-overlay,
.marquee-bar,
.ticker-inner,
.notfound-wrap::before,
.notfound-wrap::after,
.pl-g,
.pl-svg { will-change: transform; }

.preloader          { will-change: opacity; }
.star-btn__glow-bg,
.star-btn__glow-border { will-change: transform, opacity; }

/* content-visibility: skip rendering off-screen sections */
.online-section,
.aibanner-section,
.fine-section,
.testimonials-section,
.faq-section,
.contact-process-section,
.about-cols-section,
.about-svcs-section,
.about-cta-section {
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;
}

/* Lazy-decode all images globally */
img { decoding: async; }

/* ══════════════════════════════════════════════════════════════
   SERVICES INTRO TITLE (below stats)
══════════════════════════════════════════════════════════════ */
.svc-intro {
    padding: 90px 5% 10px;
    text-align: center;
}
.svc-intro__inner { max-width: 800px; margin: 0 auto; }
.svc-intro::before {
    content: '';
    display: block;
    height: 1px; width: 60px;
    background: var(--accent);
    margin: 0 auto 36px;
}
.svc-intro .section-sub { margin: 0 auto; max-width: 560px; }
@media (max-width: 600px) { .svc-intro { padding: 64px 5% 0; } }

/* ══════════════════════════════════════════════════════════════
   SECTION SEPARATOR LINES (sections that lacked one)
══════════════════════════════════════════════════════════════ */
.online-section::before,
.faq-section::before {
    content: '';
    display: block;
    height: 1px; width: 60px;
    background: var(--accent);
    margin: 0 auto 80px;
}
.faq-section__inner { position: relative; }

/* ══════════════════════════════════════════════════════════════
   STATS SECTION — liveliness (hover lift + accent glow + pulse dot)
══════════════════════════════════════════════════════════════ */
.stat-card {
    transition: transform .35s cubic-bezier(.22,1,.36,1),
                box-shadow .35s, border-color .35s;
}
.stat-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
    box-shadow: 0 12px 40px color-mix(in srgb, var(--accent) 14%, transparent);
}
.stat-card__num {
    position: relative;
}
/* live blinking dot next to the big number */
.stat-card__tag::after {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    margin-left: 8px;
    border-radius: 50%;
    background: var(--accent);
    vertical-align: middle;
    animation: statPulse 2.4s ease-in-out infinite;
}
@keyframes statPulse {
    0%, 100% { opacity: .25; transform: scale(.8); }
    50%      { opacity: 1;   transform: scale(1.15); }
}

/* ══════════════════════════════════════════════════════════════
   SCROLL-REVEAL — content fades/rises in as it enters viewport
══════════════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.22,1,.36,1),
                transform .7s cubic-bezier(.22,1,.36,1);
    will-change: opacity, transform;
}
/* alternating horizontal entrance for variety within a section */
.reveal--left  { transform: translateX(-36px); }
.reveal--right { transform: translateX(36px); }
.reveal--scale { transform: scale(.94); }
.reveal.in {
    opacity: 1;
    transform: none;
}
/* stagger children (set via inline --d by JS) */
.reveal { transition-delay: var(--d, 0s); }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; }
}
