/* ==========================================================================
   ARChatok — Premium Enhancement Layer
   Loads AFTER main.css. Only overrides/adds effects. Zero layout changes.
   Every block is independently removable.
   ========================================================================== */

/* ---------- 27. Background depth: ambient wash + film grain ---------- */
body::before {
    content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(620px 420px at 85% 42%, color-mix(in srgb, var(--accent) 4.5%, transparent), transparent 70%),
        radial-gradient(520px 400px at 8% 72%, color-mix(in srgb, var(--accent) 3.5%, transparent), transparent 70%);
}
body::after {
    content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.028;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 11. Cursor accent dot (native cursor untouched) ---------- */
.cursor-dot { position: fixed; top: 0; left: 0; width: 0; height: 0; pointer-events: none; z-index: 1000; display: none; will-change: transform; }
@media (hover: hover) and (pointer: fine) { .cursor-dot { display: block; } }
.cursor-dot::after {
    content: ""; position: absolute; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px;
    border-radius: 50%; background: color-mix(in srgb, var(--accent-2) 90%, transparent);
    box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 75%, transparent);
    transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1), background 0.25s ease, box-shadow 0.25s ease;
}
.cursor-dot.is-active::after {
    transform: scale(2.3); background: color-mix(in srgb, var(--accent) 12%, transparent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-2) 50%, transparent), 0 0 18px -4px var(--accent-glow);
}

/* ---------- 25. Scroll progress (inside fixed header, no layout impact) ---------- */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; z-index: 2; opacity: 0.9; }
.scroll-progress span {
    display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%; will-change: transform;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 10px -2px var(--accent-glow);
}

/* ---------- 3. Hero ambient spotlight (mouse-following, very slow) ---------- */
.hero-spot {
    position: absolute; top: 0; left: 0; width: 600px; height: 600px; border-radius: 50%;
    pointer-events: none; z-index: 0; will-change: transform;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 10%, transparent), color-mix(in srgb, var(--accent) 3.5%, transparent) 42%, transparent 68%);
    transform: translate(180px, -80px); /* static default for touch / no-JS */
}
.hero .container.hero-inner { position: relative; z-index: 1; }

/* ---------- 4. Hero 3D parallax context ---------- */
.hero-visual { perspective: 1100px; }
.hero-frame { z-index: 1; will-change: transform; transform-style: preserve-3d; }

/* ---------- 5. Orbital rings (thin, slow, alternating direction) ---------- */
.hero-orbit { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.orbit {
    position: absolute; top: 50%; left: 50%; aspect-ratio: 1 / 1;
    border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent); border-radius: 50%;
}
.orbit-1 { width: 112%; animation: orbit-spin 24s linear infinite; }
.orbit-2 { width: 128%; border-color: color-mix(in srgb, var(--accent) 10%, transparent); animation: orbit-spin-rev 32s linear infinite; }
.orbit-3 { width: 146%; border-color: color-mix(in srgb, var(--accent) 6%, transparent); animation: orbit-spin 42s linear infinite; }
.orbit i {
    position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%;
    background: var(--accent-2); box-shadow: 0 0 10px 2px var(--accent-glow);
}
.orbit-2 i { background: #e9d5ff; box-shadow: 0 0 8px 2px rgba(233, 213, 255, 0.45); }
@keyframes orbit-spin   { from { transform: translate(-50%, -50%) rotate(0deg); }   to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes orbit-spin-rev { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(-360deg); } }

/* ---------- 6. Floating badges: per-chip rhythm + glow breathing ---------- */
.float-chip { z-index: 2; animation-name: float-glow; animation-timing-function: ease-in-out; }
.chip-1 { animation-duration: 5.5s; }
.chip-2 { animation-duration: 6.5s; animation-delay: -2s; }
.chip-3 { animation-duration: 7s;   animation-delay: -1s; }
@keyframes float-glow {
    0%, 100% { transform: translateY(0);        box-shadow: var(--shadow); }
    50%      { transform: translateY(-5px);     box-shadow: var(--shadow), 0 0 26px -8px var(--accent-glow); }
}

/* ---------- 7. Reveal stagger: sixth step for the hero image ---------- */
.d-6 { transition-delay: 0.48s; }

/* ---------- 8. Gradient typography: near-imperceptible violet pan ---------- */
.grad {
    background: linear-gradient(90deg, var(--accent), var(--accent-2) 30%, #e9d5ff 50%, var(--accent-2) 70%, var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: grad-pan 9s ease-in-out infinite alternate;
}
@keyframes grad-pan { from { background-position: 0% center; } to { background-position: 100% center; } }

/* ---------- Hero social row ---------- */
.hero-social { display: flex; align-items: center; gap: 16px; margin-top: 34px; }
.hero-social-label { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }

/* ---------- 9/10. Buttons: glow depth + press state (magnet is JS-driven) ---------- */
.btn { will-change: transform; }
.btn-primary { box-shadow: 0 8px 28px -8px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.16); }
.btn-primary:hover { box-shadow: 0 14px 38px -8px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.16); }
.btn-primary:active { transform: scale(0.97); }
.btn-ghost:active { transform: scale(0.98); }

/* ---------- 12. Marquee: item hover glow/scale; JS takes over the track ---------- */
.marquee.js-anim .marquee-track { animation: none; will-change: transform; }
.marquee-item { transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease; }
.marquee-item:hover { color: var(--text); transform: scale(1.05); text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 50%, transparent); }
.marquee-item .icon { transition: transform 0.3s ease, filter 0.3s ease; }
.marquee-item:hover .icon { transform: scale(1.15); filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 60%, transparent)); }

/* ---------- 28. Card mouse spotlight (shared utility) ---------- */
.service-card, .project-card, .plugin-card, .post-card, .t-slide, .about-card { position: relative; }
.service-card::after, .project-card::after, .plugin-card::after, .post-card::after, .t-slide::after, .about-card::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 8%, transparent), transparent 65%);
    opacity: 0; transition: opacity 0.35s ease;
}
.service-card:hover::after, .project-card:hover::after, .plugin-card:hover::after,
.post-card:hover::after, .t-slide:hover::after, .about-card:hover::after { opacity: 1; }

/* ---------- 15. Statistics: one-time completion pulse ---------- */
@keyframes stat-pulse {
    0%   { text-shadow: 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); }
    40%  { text-shadow: 0 0 24px color-mix(in srgb, var(--accent) 55%, transparent); }
    100% { text-shadow: 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); }
}
@keyframes icon-pop { 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
.count-done .stat-num  { animation: stat-pulse 0.9s ease 0.1s; }
.count-done .stat-icon { animation: icon-pop 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); transform-origin: center; }

/* ---------- 16. Service icon glow ---------- */
.service-icon { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-card:hover .service-icon { transform: translateY(-4px); box-shadow: var(--glow); }

/* ---------- 17/18. Project media depth + refined overlay ---------- */
.project-media::after, .post-media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    box-shadow: inset 0 -70px 60px -45px rgba(6, 6, 11, 0.75), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.project-overlay { background: linear-gradient(180deg, rgba(6, 6, 11, 0.12), rgba(6, 6, 11, 0.72)); }
.project-card:hover .project-media img { transform: scale(1.05); }

/* ---------- 19. Plugin card: icon glow ---------- */
.plugin-icon { transition: box-shadow 0.3s ease, border-color 0.3s ease; }
.plugin-icon .icon { transition: transform 0.3s ease; }
.plugin-card:hover .plugin-icon { border-color: color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: 0 0 26px -6px var(--accent-glow); }
.plugin-card:hover .plugin-icon .icon { transform: scale(1.08); }

/* ---------- 22. Blog card refinements ---------- */
.post-cat { transition: box-shadow 0.3s ease, border-color 0.3s ease; }
.post-card:hover .post-cat { border-color: color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: 0 0 18px -6px var(--accent-glow); }
.card-link .icon { transition: transform 0.25s ease; }
.card-link:hover .icon, .post-card:hover .read-more .icon { transform: translateX(3px); }
.post-card:hover .read-more { color: var(--accent-2); }

/* ---------- 21. Testimonials: card hover, quote glow, dot polish ---------- */
.t-slide { transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease; }
.t-slide:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 35%, transparent); box-shadow: var(--shadow); }
.t-quote-icon { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 35%, transparent)); transition: filter 0.3s ease; }
.t-slide:hover .t-quote-icon { filter: drop-shadow(0 0 16px color-mix(in srgb, var(--accent) 55%, transparent)); }
.t-dot { transition: width 0.25s ease, background 0.25s ease; }
.t-dot:hover { background: var(--accent-2); }

/* ---------- 23. Contact: focus depth + success entrance ---------- */
.field input, .field select, .field textarea { transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease; }
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--accent); background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.field:focus-within > label { color: var(--accent-2); transition: color 0.25s ease; }
@keyframes status-in { from { opacity: 0; transform: translateY(8px); } }
.form-status.is-success, .form-status.is-error { animation: status-in 0.45s cubic-bezier(0.22, 0.61, 0.36, 1); }

/* ---------- 24/26. Footer ambient glow + link polish ---------- */
.site-footer { position: relative; overflow: hidden; }
.site-footer::before {
    content: ""; position: absolute; left: 50%; top: -180px; transform: translateX(-50%);
    width: 920px; height: 440px; pointer-events: none;
    background: radial-gradient(ellipse, color-mix(in srgb, var(--accent) 6%, transparent), transparent 65%);
}
.footer-grid, .footer-bottom { position: relative; z-index: 1; }
.footer-links a, .to-top { transition: color 0.2s ease, transform 0.2s ease; }
.to-top:hover { color: var(--accent-2); transform: translateY(-2px); }

/* ---------- Responsive tuning ---------- */
@media (max-width: 1024px) { .orbit-3 { display: none; } }
@media (max-width: 640px)  { .orbit-2 { display: none; } .hero-spot { opacity: 0.7; } }

/* ---------- Reduced motion: kill every continuous effect ---------- */
@media (prefers-reduced-motion: reduce) {
    .cursor-dot, .hero-spot { display: none; }
    .orbit, .grad, .float-chip, body::after { animation: none; }
    .count-done .stat-num, .count-done .stat-icon { animation: none; }
}/* ==========================================================================
   ARChatok — Premium Tier 2
   Experience layer: preloader, command palette, accent switcher, section
   rail, scroll ring, card tilt, footer wordmark, finishing micro-polish.
   Loads AFTER main.css. Every block is independently removable.
   ========================================================================== */

/* ---------- P1. Brand preloader (markup in header.php) ---------- */
body.is-loading { overflow: hidden; animation: arc-unlock 0s 4s forwards; }
@keyframes arc-unlock { to { overflow: auto; } }
.arc-preloader {
    position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
    background: var(--bg);
    transition: opacity 0.55s ease, visibility 0.55s ease;
    /* JS failsafe: even if main.js never runs, the curtain lifts after 4s */
    animation: arc-pre-failsafe 0s 4s forwards;
}
@keyframes arc-pre-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.arc-preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.arc-pre-inner { display: grid; justify-items: center; gap: 20px; }
.arc-pre-mark {
    width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
    font: 800 28px/1 var(--font-head); color: #fff; background: var(--grad-btn);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 18px 50px -12px var(--accent-glow);
    animation: pre-float 1.5s ease-in-out infinite; position: relative;
}
.arc-pre-mark::after {
    content: ""; position: absolute; inset: -9px; border-radius: 24px;
    border: 1px solid var(--accent-glow); animation: pre-ring 1.6s ease-out infinite;
}
@keyframes pre-float { 50% { transform: translateY(-5px); } }
@keyframes pre-ring { 0% { opacity: 0.75; transform: scale(0.92); } 70%, 100% { opacity: 0; transform: scale(1.28); } }
.arc-pre-name {
    font: 600 12px/1 var(--font-body); letter-spacing: 0.38em; text-transform: uppercase;
    color: var(--muted); padding-left: 0.38em; /* optically recenter tracked text */
}
.arc-pre-bar { width: 150px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.arc-pre-bar i {
    display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0); transform-origin: 0 50%;
    animation: pre-fill 1.05s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}
@keyframes pre-fill { to { transform: scaleX(1); } }

/* ---------- P2. Command palette (Ctrl/Cmd + K) ---------- */
.cmdk { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: start center; padding-top: 16vh; }
.cmdk[hidden] { display: none; }
.cmdk-backdrop {
    position: absolute; inset: 0; background: rgba(4, 4, 9, 0.6);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    animation: cmdk-fade 0.22s ease both;
}
@keyframes cmdk-fade { from { opacity: 0; } }
.cmdk-panel {
    position: relative; width: min(560px, calc(100vw - 40px));
    background: rgba(12, 11, 22, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px;
    box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.03) inset, 0 24px 70px -30px var(--accent-glow);
    backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
    overflow: hidden; animation: cmdk-pop 0.28s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes cmdk-pop { from { opacity: 0; transform: translateY(14px) scale(0.985); } }
.cmdk-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.cmdk-head .icon { width: 18px; height: 18px; color: var(--accent-2); flex: none; }
.cmdk-input {
    flex: 1; background: none; border: 0; outline: 0; color: var(--text);
    font: 500 15px/1.4 var(--font-body);
}
.cmdk-input::placeholder { color: var(--dim); }
.cmdk-esc {
    font: 600 10px/1 var(--font-body); letter-spacing: 0.08em; color: var(--dim);
    border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 6px; padding: 4px 7px;
}
.cmdk-list { list-style: none; margin: 0; padding: 8px; max-height: 320px; overflow-y: auto; }
.cmdk-item {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 11px 12px; border: 0; border-radius: 12px; background: none;
    color: var(--muted); font: 500 14px/1.3 var(--font-body); text-align: left; cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.cmdk-item .cmdk-ico {
    width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center;
    background: rgba(255, 255, 255, 0.05); color: var(--accent-2);
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.cmdk-item .cmdk-ico .icon { width: 15px; height: 15px; }
.cmdk-item .cmdk-type { margin-left: auto; font: 600 10px/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.cmdk-item:hover, .cmdk-item.is-sel { background: var(--accent-soft); color: var(--text); }
.cmdk-item.is-sel .cmdk-ico { border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 0 16px -6px var(--accent-glow); }
.cmdk-empty { padding: 26px 16px; text-align: center; color: var(--dim); font-size: 13.5px; }
.cmdk-foot {
    display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--dim); font-size: 11.5px;
}
.cmdk-foot b { color: var(--muted); font-weight: 600; }

/* Header trigger chip (injected next to the nav toggle) */
.cmdk-trigger {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 13px;
    border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
    color: var(--dim); font: 600 12px/1 var(--font-body); cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.cmdk-trigger .icon { width: 14px; height: 14px; }
.cmdk-trigger kbd { font: 600 11px/1 var(--font-body); color: inherit; }
.cmdk-trigger:hover { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 0 20px -8px var(--accent-glow); }
@media (max-width: 900px) { .cmdk-trigger { display: none; } }

/* ---------- P3. Floating dock: scroll ring + accent switcher ---------- */
.arc-fab {
    position: fixed; right: 26px; bottom: 26px; z-index: 900;
    display: grid; justify-items: center; gap: 12px;
}
@media (max-width: 760px) { .arc-fab { display: none; } }
.arc-ring {
    position: relative; width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer;
    background: rgba(12, 11, 22, 0.72); border: 0; color: var(--muted);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), var(--shadow);
    opacity: 0; transform: translateY(14px) scale(0.9); pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), color 0.2s ease;
}
.arc-ring.show { opacity: 1; transform: none; pointer-events: auto; }
.arc-ring:hover { color: var(--accent-2); }
.arc-ring svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.arc-ring .ring-track { stroke: rgba(255, 255, 255, 0.09); }
.arc-ring .ring-fill { stroke: var(--accent); transition: stroke 0.3s ease; }
.arc-ring .icon { width: 16px; height: 16px; }

.arc-dock {
    display: grid; gap: 9px; padding: 10px 7px; border-radius: 999px;
    background: rgba(12, 11, 22, 0.72); border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow);
}
.arc-swatch {
    width: 18px; height: 18px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
    background: var(--sw); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    transition: transform 0.2s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.2s ease;
    position: relative;
}
.arc-swatch:hover { transform: scale(1.18); }
.arc-swatch.active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--sw), 0 0 14px -2px var(--sw); }

/* ---------- P4. Section rail (right-edge dot navigation, desktop) ---------- */
.arc-rail { position: fixed; right: 26px; top: 50%; transform: translateY(-50%); z-index: 890; display: grid; gap: 14px; }
@media (max-width: 1240px), (hover: none) { .arc-rail { display: none; } }
.arc-rail a { display: grid; justify-items: end; align-items: center; gap: 0; text-decoration: none; padding: 2px 0; }
.arc-rail-label {
    grid-row: 1; grid-column: 1;
    font: 600 10.5px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--muted); background: rgba(12, 11, 22, 0.85); border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 10px; border-radius: 8px; margin-right: 14px;
    opacity: 0; transform: translateX(6px); pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.arc-rail-dot {
    grid-row: 1; grid-column: 2;
    width: 7px; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.22);
    transition: width 0.28s cubic-bezier(0.22, 0.61, 0.36, 1), background 0.28s ease, box-shadow 0.28s ease;
}
.arc-rail a:hover .arc-rail-label { opacity: 1; transform: none; }
.arc-rail a:hover .arc-rail-dot { background: var(--accent-2); }
.arc-rail a.active .arc-rail-dot {
    height: 20px; background: linear-gradient(180deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 12px -2px var(--accent-glow);
}
.arc-rail a.active .arc-rail-label { color: var(--accent-2); }

/* ---------- P5. Card tilt (vars driven by main.js) ---------- */
.tilt-ready { will-change: transform; }

/* ---------- P6. Marquee edge fades ---------- */
.marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

/* ---------- P7. Border beam on hero frame + CTA panel ---------- */
@property --beam-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.border-beam {
    position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: 3;
    pointer-events: none;
    background: conic-gradient(from var(--beam-angle),
        transparent 0deg, transparent 300deg,
        color-mix(in srgb, var(--accent) 55%, transparent) 326deg,
        var(--accent-2) 344deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: beam-spin 7s linear infinite; opacity: 0.8;
}
@keyframes beam-spin { to { --beam-angle: 360deg; } }
@supports not (background: conic-gradient(from 0deg, red, blue)) { .border-beam { display: none; } }

/* ---------- P8. Primary button shine sweep ---------- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
    content: ""; position: absolute; top: -2px; bottom: -2px; left: 0; width: 34%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-160%) skewX(-18deg); pointer-events: none;
}
.btn-primary:hover::after { transition: transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1); transform: translateX(430%) skewX(-18deg); }

/* ---------- P9. Footer: mega wordmark + link underline slide ---------- */
.footer-wordmark {
    position: absolute; left: 50%; bottom: -0.24em; transform: translateX(-50%);
    z-index: 0; pointer-events: none; user-select: none; white-space: nowrap;
    font: 800 clamp(88px, 17vw, 230px)/1 var(--font-head); letter-spacing: 0.02em;
    color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.055);
    -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 92%);
    mask-image: linear-gradient(180deg, #000 30%, transparent 92%);
}
.footer-links a, .footer-contact a {
    background: linear-gradient(90deg, var(--accent-2), var(--accent-2)) no-repeat 0 100% / 0% 1px;
    padding-bottom: 2px;
    transition: color 0.2s ease, background-size 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.footer-links a:hover, .footer-contact a:hover { background-size: 100% 1px; }

/* ---------- P10. Scroll hint: gentle bounce ---------- */
.scroll-hint { animation: hint-bob 2.6s ease-in-out infinite; }
@keyframes hint-bob { 0%, 100% { transform: none; } 50% { transform: translateY(7px); } }

/* ---------- P11. Copy-email chip (contact facts) ---------- */
.copy-mail {
    display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: 8px;
    border-radius: 9px; border: 1px solid var(--border); background: var(--surface);
    color: var(--muted); cursor: pointer; vertical-align: middle;
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.copy-mail .icon { width: 14px; height: 14px; }
.copy-mail .i-check { display: none; }
.copy-mail:hover { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 0 16px -6px var(--accent-glow); }
.copy-mail:active { transform: scale(0.92); }
.copy-mail.is-copied { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.copy-mail.is-copied .i-copy { display: none; }
.copy-mail.is-copied .i-check { display: block; }

/* ---------- Responsive + motion guards ---------- */
@media (max-width: 760px) {
    .cmdk { padding-top: 10vh; }
    .footer-wordmark { bottom: -0.1em; }
}
@media (prefers-reduced-motion: reduce) {
    .arc-preloader, .arc-pre-mark::after { animation: none; }
    .border-beam { animation: none; opacity: 0.45; }
    .scroll-hint { animation: none; }
    .cmdk-backdrop, .cmdk-panel { animation: none; }
}
