@property --hue {
    syntax: "<number>";
    inherits: true;
    initial-value: 188;
}

@property --sat {
    syntax: "<percentage>";
    inherits: true;
    initial-value: 38%;
}

@property --lum {
    syntax: "<percentage>";
    inherits: true;
    initial-value: 12%;
}

@property --lumShift {
    syntax: "<percentage>";
    inherits: true;
    initial-value: 0%;
}

:root {
    --fs-meta: clamp(10px, 1.05vw, 11px);
    --fs-readout: clamp(9px, 1vw, 10px);
    --fs-center: clamp(13px, 3vw, 16px);

    --ls-meta: clamp(0.14em, 0.55vw, 0.24em);
    --ls-readout: clamp(0.11em, 0.45vw, 0.17em);
    --ls-center: clamp(0.14em, 0.65vw, 0.26em);

    --bg: #0b1014;
    --bg2: #0e1318;

    --dim: rgba(188, 236, 238, .82);
    --dim2: rgba(182, 230, 232, .64);
    --hud: rgba(188, 236, 238, .88);
    --grid: rgba(170, 215, 224, 0.24);
    --shadow: rgba(0, 0, 0, 0.65);
    --text-soft: rgba(186, 232, 234, .70);
    --text-terminal: rgba(170, 255, 190, 0.45);
    --text-glow: rgba(140, 220, 255, 0.34);
    --grain-opacity: 0.24;
    --scan-opacity: 0.05;
    --wave-blur: 14px;
    --wave-opacity: 0.82;
    --shimmer-hold-pos: 52%;

    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --frameInsetV: 5vh;
    --frameInsetH: 4vw;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);

    --faceSize: 92px;
    --face-top: 45%;
    --center-top: calc(var(--face-top) + var(--faceSize) * 0.5 + 18px);
    --presence-offset: 22px;
    --echo-size: min(96vw, 1400px);
    --term-width: min(52vw, 520px);
    --term-top: calc(var(--center-top) + var(--presence-offset) + 36px);
    --term-height: min(23svh, 178px);
    --term-padding-x: 2px;
    --meta-top-offset: calc(var(--frameInsetV) + 12px + var(--safe-top));
    --meta-bottom-offset: calc(var(--frameInsetV) + 12px + var(--safe-bottom));
    /* размер головы */
    --breathDur: 20s;
    /* скорость "дыхания" */
    --shimmerDur: 7s;
    /* скорость переливания текста */

    --faceColor: rgb(255, 255, 255);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100svh;
    min-height: 100dvh;
    background:
        radial-gradient(900px 520px at 50% 18%,
            rgba(130, 205, 235, 0.055),
            transparent 60%),
        radial-gradient(1200px 700px at 50% 110%,
            rgba(110, 145, 160, 0.05),
            transparent 62%),
        radial-gradient(600px 400px at 80% 50%,
            rgba(100, 255, 200, 0),
            transparent 50%),
        linear-gradient(180deg, var(--bg), var(--bg2));
    font-family: var(--mono);
    overflow: hidden;
}

/* lock English fragments to the original font stack */
[lang="en"] {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.center-status [lang="en"] {
    font-family: "Exo 2", sans-serif;
}

/* grain (поверх фона, но ниже HUD) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
    opacity: var(--grain-opacity);
    pointer-events: none;
    mix-blend-mode: overlay;
    transition: opacity 1.8s ease;
    z-index: 1;
}

/* scan (поверх grain, но ниже HUD) */
body::after {
    content: "";
    position: fixed;
    inset: -20%;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(130, 205, 235, 0.052) 45%,
            transparent 60%);
    opacity: var(--scan-opacity);
    animation: scan 9.5s linear infinite;
    pointer-events: none;
    transform: rotate(-6deg);
    transition: opacity 1.8s ease, background 2.4s ease;
    z-index: 2;
}

@keyframes scan {
    0% {
        transform: translateY(-18%) rotate(-6deg);
    }

    100% {
        transform: translateY(18%) rotate(-6deg);
    }
}

/* HUD container */
.hud {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 3;
    /* выше body::before/after */
}

.bg-waves {
    position: absolute;
    inset: -14%;
    z-index: 0;
    pointer-events: none;

    /* mouse (0..1) */
    --mx: .5;
    --my: .5;

    /* палитра: холодный серо-сине-зелёный */
    --hue: 188;
    /* база: сине-зелёный */
    --sat: 38%;
    /* приглушённо */
    --lum: 12%;
    /* тёмно, но заметно */
    --lumShift: 0%;

    background:
        /* верхний холодный подсвет */
        radial-gradient(980px 700px at calc(22% + (var(--mx) * 14%)) calc(18% + (var(--my) * 10%)),
            hsla(calc(var(--hue) + 8), var(--sat), calc(var(--lum) + 15% + var(--lumShift)), 0.28),
            transparent 74%),
        /* нижний правый “туман” */
        radial-gradient(1100px 820px at calc(78% - (var(--mx) * 12%)) calc(76% - (var(--my) * 10%)),
            hsla(calc(var(--hue) - 5), var(--sat), calc(var(--lum) + 11% + var(--lumShift)), 0.22),
            transparent 78%),
        /* центральная мягкая волна */
        radial-gradient(920px 650px at calc(52% + (var(--mx) * 9%)) calc(50% + (var(--my) * 7%)),
            hsla(calc(var(--hue) + 2),
                calc(var(--sat) - 4%),
                calc(var(--lum) + 8% + var(--lumShift)),
                0.18),
            transparent 82%),
        radial-gradient(1200px 900px at calc(48% - (var(--mx) * 8%)) calc(58% + (var(--my) * 6%)),
            hsla(calc(var(--hue) - 14), 24%, calc(var(--lum) + 4% + var(--lumShift)), 0.12),
            transparent 84%),
        /* базовый глубокий фон */
        linear-gradient(180deg,
            hsl(calc(var(--hue) - 16), 18%, 2%),
            hsl(calc(var(--hue) - 5), 16%, 3%) 52%,
            hsl(calc(var(--hue) + 4), 20%, 2%));

    /* делает волны видимее, но мягкими */
    filter: blur(calc(var(--wave-blur) + 3px)) saturate(1.12) contrast(1.06) brightness(.72);
    opacity: var(--wave-opacity);

    /* медленно и залипательно */
    animation:
        waveShift 110s ease-in-out infinite alternate,
        hueDrift 150s ease-in-out infinite;
}

.bg-waves::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
    opacity: 0.12;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.alien-echo {
    position: absolute;
    inset: -8% -4%;
    z-index: 1;
    pointer-events: none;
    opacity: .5;
    background:
        url("./../img/alien-face.svg") center center / var(--echo-size) auto no-repeat;
    filter: blur(0.3px) brightness(0.55);
    transform: scale(1);
}

/* движение волн (медленнее) */
@keyframes waveShift {
    0% {
        transform: translateX(-1.2%) translateY(-1%) scale(1.015);
    }

    50% {
        transform: translateX(1.4%) translateY(1.1%) scale(1.03);
    }

    100% {
        transform: translateX(-1%) translateY(.8%) scale(1.02);
    }
}

/* дрейф цвета (очень медленный, в холодном диапазоне) */
@keyframes hueDrift {
    0% {
        --hue: 186;
        --lumShift: 0%;
    }

    25% {
        --hue: 187;
        --lumShift: 1%;
    }

    50% {
        --hue: 189;
        --lumShift: 2%;
    }

    75% {
        --hue: 186;
        --lumShift: 0.6%;
    }

    100% {
        --hue: 185;
        --lumShift: 0%;
    }
}

/* все элементы HUD поверх волн */
.frame, .meta, .readout, .center-status, .alien-face, .term {
    position: absolute;
    /* если у тебя так уже есть — оставь */
    z-index: 2;
}


/* meta внутри рамки */
.meta {
    font-size: var(--fs-meta);
    letter-spacing: var(--ls-meta);
    color: rgba(190, 238, 244, 0.32);
    text-transform: uppercase;
    user-select: none;
    text-shadow:
        0 0 6px rgba(4, 10, 12, 0.28),
        0 0 8px rgba(120, 210, 255, 0.04);
    opacity: .7;
    animation: none;
}


.meta.top {
    max-width: min(92vw, 1100px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: absolute;

    /* по вертикали остаёмся внутри верхней рамки */
    top: var(--meta-top-offset);

    /* центр по горизонтали */
    left: 50%;
    transform: translateX(-50%);

    text-align: center;
}

.meta.bottom {
    position: absolute;

    /* по центру горизонтально */
    left: 50%;
    transform: translateX(-50%);

    /* внутри нижней части рамки */
    bottom: var(--meta-bottom-offset);

    font-size: 11px;
    letter-spacing: 0.28em;
    color: rgba(190, 238, 244, 0.30);
    text-transform: uppercase;
    user-select: none;

    /* лёгкая читаемость */
    white-space: nowrap;
}


/* центральный статус */
.center-status {
    position: absolute;
    top: var(--center-top);
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;

    width: min(92vw, 900px);
    text-align: center;

    font-size: var(--fs-center);
    font-weight: 400;
    letter-spacing: var(--ls-center);
    line-height: 1.2;
    text-transform: uppercase;
    font-family: "Exo 2", sans-serif;

    pointer-events: none;
    user-select: none;
    white-space: nowrap;

    /* переливание, которое едет справа налево */
    color: rgba(204, 244, 255, 0.82);
    background-image: linear-gradient(90deg,
            rgba(190, 240, 255, 0.34) 0%,
            rgba(190, 240, 255, 0.34) 34%,

            rgba(120, 255, 120, 0.24) 44%,
            rgba(150, 255, 170, 0.62) 50%,
            rgba(120, 255, 120, 0.24) 56%,

            rgba(190, 240, 255, 0.34) 66%,
            rgba(190, 240, 255, 0.34) 100%);
    background-size: 260% 100%;
    background-position: 100% 50%;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;

    animation: shimmerRL var(--shimmerDur) linear infinite;

    text-shadow: none;

    transition:
        text-shadow .25s ease,
        background-image .25s ease,
        background-position .25s ease,
        letter-spacing .25s ease;
}

.center-presence {
    position: absolute;
    top: calc(var(--center-top) + var(--presence-offset));
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    pointer-events: none;
    user-select: none;

    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(168, 235, 182, 0.64);
}

.presence-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(118, 255, 126, 0.88);
    box-shadow:
        0 0 8px rgba(118, 255, 126, 0.40),
        0 0 18px rgba(118, 255, 126, 0.20);
    animation: presencePulse 2.6s ease-in-out infinite;
}

.presence-label {
    color: inherit;
}

@keyframes presencePulse {
    0% {
        transform: scale(0.88);
        opacity: .62;
        box-shadow:
            0 0 5px rgba(118, 255, 126, 0.18),
            0 0 12px rgba(118, 255, 126, 0.08);
    }

    50% {
        transform: scale(1);
        opacity: 1;
        box-shadow:
            0 0 10px rgba(118, 255, 126, 0.42),
            0 0 24px rgba(118, 255, 126, 0.22);
    }

    100% {
        transform: scale(0.88);
        opacity: .62;
        box-shadow:
            0 0 5px rgba(118, 255, 126, 0.18),
            0 0 12px rgba(118, 255, 126, 0.08);
    }
}

@keyframes shimmerRL {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes alienGlyphOpacity {

    0%,
    34%,
    66%,
    100% {
        opacity: 0.12;
    }

    44%,
    56% {
        opacity: 0.18;
    }

    50% {
        opacity: 0.24;
    }
}

@keyframes alienHeadShimmer {

    0%,
    34%,
    66%,
    100% {
        fill: rgba(190, 240, 255, 0.18);
        filter:
            drop-shadow(0 0 6px rgba(140, 220, 255, 0.10)) drop-shadow(0 0 18px rgba(140, 220, 255, 0.04));
    }

    44%,
    56% {
        fill: rgba(176, 246, 210, 0.22);
        filter:
            drop-shadow(0 0 7px rgba(150, 255, 170, 0.12)) drop-shadow(0 0 20px rgba(150, 255, 170, 0.06));
    }

    50% {
        fill: rgba(150, 255, 170, 0.26);
        filter:
            drop-shadow(0 0 8px rgba(150, 255, 170, 0.16)) drop-shadow(0 0 24px rgba(150, 255, 170, 0.08));
    }
}

@keyframes alienEyesShimmer {

    0%,
    34%,
    66%,
    100% {
        fill: rgba(190, 240, 255, 0.4);
        filter:
            drop-shadow(0 0 7px rgba(140, 220, 255, 0.18)) drop-shadow(0 0 20px rgba(140, 220, 255, 0.1)) drop-shadow(0 0 42px rgba(140, 220, 255, 0.06));
    }

    44%,
    56% {
        fill: rgba(100, 255, 150, 0.8);
        filter:
            drop-shadow(0 0 10px rgba(100, 255, 140, 0.35)) drop-shadow(0 0 28px rgba(100, 255, 140, 0.18));
    }

    50% {
        fill: rgba(80, 255, 130, 1);
        filter:
            drop-shadow(0 0 14px rgba(80, 255, 130, 0.5)) drop-shadow(0 0 36px rgba(80, 255, 130, 0.25)) drop-shadow(0 0 70px rgba(80, 255, 130, 0.12));
    }
}

/* синхронная видимость (и голова, и глаза) */
.alien-svg {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;

    opacity: 0.12;
    animation: alienGlyphOpacity var(--shimmerDur) linear infinite;
    transform-origin: 50% 50%;
}

@keyframes alienFade {
    0% {
        opacity: 0.06;
        transform: scale(0.988);
        filter: none;
    }

    40% {
        opacity: 0.14;
        transform: scale(1);
        filter: none;
    }

    55% {
        opacity: 0.22;
        transform: scale(1.012);
        filter: drop-shadow(0 0 10px rgba(140, 255, 190, 0.14)) drop-shadow(0 0 34px rgba(140, 255, 190, 0.08));
    }

    75% {
        opacity: 0.12;
        transform: scale(1);
        filter: none;
    }

    100% {
        opacity: 0.06;
        transform: scale(0.988);
        filter: none;
    }
}

.alien-face {
    position: absolute;
    top: var(--face-top);
    left: 50%;
    width: var(--faceSize);
    height: var(--faceSize);
    transform: translate(-50%, -50%);
    display: block;

    pointer-events: auto;
    cursor: pointer;
    text-decoration: none;
    animation: beckon 10s ease-in-out infinite;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

@keyframes eyePulse {
    0% {
        filter: drop-shadow(0 0 6px rgba(120, 255, 180, 0.3)) drop-shadow(0 0 20px rgba(120, 255, 180, 0.15));
    }

    50% {
        filter: drop-shadow(0 0 12px rgba(120, 255, 180, 0.6)) drop-shadow(0 0 40px rgba(120, 255, 180, 0.35));
    }

    100% {
        filter: drop-shadow(0 0 6px rgba(120, 255, 180, 0.3)) drop-shadow(0 0 20px rgba(120, 255, 180, 0.15));
    }
}

.alien-face svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: blur(0.2px);
}

/* маленькая зона наведения */
.alien-face .hit {
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(var(--faceSize) * 0.6);
    height: calc(var(--faceSize) * 0.6);
    transform: translate(-50%, -50%);

    /* важно: убрать “квадрат” */
    background: transparent;
    border: 0;
    padding: 0;

    /* чтобы не было системной заливки/обводки */
    appearance: none;
    -webkit-appearance: none;

    /* ловим только тут */
    pointer-events: auto;
    cursor: pointer;
}

/* Голова */
.alien-head {
    fill: rgba(190, 240, 255, 0.18);
    transition:
        fill 0.35s ease,
        filter 0.35s ease,
        transform 0.35s ease;

    filter:
        drop-shadow(0 0 6px rgba(140, 220, 255, 0.10)) drop-shadow(0 0 18px rgba(140, 220, 255, 0.04));

    animation: alienHeadShimmer var(--shimmerDur) linear infinite;
    transform-origin: 50% 50%;
}

@keyframes alienBreath {
    0% {
        transform: scale(0.99);
        filter: drop-shadow(0 0 8px rgba(140, 255, 190, 0.06));
    }

    55% {
        transform: scale(1.015);
        filter: drop-shadow(0 0 10px rgba(150, 255, 170, 0.16)) drop-shadow(0 0 30px rgba(150, 255, 170, 0.1)) drop-shadow(0 0 70px rgba(150, 255, 170, 0.05));
    }

    100% {
        transform: scale(0.99);
        filter: drop-shadow(0 0 8px rgba(140, 255, 190, 0.06));
    }
}

@keyframes neonFlicker {

    0%,
    100% {
        opacity: 1;
    }

    92% {
        opacity: 0.92;
    }

    95% {
        opacity: 1;
    }

    97% {
        opacity: 0.88;
    }

    99% {
        opacity: 1;
    }
}

@keyframes beckon {
    0%, 74%, 100% { filter: drop-shadow(0 0 0px rgba(150, 255, 170, 0)); }
    85% { filter: drop-shadow(0 0 10px rgba(150, 255, 170, 0.16)); }
}

/* hint: pulsing ring around alien face */
@keyframes alienHintRing {
    0%, 100% {
        opacity: 0;
        transform: scale(0.8);
    }
    40%, 60% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes alienHintEyes {
    0%, 100% {
        fill: rgba(190, 240, 255, 0.45);
        filter: drop-shadow(0 0 8px rgba(140, 220, 255, 0.25)) drop-shadow(0 0 22px rgba(140, 220, 255, 0.15));
    }
    50% {
        fill: rgba(100, 255, 160, 1);
        filter: drop-shadow(0 0 16px rgba(100, 255, 160, 0.7)) drop-shadow(0 0 44px rgba(100, 255, 160, 0.35));
    }
}

.alien-face.is-hinting::after {
    opacity: 1;
    animation: alienHintRing 2.5s ease-in-out infinite;
    background: radial-gradient(circle,
        transparent 30%,
        rgba(100, 255, 160, 0.15) 45%,
        rgba(100, 255, 160, 0.30) 55%,
        rgba(100, 255, 160, 0.15) 65%,
        transparent 80%);
    filter: none;
}

.alien-face.is-hinting .alien-eyes {
    animation: alienHintEyes 2s ease-in-out infinite !important;
}

.alien-face.is-hinting svg {
    animation: alienHintPulse 2s ease-in-out infinite;
}

@keyframes alienHintPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
    50% { transform: scale(1.04); filter: drop-shadow(0 0 18px rgba(100, 255, 160, 0.25)); }
}

.alien-face .alien-head {
    animation: alienHeadShimmer var(--shimmerDur) linear infinite;
}

/* Глаза (базовые) */
.alien-eyes {
    fill: rgba(190, 240, 255, 0.4);
    filter:
        drop-shadow(0 0 7px rgba(140, 220, 255, 0.18)) drop-shadow(0 0 20px rgba(140, 220, 255, 0.1)) drop-shadow(0 0 42px rgba(140, 220, 255, 0.06));

    transition:
        fill 0.3s ease,
        filter 0.3s ease,
        transform 0.3s ease;
    transform-origin: 50% 50%;
    transform-box: fill-box;
    animation: alienEyesShimmer var(--shimmerDur) linear infinite;
}

.alien-face .hit:hover~svg {
    animation: none;
    animation-play-state: paused;
    opacity: 0.32;
    transform: none;
}

.alien-face:hover svg .alien-head,
.alien-face:focus-within svg .alien-head,
.alien-face .hit:hover~svg .alien-head {
    animation: none;
    fill: rgba(190, 240, 255, 0.34);
    transform: scale(1.02);
    filter:
        drop-shadow(0 0 8px rgba(140, 220, 255, 0.18)) drop-shadow(0 0 22px rgba(140, 220, 255, 0.1));
}

.alien-face:hover svg .alien-eyes,
.alien-face:focus-within svg .alien-eyes,
.alien-face .hit:hover~svg .alien-eyes {
    animation: none;
    fill: rgba(80, 255, 130, 1);
    transform: none;
    filter:
        drop-shadow(0 0 10px rgba(80, 255, 130, 0.4)) drop-shadow(0 0 28px rgba(80, 255, 130, 0.2));
}

/* психоделика ярче при наведении */
.alien-face:hover .alien-psyche,
.alien-face:focus-within .alien-psyche {
    opacity: 0.75;
    filter: blur(1px) saturate(1.6) brightness(1.1);
    animation-duration: 8s;
}

/* при наведении на лицо — текст загорается */
.alien-face:hover~.center-status,
.alien-face:focus-within~.center-status,
.alien-face:active~.center-status {
    text-shadow: none;

    background-image: linear-gradient(90deg,
            rgba(190, 240, 255, .30) 0%,
            rgba(190, 240, 255, .30) 34%,

            rgba(120, 255, 120, .28) 44%,
            rgba(150, 255, 170, .60) 50%,
            rgba(120, 255, 120, .28) 56%,

            rgba(190, 240, 255, .30) 66%,
            rgba(190, 240, 255, .30) 100%);
    background-position: var(--shimmer-hold-pos) 50%;
    letter-spacing: var(--ls-center);
    animation: none;
}

.alien-face:active {
    transform: translate(-50%, -50%) scale(0.985);
}

.alien-face:active .alien-head {
    filter: drop-shadow(0 0 6px rgba(150, 255, 170, 0.14)) drop-shadow(0 0 18px rgba(150, 255, 170, 0.08));
    fill: rgba(170, 255, 205, 0.18);
}

/* мягкий “ореол” вокруг всей головы при нажатии */
.alien-face::after {
    content: “”;
    position: absolute;
    inset: -18%;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    background: radial-gradient(circle,
            rgba(150, 255, 170, 0.10) 0%,
            rgba(150, 255, 170, 0.04) 35%,
            transparent 65%);
    filter: blur(6px);
    transition: opacity 0.12s ease;
}

.alien-face:active::after {
    opacity: 1;
}

/* psychedelic fill inside alien head */
.alien-psyche {
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        radial-gradient(circle at 30% 20%, hsla(295, 90%, 58%, 0.9), transparent 45%),
        radial-gradient(circle at 75% 55%, hsla(175, 95%, 50%, 0.9), transparent 40%),
        radial-gradient(circle at 40% 80%, hsla(320, 92%, 55%, 0.85), transparent 44%),
        radial-gradient(circle at 68% 15%, hsla(135, 88%, 50%, 0.85), transparent 38%),
        radial-gradient(circle at 50% 50%, hsla(260, 85%, 48%, 0.7), transparent 55%);
    background-size: 240% 240%;

    -webkit-mask-image: url('./../img/alien-face.svg');
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-image: url('./../img/alien-face.svg');
    mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-mode: alpha;

    opacity: 0.35;
    filter: blur(1.5px) saturate(0.9) brightness(0.75);
    mix-blend-mode: screen;
    animation: psycheShift 14s ease-in-out infinite;
    transition: opacity 0.4s ease, filter 0.4s ease;
}

@keyframes psycheShift {
    0% {
        background-position: 0% 0%;
        filter: hue-rotate(0deg) blur(1.5px) saturate(0.9) brightness(0.75);
    }

    25% {
        background-position: 80% 20%;
        filter: hue-rotate(60deg) blur(2px) saturate(1.0) brightness(0.78);
    }

    50% {
        background-position: 40% 90%;
        filter: hue-rotate(140deg) blur(1.5px) saturate(0.85) brightness(0.72);
    }

    75% {
        background-position: 90% 60%;
        filter: hue-rotate(220deg) blur(2px) saturate(1.0) brightness(0.78);
    }

    100% {
        background-position: 0% 0%;
        filter: hue-rotate(360deg) blur(1.5px) saturate(0.9) brightness(0.75);
    }
}

.term {
    position: absolute;
    top: var(--term-top);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;

    /* узкая центрированная колонка под логотипом */
    left: 50%;
    right: auto;
    margin: 0;
    transform: translateX(-50%);

    /* ширина терминала */
    width: var(--term-width);
    max-width: 100%;
    height: var(--term-height);

    padding: 0 var(--term-padding-x);
    border-radius: 0;

    border: none;
    background: transparent;
    box-shadow: none;

    opacity: 0.9;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    pointer-events: none;
    user-select: none;
    z-index: 3;
    overflow: visible;

    animation: none;
}

@keyframes termBreath {
    0% {
        opacity: 0.58;
        transform: translateY(2px);
    }

    55% {
        opacity: 0.72;
        transform: translateY(0);
    }

    100% {
        opacity: 0.58;
        transform: translateY(2px);
    }
}

/* тонкая сетка внутри терминала */
.term::before {
    content: none;
}

/* мягкий скан внутри терминала */
.term::after {
    content: none;
}

.term-head {
    display: flex;
    gap: 6px;
    align-items: center;
    min-width: 0;

    font-size: var(--fs-meta, 11px);
    letter-spacing: 0.16em;
    color: rgba(186, 232, 234, 0.66);
    padding-bottom: 6px;
    border-bottom: none;

    position: relative;
    z-index: 1;
}

.term-head .tag {
    color: rgba(205, 246, 255, 0.72);
}

.term-head .mode {
    color: rgba(186, 232, 234, 0.48);
}

.term-head .tag,
.term-head .mode {
    flex: 0 1 auto;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.term-head .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(120, 255, 120, 0.45);
    box-shadow:
        0 0 10px rgba(120, 255, 120, 0.18),
        0 0 26px rgba(120, 255, 120, 0.1);
    opacity: 0.64;
}

.term-head .spacer {
    flex: 1;
}

.caret {
    opacity: 0.55;
    animation: caretBlink 2.2s steps(1, end) infinite;
}

@keyframes caretBlink {
    50% {
        opacity: 0.15;
    }
}

.term-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 8px;

    font-family: var(--mono);
    font-size: var(--fs-readout, 10px);
    letter-spacing: var(--ls-readout, 0.17em);
    line-height: 1.55;

    /* приглушённый “terminal green”, чтобы было как в рефе, но мягко */
    color: rgba(176, 255, 198, 0.56);

    white-space: nowrap;
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* строка лога */
.term-line {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
    /* меньше промежутки в строке */
    opacity: 0.92;
    /* строки сразу видимы */
    transform: none;
    min-width: 0;
}

/* мягкое затухание старых строк будет задаваться inline из js (opacity) */

.term-ts {
    min-width: 92px;
    color: rgba(186, 232, 234, 0.44);
}

.term-lvl {
    min-width: 32px;
    color: rgba(170, 255, 190, 0.52);
}

.term-msg {
    color: rgba(170, 255, 190, 0.5);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* уровни — очень мягко */
.term-line[data-lvl="sec"] .term-lvl {
    color: rgba(190, 236, 238, 0.54);
}

.term-line[data-lvl="warn"] .term-lvl {
    color: rgba(205, 246, 255, 0.48);
}

.term-line[data-lvl="err"] .term-lvl {
    color: rgba(255, 176, 176, 0.44);
}

/* секьюрные строки чуть более холодные, чтобы читалось “как система” */
.term-line[data-lvl="sec"] .term-msg {
    color: rgba(190, 236, 238, 0.5);
}

/* базовая защита для flex, чтобы текст мог сжиматься */
.term-line,
.term-msg {
    min-width: 0;
}

.center-status,
.term,
.term-body,
.term-head .tag,
.term-head .dot {
    transition: opacity 0.25s ease, filter 0.25s ease, text-shadow 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

@media (max-width: 520px) {
    :root {
        --faceSize: 84px;
        --face-top: 43%;
        --presence-offset: 15px;
        --echo-size: min(156vw, 760px);
        --term-width: min(calc(100vw - 24px - var(--safe-left) - var(--safe-right)), 420px);
        --term-top: calc(var(--center-top) + 38px);
        --term-height: clamp(116px, 24svh, 160px);
        --term-padding-x: 8px;
        --meta-top-offset: 12px;
        --meta-bottom-offset: calc(28px + var(--safe-bottom));
    }

    .meta.bottom {
        bottom: var(--meta-bottom-offset);
    }

    .lang-toggle {
        bottom: calc(var(--safe-bottom) + 10px);
    }

    .bg-waves {
        inset: -20%;
        filter: blur(calc(var(--wave-blur) + 1px)) saturate(1.22) contrast(1.18) brightness(.7);
        opacity: 0.9;
        animation:
            waveShift 58s ease-in-out infinite alternate,
            hueDrift 96s ease-in-out infinite;
    }

    .term {
        opacity: 0.66;
    }

    .center-status {
        opacity: 0.92;
        text-shadow: none;
        width: min(calc(100vw - 28px), 520px);
        font-size: 14px;
        letter-spacing: 0.20em;
    }

    .center-presence {
        font-size: 8px;
        letter-spacing: 0.16em;
        gap: 6px;
    }

    .meta.top,
    .meta.bottom {
        max-width: calc(100vw - 24px - var(--safe-left) - var(--safe-right));
    }

    .meta.top {
        font-size: 10px;
        letter-spacing: 0.16em;
        opacity: 0.45;
    }

    .meta.bottom {
        font-size: 10px;
        letter-spacing: 0.18em;
        opacity: 0.38;
    }

    .presence-dot {
        width: 5px;
        height: 5px;
    }

    .term-head {
        gap: 6px;
        padding-bottom: 5px;
        font-size: 10px;
        letter-spacing: 0.12em;
    }

    .term-head .spacer {
        display: none;
    }

    .term-body {
        white-space: nowrap;
        font-size: 9px;
        letter-spacing: 0.07em;
        line-height: 1.42;
        color: rgba(170, 255, 190, 0.46);
    }

    .term-line {
        flex-wrap: nowrap;
        gap: 5px;
    }

    .term-ts {
        min-width: 66px;
        flex: 0 0 auto;
        font-variant-numeric: tabular-nums;
    }

    .term-lvl {
        min-width: 22px;
        flex: 0 0 auto;
    }

    .term-msg {
        flex: 1 1 auto;
        white-space: nowrap;
        word-break: normal;
        letter-spacing: 0.06em;
    }

    .alien-face:hover~.center-status,
    .alien-face:focus-within~.center-status,
    .alien-face:active~.center-status {
        text-shadow: none;
        filter: brightness(1.08);
    }

    .alien-face:hover~.term,
    .alien-face:focus-within~.term,
    .alien-face:active~.term {
        opacity: 0.82;
        border-color: rgba(170, 255, 190, 0.24);
        box-shadow:
            0 18px 60px rgba(0, 0, 0, 0.24) inset,
            0 0 0 1px rgba(140, 180, 190, 0.08) inset,
            0 0 22px rgba(150, 255, 170, 0.1),
            0 0 70px rgba(140, 220, 255, 0.08);
    }

    .alien-face:hover~.term .term-body,
    .alien-face:focus-within~.term .term-body,
    .alien-face:active~.term .term-body {
        color: rgba(170, 255, 190, 0.56);
    }

    .alien-face:hover~.term .term-head .tag,
    .alien-face:focus-within~.term .term-head .tag,
    .alien-face:active~.term .term-head .tag {
        color: rgba(190, 245, 255, 0.74);
    }

    .alien-face:hover~.term .term-head .dot,
    .alien-face:focus-within~.term .term-head .dot,
    .alien-face:active~.term .term-head .dot {
        opacity: 0.9;
        box-shadow:
            0 0 12px rgba(120, 255, 120, 0.32),
            0 0 34px rgba(120, 255, 120, 0.2);
    }

}

@media (hover: none) and (max-width: 520px) {
    .alien-face .hit:active~svg {
        opacity: 0.38;
    }

    .alien-face .hit:active~svg .alien-head {
        fill: rgba(190, 240, 255, 0.34);
        transform: scale(1.02);
        filter:
            drop-shadow(0 0 8px rgba(140, 220, 255, 0.18)) drop-shadow(0 0 22px rgba(140, 220, 255, 0.1));
    }

    .alien-face .hit:active~svg .alien-eyes {
        fill: rgba(80, 255, 130, 1);
        transform: none;
        filter:
            drop-shadow(0 0 10px rgba(80, 255, 130, 0.4)) drop-shadow(0 0 28px rgba(80, 255, 130, 0.2));
    }
}

@media (max-width: 360px) {
    :root {
        --faceSize: 78px;
        --face-top: 41.5%;
        --echo-size: min(170vw, 760px);
        --term-width: min(calc(100vw - 20px - var(--safe-left) - var(--safe-right)), 380px);
        --term-height: clamp(112px, 25svh, 148px);
    }

    .center-status {
        font-size: 13px;
        letter-spacing: 0.18em;
    }

    .center-presence {
        font-size: 7px;
        gap: 6px;
    }

    .term-head {
        gap: 5px;
        font-size: 9px;
        letter-spacing: 0.10em;
    }

    .term-body {
        font-size: 8px;
        letter-spacing: 0.05em;
    }

    .term-ts {
        min-width: 62px;
    }
}

@media (max-width: 520px) and (max-height: 700px) {
    :root {
        --faceSize: 76px;
        --face-top: 39%;
        --presence-offset: 16px;
        --echo-size: min(164vw, 760px);
        --term-top: calc(var(--center-top) + 30px);
        --term-height: clamp(104px, 27svh, 134px);
    }

    .meta.bottom {
        display: none;
    }

    .lang-toggle {
        bottom: calc(var(--safe-bottom) + 8px);
    }

    .meta.top {
        opacity: 0.38;
    }

    .center-status {
        font-size: 13px;
    }
}

@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    :root {
        --faceSize: 64px;
        --face-top: 24%;
        --center-top: 39%;
        --presence-offset: 16px;
        --echo-size: min(118vw, 980px);
        --term-width: min(78vw, 520px);
        --term-top: calc(var(--center-top) + 30px);
        --term-height: clamp(84px, 30svh, 114px);
        --meta-top-offset: 10px;
    }

    .meta.top,
    .meta.bottom,
    .lang-toggle {
        display: none;
    }

    .center-status {
        font-size: 13px;
        letter-spacing: 0.18em;
    }

    .center-presence {
        font-size: 7px;
        letter-spacing: 0.16em;
    }

    .term {
        opacity: 0.74;
    }

    .term-head {
        font-size: 9px;
        padding-bottom: 4px;
    }

    .term-body {
        font-size: 8px;
        line-height: 1.3;
    }
}

@media (max-width: 520px) and (display-mode: standalone), (max-width: 520px) and (display-mode: fullscreen) {
    :root {
        --meta-top-offset: calc(12px + var(--safe-top));
    }
}

@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) and (display-mode: standalone),
(max-width: 900px) and (max-height: 500px) and (orientation: landscape) and (display-mode: fullscreen) {
    :root {
        --meta-top-offset: calc(10px + var(--safe-top));
    }
}

.alien-face .hit:focus {
    outline: none;
}

.alien-face .hit:focus-visible {
    outline: 1px solid rgba(150, 255, 170, .25);
    outline-offset: 6px;
    border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {

    body::after,
    .bg-waves,
    .term::after,
    .caret,
    .term,
    .center-status,
    .alien-svg,
    .alien-head,
    .alien-eyes,
    .alien-face,
    .alien-psyche {
        animation: none !important;
    }
}

/* ========================= */
/* OS WINDOW (alienbot panel) */
/* ========================= */

/* overlay behind window */
.os-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;

    /* мягкое затемнение + холодный оттенок */
    background:
        radial-gradient(900px 520px at 50% 42%, rgba(0, 0, 0, .46), rgba(0, 0, 0, .28) 55%, rgba(0, 0, 0, .18) 100%),
        radial-gradient(700px 420px at 50% 55%, rgba(20, 110, 110, .10), transparent 68%);

    opacity: 0;
    transition: opacity .18s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* base window */
.os-window {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(.985);
    transform-origin: 50% 50%;

    z-index: 201;
    opacity: 0;
    pointer-events: none;

    display: flex;
    flex-direction: column;

    width: min(92vw, 620px);
    height: min(68vh, 520px);
    max-width: calc(100% - (var(--frameInsetH) * 2) - 24px);

    border-radius: 14px;
    overflow: hidden;

    /* стекло/металл: тёмный, но читаемый */
    background:
        linear-gradient(180deg, rgba(6, 10, 12, .80), rgba(6, 10, 12, .54));

    border: 1px solid rgba(140, 180, 190, .14);

    box-shadow:
        0 28px 120px rgba(0, 0, 0, .62),
        0 0 0 1px rgba(140, 180, 190, .06) inset,
        0 0 36px rgba(140, 220, 255, .07);

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* subtle brushed texture + vignette inside window */
.os-window::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        /* легкая виньетка */
        radial-gradient(900px 520px at 50% 40%, rgba(255, 255, 255, .04), rgba(0, 0, 0, .26) 62%, rgba(0, 0, 0, .38) 100%),
        /* «шлифовка» */
        repeating-linear-gradient(0deg,
            rgba(255, 255, 255, .010) 0px,
            rgba(255, 255, 255, .010) 1px,
            rgba(0, 0, 0, .020) 2px,
            rgba(0, 0, 0, .020) 4px);
    mix-blend-mode: overlay;
    opacity: .55;
}

/* drag state */
.os-window {
    --drag-x: 0px;
    --drag-y: 0px;
}

.os-window.is-dragged {
    transform: translate(calc(-50% + var(--drag-x)), calc(-50% + var(--drag-y))) scale(1);
}

.os-window.is-dragging {
    transition: none !important;
    user-select: none;
}

/* no cursor change on titlebar — drag is invisible */

/* open state: лучше включать классом на body */
body.os-open .os-overlay {
    opacity: 1;
    pointer-events: auto;
}

body.os-open .os-window {
    opacity: 1;
    pointer-events: auto;
    transform: translate(calc(-50% + var(--drag-x)), calc(-50% + var(--drag-y))) scale(1);
    transition: opacity .18s ease, transform .18s ease;
}

body.os-open .os-window.is-dragging {
    transition: none !important;
}

/* titlebar */
.os-titlebar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;

    padding: 8px 12px;
    border-bottom: 1px solid rgba(140, 180, 190, .12);

    background:
        linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0));

    z-index: 1;
}

.os-title {
    min-width: 0;
    font-family: var(--mono);
    text-transform: uppercase;

    color: rgba(190, 245, 255, .52);
    font-size: 10px;
    letter-spacing: .20em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.os-close {
    margin-left: auto;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;

    border: 1px solid rgba(140, 180, 190, .10);
    background: rgba(0, 0, 0, .14);

    color: rgba(190, 245, 255, .56);
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1;

    transition: box-shadow .2s ease, border-color .2s ease, transform .12s ease, color .2s ease;
}

.os-close:hover {
    border-color: rgba(150, 255, 170, .18);
    box-shadow:
        0 0 18px rgba(150, 255, 170, .10),
        0 0 60px rgba(140, 220, 255, .07);
}

.os-close:active {
    transform: translateY(1px);
}

/* body scroll area */
.os-body {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;

    padding: 14px 14px 12px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.os-body::-webkit-scrollbar {
    width: 4px;
}

.os-body::-webkit-scrollbar-track {
    background: transparent;
}

.os-body::-webkit-scrollbar-thumb {
    background: rgba(140, 180, 190, .16);
    border-radius: 2px;
}

.os-body::-webkit-scrollbar-thumb:hover {
    background: rgba(140, 180, 190, .28);
}

.os-muted {
    margin: 0 0 12px 0;
    font-family: var(--mono);
    text-transform: uppercase;

    color: rgba(170, 220, 220, .32);
    font-size: 10px;
    letter-spacing: .18em;
}

/* feature grid */
.os-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1fr 1fr;
    flex: 1;
    gap: 10px;
}

.os-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    text-decoration: none;

    border: 1px solid rgba(140, 180, 190, .10);
    border-radius: 12px;
    padding: 14px 12px 12px;

    background: rgba(0, 0, 0, .16);
    box-shadow:
        0 0 0 1px rgba(140, 180, 190, .04) inset;

    transition: box-shadow .25s ease, border-color .25s ease, transform .2s ease, background .25s ease;
    cursor: pointer;
}

.os-card:hover {
    border-color: rgba(150, 255, 170, .20);
    background: rgba(0, 0, 0, .24);
    box-shadow:
        0 0 0 1px rgba(140, 180, 190, .06) inset,
        0 0 22px rgba(150, 255, 170, .10),
        0 0 70px rgba(140, 220, 255, .06);
    transform: translateY(-1px);
}

.os-card:active {
    transform: translateY(0);
}

.os-card-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(140, 180, 190, .10);
    background: rgba(140, 220, 255, .04);
    color: rgba(150, 255, 190, .50);
    transition: color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.os-card:hover .os-card-icon {
    color: rgba(150, 255, 190, .72);
    border-color: rgba(150, 255, 170, .16);
    box-shadow: 0 0 12px rgba(150, 255, 170, .08);
}

.os-card-text {
    min-width: 0;
}

.os-k {
    font-family: var(--mono);
    text-transform: uppercase;
    color: rgba(190, 245, 255, .60);

    font-size: 10px;
    letter-spacing: .20em;
    margin-bottom: 4px;
    transition: color .25s ease;
}

.os-card:hover .os-k {
    color: rgba(190, 245, 255, .78);
}

.os-v {
    font-family: var(--mono);
    color: rgba(170, 255, 190, .30);

    font-size: 9px;
    letter-spacing: .10em;
    line-height: 1.45;
    transition: color .25s ease;
}

.os-card:hover .os-v {
    color: rgba(170, 255, 190, .48);
}

.os-desc {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .06em;
    line-height: 1.5;
    text-transform: none;
    color: rgba(170, 220, 220, .24);
    margin-top: 4px;
    transition: color 0.3s ease;
}

.os-card:hover .os-desc {
    color: rgba(170, 220, 220, .42);
}

/* footer */
.os-footer {
    position: relative;
    z-index: 1;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 10px 14px;
    border-top: 1px solid rgba(140, 180, 190, .12);

    background: rgba(0, 0, 0, .10);
}

.os-footnote {
    min-width: 0;
    font-family: var(--mono);
    text-transform: uppercase;

    color: rgba(170, 220, 220, .28);
    font-size: 10px;
    letter-spacing: .16em;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.os-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 14px;
    border-radius: 12px;

    font-family: var(--mono);
    text-transform: uppercase;
    text-decoration: none;

    font-size: 11px;
    letter-spacing: .22em;

    color: rgba(190, 245, 255, .74);
    border: 1px solid rgba(150, 255, 170, .18);
    background: linear-gradient(180deg, rgba(150, 255, 170, .10), rgba(0, 0, 0, .14));

    box-shadow:
        0 0 18px rgba(150, 255, 170, .10),
        0 0 0 1px rgba(140, 180, 190, .05) inset;

    transition: box-shadow .2s ease, transform .12s ease, border-color .2s ease;
}

.os-cta:hover {
    border-color: rgba(150, 255, 170, .24);
    box-shadow:
        0 0 26px rgba(150, 255, 170, .16),
        0 0 80px rgba(140, 220, 255, .08),
        0 0 0 1px rgba(140, 180, 190, .06) inset;
}

.os-cta:active {
    transform: translateY(1px);
}

/* responsive + safe-area */

/* tablets & small desktops */
@media (max-width: 680px) {
    .os-card {
        padding: 10px;
        gap: 8px;
    }

    .os-card-icon {
        width: 28px;
        height: 28px;
        border-radius: 7px;
    }

    .os-card-icon svg {
        width: 16px;
        height: 16px;
    }

    .os-k {
        font-size: 9px;
        letter-spacing: .16em;
    }

    .os-v {
        font-size: 8px;
    }
}

/* phones */
@media (max-width: 520px) {
    .os-window {
        width: min(calc(100vw - 24px - var(--safe-left) - var(--safe-right)), 520px);
        max-width: calc(100% - (var(--frameInsetH) * 2) - 18px - var(--safe-left) - var(--safe-right));
        border-radius: 12px;
        height: min(76svh, 620px);
    }

    .os-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .os-card {
        padding: 12px;
        gap: 10px;
    }

    .os-card-icon {
        width: 32px;
        height: 32px;
    }

    .os-card-icon svg {
        width: 18px;
        height: 18px;
    }

    .os-title {
        letter-spacing: .16em;
    }

    .os-muted {
        letter-spacing: .14em;
    }

    .os-k {
        font-size: 10px;
        letter-spacing: .18em;
    }

    .os-v {
        font-size: 9px;
    }

    .os-cta {
        letter-spacing: .18em;
    }

    .os-footer {
        flex-wrap: wrap;
        align-items: flex-start;
        padding-bottom: calc(12px + var(--safe-bottom));
    }

    .os-footnote {
        width: 100%;
        white-space: normal;
        line-height: 1.45;
    }

    .os-cta {
        width: 100%;
    }
}

/* very small phones */
@media (max-width: 360px) {
    .os-window {
        width: calc(100vw - 16px - var(--safe-left) - var(--safe-right));
        max-width: calc(100vw - 16px);
        border-radius: 10px;
        height: min(80svh, 580px);
    }

    .os-body {
        padding: 10px 10px 8px;
    }

    .os-titlebar {
        padding: 10px 10px;
        gap: 8px;
    }

    .os-title {
        font-size: 9px;
        letter-spacing: .10em;
    }

    .os-close {
        width: 22px;
        height: 22px;
        border-radius: 5px;
        font-size: 12px;
    }

    .os-grid {
        gap: 6px;
    }

    .os-card {
        padding: 10px;
        gap: 8px;
        border-radius: 10px;
    }

    .os-card-icon {
        width: 28px;
        height: 28px;
        border-radius: 6px;
    }

    .os-card-icon svg {
        width: 16px;
        height: 16px;
    }

    .os-k {
        font-size: 9px;
        letter-spacing: .14em;
    }

    .os-v {
        font-size: 8px;
        letter-spacing: .08em;
    }

    .os-desc {
        font-size: 8px;
    }

    .os-muted {
        font-size: 9px;
        letter-spacing: .10em;
    }

    .os-footer {
        padding: 10px;
    }

    .os-footnote {
        font-size: 9px;
        letter-spacing: .12em;
    }

    .os-cta {
        padding: 10px 12px;
        font-size: 10px;
        letter-spacing: .16em;
        border-radius: 10px;
    }
}

/* landscape phones */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    .os-window {
        width: min(calc(100vw - 32px - var(--safe-left) - var(--safe-right)), 620px);
        height: min(82svh, 420px);
    }

    .os-body {
        padding: 10px 12px 8px;
    }

    .os-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: 1fr 1fr;
        gap: 8px;
    }

    .os-card {
        padding: 8px 10px;
        gap: 8px;
    }

    .os-card-icon {
        width: 26px;
        height: 26px;
        border-radius: 6px;
    }

    .os-card-icon svg {
        width: 14px;
        height: 14px;
    }

    .os-k {
        font-size: 9px;
        margin-bottom: 2px;
    }

    .os-v {
        font-size: 8px;
    }

    .os-desc {
        font-size: 8px;
    }

    .os-titlebar {
        padding: 8px 12px;
    }

    .os-footer {
        padding: 8px 12px;
    }

    .os-cta {
        padding: 8px 12px;
        font-size: 10px;
    }

    .os-muted {
        margin-bottom: 8px;
    }
}

/* tall narrow phones (ensure scrollability) */
@media (max-width: 520px) and (max-height: 600px) {
    .os-window {
        height: min(80svh, 520px);
    }
}

/* psyche-mode transitions for modal */
.os-overlay {
    transition: opacity .18s ease, background 1s ease;
}

.os-window {
    transition: opacity .18s ease, transform .18s ease, background 1s ease, border-color 1s ease, box-shadow 1s ease;
}

.os-titlebar {
    transition: border-color 1s ease, background 1s ease;
}

.os-title {
    transition: color 1s ease;
}


.os-close {
    transition: box-shadow .2s ease, border-color .2s ease, transform .12s ease, color 1s ease;
}

.os-muted {
    transition: color 1s ease;
}

.os-footer {
    transition: border-color 1s ease, background 1s ease;
}

.os-footnote {
    transition: color 1s ease;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
    .os-overlay, .os-window, .os-card, .os-close, .os-cta,
    .os-titlebar, .os-title, .os-muted, .os-footer,
    .os-footnote, .os-card-icon, .os-k, .os-v, .os-desc {
        transition: none !important;
    }
}

/* ========================= */
/* PSYCHE MODE TOGGLE        */
/* ========================= */

/* ========================= */
/* THEME TOGGLE (2-position) */
/* stealth (left) / psyche (right) */
/* ========================= */

.theme-toggle {
    position: fixed;
    top: var(--meta-top-offset);
    right: calc(var(--frameInsetH) + var(--safe-right));
    z-index: 10;
    pointer-events: auto;

    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    outline: none;
}

.theme-toggle::before {
    content: "";
    position: absolute;
    inset: -8px;
}

.theme-toggle:focus-visible {
    outline: 1px solid rgba(150, 255, 170, .25);
    outline-offset: 4px;
    border-radius: 20px;
}

.theme-toggle__track {
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 14px;
    padding: 0 6px;

    background: rgba(10, 18, 22, 0.7);
    border: 1px solid rgba(170, 215, 224, 0.18);
    box-shadow:
        0 0 8px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(140, 220, 255, 0.04) inset;

    transition:
        background 0.5s ease,
        border-color 0.5s ease,
        box-shadow 0.5s ease;
}

/* thumb: 2 positions via --thumb-x */
.theme-toggle__thumb {
    position: absolute;
    top: 50%;
    left: var(--thumb-x, 3px);
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;

    background: rgba(188, 236, 238, 0.55);
    box-shadow: 0 0 6px rgba(140, 220, 255, 0.18);

    transition:
        left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.5s ease,
        box-shadow 0.5s ease;
}

.theme-toggle__icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    display: block;
    color: rgba(188, 236, 238, 0.35);
    transition: opacity 0.35s ease, color 0.5s ease;
    pointer-events: none;
}

.theme-toggle__icon--stealth {
    left: 7px;
    opacity: 0.7;
}

.theme-toggle__icon--psyche {
    right: 7px;
    opacity: 0.25;
}

/* hover (stealth) */
.theme-toggle:hover .theme-toggle__track {
    border-color: rgba(170, 215, 224, 0.3);
    box-shadow:
        0 0 12px rgba(0, 0, 0, 0.3),
        0 0 8px rgba(140, 220, 255, 0.08);
}

.theme-toggle:hover .theme-toggle__thumb {
    background: rgba(188, 236, 238, 0.72);
    box-shadow: 0 0 10px rgba(140, 220, 255, 0.28);
}

/* ---- psyche-mode toggle state ---- */

body.psyche-mode .theme-toggle__track {
    background: rgba(20, 10, 30, 0.7);
    border-color: rgba(200, 120, 255, 0.28);
    box-shadow:
        0 0 12px rgba(200, 120, 255, 0.12),
        0 0 0 1px rgba(200, 120, 255, 0.06) inset;
}

body.psyche-mode .theme-toggle__thumb {
    --thumb-x: calc(100% - 3px - 20px);
    background: rgba(200, 140, 255, 0.75);
    box-shadow:
        0 0 10px rgba(200, 120, 255, 0.45),
        0 0 20px rgba(200, 120, 255, 0.18);
}

body.psyche-mode .theme-toggle__icon--stealth { opacity: 0.2; }
body.psyche-mode .theme-toggle__icon--psyche { opacity: 0.85; color: rgba(200, 140, 255, 0.65); }

body.psyche-mode .theme-toggle:hover .theme-toggle__track {
    border-color: rgba(200, 120, 255, 0.42);
    box-shadow:
        0 0 18px rgba(200, 120, 255, 0.22),
        0 0 8px rgba(255, 100, 200, 0.08);
}

body.psyche-mode .theme-toggle:hover .theme-toggle__thumb {
    background: rgba(220, 160, 255, 0.85);
    box-shadow:
        0 0 14px rgba(200, 120, 255, 0.55),
        0 0 28px rgba(200, 120, 255, 0.22);
}

body.psyche-mode .theme-toggle:focus-visible {
    outline-color: rgba(200, 140, 255, .35);
}

/* ========================= */
/* LANGUAGE TOGGLE            */
/* ========================= */

.lang-toggle {
    position: fixed;
    bottom: calc(var(--meta-bottom-offset) - 24px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;

    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: 0;
    padding: 4px 8px;
    margin: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;

    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(190, 238, 244, .25);
    transition: color 0.3s ease;
}

.lang-toggle:hover {
    color: rgba(190, 238, 244, .40);
}

.lang-toggle__sep {
    color: rgba(190, 238, 244, .12);
    margin: 0 2px;
}

.lang-toggle__opt {
    transition: color 0.3s ease, text-shadow 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.lang-toggle__opt.is-active {
    color: rgba(170, 255, 190, .65);
    text-shadow: 0 0 5px rgba(170, 255, 190, .12);
}

.lang-toggle__opt:not(.is-active) {
    opacity: .45;
}

.lang-toggle__opt:not(.is-active):hover {
    opacity: .8;
}

/* ========================= */
/* PSYCHE MODE OVERRIDES     */
/* ========================= */

body.psyche-mode {
    --bg: #06040a;
    --bg2: #080610;

    --dim: rgba(220, 190, 255, .88);
    --dim2: rgba(210, 180, 245, .72);
    --hud: rgba(220, 190, 255, .92);
    --grid: rgba(200, 160, 255, 0.28);
    --text-soft: rgba(210, 190, 255, .78);
    --text-terminal: rgba(180, 255, 220, 0.58);
    --text-glow: rgba(200, 140, 255, 0.42);

    --grain-opacity: 0.18;
    --scan-opacity: 0.09;
    --wave-blur: 10px;
    --wave-opacity: 0.92;

    background:
        radial-gradient(900px 520px at 50% 18%,
            rgba(180, 100, 255, 0.06),
            transparent 60%),
        radial-gradient(1200px 700px at 50% 110%,
            rgba(255, 80, 200, 0.05),
            transparent 62%),
        radial-gradient(600px 400px at 80% 50%,
            rgba(100, 255, 200, 0.03),
            transparent 50%),
        linear-gradient(180deg, var(--bg), var(--bg2));

    transition: background 2.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- background waves --- */
body.psyche-mode .bg-waves {
    --hue: 270;
    --sat: 55%;
    --lum: 16%;
    filter: blur(calc(var(--wave-blur) + 2px)) saturate(1.5) contrast(1.1) brightness(0.85) hue-rotate(var(--scroll-hue, 0deg));
    animation:
        waveShift 100s ease-in-out infinite alternate,
        psycheHueDrift 90s ease-in-out infinite;
}

@keyframes psycheHueDrift {
    0% {
        --hue: 270;
        --lumShift: 0%;
    }

    16% {
        --hue: 300;
        --lumShift: 3%;
    }

    33% {
        --hue: 330;
        --lumShift: 2%;
    }

    50% {
        --hue: 200;
        --lumShift: 4%;
    }

    66% {
        --hue: 160;
        --lumShift: 3%;
    }

    83% {
        --hue: 240;
        --lumShift: 2%;
    }

    100% {
        --hue: 270;
        --lumShift: 0%;
    }
}

/* --- alien psyche fill --- */
body.psyche-mode .alien-psyche {
    opacity: 0.7;
    filter: blur(1px) saturate(1.6) brightness(1.15);
    animation-duration: 8s;
}

/* --- alien head --- */
body.psyche-mode .alien-head {
    fill: rgba(210, 180, 255, 0.24);
    filter:
        drop-shadow(0 0 8px rgba(200, 140, 255, 0.14)) drop-shadow(0 0 20px rgba(200, 140, 255, 0.06));
}

body.psyche-mode .alien-face .alien-head {
    animation: psycheHeadShimmer var(--shimmerDur) linear infinite;
}

@keyframes psycheHeadShimmer {
    0%, 34%, 66%, 100% {
        fill: rgba(210, 180, 255, 0.20);
        filter:
            drop-shadow(0 0 7px rgba(200, 140, 255, 0.12)) drop-shadow(0 0 18px rgba(200, 140, 255, 0.05));
    }

    44%, 56% {
        fill: rgba(255, 160, 220, 0.26);
        filter:
            drop-shadow(0 0 9px rgba(255, 120, 200, 0.16)) drop-shadow(0 0 22px rgba(255, 120, 200, 0.07));
    }

    50% {
        fill: rgba(255, 140, 200, 0.30);
        filter:
            drop-shadow(0 0 10px rgba(255, 100, 200, 0.20)) drop-shadow(0 0 26px rgba(255, 100, 200, 0.09));
    }
}

/* --- alien eyes --- */
body.psyche-mode .alien-eyes {
    animation: psycheEyesShimmer var(--shimmerDur) linear infinite;
}

@keyframes psycheEyesShimmer {
    0%, 34%, 66%, 100% {
        fill: rgba(100, 255, 200, 0.5);
        filter:
            drop-shadow(0 0 9px rgba(100, 255, 200, 0.22)) drop-shadow(0 0 26px rgba(100, 255, 200, 0.10)) drop-shadow(0 0 48px rgba(100, 255, 200, 0.06));
    }

    44%, 56% {
        fill: rgba(80, 255, 180, 0.85);
        filter:
            drop-shadow(0 0 12px rgba(80, 255, 180, 0.42)) drop-shadow(0 0 32px rgba(80, 255, 180, 0.20));
    }

    50% {
        fill: rgba(60, 255, 160, 1);
        filter:
            drop-shadow(0 0 16px rgba(60, 255, 160, 0.55)) drop-shadow(0 0 40px rgba(60, 255, 160, 0.28)) drop-shadow(0 0 76px rgba(60, 255, 160, 0.14));
    }
}

/* --- alien SVG overall --- */
body.psyche-mode .alien-svg {
    opacity: 0.20;
}

/* --- center status text --- */
body.psyche-mode .center-status {
    color: rgba(220, 200, 255, 0.88);
    background-image: linear-gradient(90deg,
            rgba(200, 160, 255, 0.40) 0%,
            rgba(200, 160, 255, 0.40) 30%,
            rgba(255, 120, 200, 0.30) 40%,
            rgba(255, 160, 220, 0.70) 50%,
            rgba(255, 120, 200, 0.30) 60%,
            rgba(200, 160, 255, 0.40) 70%,
            rgba(200, 160, 255, 0.40) 100%);
}

/* --- presence --- */
body.psyche-mode .presence-dot {
    background: rgba(100, 255, 200, 0.92);
    box-shadow:
        0 0 10px rgba(100, 255, 200, 0.50),
        0 0 24px rgba(100, 255, 200, 0.25),
        0 0 48px rgba(100, 255, 200, 0.10);
}

body.psyche-mode .center-presence {
    color: rgba(160, 240, 210, 0.72);
}

/* --- terminal --- */
body.psyche-mode .term {
    opacity: 1;
}

body.psyche-mode .term-body {
    color: rgba(160, 255, 210, 0.65);
}

body.psyche-mode .term-head {
    color: rgba(210, 190, 255, 0.70);
}

body.psyche-mode .term-head .tag {
    color: rgba(220, 200, 255, 0.78);
}

body.psyche-mode .term-head .mode {
    color: rgba(200, 170, 255, 0.55);
}

body.psyche-mode .term-head .dot {
    background: rgba(100, 255, 180, 0.55);
    box-shadow:
        0 0 12px rgba(100, 255, 180, 0.28),
        0 0 28px rgba(100, 255, 180, 0.12);
    opacity: 0.8;
}

body.psyche-mode .term-ts {
    color: rgba(200, 180, 255, 0.48);
}

body.psyche-mode .term-lvl {
    color: rgba(160, 255, 210, 0.58);
}

body.psyche-mode .term-msg {
    color: rgba(160, 255, 210, 0.56);
}

body.psyche-mode .term-line[data-lvl="sec"] .term-lvl,
body.psyche-mode .term-line[data-lvl="sec"] .term-msg {
    color: rgba(200, 180, 255, 0.56);
}

body.psyche-mode .term-line[data-lvl="warn"] .term-lvl {
    color: rgba(255, 200, 140, 0.52);
}

body.psyche-mode .term-line[data-lvl="err"] .term-lvl {
    color: rgba(255, 140, 160, 0.52);
}

/* --- meta labels --- */
body.psyche-mode .meta {
    color: rgba(210, 190, 255, 0.26);
    text-shadow:
        0 0 6px rgba(4, 10, 12, 0.28),
        0 0 10px rgba(200, 140, 255, 0.04);
}

body.psyche-mode .meta.bottom {
    color: rgba(210, 190, 255, 0.22);
}

/* --- lang toggle --- */
body.psyche-mode .lang-toggle {
    color: rgba(210, 190, 255, .18);
}

body.psyche-mode .lang-toggle:hover {
    color: rgba(210, 190, 255, .40);
}

body.psyche-mode .lang-toggle__sep {
    color: rgba(210, 190, 255, .12);
}

body.psyche-mode .lang-toggle__opt.is-active {
    color: rgba(180, 140, 255, .70);
    text-shadow: 0 0 5px rgba(180, 140, 255, .12);
}

/* --- scan line purple tint --- */
body.psyche-mode::after {
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(200, 130, 255, 0.06) 45%,
            transparent 60%);
}

/* --- hover states in psyche mode --- */
body.psyche-mode .alien-face:hover .alien-psyche,
body.psyche-mode .alien-face:focus-within .alien-psyche {
    opacity: 0.9;
    filter: blur(0.5px) saturate(2.0) brightness(1.3);
}

body.psyche-mode .alien-face:hover svg .alien-head,
body.psyche-mode .alien-face:focus-within svg .alien-head {
    animation: none;
    fill: rgba(220, 180, 255, 0.38);
    filter:
        drop-shadow(0 0 10px rgba(200, 140, 255, 0.22)) drop-shadow(0 0 26px rgba(200, 140, 255, 0.10));
}

body.psyche-mode .alien-face:hover svg .alien-eyes,
body.psyche-mode .alien-face:focus-within svg .alien-eyes {
    animation: none;
    fill: rgba(60, 255, 160, 1);
    filter:
        drop-shadow(0 0 14px rgba(60, 255, 160, 0.5)) drop-shadow(0 0 34px rgba(60, 255, 160, 0.22));
}

body.psyche-mode .alien-face:hover~.center-status,
body.psyche-mode .alien-face:focus-within~.center-status {
    background-image: linear-gradient(90deg,
            rgba(200, 160, 255, .36) 0%,
            rgba(200, 160, 255, .36) 30%,
            rgba(255, 120, 200, .34) 40%,
            rgba(255, 160, 220, .66) 50%,
            rgba(255, 120, 200, .34) 60%,
            rgba(200, 160, 255, .36) 70%,
            rgba(200, 160, 255, .36) 100%);
    background-position: var(--shimmer-hold-pos) 50%;
    animation: none;
}

/* --- psyche mode: modal window --- */
body.psyche-mode .os-overlay {
    background:
        radial-gradient(900px 520px at 50% 42%, rgba(10, 0, 20, .52), rgba(10, 0, 20, .32) 55%, rgba(10, 0, 20, .22) 100%),
        radial-gradient(700px 420px at 50% 55%, rgba(160, 60, 220, .08), transparent 68%);
}

body.psyche-mode .os-window {
    background:
        linear-gradient(180deg, rgba(12, 6, 22, .84), rgba(8, 4, 16, .62));
    border-color: rgba(200, 140, 255, .16);
    box-shadow:
        0 28px 120px rgba(10, 0, 30, .70),
        0 0 0 1px rgba(200, 140, 255, .08) inset,
        0 0 50px rgba(180, 100, 255, .08),
        0 0 120px rgba(140, 60, 220, .04);
}

body.psyche-mode .os-window::before {
    background:
        radial-gradient(900px 520px at 50% 40%, rgba(200, 140, 255, .03), rgba(0, 0, 0, .26) 62%, rgba(0, 0, 0, .38) 100%),
        repeating-linear-gradient(0deg,
            rgba(200, 140, 255, .008) 0px,
            rgba(200, 140, 255, .008) 1px,
            rgba(0, 0, 0, .020) 2px,
            rgba(0, 0, 0, .020) 4px);
}

body.psyche-mode .os-titlebar {
    border-bottom-color: rgba(200, 140, 255, .12);
    background: linear-gradient(180deg, rgba(200, 140, 255, .04), transparent);
}

body.psyche-mode .os-title {
    color: rgba(220, 190, 255, .65);
}

body.psyche-mode .os-close {
    color: rgba(220, 190, 255, .72);
    border-color: rgba(200, 140, 255, .14);
}

body.psyche-mode .os-close:hover {
    border-color: rgba(200, 140, 255, .24);
    box-shadow:
        0 0 18px rgba(200, 140, 255, .12),
        0 0 60px rgba(180, 100, 255, .08);
}

body.psyche-mode .os-muted {
    color: rgba(200, 160, 255, .32);
}

body.psyche-mode .os-card {
    border-color: rgba(200, 140, 255, .10);
    background: rgba(20, 8, 40, .24);
    box-shadow: 0 0 0 1px rgba(200, 140, 255, .04) inset;
}

body.psyche-mode .os-card:hover {
    border-color: rgba(200, 140, 255, .24);
    background: rgba(20, 8, 40, .36);
    box-shadow:
        0 0 0 1px rgba(200, 140, 255, .06) inset,
        0 0 22px rgba(200, 140, 255, .10),
        0 0 70px rgba(180, 100, 255, .06);
}

body.psyche-mode .os-card-icon {
    border-color: rgba(200, 140, 255, .12);
    background: rgba(200, 140, 255, .04);
    color: rgba(200, 160, 255, .50);
}

body.psyche-mode .os-card:hover .os-card-icon {
    color: rgba(220, 160, 255, .78);
    border-color: rgba(200, 140, 255, .22);
    box-shadow: 0 0 12px rgba(200, 140, 255, .10);
}

body.psyche-mode .os-k {
    color: rgba(220, 190, 255, .60);
}

body.psyche-mode .os-card:hover .os-k {
    color: rgba(220, 190, 255, .82);
}

body.psyche-mode .os-v {
    color: rgba(180, 255, 220, .28);
}

body.psyche-mode .os-card:hover .os-v {
    color: rgba(180, 255, 220, .46);
}

body.psyche-mode .os-desc {
    color: rgba(200, 160, 255, .20);
}

body.psyche-mode .os-card:hover .os-desc {
    color: rgba(200, 160, 255, .38);
}

body.psyche-mode .os-footer {
    border-top-color: rgba(200, 140, 255, .12);
    background: rgba(10, 4, 20, .14);
}

body.psyche-mode .os-footnote {
    color: rgba(200, 160, 255, .28);
}

body.psyche-mode .os-cta {
    color: rgba(220, 190, 255, .78);
    border-color: rgba(200, 140, 255, .22);
    background: linear-gradient(180deg, rgba(200, 140, 255, .12), rgba(10, 0, 20, .18));
    box-shadow:
        0 0 18px rgba(200, 140, 255, .10),
        0 0 0 1px rgba(200, 140, 255, .05) inset;
}

body.psyche-mode .os-cta:hover {
    border-color: rgba(200, 140, 255, .30);
    box-shadow:
        0 0 26px rgba(200, 140, 255, .18),
        0 0 80px rgba(180, 100, 255, .10),
        0 0 0 1px rgba(200, 140, 255, .08) inset;
}

body.psyche-mode .os-body::-webkit-scrollbar-thumb {
    background: rgba(200, 140, 255, .18);
}

body.psyche-mode .os-body::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 140, 255, .32);
}

/* --- transitions for smooth psyche-mode toggle --- */
body {
    transition: background 2.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.bg-waves {
    transition:
        background 2.8s cubic-bezier(0.22, 1, 0.36, 1),
        filter 2.5s ease,
        opacity 2s ease,
        --hue 2.8s cubic-bezier(0.22, 1, 0.36, 1),
        --sat 2.2s ease,
        --lum 2.2s ease,
        --lumShift 2.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.alien-svg {
    transition: opacity 1.8s ease;
}

.alien-head {
    transition:
        fill 1.4s ease,
        filter 1.4s ease,
        transform 0.35s ease;
}

.alien-eyes {
    transition:
        fill 1.2s ease,
        filter 1.2s ease,
        transform 0.3s ease;
}

.alien-psyche {
    transition: opacity 1.4s ease, filter 1.4s ease;
}

.center-status {
    transition:
        text-shadow .25s ease,
        background-image 1.2s ease,
        background-position .25s ease,
        letter-spacing .25s ease,
        color 1.2s ease;
}

.meta {
    transition: color 1.2s ease, text-shadow 1.2s ease;
}

.lang-toggle,
.lang-toggle__opt,
.lang-toggle__sep {
    transition: color 1.2s ease;
}

.presence-dot {
    transition: background 1s ease, box-shadow 1s ease;
}

.center-presence {
    transition: color 1s ease;
}

.term {
    transition: opacity 1s ease, background 1.2s ease, border-color 1.2s ease, box-shadow 1.2s ease;
}

.term-body,
.term-head,
.term-head .tag,
.term-head .mode,
.term-head .dot,
.term-ts,
.term-lvl,
.term-msg {
    transition: color 1s ease, background 1s ease, box-shadow 1s ease, opacity 1s ease;
}

/* ---- theme toggle responsive ---- */

/* <= 520px */
@media (max-width: 520px) {
  .theme-toggle {
    top: var(--meta-top-offset);
    right: calc(16px + var(--safe-right));
  }

  .theme-toggle__track {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    padding: 0 5px;
  }

  .theme-toggle__thumb {
    width: 18px;
    height: 18px;
  }

  body.psyche-mode .theme-toggle__thumb {
    --thumb-x: calc(100% - 3px - 18px);
  }

  .theme-toggle__icon {
    width: 12px;
    height: 12px;
  }

  .theme-toggle__icon--stealth { left: 6px; }
  .theme-toggle__icon--psyche { right: 6px; }

  body.psyche-mode .bg-waves {
    filter: blur(calc(var(--wave-blur) + 1px)) saturate(1.35) contrast(1.1) brightness(0.8) hue-rotate(var(--scroll-hue, 0deg));
  }
}

/* <= 360px */
@media (max-width: 360px) {
  .theme-toggle {
    top: var(--meta-top-offset);
    right: calc(12px + var(--safe-right));
  }

  .theme-toggle__track {
    width: 42px;
    height: 22px;
    border-radius: 11px;
  }

  .theme-toggle__thumb {
    width: 16px;
    height: 16px;
  }

  body.psyche-mode .theme-toggle__thumb {
    --thumb-x: calc(100% - 3px - 16px);
  }

  .theme-toggle__icon {
    width: 10px;
    height: 10px;
  }

  .theme-toggle__icon--stealth { left: 5px; }
  .theme-toggle__icon--psyche { right: 5px; }
}

/* compact screens (<=520px width AND <=700px height) */
@media (max-width: 520px) and (max-height: 700px) {
  .theme-toggle {
    top: var(--meta-top-offset);
    right: calc(14px + var(--safe-right));
  }
}

/* landscape phones */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .theme-toggle {
    top: calc(10px + var(--safe-top));
    right: calc(12px + var(--safe-right));
  }

  .theme-toggle__track {
    width: 42px;
    height: 22px;
    border-radius: 11px;
  }

  .theme-toggle__thumb {
    width: 16px;
    height: 16px;
  }

  body.psyche-mode .theme-toggle__thumb {
    --thumb-x: calc(100% - 3px - 16px);
  }

  .theme-toggle__icon {
    width: 10px;
    height: 10px;
  }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .theme-toggle__thumb,
  .theme-toggle__track,
  .theme-toggle__icon,
  .lang-toggle,
  .lang-toggle__opt,
  .lang-toggle__sep {
    transition: none !important;
  }

  body.psyche-mode .bg-waves {
    animation: none !important;
  }

  body.psyche-mode,
  body.psyche-mode .alien-psyche,
  body.psyche-mode .alien-head,
  body.psyche-mode .alien-eyes,
  body.psyche-mode .alien-svg,
  body.psyche-mode .meta,
  body.psyche-mode .presence-dot,
  body.psyche-mode .center-presence,
  body.psyche-mode .center-status {
    transition: none !important;
  }
}

/* ========================================= */
/* DOT-MATRIX "I WANT TO CONNECT" SPLASH     */
/* ========================================= */

.connect-splash {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.connect-splash__bg {
    position: fixed;
    inset: 0;
    background: #000;
}

.connect-splash__bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("./../img/connect-bg.webp") center center / contain no-repeat;
    opacity: 0;
    animation: connectBgReveal 3s cubic-bezier(0.03, 0.5, 0.08, 1) 0.2s forwards;
}

@keyframes connectBgReveal {
    0%   { opacity: 0;    filter: blur(40px) brightness(0.08) saturate(0);   transform: scale(1.10); }
    12%  { opacity: 0.08; filter: blur(30px) brightness(0.18) saturate(0.1); transform: scale(1.07); }
    28%  { opacity: 0.22; filter: blur(20px) brightness(0.32) saturate(0.25); transform: scale(1.05); }
    45%  { opacity: 0.45; filter: blur(12px) brightness(0.52) saturate(0.5); transform: scale(1.035); }
    62%  { opacity: 0.65; filter: blur(6px)  brightness(0.72) saturate(0.7); transform: scale(1.02); }
    78%  { opacity: 0.82; filter: blur(2.5px) brightness(0.88) saturate(0.88); transform: scale(1.008); }
    90%  { opacity: 0.94; filter: blur(0.8px) brightness(0.96) saturate(0.96); transform: scale(1.002); }
    100% { opacity: 1;    filter: blur(0px)  brightness(1)   saturate(1);   transform: scale(1); }
}

.connect-splash__wrap {
    position: absolute;
    bottom: 3%;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(4px, 1vh, 12px);
}

.connect-matrix {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.connect-stage {
    --ds: clamp(1.5px, 0.35vw, 4px);
    --gap: clamp(0.5px, 0.1vw, 1.5px);
    --dot-off: #0b1510;
    --dot-ring: #0f1c14;
    --c1: #eaf4ee;
    --g1: rgba(200, 245, 215, 0.52);
    gap: clamp(2px, 0.5vw, 7px);
    filter: drop-shadow(0 0 12px rgba(190, 240, 210, 0.05));
}

.connect-letter {
    display: grid;
    grid-template-columns: repeat(5, var(--ds));
    grid-template-rows: repeat(7, var(--ds));
    gap: var(--gap);
    contain: layout style;
}

.connect-dot {
    width: var(--ds);
    height: var(--ds);
    border-radius: 50%;
    background: var(--dot-off);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--dot-ring);
    transform: scale(0.88);
    contain: strict;
}

.connect-dot.c-lit {
    background: var(--c1);
    transform: scale(1);
    box-shadow: 0 0 2px var(--c1), 0 0 7px var(--g1), 0 0 18px rgba(190, 245, 215, 0.3), inset 0 0 3px rgba(255, 255, 255, 0.4);
}

@keyframes connectIgn {
    0% { background: var(--dot-off); transform: scale(0.88); box-shadow: inset 0 1px 2px rgba(0,0,0,0.65), 0 0 0 1px var(--dot-ring); }
    26% { background: #fff; transform: scale(1.3); box-shadow: 0 0 18px #fff, 0 0 34px var(--c1); }
    64% { background: #d4f5e8; transform: scale(1.1); box-shadow: 0 0 7px var(--c1), 0 0 15px var(--g1); }
    100% { background: var(--c1); transform: scale(1); box-shadow: 0 0 2px var(--c1), 0 0 7px var(--g1), 0 0 18px rgba(190,245,215,0.3), inset 0 0 3px rgba(255,255,255,0.4); }
}

@keyframes connectExt {
    0% { transform: scale(1); }
    100% { background: var(--dot-off); transform: scale(0.88); box-shadow: inset 0 1px 2px rgba(0,0,0,0.65), 0 0 0 1px var(--dot-ring); }
}

@keyframes connectBreathe {
    0%, 100% { background: var(--c1); box-shadow: 0 0 2px var(--c1), 0 0 7px var(--g1), 0 0 18px rgba(190,245,215,0.3), inset 0 0 3px rgba(255,255,255,0.4); }
    45% { background: #fff; box-shadow: 0 0 6px #fff, 0 0 20px var(--c1), 0 0 44px rgba(190,245,215,0.62), 0 0 75px rgba(190,245,215,0.18), inset 0 0 8px rgba(255,255,255,0.6); }
}

.connect-dot.c-ign { animation: connectIgn var(--dur, .18s) cubic-bezier(.4,0,.2,1) forwards; }
.connect-dot.c-ext { animation: connectExt var(--edur, .16s) ease-in forwards; }
.connect-dot.c-breathing { animation: connectBreathe var(--bd, 2.4s) ease-in-out var(--bdelay, 0s) var(--bc, 3); }

/* easter egg: hearts */
.connect-dot.c-lit-heart {
    background: var(--heart-c, #ff4d88); transform: scale(1);
    box-shadow: 0 0 3px var(--heart-c, #ff4d88), 0 0 9px var(--heart-gc, rgba(255,77,136,0.6)),
                0 0 20px var(--heart-fc, rgba(255,77,136,0.18)), inset 0 0 3px rgba(255,220,230,0.3);
}
@keyframes connectIgnHeart {
    0%   { background: var(--dot-off); transform: scale(0.88); }
    30%  { background: #fff; transform: scale(1.3); box-shadow: 0 0 16px #fff, 0 0 28px var(--heart-c, #ff4d88); }
    65%  { background: color-mix(in srgb, var(--heart-c, #ff4d88) 60%, #fff); transform: scale(1.08); }
    100% { background: var(--heart-c, #ff4d88); transform: scale(1);
           box-shadow: 0 0 3px var(--heart-c, #ff4d88), 0 0 9px var(--heart-gc, rgba(255,77,136,0.6)),
                       0 0 20px var(--heart-fc, rgba(255,77,136,0.18)), inset 0 0 3px rgba(255,220,230,0.3); }
}
.connect-dot.c-ign-heart { animation: connectIgnHeart var(--dur, .18s) cubic-bezier(.4,0,.2,1) forwards; }

/* easter egg: aliens */
.connect-dot.c-lit-alien {
    background: var(--alien-c, #00ff88); transform: scale(1);
    box-shadow: 0 0 3px var(--alien-c, #00ff88), 0 0 9px var(--alien-gc, rgba(0,255,136,0.55)),
                0 0 20px var(--alien-fc, rgba(0,255,136,0.15)), inset 0 0 3px rgba(255,255,255,0.22);
}
.connect-dot.c-lit-alien-eye {
    background: #ffffff; transform: scale(1.05);
    box-shadow: 0 0 4px #fff, 0 0 10px rgba(255,255,255,0.9), 0 0 20px rgba(255,255,255,0.4),
                inset 0 0 3px rgba(255,255,255,0.5);
}
@keyframes connectIgnAlien {
    0%   { background: var(--dot-off); transform: scale(0.88); }
    30%  { background: #fff; transform: scale(1.3); box-shadow: 0 0 16px #fff, 0 0 28px var(--alien-c, #00ff88); }
    65%  { background: color-mix(in srgb, var(--alien-c, #00ff88) 50%, #fff); transform: scale(1.08); }
    100% { background: var(--alien-c, #00ff88); transform: scale(1);
           box-shadow: 0 0 3px var(--alien-c, #00ff88), 0 0 9px var(--alien-gc, rgba(0,255,136,0.55)),
                       0 0 20px var(--alien-fc, rgba(0,255,136,0.15)), inset 0 0 3px rgba(255,255,255,0.22); }
}
@keyframes connectIgnAlienEye {
    0%   { background: var(--dot-off); transform: scale(0.88); }
    25%  { background: #ffffaa; transform: scale(1.4); box-shadow: 0 0 20px #fff, 0 0 36px #ffffaa; }
    60%  { background: #ffffff; transform: scale(1.1); box-shadow: 0 0 10px #fff, 0 0 22px rgba(255,255,255,0.8); }
    100% { background: #ffffff; transform: scale(1.05);
           box-shadow: 0 0 4px #fff, 0 0 10px rgba(255,255,255,0.9), 0 0 20px rgba(255,255,255,0.4),
                       inset 0 0 3px rgba(255,255,255,0.5); }
}
.connect-dot.c-ign-alien { animation: connectIgnAlien var(--dur, .18s) cubic-bezier(.4,0,.2,1) forwards; }
.connect-dot.c-ign-alien-eye { animation: connectIgnAlienEye var(--dur, .18s) cubic-bezier(.4,0,.2,1) forwards; }

/* easter egg: OBEY */
.connect-dot.c-lit-obey {
    background: #ff2200; transform: scale(1.1);
    box-shadow: 0 0 6px #ff2200, 0 0 16px rgba(255,34,0,0.85), 0 0 30px rgba(255,34,0,0.4);
}
@keyframes connectIgnObey {
    0%   { background: var(--dot-off); transform: scale(0.88); }
    15%  { background: #ffffff; transform: scale(1.3); box-shadow: 0 0 20px #fff, 0 0 40px #ff2200; }
    100% { background: #ff2200; transform: scale(1.1);
           box-shadow: 0 0 6px #ff2200, 0 0 16px rgba(255,34,0,0.85), 0 0 30px rgba(255,34,0,0.4); }
}
.connect-dot.c-ign-obey { animation: connectIgnObey 0.06s cubic-bezier(.4,0,.2,1) forwards; }

.connect-splash__lbl {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    font-family: 'Orbitron', 'Share Tech Mono', monospace;
    font-weight: 300;
    font-size: clamp(11px, 1.5vw, 16px);
    letter-spacing: 0.55em;
    color: rgba(220, 240, 230, 0.35);
    text-transform: uppercase;
    padding-left: 0.55em;
    text-shadow: 0 0 20px rgba(180, 220, 200, 0.1);
    transition: color 2.5s ease, text-shadow 2.5s ease;
}

.connect-splash__lbl.is-revealed {
    color: #1e231f;
    text-shadow: none;
}

.connect-splash__enter {
    font-family: 'Orbitron', 'Share Tech Mono', monospace;
    font-weight: 600;
    font-size: clamp(12px, 1.3vw, 16px);
    letter-spacing: 0.5em;
    text-transform: uppercase;
    background: linear-gradient(90deg,
        rgba(120,220,180,0.06),
        rgba(140,100,200,0.12),
        rgba(120,220,180,0.1),
        rgba(100,60,160,0.08),
        rgba(120,220,180,0.06));
    background-size: 300% 100%;
    animation: connectBtnShimmer 5s ease-in-out infinite;
    color: rgba(180, 215, 200, 0.45);
    border: 1px solid rgba(120, 200, 180, 0.15);
    border-radius: 4px;
    padding: 10px 32px 10px calc(32px + 0.5em);
    margin-top: clamp(6px, 1.5vh, 18px);
    cursor: pointer;
    transition: color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

@keyframes connectBtnShimmer {
    0%   { background-position: 300% 0; border-color: rgba(120,200,180,0.15); }
    50%  { border-color: rgba(130,80,180,0.25); }
    100% { background-position: -300% 0; border-color: rgba(120,200,180,0.15); }
}

.connect-splash__enter:hover,
.connect-splash__enter:focus-visible {
    color: rgba(200, 240, 220, 0.85);
    border-color: rgba(140, 100, 200, 0.45);
    box-shadow: 0 0 14px rgba(130, 80, 180, 0.2), 0 0 28px rgba(120, 220, 180, 0.08);
    outline: none;
}

.connect-splash.is-fading {
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

/* mobile portrait */
@media (max-width: 520px) {
    .connect-stage {
        --ds: clamp(2px, 1vw, 5px);
        --gap: clamp(0.5px, 0.25vw, 2px);
        gap: clamp(1.5px, 0.6vw, 6px);
    }

    .connect-splash__wrap {
        bottom: calc(50vh - 100vw * 1313 / 875 / 2 - 10px);
    }

    .connect-dot {
        will-change: auto;
        transition: none;
    }

    .connect-splash__enter {
        padding: 10px 24px 10px calc(24px + 0.4em);
        min-height: 44px;
    }

}

/* small phones */
@media (max-width: 360px) {
    .connect-stage {
        --ds: clamp(1.5px, 0.9vw, 4px);
        --gap: clamp(0.5px, 0.2vw, 1.5px);
        gap: clamp(1px, 0.5vw, 5px);
    }

    .connect-splash__lbl {
        font-size: 8px;
        letter-spacing: 0.4em;
    }

    .connect-splash__enter {
        font-size: 10px;
        padding: 10px 20px 10px calc(20px + 0.5em);
    }
}

/* landscape mobile */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    .connect-stage {
        --ds: clamp(2px, 0.9vh, 5px);
        --gap: clamp(0.5px, 0.2vh, 2px);
        gap: clamp(2px, 0.5vh, 6px);
    }

    .connect-splash__wrap {
        padding-bottom: 12px;
        gap: 4px;
    }

    .connect-splash__lbl {
        margin-top: 4px;
        font-size: 8px;
    }

    .connect-splash__enter {
        margin-top: 6px;
        padding: 6px 20px 6px calc(20px + 0.5em);
        font-size: 9px;
        min-height: 32px;
    }

}

/* ========================================= */
/* CINEMATIC INTRO                           */
/* ========================================= */

.intro {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--bg), var(--bg2));
    pointer-events: none;
    will-change: opacity;
    opacity: 0;
    visibility: hidden;
}

.intro.is-ready {
    opacity: 1;
    visibility: visible;
}

/* ALIEN (1979) title reveal: each letter starts as a tiny bright
   vertical fragment in the center (like the original film), then
   expands outward in all directions while letter-spacing converges. */

.intro__title-wrap {
    position: relative;
    overflow: hidden;
    padding: 4px 0;
}

.intro__title {
    font-family: "Exo 2", sans-serif;
    font-size: clamp(28px, 7vw, 64px);
    font-weight: 600;
    letter-spacing: 2.6em;
    text-transform: uppercase;
    color: rgba(225, 250, 255, 0.97);
    text-shadow:
        0 0 8px rgba(200, 240, 255, 0.10);
    white-space: nowrap;
    transition: letter-spacing 3.2s cubic-bezier(0.16, 1, 0.3, 1),
                text-shadow 1s ease 2.4s;
}

.intro__title.is-converged {
    letter-spacing: 0.32em;
    text-shadow:
        0 0 30px rgba(140, 220, 255, 0.14),
        0 0 70px rgba(140, 220, 255, 0.05);
}

/* each character: starts as a thin bright vertical bar (full height,
   narrow center slice ~8% width), stays thin for a long time,
   then slowly expands horizontally — like ALIEN (1979) */
.intro__char {
    display: inline-block;
    clip-path: inset(0 46% 0 46%);
    opacity: 0;
    will-change: clip-path, opacity;
    animation: alienCharReveal var(--char-dur, 3s)
               cubic-bezier(0.08, 0.82, 0.17, 1)
               var(--char-delay, 0s) both;
}

@keyframes alienCharReveal {
    /* invisible */
    0% {
        clip-path: inset(0 46% 0 46%);
        opacity: 0;
    }
    /* bar appears — instant flash */
    4% {
        clip-path: inset(0 46% 0 46%);
        opacity: 0.92;
    }
    /* stays thin for a long time (like the film) */
    30% {
        clip-path: inset(0 43% 0 43%);
        opacity: 0.92;
    }
    /* starts widening slowly */
    55% {
        clip-path: inset(0 28% 0 28%);
        opacity: 0.94;
    }
    /* accelerating */
    78% {
        clip-path: inset(0 10% 0 10%);
        opacity: 0.97;
    }
    100% {
        clip-path: inset(0 0% 0 0%);
        opacity: 1;
    }
}

/* VPN and subtitle: blur-fade reveal */
.intro__vpn,
.intro__sub {
    opacity: 0;
    will-change: opacity, transform, filter;
}

.intro__vpn {
    font-family: "Exo 2", sans-serif;
    font-size: clamp(14px, 3.5vw, 28px);
    font-weight: 300;
    letter-spacing: 0.6em;
    text-transform: uppercase;
    color: rgba(170, 255, 190, 0.7);
    text-shadow: 0 0 20px rgba(170, 255, 190, 0.1);
    margin-top: 8px;
    transform: translateY(6px);
    filter: blur(6px);
    transition:
        opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.4s cubic-bezier(0.22, 1, 0.36, 1),
        filter 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.intro__sub {
    font-family: var(--mono);
    font-size: clamp(9px, 1.4vw, 12px);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(190, 238, 244, 0.4);
    margin-top: 20px;
    transform: translateY(4px);
    filter: blur(4px);
    transition:
        opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        filter 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.intro__vpn.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.intro__sub.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* overlay fade-out */
.intro.is-fading {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* hide HUD during intro */
body.intro-active .hud {
    opacity: 0;
}

/* HUD cascade reveal */
body.intro-reveal .hud {
    opacity: 1;
}

body.intro-reveal [data-intro-delay] {
    transition: opacity var(--intro-dur, 1s) cubic-bezier(0.22, 1, 0.36, 1) var(--intro-delay, 0s);
}

/* after intro: remove cascade overrides */
body:not(.intro-active):not(.intro-reveal) .intro {
    display: none;
}

/* ========================= */
/* INTRO: reduced motion     */
/* ========================= */
@media (prefers-reduced-motion: reduce) {
    .intro__title {
        letter-spacing: 0.32em !important;
        transition: none !important;
    }

    .intro__char {
        clip-path: none !important;
        opacity: 1 !important;
        animation: none !important;
    }

    .intro__vpn,
    .intro__sub {
        filter: none !important;
        transform: none !important;
        transition-duration: 0.3s !important;
    }

    .intro.is-fading {
        transition-duration: 0.2s !important;
    }

    body.intro-reveal [data-intro-delay] {
        transition-duration: 0.3s !important;
        --intro-delay: 0s !important;
    }
}   
