/* =========================================================================
   PaperBagged - marketing home design system
   Self-contained: loaded only by index.php, which sets $page_standalone_skin
   so head24.php skips the neon directory theme. Everything is scoped under
   body.pb-home so nothing here can leak into the directory pages.
   ========================================================================= */

:root {
    --ink:      #05060a;
    --ink-2:    #0b0d14;
    --ink-3:    #11141e;
    --line:     rgba(255, 255, 255, 0.08);
    --line-2:   rgba(255, 255, 255, 0.14);
    --glass:    rgba(255, 255, 255, 0.035);
    --text:     #eef1f7;
    --muted:    #98a1b4;
    --dim:      #7d8699;   /* >= 4.5:1 on --ink */
    --kraft:    #e6bb7c;   /* the paper bag */
    --kraft-2:  #f3d29d;
    --cyan:     #5ee7ff;
    --violet:   #9c6dff;
    --lime:     #a7ff6a;
    --grad:     linear-gradient(110deg, var(--cyan) 0%, var(--violet) 45%, var(--kraft) 100%);
    --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
    --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
    --radius:   20px;
    --ease:     cubic-bezier(.2, .8, .2, 1);
    --maxw:     1240px;
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 112px; } /* clear the fixed nav (14px offset + ~70px pill) on #anchor jumps */
html, body.pb-home { background: var(--ink) !important; }
body.pb-home {
    margin: 0;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}
/* Base resets live in :where() so they carry ZERO specificity - any component
   rule (.hero-lede, .btn-primary, .about-copy p ...) must be able to override
   them. A plain "body.pb-home p" (0,1,2) silently beat every component rule. */
:where(body.pb-home) *, :where(body.pb-home) *::before, :where(body.pb-home) *::after { box-sizing: border-box; }
:where(body.pb-home) img, :where(body.pb-home) svg { max-width: 100%; }
:where(body.pb-home) a { color: inherit; text-decoration: none; }
:where(body.pb-home) h1, :where(body.pb-home) h2, :where(body.pb-home) h3, :where(body.pb-home) h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.06;
    margin: 0;
    color: var(--text);
    border: 0;
    text-transform: none;
}
:where(body.pb-home) p { margin: 0; }
body.pb-home ::selection { background: rgba(94, 231, 255, 0.28); color: #fff; }
body.pb-home :focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
body.pb-home.no-scroll { overflow: hidden; }

.pb-wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.grad-text {
    background: var(--grad);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradShift 8s ease-in-out infinite alternate;
}
@keyframes gradShift { to { background-position: 100% 0; } }

/* film grain over everything (data-URI SVG noise; img-src allows data:) */
.pb-grain {
    pointer-events: none;
    position: fixed; inset: 0; z-index: 90;
    opacity: .055;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    mix-blend-mode: overlay;
}

/* ---------- scroll progress + cursor glow ---------- */
.pb-progress {
    position: fixed; top: 0; left: 0; height: 2px; width: 100%;
    transform-origin: 0 50%; transform: scaleX(0);
    background: var(--grad); z-index: 120;
    box-shadow: 0 0 12px rgba(94, 231, 255, .6);
}
.pb-cursor {
    position: fixed; left: 0; top: 0; width: 520px; height: 520px;
    margin: -260px 0 0 -260px; border-radius: 50%;
    pointer-events: none; z-index: 1;
    background: radial-gradient(circle, rgba(156, 109, 255, .12) 0%, rgba(94, 231, 255, .05) 35%, transparent 65%);
    transition: opacity .4s;
    opacity: 0;
    will-change: transform;
}
body.has-pointer .pb-cursor { opacity: 1; }

/* ---------- nav ---------- */
.pb-nav {
    position: fixed; top: 14px; left: 0; right: 0; z-index: 100; padding: 0 12px; /* gutter so the scrolled pill never touches the screen edge */
    transition: top .35s var(--ease);
}
.pb-nav-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    max-width: var(--maxw); margin: 0 auto; padding: 12px 14px 12px 22px;
    border: 1px solid transparent; border-radius: 999px;
    transition: background .35s, border-color .35s, backdrop-filter .35s, box-shadow .35s;
}
.pb-nav.is-scrolled { top: 10px; }
.pb-nav.is-scrolled .pb-nav-inner {
    background: rgba(10, 12, 19, .66);
    border-color: var(--line);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
}
.pb-logo { display: inline-flex; align-items: center; flex: none; padding: 5px 0; } /* 44px tap target */
.pb-logo img { display: block; height: 34px; width: auto; transition: transform .35s var(--ease); }
.pb-logo:hover img { transform: scale(1.03); }

.pb-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.pb-links a {
    display: block; padding: 8px 14px; border-radius: 999px;
    font-size: .92rem; color: var(--muted); font-weight: 500;
    transition: color .25s, background .25s;
}
.pb-links a:hover, .pb-links a.is-active { color: var(--text); background: rgba(255,255,255,.06); }
.pb-nav-cta { display: flex; align-items: center; gap: 10px; }
.pb-burger {
    display: none; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--line-2); background: rgba(255,255,255,.04); cursor: pointer;
    position: relative; color: var(--text);
}
.pb-burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
.pb-burger span:nth-child(1) { top: 17px; } .pb-burger span:nth-child(2) { top: 25px; }
body.menu-open .pb-burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.menu-open .pb-burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.pb-mobile {
    position: fixed; inset: 0; z-index: 99; display: flex; flex-direction: column; justify-content: center;
    padding: 90px 28px 40px; background: rgba(5,6,10,.94); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
body.menu-open .pb-mobile { opacity: 1; visibility: visible; }
body.menu-open .cookie { display: none; }
.pb-mobile a { font-family: var(--font-display); font-size: clamp(2rem, 9vw, 3rem); font-weight: 600; letter-spacing: -.03em; padding: 6px 0; color: var(--text); opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
body.menu-open .pb-mobile a { opacity: 1; transform: none; }
.pb-mobile a:nth-child(2) { transition-delay: .05s; } .pb-mobile a:nth-child(3) { transition-delay: .1s; }
.pb-mobile a:nth-child(4) { transition-delay: .15s; } .pb-mobile a:nth-child(5) { transition-delay: .2s; }
.pb-mobile a:nth-child(6) { transition-delay: .25s; } .pb-mobile a:nth-child(7) { transition-delay: .3s; }

/* ---------- buttons ---------- */
.btn {
    --bx: 0px; --by: 0px;
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
    font-family: var(--font-body); font-weight: 600; font-size: .98rem; letter-spacing: -.005em;
    transform: translate(var(--bx), var(--by));
    transition: transform .35s var(--ease), box-shadow .35s, background .35s, color .25s;
    white-space: nowrap; overflow: hidden; isolation: isolate;
}
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
    color: #07080c;
    background: linear-gradient(110deg, var(--kraft-2), var(--kraft) 40%, #ffd9a0 60%, var(--kraft));
    background-size: 220% 100%;
    box-shadow: 0 10px 30px -8px rgba(230,187,124,.55), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn-primary:hover, .btn-primary:focus-visible, .btn-primary:visited, .btn-primary:active { color: #07080c; }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 16px 44px -10px rgba(230,187,124,.75), inset 0 1px 0 rgba(255,255,255,.55); }
.btn-primary::after { /* sweep shine */
    content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; z-index: -1;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent);
    transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn-ghost { color: var(--text); background: rgba(255,255,255,.04); border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.28); }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
/* Above the fold, reveal with CSS on first paint instead of waiting for the
   deferred JS + IntersectionObserver - the hero lede is the mobile LCP element,
   so it only slides (never starts invisible). */
.hero [data-reveal] { opacity: 1; transform: none; transition: none; animation: heroIn 1s var(--ease) both; animation-delay: var(--d, 0s); }
.hero [data-reveal="scale"] { animation-name: heroScale; }
.hero .hero-lede { animation-name: heroSlide; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } }
@keyframes heroScale { from { opacity: 0; transform: scale(.94); } }
@keyframes heroSlide { from { transform: translateY(18px); } }
[data-reveal="fade"] { transform: none; }
[data-reveal="scale"] { transform: scale(.94); }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.05s var(--ease); transition-delay: var(--d, 0s); }
.split.is-in .w > span { transform: none; }

/* ---------- hero ---------- */
.hero {
    position: relative; min-height: 100svh; display: flex; align-items: center;
    padding: 140px 0 90px; overflow: hidden; isolation: isolate;
}
#pb-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.aurora { position: absolute; inset: -20% -10% auto; height: 120%; z-index: -2; pointer-events: none; filter: blur(70px) saturate(130%); }
.aurora i { position: absolute; border-radius: 50%; opacity: .55; mix-blend-mode: screen; animation: drift 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 46vw; height: 46vw; left: -6vw; top: 4vh; background: radial-gradient(circle, rgba(156,109,255,.55), transparent 65%); }
.aurora i:nth-child(2) { width: 40vw; height: 40vw; right: -8vw; top: -4vh; background: radial-gradient(circle, rgba(94,231,255,.42), transparent 65%); animation-duration: 26s; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 34vw; height: 34vw; left: 38vw; top: 40vh; background: radial-gradient(circle, rgba(230,187,124,.32), transparent 65%); animation-duration: 30s; animation-delay: -12s; }
@keyframes drift {
    0%   { transform: translate3d(0,0,0) scale(1); }
    50%  { transform: translate3d(6vw,4vh,0) scale(1.12); }
    100% { transform: translate3d(-4vw,8vh,0) scale(.95); }
}
.hero-grid-lines {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
            mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; z-index: -1; background: linear-gradient(to bottom, transparent, var(--ink)); }

.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px;
    border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,.035);
    font-size: .82rem; color: var(--muted); backdrop-filter: blur(8px);
}
.eyebrow .dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.eyebrow .dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--lime); animation: ping 2s ease-out infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.hero h1 { font-size: clamp(2.5rem, 5.1vw, 4.7rem); font-weight: 600; margin: 26px 0 22px; letter-spacing: -.045em; line-height: .98; }
.hero h1 .split { display: block; }
.h1-kicker { display: block; margin-bottom: 18px; font-family: var(--font-mono); font-size: .8rem; font-weight: 500; line-height: 1.5; letter-spacing: .16em; text-transform: uppercase; color: var(--kraft); }
.hero-rotator {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: .4em;
    font-family: var(--font-mono); font-size: clamp(.95rem, 1.6vw, 1.12rem); color: var(--muted);
    margin-bottom: 22px;
}
.hero-rotator .prompt { color: var(--kraft); }
.hero-rotator .word { color: var(--cyan); font-weight: 600; min-height: 1.4em; }
.hero-rotator .caret { display: inline-block; width: .55em; height: 1.1em; transform: translateY(.18em); background: var(--cyan); animation: blink 1s steps(1) infinite; box-shadow: 0 0 10px var(--cyan); }
@keyframes blink { 50% { opacity: 0; } }
.hero-lede { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.hero-lede strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; font-size: .86rem; color: var(--muted); }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--kraft); flex: none; }

/* hero "command center" visual */
.hero-visual { position: relative; perspective: 1400px; }
.console {
    --rx: 6deg; --ry: -14deg;
    position: relative; border-radius: 22px; overflow: hidden;
    background: linear-gradient(160deg, rgba(23,27,40,.82), rgba(10,12,19,.9));
    border: 1px solid var(--line-2);
    box-shadow: 0 50px 120px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02), inset 0 1px 0 rgba(255,255,255,.08);
    transform: rotateX(var(--rx)) rotateY(var(--ry));
    transform-style: preserve-3d;
    transition: transform .9s var(--ease);
    backdrop-filter: blur(14px);
}
.console::before { /* rim light */
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
    background: linear-gradient(140deg, rgba(94,231,255,.55), transparent 35%, transparent 65%, rgba(230,187,124,.5));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
.console-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.console-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.console-bar i:nth-child(2) { background: #febc2e; } .console-bar i:nth-child(3) { background: #28c840; }
.console-bar span { margin-left: 10px; font-family: var(--font-mono); font-size: .72rem; color: var(--dim); }
.console-bar b { margin-left: auto; font-family: var(--font-mono); font-size: .66rem; font-weight: 500; color: var(--lime); padding: 3px 8px; border-radius: 999px; background: rgba(167,255,106,.08); border: 1px solid rgba(167,255,106,.22); }
.console-body { padding: 18px 18px 6px; }
.console-log { font-family: var(--font-mono); font-size: .78rem; line-height: 1.85; min-height: 196px; color: #c7cede; white-space: pre-wrap; word-break: break-word; }
.console-log .c-dim { color: var(--dim); } .console-log .c-ok { color: var(--lime); }
.console-log .c-cy { color: var(--cyan); } .console-log .c-kr { color: var(--kraft); } .console-log .c-vi { color: #c3a6ff; }
.console-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 18px 18px; }
.metric { padding: 12px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.metric small { display: block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; }
.metric strong { display: block; font-family: var(--font-display); font-size: 1.15rem; margin-top: 2px; }
.metric svg { display: block; width: 100%; height: 26px; margin-top: 6px; overflow: visible; }
.metric path { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.float-chip {
    position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 9px;
    padding: 10px 14px; border-radius: 14px; font-size: .8rem; font-weight: 500;
    background: rgba(14,17,27,.82); border: 1px solid var(--line-2);
    backdrop-filter: blur(14px); box-shadow: 0 20px 50px -15px rgba(0,0,0,.7);
    animation: bob 6s ease-in-out infinite;
}
.float-chip .ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; }
.float-chip .ic svg { width: 15px; height: 15px; }
.float-chip small { display: block; color: var(--dim); font-size: .68rem; font-weight: 400; }
.chip-a, .chip-b, .chip-c { margin: 0; }
/* Hero chips dock just outside the console's top and bottom edges (each tucks
   only ~10px over the frame) so they float around the terminal, not over its
   log or metrics. The bob animation moves them up, away from the console. */
.chip-a { top: 6px; right: 4%; } .chip-a .ic { background: rgba(94,231,255,.12); color: var(--cyan); }
.chip-b { top: 18px; left: 4%; animation-delay: -2s; } .chip-b .ic { background: rgba(230,187,124,.14); color: var(--kraft); }
.chip-c { bottom: 0; left: 50%; margin-left: -97px; animation-delay: -4s; } .chip-c .ic { background: rgba(167,255,106,.12); color: var(--lime); }
.hero-visual { padding: 58px 0 52px; } /* room for the docked chips */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .2em; color: var(--dim); text-transform: uppercase; z-index: 2; }
.scroll-cue i { width: 22px; height: 36px; border-radius: 12px; border: 1.5px solid var(--line-2); position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--kraft); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(11px); } }

/* ---------- marquee ---------- */
.marquee { position: relative; padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(to bottom, rgba(255,255,255,.012), transparent); overflow: hidden; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 160px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--ink), transparent); }
.marquee-label { text-align: center; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); margin-bottom: 22px; }
.marquee-track { display: flex; width: max-content; gap: 14px; animation: marquee 48s linear infinite; }
.marquee-track.rev { animation-direction: reverse; animation-duration: 56s; margin-top: 14px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tag {
    display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px;
    border: 1px solid var(--line); background: rgba(255,255,255,.025);
    font-size: .92rem; color: #cdd3e1; white-space: nowrap;
}
.tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--cyan)); box-shadow: 0 0 10px var(--c, var(--cyan)); }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(90px, 12vw, 150px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 64px; }
.section-head.center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--kraft); margin-bottom: 18px; }
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.section h2 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); letter-spacing: -.04em; }
.section-head p { color: var(--muted); font-size: 1.08rem; max-width: 520px; }
.section-head.center p { margin-top: 18px; }

/* ---------- services bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card {
    --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
    position: relative; padding: 32px; border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
    border: 1px solid var(--line); overflow: hidden; isolation: isolate;
    transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform .5s var(--ease), border-color .35s, box-shadow .5s;
}
.card::before { /* cursor spotlight */
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(156,109,255,.16), transparent 45%);
}
.card::after { /* spotlight border */
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
    background: radial-gradient(300px circle at var(--mx) var(--my), rgba(94,231,255,.7), transparent 50%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover { border-color: var(--line-2); box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); }
.card:hover::before, .card:hover::after { opacity: 1; }
.svc-lg { grid-column: span 4; min-height: 340px; }
.svc-md { grid-column: span 2; }
.svc-half { grid-column: span 3; }
.svc-icon {
    width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 26px;
    background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.02));
    border: 1px solid var(--line-2); color: var(--c, var(--cyan));
    box-shadow: 0 0 30px -6px var(--c, var(--cyan));
}
.svc-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: .98rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.chips li { padding: 6px 12px; border-radius: 999px; font-size: .78rem; color: #cbd2e0; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.svc-lg .svc-art { position: absolute; right: -40px; bottom: -40px; width: 52%; max-width: 360px; opacity: .9; z-index: -1; }
.svc-num { position: absolute; top: 26px; right: 28px; font-family: var(--font-mono); font-size: .74rem; color: var(--dim); }

/* network art inside the big card */
.net-art circle { fill: var(--cyan); }
.net-art line { stroke: rgba(94,231,255,.35); stroke-width: 1; }
.net-art .pulse { fill: none; stroke: var(--kraft); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: netPulse 3s ease-out infinite; }
@keyframes netPulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(3); opacity: 0; } }
.net-art .flow { stroke: var(--kraft); stroke-width: 1.5; stroke-dasharray: 4 10; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }

/* ---------- comparison ---------- */
.compare { border-radius: 24px; border: 1px solid var(--line); overflow: hidden; background: rgba(255,255,255,.015); }
.compare-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; border-top: 1px solid var(--line); }
.compare-row:first-child { border-top: 0; }
.compare-row > div { padding: 22px 26px; font-size: .97rem; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.compare-row > div:first-child { color: var(--text); font-weight: 500; }
.compare-row > div:last-child { color: var(--text); background: linear-gradient(90deg, rgba(230,187,124,.07), rgba(230,187,124,.02)); border-left: 1px solid rgba(230,187,124,.2); }
.compare-head > div { font-family: var(--font-mono); font-size: .74rem !important; letter-spacing: .14em; text-transform: uppercase; color: var(--dim) !important; font-weight: 500 !important; }
.compare-head > div:last-child { color: var(--kraft) !important; }
.compare svg { width: 18px; height: 18px; flex: none; }
.ic-no { color: #ff6b81; } .ic-yes { color: var(--lime); }

/* ---------- work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.work {
    position: relative; display: block; border-radius: 24px; overflow: hidden;
    border: 1px solid var(--line); background: var(--ink-2);
    transition: transform .6s var(--ease), border-color .4s, box-shadow .6s;
}
.work:hover { transform: translateY(-8px); border-color: var(--line-2); box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(230,187,124,.12); }
.work-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: #0b0d14; }
.work-screen .shot { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease); }
.work-screen::after { /* depth: soft vignette into the card body */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(5,6,10,0) 55%, rgba(5,6,10,.55)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.work-badge {
    position: absolute; left: 14px; bottom: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; /* bottom: clear of each site's own logo */
    padding: 6px 11px; border-radius: 999px; background: rgba(5,6,10,.74); border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font: 500 .72rem/1 var(--font-mono); letter-spacing: .04em; color: var(--text);
}
.work-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.work:hover .work-screen .shot { transform: scale(1.06); }
.work-body { padding: 26px 28px 28px; display: flex; justify-content: space-between; gap: 18px; align-items: flex-end; }
.work-body h3 { font-size: 1.45rem; margin-bottom: 8px; }
.work-body p { color: var(--muted); font-size: .94rem; max-width: 420px; }
.work-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.work-meta span { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; color: var(--muted); border: 1px solid var(--line); }
.work-go { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transition: background .4s, color .4s, transform .5s var(--ease); }
.work-go svg { width: 20px; height: 20px; transform: rotate(-45deg); transition: transform .5s var(--ease); }
.work:hover .work-go { background: var(--kraft); color: #0b0805; border-color: var(--kraft); }
.work:hover .work-go svg { transform: rotate(0deg); }

/* ---------- process ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.process-line { position: absolute; left: 0; right: 0; top: 31px; height: 2px; background: var(--line); overflow: hidden; }
.process-line i { position: absolute; inset: 0; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); box-shadow: 0 0 16px rgba(94,231,255,.6); }
.step { position: relative; padding-top: 80px; }
.step-dot {
    position: absolute; top: 12px; left: 0; width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center; font-family: var(--font-mono); font-size: .78rem; font-weight: 600;
    background: var(--ink); border: 1px solid var(--line-2); color: var(--muted);
    transition: all .6s var(--ease);
}
.step.is-on .step-dot { border-color: var(--kraft); color: #0b0805; background: var(--kraft); box-shadow: 0 0 0 6px rgba(230,187,124,.12), 0 0 30px rgba(230,187,124,.5); }
.step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.portrait { position: relative; aspect-ratio: 1; max-width: 440px; width: 100%; margin: 0 auto; }
.portrait .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(230,187,124,.35); animation: spin 40s linear infinite; }
.portrait .ring:nth-child(2) { inset: 9%; border: 1px solid rgba(94,231,255,.22); animation-duration: 28s; animation-direction: reverse; }
.portrait .ring::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--kraft); box-shadow: 0 0 16px var(--kraft); }
.portrait .ring:nth-child(2)::before { background: var(--cyan); box-shadow: 0 0 16px var(--cyan); }
@keyframes spin { to { transform: rotate(360deg); } }
.portrait .core {
    position: absolute; inset: 18%; border-radius: 50%; display: grid; place-items: center; text-align: center;
    background: radial-gradient(circle at 35% 30%, rgba(156,109,255,.45), transparent 60%), radial-gradient(circle at 70% 75%, rgba(94,231,255,.35), transparent 55%), linear-gradient(160deg, #191d2c, #0b0d14);
    border: 1px solid var(--line-2); box-shadow: inset 0 0 60px rgba(0,0,0,.6), 0 30px 80px -20px rgba(0,0,0,.8);
}
.portrait .core { overflow: hidden; padding: 0; }
.portrait .core::after { /* soft brand-tinted rim so the photo sits in the dark scene */
    content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), inset 0 -30px 60px -20px rgba(5,6,10,.55), 0 0 0 6px rgba(230,187,124,.08);
}
.portrait .core img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 30%; border-radius: 50%; }
.portrait .name { position: absolute; top: 8%; left: -2%; }
.portrait .name .ic { background: rgba(94,231,255,.12); color: var(--cyan); }
.portrait .loc { position: absolute; bottom: 6%; right: -2%; }
.about-copy p { color: var(--muted); font-size: 1.06rem; margin-bottom: 20px; }
.about-copy p strong { color: var(--text); font-weight: 600; }
.quote { margin: 30px 0; padding: 26px 28px; border-radius: 18px; border: 1px solid rgba(230,187,124,.22); background: linear-gradient(135deg, rgba(230,187,124,.08), rgba(230,187,124,.01)); font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.35; letter-spacing: -.02em; color: var(--text); }
.quote span { display: block; margin-top: 12px; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; color: var(--kraft); text-transform: uppercase; }
.sig { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

#about { overflow-x: clip; } /* rotating portrait rings poke past the viewport on phones */

/* ---------- legal page (privacy.php, studio skin) ---------- */
.legal-hero { position: relative; padding: 170px 0 60px; overflow: hidden; isolation: isolate; }
.legal-hero .aurora { opacity: .55; }
.legal-hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; letter-spacing: -.045em; margin: 0 0 22px; }
.legal-lede { max-width: 640px; font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--muted); line-height: 1.7; margin: 0 0 30px; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.legal-meta li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: .86rem; color: var(--muted); }
.legal-meta svg { width: 16px; height: 16px; color: var(--kraft); flex: none; }
.legal-meta a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(230,187,124,.5); }

.legal-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 60px; }
.legal-toc { position: sticky; top: 104px; max-height: calc(100vh - 128px); overflow: auto; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.02); scrollbar-width: thin; }
.legal-toc summary { cursor: pointer; list-style: none; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--kraft); padding: 4px 2px 10px; }
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; }
.legal-toc > details > ol > li { margin-top: 10px; }
.legal-toc > details > ol > li > a { font-weight: 600; color: var(--text); }
.legal-toc ol ol { margin: 4px 0 0; padding-left: 10px; border-left: 1px solid var(--line); }
.legal-toc a { display: block; padding: 5px 8px; border-radius: 8px; font-size: .84rem; line-height: 1.35; color: var(--muted); transition: color .2s, background .2s; }
.legal-toc a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.legal-toc a.is-active { color: var(--kraft); background: rgba(230,187,124,.08); }

.legal-body { max-width: 780px; min-width: 0; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.legal-body > p:first-child { padding: 22px 24px; border-radius: 18px; border: 1px solid rgba(230,187,124,.22); background: linear-gradient(135deg, rgba(230,187,124,.07), rgba(255,255,255,.01)); color: var(--text); }
.legal-body em { font-style: normal; }
.legal-body h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.03em; color: var(--text); margin: 64px 0 18px; padding-top: 30px; border-top: 1px solid var(--line); }
.legal-body h3 { font-size: 1.16rem; letter-spacing: -.01em; color: var(--text); margin: 38px 0 12px; }
.legal-body p { margin: 0 0 16px; }
.legal-body ul, .legal-body ol { margin: 0 0 18px; padding-left: 0; list-style: none; }
.legal-body li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.legal-body li::before { content: ""; position: absolute; left: 4px; top: .78em; width: 6px; height: 6px; border-radius: 50%; background: var(--kraft); opacity: .8; }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body a, .legal-body a[style] { color: var(--kraft) !important; text-decoration: underline !important; text-underline-offset: 3px; text-decoration-color: rgba(230,187,124,.45) !important; overflow-wrap: anywhere; }
.legal-body a:hover { text-decoration-color: var(--kraft) !important; }
.legal-end { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.legal-end .btn-ghost svg { transform: none; }

@media (max-width: 1000px) {
    .legal-grid { grid-template-columns: 1fr; gap: 28px; }
    .legal-toc { position: static; max-height: none; }
    .legal-toc details:not([open]) summary { padding-bottom: 4px; }
    .legal-toc summary::after { content: " +"; }
    .legal-toc details[open] summary::after { content: " -"; }
}
@media (max-width: 640px) {
    .legal-hero { padding: 130px 0 40px; }
    .legal-body { font-size: .97rem; line-height: 1.75; }
    .legal-body > p:first-child { padding: 18px; }
}

/* ---------- faq ---------- */
.faq-wrap { max-width: 900px; }
.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.025); transition: border-color .3s, background .3s; }
.faq-item[open] { border-color: rgba(230,187,124,.28); background: linear-gradient(135deg, rgba(230,187,124,.06), rgba(255,255,255,.015)); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--kraft); outline-offset: 2px; border-radius: 18px; }
.faq-item h3 { margin: 0; font-family: var(--font-display); font-size: clamp(1.02rem, 1.6vw, 1.16rem); font-weight: 600; letter-spacing: -.01em; color: var(--text); }
.faq-ic { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .35s var(--ease), border-color .3s; }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--kraft); transition: transform .35s var(--ease); }
.faq-ic::after { transform: rotate(90deg); }
.faq-item[open] .faq-ic { transform: rotate(180deg); border-color: rgba(230,187,124,.5); }
.faq-item[open] .faq-ic::after { transform: rotate(0deg); }
.faq-item p { margin: 0; padding: 0 26px 24px; color: var(--muted); line-height: 1.7; max-width: 72ch; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- contact ---------- */
.contact-shell { position: relative; border-radius: 32px; padding: clamp(28px, 5vw, 64px); overflow: hidden; border: 1px solid var(--line-2); background: radial-gradient(circle at 0% 0%, rgba(156,109,255,.2), transparent 45%), radial-gradient(circle at 100% 100%, rgba(230,187,124,.16), transparent 45%), linear-gradient(180deg, #0d1019, #080a10); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-grid h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -.045em; margin-bottom: 20px; }
.contact-grid > div > p { color: var(--muted); font-size: 1.08rem; margin-bottom: 30px; }
.channels { display: grid; gap: 12px; }
.channel { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.025); transition: border-color .3s, background .3s, transform .4s var(--ease); }
a.channel:hover { border-color: rgba(230,187,124,.4); background: rgba(230,187,124,.06); transform: translateX(4px); }
.channel .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.05); color: var(--kraft); flex: none; }
.channel .ic svg { width: 20px; height: 20px; }
.channel small { display: block; font-size: .74rem; color: var(--dim); font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.channel strong { font-weight: 500; font-size: .98rem; }

.form { position: relative; padding: clamp(22px, 3vw, 34px); border-radius: 24px; background: rgba(5,6,10,.55); border: 1px solid var(--line); backdrop-filter: blur(16px); }
.field { position: relative; margin-bottom: 14px; }
.field input, .field textarea {
    width: 100%; padding: 24px 16px 10px; border-radius: 14px;
    border: 1px solid var(--line-2); background: rgba(255,255,255,.035); color: var(--text);
    font: 400 1rem/1.5 var(--font-body); outline: none; resize: vertical;
    transition: border-color .3s, background .3s, box-shadow .3s;
}
.field textarea { min-height: 150px; }
.field label { position: absolute; left: 17px; top: 17px; color: var(--dim); font-size: .98rem; pointer-events: none; transition: transform .25s var(--ease), color .25s, font-size .25s; transform-origin: 0 0; }
.field input:focus, .field textarea:focus { border-color: rgba(230,187,124,.6); background: rgba(255,255,255,.055); box-shadow: 0 0 0 4px rgba(230,187,124,.1); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-9px); font-size: .74rem; color: var(--kraft); letter-spacing: .04em; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form .cf-turnstile { margin: 6px 0 14px; min-height: 65px; }
.form .btn { width: 100%; padding: 18px; font-size: 1.02rem; }
.form-note { margin-top: 14px; font-size: .8rem; color: var(--dim); text-align: center; }
.form-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
#ajaxResponse:empty { display: none; }
#ajaxResponse { margin-bottom: 14px; }
body.pb-home .terminal-success, body.pb-home .terminal-error {
    padding: 14px 16px; border-radius: 14px; font-size: .92rem; font-weight: 500; text-align: center; animation: pop .45s var(--ease);
}
body.pb-home .terminal-success { color: var(--lime); background: rgba(167,255,106,.08); border: 1px solid rgba(167,255,106,.3); }
body.pb-home .terminal-error { color: #ff8796; background: rgba(255,90,110,.08); border: 1px solid rgba(255,90,110,.3); }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- footer ---------- */
.foot { position: relative; padding: 80px 0 34px; border-top: 1px solid var(--line); margin-top: 40px; overflow: hidden; }
.foot-big { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 12.5vw, 11rem); line-height: 1.05; letter-spacing: -.06em; text-align: center; margin: 0 0 40px; padding: 0 .08em .06em; background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.01)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.foot-logo { display: block; height: 28px; width: auto; opacity: .9; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; font-size: .88rem; color: var(--dim); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a, .foot-links button { color: var(--muted); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; transition: color .25s; }
.foot-links a:hover, .foot-links button:hover { color: var(--text); }
.sys-login { font-family: var(--font-mono); font-size: .76rem !important; letter-spacing: .1em; color: var(--dim) !important; }
.sys-login:hover { color: var(--lime) !important; }

/* ---------- cookie banner ---------- */
.cookie {
    position: fixed; left: 50%; bottom: 18px; z-index: 130; width: min(640px, calc(100% - 28px));
    display: flex; align-items: center; gap: 16px; padding: 16px 16px 16px 20px; border-radius: 18px;
    background: rgba(12,14,22,.9); border: 1px solid var(--line-2); backdrop-filter: blur(18px);
    box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
    transform: translate(-50%, 140%); transition: transform .6s var(--ease);
}
.cookie.show { transform: translate(-50%, 0); }
.cookie p { font-size: .86rem; color: var(--muted); flex: 1; }
.cookie p a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.cookie .btn { padding: 10px 16px; font-size: .86rem; }

/* ---------- easter-egg terminal ---------- */
.term-overlay { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 18px; background: rgba(3,4,8,.78); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.term-overlay.active { opacity: 1; visibility: visible; }
.term { width: min(720px, 100%); height: min(560px, 82vh); display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #05080a; border: 1px solid rgba(167,255,106,.35); box-shadow: 0 0 60px rgba(167,255,106,.18), 0 40px 100px -20px rgba(0,0,0,.9); transform: scale(.96); transition: transform .4s var(--ease), border-color .5s, box-shadow .5s; }
.term-overlay.active .term { transform: none; }
.term-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; color: #05080a; background: var(--lime); transition: background .5s; }
.term-head button { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; font-weight: 700; }
.term-body { flex: 1; display: flex; flex-direction: column; padding: 18px; font-family: var(--font-mono); font-size: .86rem; color: var(--lime); min-height: 0; background-image: repeating-linear-gradient(0deg, rgba(167,255,106,.035) 0 1px, transparent 1px 3px); }
#game-log { flex: 1; overflow-y: auto; white-space: pre-wrap; }
#game-log p { margin: 0 0 10px; }
.game-input-group { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px dashed rgba(167,255,106,.3); }
.game-prompt { flex: none; }
#game-input { flex: 1; background: transparent; border: 0; outline: none; color: var(--lime); font: inherit; caret-color: var(--lime); }

/* ---------- touch ---------- */
:where(body.pb-home) a, :where(body.pb-home) button, :where(body.pb-home) summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.btn:active { transform: translate(var(--bx), var(--by)) scale(.97); }
@media (pointer: coarse) {
    .foot-links a, .foot-links button { padding: 12px 10px; } /* 44px tap targets on phones and tablets */
    .form-note a { padding: 8px 0; }
}
@media (hover: none) {
    /* no sticky hover states after a tap */
    .work:hover .work-go { background: none; color: inherit; border-color: var(--line-2); }
    .work:active .work-go { background: var(--kraft); color: #0b0805; border-color: var(--kraft); }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
    .hero-inner { grid-template-columns: 1fr; gap: 70px; }
    .hero-visual { max-width: 620px; margin: 0 auto; width: 100%; }
    .svc-lg, .svc-md, .svc-half { grid-column: span 6; }
    .about { grid-template-columns: 1fr; gap: 56px; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .pb-links, .pb-nav-cta .btn { display: none; }
    .pb-burger { display: inline-block; }
    .section-head { grid-template-columns: 1fr; gap: 18px; }
    .work-grid { grid-template-columns: 1fr; }
    .process { grid-template-columns: 1fr 1fr; row-gap: 40px; }
    .process-line { display: none; }
    /* GPU budget on phones/tablets: the gradient blobs are already soft, and
       blurring their animated parent forces a full re-raster every frame. */
    .aurora { filter: none; }
    .btn-ghost, .eyebrow, .form { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (max-width: 640px) {
    .pb-wrap { padding: 0 18px; }
    .pb-nav { padding: 0 8px; }
    html { scroll-padding-top: 88px; } /* shorter nav pill on phones */
    .pb-nav-inner { padding: 8px 8px 8px 12px; } /* logo lines up with the 18px content gutter */
    .hero { padding: 120px 0 80px; }
    .console { --rx: 0deg; --ry: 0deg; }
    /* phones: compact chips so the two top ones sit side by side without colliding */
    .hero-visual .float-chip { padding: 7px 10px; gap: 7px; font-size: .74rem; border-radius: 12px; }
    .hero-visual .float-chip .ic { width: 22px; height: 22px; border-radius: 7px; }
    .hero-visual .float-chip small { display: none; }
    .chip-a { top: 8px; right: 0; } .chip-b { top: 14px; left: 0; }
    .chip-c { bottom: 0; left: auto; right: 6%; margin-left: 0; }
    .hero-visual { padding: 44px 0 40px; }
    .console-metrics { grid-template-columns: 1fr 1fr; }
    .console-metrics .metric:last-child { display: none; }
    .card { padding: 26px; }
    .svc-lg .svc-art { opacity: .25; }
    .compare-row { grid-template-columns: 1fr; }
    .compare-row > div { padding: 12px 18px; }
    .compare-row > div:first-child { padding-top: 18px; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
    .compare-row > div:last-child { border-left: 0; border-top: 1px solid rgba(230,187,124,.18); padding-bottom: 18px; }
    .compare-head { display: none; }
    .process { grid-template-columns: 1fr; }
    .work-body { flex-direction: column; align-items: flex-start; }
    .cookie { flex-direction: column; align-items: stretch; text-align: center; }
    .scroll-cue { display: none; }
    .work-meta span { font-size: .74rem; }
    .marquee-label { font-size: .76rem; letter-spacing: .16em; padding: 0 18px; }
    .contact-shell { padding: 26px 14px; border-radius: 24px; }
    .form { padding: 0; border: 0; background: none; } /* the shell already frames it; leaves room for the 300px Turnstile */
    .channel { padding: 14px; }
    .faq-item summary { padding: 18px; }
    .faq-item p { padding: 0 18px 20px; }
    .foot-row { flex-direction: column; text-align: center; gap: 14px; }
    .foot-links { justify-content: center; gap: 0 4px; }
}
@media (max-width: 380px) {
    .hero h1 { font-size: 2.2rem; }
    .h1-kicker { font-size: .7rem; letter-spacing: .12em; }
    .btn { padding: 14px 20px; }
    .hero-actions .btn { flex: 1 1 100%; }
    .channel .ic { display: none; } /* room for the full email address on one line */
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    [data-reveal], .split .w > span { opacity: 1 !important; transform: none !important; }
    .pb-cursor, #pb-canvas { display: none; }
    .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}
