/* ============================================================
   RoboCam — robocam.ir
   Cinematic single-page site · RTL (fa) · dark stage + amber
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
    --bg: #0a0b10;
    --bg-2: #0d0f16;
    --panel: rgba(255, 255, 255, .03);
    --panel-2: rgba(255, 255, 255, .055);
    --border: rgba(255, 255, 255, .08);
    --border-soft: rgba(255, 255, 255, .05);
    --text: #f2f4f8;
    --text-2: #c3cad8;
    --muted: #8b93a7;
    --faint: #616a80;
    --acc: #ff8a1e;
    --acc-2: #ffb648;
    --acc-soft: rgba(255, 138, 30, .13);
    --ok: #2fe08a;
    --err: #ff6161;
    --hud: #57e389;
    --font: 'Vazirmatn', Vazir, Tahoma, 'Segoe UI', sans-serif;
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --header-h: 72px;
    --radius-card: 14px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--acc); color: #1c1206; }

:focus-visible {
    outline: 2px solid var(--acc);
    outline-offset: 3px;
    border-radius: 4px;
}

/* thin dark scrollbar */
::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #262b38; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #333a4a; }

.container { width: min(1200px, 92%); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }

.skip-link {
    position: fixed;
    top: -60px;
    inset-inline-start: 16px;
    z-index: 200;
    background: var(--acc);
    color: #1c1206;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    transition: top .25s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Atmosphere layers ---------- */
.bg-noise {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: .045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.scroll-progress {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--acc), var(--acc-2));
    z-index: 120;
    transition: width .12s linear;
}

/* ---------- Custom cursor (fine pointers only) ---------- */
.cursor, .cursor-ring { display: none; }
@media (pointer: fine) {
    .cursor {
        display: block;
        position: fixed;
        top: 0; left: 0;
        width: 8px; height: 8px;
        margin: -4px 0 0 -4px;
        border-radius: 50%;
        background: var(--acc);
        z-index: 300;
        pointer-events: none;
    }
    .cursor-ring {
        display: block;
        position: fixed;
        top: 0; left: 0;
        width: 36px; height: 36px;
        margin: -18px 0 0 -18px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, .35);
        z-index: 300;
        pointer-events: none;
        transition: transform .18s var(--ease), border-color .18s var(--ease), opacity .18s;
    }
    .cursor-ring.is-active {
        transform: scale(1.5);
        border-color: var(--acc);
    }
}

/* ---------- Preloader ---------- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 400;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    transition: opacity .5s var(--ease), visibility .5s;
}
.preloader-aperture { width: 56px; height: 56px; color: var(--acc); animation: spin 1.6s linear infinite; }
.preloader-bar { width: 160px; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 0; background: var(--acc); animation: preload 1.1s var(--ease) forwards; }
@keyframes preload { to { width: 100%; } }
@keyframes spin { to { transform: rotate(360deg); } }
body.loaded .preloader { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- Type helpers ---------- */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--acc-2);
    font-size: .85rem;
    font-weight: 600;
    margin: 0 0 14px;
}
.kicker::before {
    content: '';
    width: 26px; height: 2px;
    background: var(--acc);
    border-radius: 2px;
}
.sec-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 14px;
}
.sec-sub { color: var(--muted); font-size: 1.05rem; margin: 0; }
.accent-word { color: var(--acc-2); }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--acc-2);
    font-weight: 600;
    margin-top: 18px;
    transition: gap .2s var(--ease);
}
.text-link svg { width: 18px; height: 18px; }
.text-link:hover { gap: 13px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--acc);
    color: #1c1206;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 28px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(255, 138, 30, .45); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.btn-sm { padding: 9px 18px; font-size: .9rem; border-radius: 8px; }
.btn-block { width: 100%; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--text-2);
    font-weight: 600;
    font-size: 1rem;
    padding: 13px 26px;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .2s, color .2s, transform .18s var(--ease);
}
.btn-ghost svg { width: 18px; height: 18px; color: var(--acc); }
.btn-ghost:hover { border-color: rgba(255, 138, 30, .5); color: var(--text); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 100;
    height: var(--header-h);
    transition: transform .35s var(--ease), background .3s, border-color .3s;
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
    background: rgba(10, 11, 16, .82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--border-soft);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; color: var(--acc); }
.brand-name { font-weight: 800; font-size: 1.25rem; line-height: 1.1; }
.brand-latin {
    display: block;
    font-size: .6rem;
    font-weight: 500;
    letter-spacing: .22em;
    color: var(--muted);
    font-family: var(--font);
}
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    position: relative;
    padding: 10px 14px;
    font-size: .95rem;
    font-weight: 500;
    color: var(--text-2);
    border-radius: 8px;
    transition: color .2s;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    inset-inline: 14px;
    height: 2px;
    border-radius: 2px;
    background: var(--acc);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s var(--ease);
}
.main-nav a:hover { color: var(--text); }
.main-nav a.is-active { color: var(--text); }
.main-nav a.is-active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
}
.nav-toggle span {
    position: absolute;
    inset-inline: 12px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: var(--header-h);
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-sky {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #070910 0%, #0b1220 42%, #18202f 64%, #46281f 84%, #a34d24 100%);
}
.hero-stars {
    position: absolute;
    inset: 0 0 30% 0;
    opacity: .55;
    background-image:
        radial-gradient(1.4px 1.4px at 12% 22%, #dfe8ff 50%, transparent 51%),
        radial-gradient(1px 1px at 28% 12%, #dfe8ff 50%, transparent 51%),
        radial-gradient(1.6px 1.6px at 41% 30%, #cfe0ff 50%, transparent 51%),
        radial-gradient(1px 1px at 57% 16%, #dfe8ff 50%, transparent 51%),
        radial-gradient(1.2px 1.2px at 68% 36%, #cfe0ff 50%, transparent 51%),
        radial-gradient(1px 1px at 78% 10%, #dfe8ff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 88% 26%, #dfe8ff 50%, transparent 51%),
        radial-gradient(1px 1px at 94% 44%, #cfe0ff 50%, transparent 51%),
        radial-gradient(1px 1px at 8% 48%, #dfe8ff 50%, transparent 51%),
        radial-gradient(1.2px 1.2px at 48% 48%, #dfe8ff 50%, transparent 51%);
}
.hero-skyline {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    opacity: .9;
}
.hero-glow {
    position: absolute;
    bottom: -12%;
    left: 50%;
    width: 900px; height: 420px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(255, 138, 30, .28), transparent 70%);
    filter: blur(10px);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: clamp(24px, 4vw, 64px);
    padding-block: 48px 96px;
}
.hero-copy h1 {
    font-size: clamp(2.2rem, 5vw, 3.9rem);
    font-weight: 900;
    line-height: 1.25;
    margin: 0 0 20px;
}
.hero-copy .lead {
    color: var(--text-2);
    font-size: 1.1rem;
    max-width: 54ch;
    margin: 0 0 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 0;
    padding: 0;
    color: var(--muted);
    font-size: .92rem;
}
.hero-chips li { display: inline-flex; align-items: center; gap: 8px; }
.hero-chips svg { width: 17px; height: 17px; color: var(--ok); flex: none; }

.hero-copy [data-reveal]:nth-child(1) { transition-delay: .05s; }
.hero-copy [data-reveal]:nth-child(2) { transition-delay: .15s; }
.hero-copy [data-reveal]:nth-child(3) { transition-delay: .25s; }
.hero-copy [data-reveal]:nth-child(4) { transition-delay: .35s; }
.hero-copy [data-reveal]:nth-child(5) { transition-delay: .45s; }

.hero-device {
    position: relative;
    width: clamp(280px, 30vw, 400px);
    justify-self: center;
    will-change: transform;
}
.hero-device .device-svg { animation: deviceIn 1.2s var(--ease) .25s both; }
@keyframes deviceIn {
    from { opacity: 0; transform: translateY(60px) scale(.94); }
    to { opacity: 1; transform: none; }
}

/* device svg common */
.device-svg { width: 100%; height: auto; overflow: visible; }
.device-svg .d-rig,
.device-svg .d-head,
.device-svg .d-cam,
.device-svg .d-panel { transform-box: view-box; }
.device-svg .d-head { transform-origin: 215px 231px; }
.device-svg .d-cam { transform-origin: 215px 306px; }
.device-svg .d-panel { transform-origin: 196px 160px; }

.led-rec { fill: #ff4d4d; animation: blink 1.6s steps(2, start) infinite; }
.led-pwr { fill: var(--ok); }
.led-net { fill: #57a8ff; animation: netpulse 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .15; } }
@keyframes netpulse { 50% { opacity: .25; } }

.ant-wave { opacity: 0; animation: wave 2.8s var(--ease) infinite; }
.ant-wave2 { animation-delay: .35s; }
.device-svg .svg-flash { transition: opacity .15s ease; }
@keyframes wave {
    0% { opacity: 0; transform: translateY(3px); }
    30% { opacity: .9; }
    70% { opacity: 0; transform: translateY(-4px); }
    100% { opacity: 0; }
}

.float-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 15, 22, .78);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    color: var(--text-2);
    font-size: .82rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .7);
    animation: floaty 5s ease-in-out infinite;
}
.float-chip svg { width: 16px; height: 16px; color: var(--acc); flex: none; }
.fc-1 { top: 24%; inset-inline-start: -12%; }
.fc-2 { top: 52%; inset-inline-end: -14%; animation-delay: 1.2s; }
.fc-3 { bottom: 8%; inset-inline-start: -8%; animation-delay: 2.2s; }
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

.scroll-cue {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
}
.scroll-cue-track {
    width: 26px; height: 44px;
    border: 1px solid var(--border);
    border-radius: 999px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}
.scroll-cue-dot {
    width: 4px; height: 8px;
    border-radius: 4px;
    background: var(--acc);
    animation: cuedrop 1.8s var(--ease) infinite;
}
@keyframes cuedrop {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(16px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--bg); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(32px, 5vw, 72px);
    margin-bottom: clamp(48px, 6vw, 80px);
}
.about-copy h3 { font-size: 1.4rem; font-weight: 800; margin: 0 0 16px; }
.about-copy p { color: var(--muted); margin: 0 0 16px; }

.component-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.component-list li {
    display: flex;
    gap: 16px;
    background: var(--panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-md);
    padding: 16px 18px;
    transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.component-list li:hover { background: var(--panel-2); border-color: var(--border); transform: translateX(0); }
.comp-ico {
    flex: none;
    width: 46px; height: 46px;
    display: grid;
    place-items: center;
    background: var(--acc-soft);
    border: 1px solid rgba(255, 138, 30, .25);
    border-radius: 12px;
    color: var(--acc-2);
}
.comp-ico svg { width: 24px; height: 24px; }
.component-list h4 { margin: 0 0 4px; font-size: 1.02rem; font-weight: 700; }
.component-list p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.65; }

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.why-card {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: 28px 24px 24px;
    overflow: hidden;
    transition: border-color .25s, background .25s;
}
.why-card:hover { border-color: rgba(255, 138, 30, .35); background: var(--panel-2); }
.why-num {
    display: block;
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 138, 30, .55);
    margin-bottom: 14px;
}
.why-card h3 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 700; }
.why-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ============================================================
   SHOWREEL (sticky cinematic section)
   ============================================================ */
.showreel { height: 420vh; position: relative; }
.showreel-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
}
.showreel-scene { position: absolute; inset: 0; }
.showreel-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #0a0d18 0%, #101b2e 55%, #1d2738 100%);
}
.showreel-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #05070d 0%, #0a1120 55%, #10233a 100%);
    opacity: 0;
    transition: opacity 1.4s ease;
}
.showreel-scene.night .showreel-bg::after { opacity: 1; }

.showreel-grid {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    color: rgba(255, 255, 255, .05);
}
.sr-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, .55) 100%);
    pointer-events: none;
}

.showreel-stage {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.sr-device { width: clamp(240px, 24vw, 330px); flex: none; }

.sr-hud {
    position: absolute;
    inset: calc(var(--header-h) + 2.5vh) 4vw 4vh;
    pointer-events: none;
    font-size: .8rem;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .75);
}
.hud-row {
    position: absolute;
    inset-inline: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hud-top { top: 0; }
.hud-bottom { bottom: 0; }
.hud-rec {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #ff6161;
}
.hud-rec i {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #ff4d4d;
    animation: blink 1.4s steps(2, start) infinite;
}
.hud-info, .hud-cam { color: rgba(255, 255, 255, .5); }
.hud-shots b { color: var(--acc-2); font-weight: 700; }
.hud-batt {
    position: relative;
    width: 56px; height: 12px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 3px;
    padding: 1.5px;
}
.hud-batt::after {
    content: '';
    position: absolute;
    top: 2px;
    inset-inline-end: -5px;
    width: 3px; height: 6px;
    background: rgba(255, 255, 255, .4);
    border-radius: 1px;
}
.hud-batt i {
    display: block;
    height: 100%;
    background: var(--hud);
    border-radius: 1px;
}
.hud-frame { position: absolute; inset: 42px 0; border: 1px solid rgba(255, 255, 255, .14); }
.hud-cross { position: absolute; width: 22px; height: 22px; }
.hud-cross::before {
    content: '';
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, .4);
}
.hud-cross::after {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: rgba(255, 255, 255, .4);
}
.hud-cross-a { top: 14px; inset-inline-end: 14px; }
.hud-cross-b { bottom: 14px; inset-inline-start: 14px; }

.sr-caption {
    position: relative;
    width: min(440px, 42%);
    min-height: 190px;
}
.sr-step {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
    pointer-events: none;
}
.sr-step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.sr-step-num {
    display: inline-block;
    font-size: .85rem;
    font-weight: 700;
    color: var(--acc-2);
    border: 1px solid rgba(255, 138, 30, .4);
    border-radius: 8px;
    padding: 3px 12px;
    margin-bottom: 14px;
}
.sr-step h3 { margin: 0 0 10px; font-size: 1.5rem; font-weight: 800; }
.sr-step p { margin: 0; color: var(--text-2); }

.sr-rail {
    position: absolute;
    bottom: 5.5vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
.sr-rail button {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .4);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .2s;
}
.sr-rail button:hover { border-color: var(--acc); transform: scale(1.2); }
.sr-rail button.is-on { background: var(--acc); border-color: var(--acc); }

/* ============================================================
   FEATURES
   ============================================================ */
.features { background: var(--bg-2); border-block: 1px solid var(--border-soft); }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.feature-card {
    background: var(--panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: 26px 24px;
    transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(255, 138, 30, .35); background: var(--panel-2); }
.feature-wide { grid-column: span 2; }
.feature-ico {
    display: inline-grid;
    place-items: center;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--acc-soft);
    border: 1px solid rgba(255, 138, 30, .25);
    color: var(--acc-2);
    margin-bottom: 18px;
}
.feature-ico svg { width: 26px; height: 26px; }
.feature-card h3 { margin: 0 0 10px; font-size: 1.15rem; font-weight: 700; }
.feature-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ============================================================
   GALLERY — film strip
   ============================================================ */
.film-strip {
    position: relative;
    padding-block: 8px 4px;
}
.film-strip::before,
.film-strip::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 34px;
    z-index: 2;
    pointer-events: none;
}
.film-strip::before { inset-inline-start: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.film-strip::after { inset-inline-end: 0; background: linear-gradient(-90deg, var(--bg), transparent); }

.film-track {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 6vw 26px;
    cursor: grab;
    scrollbar-width: none;
    user-select: none;
    -webkit-user-select: none;
}
.film-track::-webkit-scrollbar { display: none; }
.film-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.film-track.is-dragging .frame { pointer-events: none; }

.frame {
    flex: 0 0 clamp(280px, 30vw, 380px);
    scroll-snap-align: start;
    background: var(--panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: transform .35s var(--ease), border-color .3s;
}
.frame:hover { transform: translateY(-8px); border-color: var(--border); }
.frame-img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.frame-img svg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    transition: transform .8s var(--ease);
}
.frame:hover .frame-img svg { transform: scale(1.06); }
.frame-cat {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    background: rgba(10, 11, 16, .72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    color: var(--acc-2);
    font-size: .78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
}
.frame-flash {
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0;
    pointer-events: none;
}
.frame.is-shot .frame-flash { animation: shotflash .55s ease-out; }
@keyframes shotflash {
    0% { opacity: .85; }
    100% { opacity: 0; }
}
.frame-meta { padding: 18px 20px 20px; }
.frame-meta h3 { margin: 0 0 4px; font-size: 1.08rem; font-weight: 700; }
.frame-loc { margin: 0 0 10px; color: var(--acc-2); font-size: .85rem; font-weight: 600; }
.frame-desc { margin: 0 0 16px; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.frame-stats {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border-soft);
    padding-top: 14px;
}
.frame-stats li { flex: 1; }
.frame-stats li + li { border-inline-start: 1px solid var(--border-soft); padding-inline-start: 16px; }
.frame-stats b { display: block; font-size: 1.05rem; font-weight: 800; }
.frame-stats span { color: var(--faint); font-size: .78rem; }
.film-hint { color: var(--faint); font-size: .85rem; margin-top: 6px; }

/* ============================================================
   SPECS
   ============================================================ */
.specs { background: var(--bg-2); border-block: 1px solid var(--border-soft); }
.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.spec-card {
    background: var(--panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: 26px 28px;
}
.spec-card h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--acc-2);
}
.spec-card dl { margin: 0; }
.spec-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--border-soft);
}
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { color: var(--muted); flex: none; }
.spec-row dd { margin: 0; color: var(--text-2); font-weight: 500; text-align: end; }

/* ============================================================
   APPLICATIONS
   ============================================================ */
.applications .sec-head { margin-bottom: 34px; }
.apps-marquee {
    overflow: hidden;
    border-block: 1px solid var(--border-soft);
    padding-block: 18px;
    margin-bottom: clamp(40px, 6vw, 72px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.apps-track {
    display: inline-flex;
    align-items: center;
    gap: 34px;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    will-change: transform;
}
.apps-marquee:hover .apps-track { animation-play-state: paused; }
.apps-track span {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-2);
}
.apps-track i {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--acc);
    opacity: .7;
    flex: none;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.app-card {
    background: var(--panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: 26px 24px;
    transition: transform .3s var(--ease), border-color .3s;
}
.app-card:hover { transform: translateY(-6px); border-color: rgba(255, 138, 30, .35); }
.app-ico {
    display: inline-grid;
    place-items: center;
    width: 50px; height: 50px;
    border-radius: 13px;
    background: var(--acc-soft);
    border: 1px solid rgba(255, 138, 30, .25);
    color: var(--acc-2);
    margin-bottom: 16px;
}
.app-ico svg { width: 24px; height: 24px; }
.app-card h3 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 700; }
.app-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-wrap { max-width: 820px; }
.faq-list { border-top: 1px solid var(--border-soft); }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 4px;
    font-size: 1.06rem;
    font-weight: 600;
    transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--acc-2); }
.faq-icon { position: relative; width: 18px; height: 18px; flex: none; }
.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    background: var(--acc);
    border-radius: 2px;
    transition: transform .3s var(--ease);
}
.faq-icon::before { left: 0; right: 0; top: 8px; height: 2px; }
.faq-icon::after { top: 0; bottom: 0; left: 8px; width: 2px; }
.faq-item[open] .faq-icon::after { transform: scaleY(0); }
.faq-body { padding: 0 4px 22px; }
.faq-body p { margin: 0; color: var(--muted); max-width: 62ch; }
.faq-item[open] .faq-body { animation: faqIn .35s var(--ease); }
@keyframes faqIn {
    from { opacity: 0; transform: translateY(-8px); }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg-2); border-top: 1px solid var(--border-soft); }
.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}
.contact-lead { color: var(--muted); margin: 0 0 30px; max-width: 46ch; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-ico {
    flex: none;
    width: 46px; height: 46px;
    display: grid;
    place-items: center;
    background: var(--acc-soft);
    border: 1px solid rgba(255, 138, 30, .25);
    border-radius: 12px;
    color: var(--acc-2);
}
.contact-ico svg { width: 22px; height: 22px; }
.contact-list h3 { margin: 0 0 2px; font-size: .95rem; font-weight: 700; }
.contact-list p { margin: 0; color: var(--muted); font-size: .95rem; }

.quote-form {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: clamp(22px, 3vw, 34px);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
}
.field { display: flex; flex-direction: column; }
.field-wide { grid-column: 1 / -1; }
.field label {
    font-size: .92rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.field label i { color: var(--acc); font-style: normal; }
.field input,
.field select,
.field textarea {
    background: rgba(255, 255, 255, .02);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    padding: 12px 14px;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { cursor: pointer; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--acc);
    box-shadow: 0 0 0 3px var(--acc-soft);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }
.field input.is-invalid { border-color: var(--err); }
.field-error {
    min-height: 1.3em;
    color: var(--err);
    font-size: .8rem;
    margin-top: 6px;
}
.form-status {
    min-height: 1.4em;
    margin: 4px 0 12px;
    font-size: .92rem;
    color: var(--ok);
}
.form-status.is-error { color: var(--err); }
.form-note {
    margin: 12px 0 0;
    text-align: center;
    color: var(--faint);
    font-size: .85rem;
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--border-soft);
    background: #08090e;
    padding-top: clamp(48px, 6vw, 72px);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 44px;
}
.footer-brand p { color: var(--muted); font-size: .95rem; max-width: 40ch; margin: 16px 0 0; }
.footer-col h3 { font-size: 1rem; font-weight: 700; margin: 0 0 16px; }
.footer-col a {
    display: block;
    color: var(--muted);
    padding: 5px 0;
    transition: color .2s;
}
.footer-col a:hover { color: var(--acc-2); }
.footer-line { margin: 0 0 8px; color: var(--muted); font-size: .95rem; }
.footer-bottom {
    border-top: 1px solid var(--border-soft);
    padding: 18px 0;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--faint);
    font-size: .85rem;
}
.footer-domain { color: var(--muted); letter-spacing: .04em; }

/* ---------- Back to top & toast ---------- */
.back-top {
    position: fixed;
    bottom: 22px;
    inset-inline-end: 22px;
    z-index: 90;
    width: 46px; height: 46px;
    border-radius: 12px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    color: var(--text-2);
    cursor: pointer;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .3s, transform .3s var(--ease), border-color .2s, color .2s;
}
.back-top svg { width: 20px; height: 20px; }
.back-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-top:hover { border-color: var(--acc); color: var(--acc-2); }

.toast {
    position: fixed;
    bottom: 26px;
    left: 50%;
    transform: translate(-50%, 16px);
    z-index: 150;
    background: #101319;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 13px 22px;
    border-radius: 12px;
    font-size: .95rem;
    box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .8);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, transform .3s var(--ease);
    max-width: min(90vw, 480px);
    text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
    .hero-inner { grid-template-columns: 1fr; padding-block: 32px 110px; }
    .hero-device { width: clamp(240px, 46vw, 340px); justify-self: center; }
    .fc-1 { inset-inline-start: -4%; }
    .fc-2 { inset-inline-end: -6%; }
    .fc-3 { inset-inline-start: 0; }

    .about-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-wide { grid-column: span 2; }
    .spec-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }

    .showreel { height: 380vh; }
    .showreel-stage { flex-direction: column; justify-content: center; gap: 12px; }
    .sr-device { width: clamp(200px, 34vw, 280px); margin-bottom: 12vh; }
    .sr-caption { width: min(560px, 92%); min-height: 210px; }
    .sr-hud { inset: calc(var(--header-h) + 2vh) 5vw 3.5vh; }
}

@media (max-width: 940px) {
    :root { --header-h: 64px; }
    .main-nav {
        position: fixed;
        top: var(--header-h);
        inset-inline: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(10, 11, 16, .97);
        border-bottom: 1px solid var(--border);
        padding: 10px 6vw 16px;
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity .3s, transform .3s var(--ease);
    }
    .main-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
    .main-nav a { padding: 13px 8px; border-bottom: 1px solid var(--border-soft); border-radius: 0; }
    .main-nav a::after { display: none; }
    .nav-toggle { display: block; }
    .header-actions .btn { display: none; }

    .hero { min-height: 100svh; }
    .hero-actions .btn, .hero-actions .btn-ghost { flex: 1 1 auto; justify-content: center; }
    .hero-chips { flex-direction: column; gap: 10px; }

    .feature-grid, .app-grid, .spec-grid, .why-grid { grid-template-columns: 1fr; }
    .feature-wide { grid-column: auto; }
    .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom .container { flex-direction: column; gap: 4px; }

    .frame { flex-basis: 82vw; }
    .sr-device { width: clamp(180px, 52vw, 240px); }
    .sr-step h3 { font-size: 1.25rem; }
    .sr-hud { font-size: .68rem; }
    .float-chip { font-size: .72rem; padding: 6px 11px; }
    .fc-2 { inset-inline-end: 0; }
}

/* ---------- Mobile overlay menu ---------- */
@media (max-width: 940px) {
    .main-nav {
        position: fixed;
        inset: 0;
        z-index: 98;
        top: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background: rgba(6, 7, 11, .96);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        padding: 96px 6vw 48px;
        opacity: 0;
        visibility: hidden;
        transform: none;
        transition: opacity .35s var(--ease), visibility .35s;
    }
    .main-nav.is-open { opacity: 1; visibility: visible; }
    .main-nav a {
        font-size: 1.55rem;
        font-weight: 700;
        padding: 12px 26px;
        border: 0;
        border-radius: 12px;
        opacity: 0;
        transform: translateY(20px) scale(.96);
        transition: opacity .4s var(--ease), transform .5s var(--ease), color .2s, background .2s;
    }
    .main-nav.is-open a { opacity: 1; transform: none; }
    .main-nav.is-open a:nth-child(1) { transition-delay: .05s, .05s, 0s, 0s; }
    .main-nav.is-open a:nth-child(2) { transition-delay: .1s, .1s, 0s, 0s; }
    .main-nav.is-open a:nth-child(3) { transition-delay: .15s, .15s, 0s, 0s; }
    .main-nav.is-open a:nth-child(4) { transition-delay: .2s, .2s, 0s, 0s; }
    .main-nav.is-open a:nth-child(5) { transition-delay: .25s, .25s, 0s, 0s; }
    .main-nav.is-open a:nth-child(6) { transition-delay: .3s, .3s, 0s, 0s; }
    .main-nav.is-open a:nth-child(7) { transition-delay: .35s, .35s, 0s, 0s; }
    .main-nav a:hover { background: var(--acc-soft); }
    .nav-toggle { position: relative; z-index: 110; background: rgba(255,255,255,.06); }
    body.nav-locked { overflow: hidden; }
}

/* ---------- Word-mask reveal (data-split) ---------- */
[data-split] { display: block; }
[data-split].is-split span.w {
    display: inline-block;
    white-space: pre;
    opacity: 0;
    transform: translateY(105%) rotate(3deg);
}
[data-split].is-in-split span.w {
    opacity: 1;
    transform: none;
    transition: opacity .5s var(--ease), transform .65s var(--ease);
    transition-delay: var(--wd, 0ms);
}

/* ---------- Tilt + spotlight ---------- */
[data-tilt] { will-change: transform; }
.feature-card::after,
.why-card::after,
.app-card::after,
.frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 138, 30, .13), transparent 62%);
    opacity: 0;
    transition: opacity .35s;
    pointer-events: none;
}
.feature-card:hover::after,
.why-card:hover::after,
.app-card:hover::after,
.frame:hover::after { opacity: 1; }

.btn { position: relative; overflow: hidden; }
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 45%;
    inset-inline-start: -60%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-18deg);
    transition: inset-inline-start .55s var(--ease);
    pointer-events: none;
}
.btn:hover::after { inset-inline-start: 120%; }

.frame-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease);
}
.frame:hover .frame-img img { transform: scale(1.06); }
.frame-img svg, .frame-img img { z-index: 0; }
.frame-cat, .frame-flash { z-index: 1; }
.frame::after { z-index: 2; }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-body { background: #08090d; }
.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(13, 15, 22, .92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.admin-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 62px;
    flex-wrap: wrap;
    padding-block: 8px;
}
.admin-topbar .brand-mark { width: 28px; height: 28px; color: var(--acc); }
.admin-topbar .brand-name { font-size: 1rem; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 2px; }
.admin-nav a {
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--text-2);
    font-size: .92rem;
    font-weight: 500;
}
.admin-nav a:hover { background: var(--panel-2); color: var(--text); }
.btn-sm-ghost {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-2);
    font-size: .9rem;
}
.btn-sm-ghost:hover { border-color: var(--err); color: var(--err); }
.admin-main { padding-block: 32px 80px; }
.admin-main h1 { font-size: 1.6rem; font-weight: 800; margin: 0 0 8px; }
.admin-main h2 { font-size: 1.1rem; font-weight: 700; margin: 0 0 16px; }
.admin-hint { color: var(--muted); font-size: .92rem; margin: 4px 0 24px; }
.admin-toast {
    background: rgba(47, 224, 138, .12);
    border: 1px solid rgba(47, 224, 138, .4);
    color: var(--ok);
    padding: 12px 18px;
    border-radius: 10px;
    margin-bottom: 22px;
    font-weight: 600;
}
.admin-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0 30px; }
.admin-card {
    background: var(--panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-md);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color .25s, transform .25s var(--ease);
}
.admin-card:hover { border-color: rgba(255, 138, 30, .4); transform: translateY(-4px); }
.admin-card-num { font-size: 2rem; font-weight: 900; color: var(--acc-2); }
.admin-panel {
    background: var(--panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: 24px 26px;
    margin-bottom: 22px;
}
.admin-guide { margin: 0; padding-inline-start: 20px; color: var(--text-2); display: grid; gap: 10px; }
.admin-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.admin-item-form { border-bottom: 1px dashed var(--border-soft); padding-bottom: 14px; margin-bottom: 8px; }
.admin-item-grid {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 12px 14px;
    align-items: end;
}
.admin-item-grid .field { margin: 0; }
.admin-sort input { width: 84px; }
.admin-check { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: .92rem; cursor: pointer; padding-bottom: 10px; }
.admin-check input { accent-color: var(--acc); width: 18px; height: 18px; }
.admin-check-lg { margin: 6px 0 18px; font-size: 1rem; }
.admin-inline-del { display: inline-block; }
.btn-danger {
    background: transparent;
    border: 1px solid rgba(255, 97, 97, .45);
    color: var(--err);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: .85rem;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s;
}
.btn-danger:hover { background: rgba(255, 97, 97, .12); }
.admin-actions { display: flex; align-items: center; gap: 10px; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.admin-table th, .admin-table td {
    text-align: start;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border-soft);
    font-size: .93rem;
    vertical-align: middle;
}
.admin-table th { color: var(--muted); font-weight: 600; }
.admin-thumb {
    width: 62px; height: 44px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: inline-block;
    background: repeating-linear-gradient(45deg, #141824, #141824 6px, #10141e 6px, #10141e 12px);
}
.admin-msg { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-add { margin-top: 12px; }
.admin-add summary { cursor: pointer; color: var(--acc-2); font-weight: 600; padding: 8px 0; }
.admin-add form { margin-top: 14px; }
.admin-photo-current { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.admin-photo-current img { width: 150px; border-radius: 10px; border: 1px solid var(--border); }
.admin-form-actions { display: flex; gap: 12px; align-items: center; }
.admin-error { color: var(--err); font-size: .9rem; }
.admin-login-body { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.admin-login-card {
    width: min(420px, 94vw);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 34px 32px;
}
.admin-brand { margin-bottom: 26px; }
.admin-login-card .btn { margin-top: 16px; }

@media (max-width: 860px) {
    .admin-cards { grid-template-columns: 1fr; }
    .admin-grid2 { grid-template-columns: 1fr; }
    .admin-item-grid { grid-template-columns: 1fr auto; }
    .admin-table { display: block; overflow-x: auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
    [data-split].is-split span.w { opacity: 1; transform: none; }
    .btn::after { display: none; }
    .apps-track { animation: none; }
    .cursor, .cursor-ring { display: none !important; }
}
