/* =========================================================
   Scortum News — shared engine styles
   Every news page = news.css + news.js + its own blocks.
   ========================================================= */

:root {
    --nx-bg: #07080c;
    --nx-bg-2: #0d0f16;
    --nx-card: rgba(255, 255, 255, 0.04);
    --nx-line: rgba(255, 255, 255, 0.09);
    --nx-text: #f3f4f6;
    --nx-muted: #9ca3af;
    --nx-dim: #6b7280;
    --nx-accent: #6366f1;
    --nx-gold: #f59e0b;
    --acc: var(--nx-accent);
    --acc-2: #a5b4fc;
    --nx-display: 'Unbounded', 'Inter', sans-serif;
    --nx-body: 'Inter', system-ui, sans-serif;
    --nx-max: 1240px;
    --nx-gutter: clamp(16px, 4vw, 48px);
    --nx-ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; background: var(--nx-bg); }

body {
    font-family: var(--nx-body);
    background: var(--nx-bg);
    color: var(--nx-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--acc); color: #fff; }

.nx-wrap {
    width: 100%;
    max-width: var(--nx-max);
    margin: 0 auto;
    padding: 0 var(--nx-gutter);
}

/* ---------- top bar + reading progress ---------- */

.nx-topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px var(--nx-gutter);
    transition: background .35s, padding .35s, border-color .35s;
    border-bottom: 1px solid transparent;
}

.nx-topbar.is-solid {
    background: rgba(7, 8, 12, 0.92);
    border-bottom-color: var(--nx-line);
    padding-top: 10px;
    padding-bottom: 10px;
}

.nx-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--nx-display);
    font-weight: 700;
    letter-spacing: .06em;
    font-size: 15px;
}

.nx-brand img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    box-shadow: 0 0 0 1px var(--nx-line), 0 6px 18px rgba(0, 0, 0, .5);
}

.nx-brand small {
    color: var(--nx-muted);
    font-family: var(--nx-body);
    font-weight: 600;
    letter-spacing: .12em;
    font-size: 11px;
    text-transform: uppercase;
    padding-left: 10px;
    margin-left: 2px;
    border-left: 1px solid var(--nx-line);
}

.nx-topbar-spacer { flex: 1; }

.nx-lang {
    display: flex;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--nx-line);
}

.nx-lang button {
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--nx-muted);
    transition: background .2s, color .2s;
}

.nx-lang button.is-active { background: var(--nx-text); color: #0b0c10; }

.nx-progress {
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--nx-accent), #ec4899, var(--nx-gold));
}

/* ---------- buttons ---------- */

.nx-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .01em;
    transition: transform .25s var(--nx-ease), box-shadow .25s, background .25s, border-color .25s;
    isolation: isolate;
    overflow: hidden;
    white-space: nowrap;
}

.nx-btn svg { width: 18px; height: 18px; flex: none; }

.nx-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--acc), color-mix(in srgb, var(--acc) 55%, #ec4899));
    box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--acc) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.nx-btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
    transform: translateX(-120%);
    animation: nx-shine 4.5s ease-in-out infinite;
}

.nx-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px color-mix(in srgb, var(--acc) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, .25); }

.nx-btn-ghost {
    color: var(--nx-text);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
}

.nx-btn-ghost:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }

.nx-btn-sm { padding: 9px 15px; font-size: 13px; border-radius: 11px; }

.nx-btn code {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 700;
    letter-spacing: .04em;
    opacity: .92;
}

.nx-btn.is-copied { background: linear-gradient(135deg, #10b981, #059669); }

@keyframes nx-shine {
    0%, 55% { transform: translateX(-120%); }
    80%, 100% { transform: translateX(120%); }
}

/* ---------- hero ---------- */

.nx-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
}

.nx-hero-media {
    position: absolute;
    inset: -6% -4%;
    z-index: -4;
    will-change: transform;
}

.nx-hero-media > img,
.nx-hero-media > video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: nx-kenburns 28s ease-in-out infinite alternate;
    transform-origin: 65% 45%;
    will-change: transform;
}

@keyframes nx-kenburns {
    from { transform: scale(1.04); }
    to { transform: scale(1.16) translate(-1.5%, 1%); }
}

.nx-hero-fg {
    position: absolute;
    right: 4%;
    bottom: 0;
    height: 92%;
    z-index: -2;
    pointer-events: none;
    will-change: transform;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6));
}

.nx-hero-fg img { height: 100%; width: auto; }

.nx-shade {
    position: absolute;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(7, 8, 12, .92) 0%, rgba(7, 8, 12, .55) 38%, rgba(7, 8, 12, 0) 70%),
        linear-gradient(0deg, var(--nx-bg) 0%, rgba(7, 8, 12, .2) 30%, rgba(7, 8, 12, 0) 55%),
        linear-gradient(180deg, rgba(7, 8, 12, .55) 0%, rgba(7, 8, 12, 0) 22%);
}

.nx-rays {
    position: absolute;
    inset: -30% -10% auto auto;
    width: 90vmax;
    height: 90vmax;
    z-index: -3;
    pointer-events: none;
    opacity: .3;
    will-change: opacity;
    background: repeating-conic-gradient(from 0deg at 70% 20%,
        rgba(255, 196, 120, .16) 0deg 4deg,
        transparent 4deg 13deg);
    -webkit-mask-image: radial-gradient(circle at 70% 20%, #000 0%, transparent 60%);
    mask-image: radial-gradient(circle at 70% 20%, #000 0%, transparent 60%);
    animation: nx-rays 9s ease-in-out infinite alternate;
}

@keyframes nx-rays { to { opacity: .12; } }

.nx-fog {
    position: absolute;
    left: -50%;
    right: -50%;
    bottom: 6%;
    height: 45%;
    z-index: -3;
    pointer-events: none;
    opacity: .5;
    background:
        radial-gradient(40% 50% at 20% 60%, rgba(200, 210, 255, .14), transparent 70%),
        radial-gradient(35% 45% at 60% 70%, rgba(255, 200, 160, .10), transparent 70%),
        radial-gradient(30% 40% at 90% 55%, rgba(180, 200, 255, .12), transparent 70%);
    will-change: transform;
    animation: nx-fog 38s ease-in-out infinite alternate;
}

@keyframes nx-fog { to { transform: translateX(14%); } }

.nx-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.nx-hero-inner {
    width: 100%;
    max-width: var(--nx-max);
    margin: 0 auto;
    padding: 140px var(--nx-gutter) clamp(90px, 13vh, 150px);
}

.nx-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.nx-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--acc), color-mix(in srgb, var(--acc) 50%, #ec4899));
    box-shadow: 0 0 24px color-mix(in srgb, var(--acc) 60%, transparent);
}

.nx-tag::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px #fff;
    animation: nx-pulse 1.6s ease-in-out infinite;
}

@keyframes nx-pulse { 50% { opacity: .35; transform: scale(.7); } }

.nx-kicker time,
.nx-kicker .nx-kicker-text {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .7);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nx-hero-title {
    font-family: var(--nx-display);
    font-weight: 800;
    font-size: clamp(40px, 7.4vw, 104px);
    line-height: .98;
    letter-spacing: -.02em;
    max-width: 12ch;
    text-wrap: balance;
    text-shadow: 0 10px 50px rgba(0, 0, 0, .55);
}

.nx-hero-title em {
    font-style: normal;
    background: linear-gradient(100deg, #fff 0%, var(--acc-2) 45%, #f9a8d4 75%, var(--nx-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@keyframes nx-gradient-pan { to { background-position: 100% 0; } }

/* once split into letters, the gradient has to live on each letter */
.nx-hero-title em .nx-ch {
    background: linear-gradient(180deg, #fff 5%, var(--acc-2) 55%, #f9a8d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-bottom: .06em;
}

/* split-letter reveal */
.nx-split .nx-ch {
    display: inline-block;
    opacity: 0;
    transform: translateY(.6em) rotate(6deg);
    filter: blur(8px);
    animation: nx-ch-in .9s var(--nx-ease) forwards;
    animation-delay: calc(var(--i) * 28ms + 250ms);
}

.nx-split .nx-word { display: inline-block; white-space: nowrap; }

@keyframes nx-ch-in { to { opacity: 1; transform: none; filter: none; } }

.nx-hero-lead {
    margin-top: 24px;
    max-width: 560px;
    font-size: clamp(16px, 1.45vw, 20px);
    color: rgba(255, 255, 255, .82);
    text-shadow: 0 2px 20px rgba(0, 0, 0, .6);
}

.nx-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.nx-intro-anim {
    opacity: 0;
    transform: translateY(24px);
    animation: nx-fade-up 1s var(--nx-ease) forwards;
    animation-delay: var(--d, .9s);
}

@keyframes nx-fade-up { to { opacity: 1; transform: none; } }

/* countdown */
.nx-countdown {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    margin-top: 38px;
}

.nx-countdown-label {
    width: 100%;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}

.nx-cd-cell {
    min-width: 78px;
    padding: 12px 14px 10px;
    border-radius: 14px;
    text-align: center;
    background: rgba(10, 12, 18, .72);
    border: 1px solid rgba(255, 255, 255, .12);
}

.nx-cd-cell b {
    display: block;
    font-family: var(--nx-display);
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.nx-cd-cell span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--nx-muted);
}

.nx-cd-cell b.is-tick { animation: nx-tick .45s var(--nx-ease); }

@keyframes nx-tick { from { transform: translateY(-30%); opacity: .2; } }

.nx-countdown.is-live .nx-cd-cell { border-color: rgba(16, 185, 129, .5); }

.nx-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 26px;
    translate: -50% 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}

.nx-scroll-cue i {
    width: 22px;
    height: 36px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, .35);
    position: relative;
}

.nx-scroll-cue i::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 6px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: #fff;
    animation: nx-wheel 1.8s ease-in-out infinite;
}

@keyframes nx-wheel { 60% { transform: translateY(12px); opacity: 0; } 61% { transform: none; opacity: 0; } }

/* ---------- side section dots ---------- */

.nx-dots {
    position: fixed;
    right: 22px;
    top: 50%;
    z-index: 40;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s;
}

.nx-dots.is-shown { opacity: 1; pointer-events: auto; }

.nx-dots a {
    position: relative;
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .35);
    transition: transform .3s var(--nx-ease), background .3s, border-color .3s;
}

.nx-dots a.is-active {
    background: var(--dot, var(--nx-accent));
    border-color: var(--dot, var(--nx-accent));
    transform: scale(1.35);
    box-shadow: 0 0 14px var(--dot, var(--nx-accent));
}

.nx-dots a span {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translate(8px, -50%);
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(7, 8, 12, .85);
    border: 1px solid var(--nx-line);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
}

.nx-dots a:hover span { opacity: 1; transform: translate(0, -50%); }

/* ---------- reveal on scroll ---------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(42px);
    transition: opacity 1s var(--nx-ease), transform 1s var(--nx-ease), filter 1s var(--nx-ease);
    transition-delay: var(--d, 0s);
}

[data-reveal="left"] { transform: translateX(-60px); }
[data-reveal="right"] { transform: translateX(60px); }
[data-reveal="zoom"] { transform: scale(.92); }
[data-reveal="clip"] { transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--nx-ease), opacity .4s; }

[data-reveal].is-in { opacity: 1; transform: none; filter: none; clip-path: inset(0 0 0 0); }

/* ---------- generic section bits ---------- */

.nx-section { position: relative; padding: clamp(80px, 12vw, 150px) 0; }

.nx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--acc-2);
}

.nx-eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    background: linear-gradient(90deg, var(--acc), transparent);
}

.nx-h2 {
    margin-top: 14px;
    font-family: var(--nx-display);
    font-size: clamp(30px, 4.4vw, 58px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.02em;
    text-wrap: balance;
}

.nx-sub {
    margin-top: 16px;
    max-width: 640px;
    font-size: 18px;
    color: var(--nx-muted);
}

/* intro */
.nx-intro { padding-top: clamp(40px, 6vw, 80px); }

.nx-intro-text {
    max-width: 860px;
    font-size: clamp(19px, 1.9vw, 25px);
    line-height: 1.55;
    color: rgba(255, 255, 255, .86);
}

.nx-intro-text p + p { margin-top: 18px; }

.nx-intro-text p:first-child::first-letter {
    float: left;
    font-family: var(--nx-display);
    font-weight: 800;
    font-size: 3.5em;
    line-height: .9;
    padding: 6px 12px 0 0;
    color: var(--acc-2);
}

.nx-stats {
    margin-top: clamp(48px, 7vw, 80px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--nx-line);
    border-bottom: 1px solid var(--nx-line);
}

.nx-stat {
    padding: 30px 24px;
    position: relative;
}

.nx-stat + .nx-stat { border-left: 1px solid var(--nx-line); }

.nx-stat b {
    display: block;
    font-family: var(--nx-display);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .55));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-variant-numeric: tabular-nums;
}

.nx-stat span {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--nx-muted);
}

/* ---------- MODE block (full-bleed background + content) ---------- */

.nx-mode {
    position: relative;
    isolation: isolate;
    padding: clamp(120px, 16vw, 220px) 0 clamp(90px, 12vw, 160px);
    overflow: hidden;
}

.nx-mode-bg {
    position: absolute;
    inset: -12% 0;
    z-index: -3;
    will-change: transform;
    contain: strict;
}

.nx-mode-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

.nx-mode::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(180deg, var(--nx-bg) 0%, rgba(7, 8, 12, .35) 22%, rgba(7, 8, 12, .45) 70%, var(--nx-bg) 100%),
        linear-gradient(90deg, rgba(7, 8, 12, .9) 0%, rgba(7, 8, 12, .55) 45%, rgba(7, 8, 12, .25) 100%);
}

.nx-mode.is-flip::before {
    background:
        linear-gradient(180deg, var(--nx-bg) 0%, rgba(7, 8, 12, .35) 22%, rgba(7, 8, 12, .45) 70%, var(--nx-bg) 100%),
        linear-gradient(270deg, rgba(7, 8, 12, .9) 0%, rgba(7, 8, 12, .55) 45%, rgba(7, 8, 12, .25) 100%);
}

/* coloured glow in the corner of each mode */
.nx-mode::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 70vmax;
    height: 70vmax;
    left: -25vmax;
    top: 10%;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--acc) 26%, transparent), transparent 60%);
    pointer-events: none;
}

.nx-mode.is-flip::after { left: auto; right: -25vmax; }

.nx-mode-num {
    position: absolute;
    top: clamp(70px, 9vw, 120px);
    right: var(--nx-gutter);
    font-family: var(--nx-display);
    font-weight: 800;
    font-size: clamp(120px, 22vw, 320px);
    line-height: .8;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .09);
    pointer-events: none;
    user-select: none;
    z-index: -1;
}

.nx-mode.is-flip .nx-mode-num { right: auto; left: var(--nx-gutter); }

.nx-mode-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.nx-mode.is-flip .nx-mode-copy { order: 2; }

.nx-mode-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 85%, #fff 0%), color-mix(in srgb, var(--acc) 45%, #000));
    box-shadow: 0 14px 40px -10px var(--acc), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.nx-mode-icon svg { width: 30px; height: 30px; color: #fff; }

.nx-mode-name {
    font-family: var(--nx-display);
    font-weight: 800;
    font-size: clamp(38px, 5.6vw, 76px);
    line-height: 1;
    letter-spacing: -.02em;
}

.nx-mode-tagline {
    margin-top: 10px;
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 700;
    color: var(--acc-2);
}

.nx-mode-desc {
    margin-top: 20px;
    font-size: 17px;
    color: rgba(255, 255, 255, .78);
    max-width: 540px;
}

.nx-features {
    list-style: none;
    margin-top: 28px;
    display: grid;
    gap: 12px;
}

.nx-features li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .06);
    transition: background .25s, border-color .25s, transform .25s var(--nx-ease);
}

.nx-features li:hover {
    background: color-mix(in srgb, var(--acc) 12%, transparent);
    border-color: color-mix(in srgb, var(--acc) 45%, transparent);
    transform: translateX(4px);
}

.nx-features li svg {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    color: var(--acc-2);
}

.nx-features li b { color: #fff; }

.nx-features li span { color: rgba(255, 255, 255, .72); font-size: 15px; }

/* screenshot bento */
.nx-shots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    gap: 14px;
}

.nx-shots > :first-child { grid-column: 1 / -1; }

.nx-shot {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    background: #11131a;
    box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08);
    cursor: pointer;
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .4s var(--nx-ease), box-shadow .4s;
}

.nx-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--nx-ease);
}

.nx-shot:hover img { transform: scale(1.06); }

.nx-shot:hover { box-shadow: 0 30px 70px -18px rgba(0, 0, 0, .9), 0 0 0 1px color-mix(in srgb, var(--acc) 60%, transparent), 0 0 40px -10px var(--acc); }

.nx-shot::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .14), transparent 45%);
    opacity: 0;
    transition: opacity .3s;
}

.nx-shot:hover::after { opacity: 1; }

/* "expand" hint so it is obvious the shot opens */
.nx-shot:not(.is-ph)::before {
    content: "";
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(7, 8, 12, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 18px no-repeat;
    opacity: 0;
    transform: scale(.8);
    transition: opacity .25s, transform .25s var(--nx-ease);
}

.nx-shot:hover::before { opacity: 1; transform: none; }

/* ---------- placeholders (missing images) ---------- */

.nx-ph {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    text-align: center;
    color: rgba(255, 255, 255, .85);
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 14px, transparent 14px 28px),
        radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--acc) 45%, transparent), transparent 60%),
        linear-gradient(135deg, color-mix(in srgb, var(--acc) 30%, #0d0f16), #0d0f16);
}

.nx-ph svg { width: 28px; height: 28px; opacity: .7; }

.nx-ph b { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; letter-spacing: .02em; }

.nx-ph small { font-size: 11px; color: rgba(255, 255, 255, .55); letter-spacing: .08em; text-transform: uppercase; }

.nx-ph-chip {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 5;
    padding: 4px 10px;
    border-radius: 8px;
    font: 600 11px 'JetBrains Mono', ui-monospace, monospace;
    color: #fde68a;
    background: rgba(0, 0, 0, .65);
    border: 1px dashed rgba(253, 230, 138, .5);
    pointer-events: none;
    white-space: nowrap;
}

/* ---------- Pickaxe: depth descent ---------- */

.nx-depth {
    margin-top: clamp(48px, 6vw, 80px);
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
}

.nx-depth-gauge {
    position: sticky;
    top: 110px;
    align-self: start;
    padding: 18px 16px;
    border-radius: 18px;
    background: rgba(10, 12, 18, .85);
    border: 1px solid var(--nx-line);
    text-align: center;
}

.nx-depth-gauge small {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2em;
    color: var(--nx-muted);
}

.nx-depth-gauge b {
    display: block;
    margin-top: 6px;
    font-family: var(--nx-display);
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--layer, #fff);
    text-shadow: 0 0 24px var(--layer, transparent);
    transition: color .5s, text-shadow .5s;
}

.nx-depth-bar {
    position: relative;
    margin: 16px auto 0;
    width: 6px;
    height: 160px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .08);
    overflow: hidden;
}

.nx-depth-bar i {
    position: absolute;
    inset: 0 0 auto 0;
    height: var(--fill, 0%);
    border-radius: 3px;
    background: linear-gradient(180deg, #d4a574, #9bb0c4, #e8a05c, #4ac8c8, #c9a0dc);
    transition: height .6s var(--nx-ease);
}

.nx-layers { display: grid; gap: 14px; }

.nx-layer {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 26px 26px;
    border-radius: 20px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid color-mix(in srgb, var(--l1) 35%, transparent);
    box-shadow: 0 20px 50px -24px var(--l2);
}

.nx-layer canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    image-rendering: pixelated;
}

.nx-layer::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(7, 8, 12, .88) 0%, rgba(7, 8, 12, .6) 55%, rgba(7, 8, 12, .2) 100%);
}

.nx-layer-idx {
    font-family: var(--nx-display);
    font-weight: 800;
    font-size: 34px;
    color: var(--l1);
    text-shadow: 0 0 20px var(--l2);
    min-width: 44px;
}

.nx-layer h4 {
    font-family: var(--nx-display);
    font-size: 20px;
    font-weight: 700;
}

.nx-layer p { font-size: 14px; color: rgba(255, 255, 255, .72); margin-top: 4px; }

.nx-layer-meta { text-align: right; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: rgba(255, 255, 255, .65); }

.nx-layer-meta b {
    display: block;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 15px;
    color: var(--l1);
}

.nx-keycap {
    display: inline-grid;
    place-items: center;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    margin: 0 4px;
    vertical-align: -7px;
    border-radius: 8px;
    font: 800 14px var(--nx-display);
    color: #fff !important;
    background: linear-gradient(180deg, #2a2d38, #16181f);
    border: 1px solid color-mix(in srgb, var(--acc) 70%, transparent);
    box-shadow: 0 3px 0 color-mix(in srgb, var(--acc) 55%, #000), 0 0 14px -2px var(--acc);
    animation: nx-key 2.4s ease-in-out infinite;
}

@keyframes nx-key {
    0%, 70%, 100% { transform: none; box-shadow: 0 3px 0 color-mix(in srgb, var(--acc) 55%, #000), 0 0 14px -2px var(--acc); }
    78% { transform: translateY(3px); box-shadow: 0 0 0 transparent, 0 0 24px var(--acc); }
}

/* ---------- "exclusive" badge (SuperMarket) ---------- */

.nx-exclusive {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 14px 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #1a1204;
    background: linear-gradient(110deg, #fcd34d 0%, #fff7d6 40%, #f59e0b 60%, #fcd34d 100%);
    background-size: 250% 100%;
    animation: nx-gradient-pan 3.2s linear infinite alternate;
    box-shadow: 0 0 30px rgba(245, 158, 11, .45);
}

.nx-exclusive svg { width: 16px; height: 16px; }

.nx-mode-wide .nx-mode-grid { grid-template-columns: 1fr; }

.nx-sm-grid {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.nx-sm-grid .nx-features { margin: 0; }

.nx-shots-4 {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 14px;
}

.nx-shots-4 > :first-child { grid-row: 1 / 3; aspect-ratio: auto; min-height: 100%; }
.nx-shots-4 > :nth-child(4) { grid-column: 2 / 4; }

/* ---------- cards (minigames, perks) ---------- */

.nx-cards {
    margin-top: clamp(40px, 5vw, 64px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.nx-card {
    --c: var(--acc);
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    isolation: isolate;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    background: #11131a;
    border: 1px solid rgba(255, 255, 255, .08);
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .35s var(--nx-ease), border-color .35s, box-shadow .35s;
    transform-style: preserve-3d;
}

.nx-card-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.nx-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--nx-ease); }

.nx-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(7, 8, 12, 0) 20%, rgba(7, 8, 12, .7) 55%, rgba(7, 8, 12, .96) 100%);
}

.nx-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(350px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 40%, transparent), transparent 50%);
    opacity: 0;
    transition: opacity .3s;
}

.nx-card:hover { border-color: color-mix(in srgb, var(--c) 70%, transparent); box-shadow: 0 30px 60px -20px color-mix(in srgb, var(--c) 55%, transparent); }
.nx-card:hover::after { opacity: 1; }
.nx-card:hover .nx-card-media img { transform: scale(1.08); }

.nx-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    background: color-mix(in srgb, var(--c) 85%, #000);
    box-shadow: 0 10px 26px -8px var(--c);
    transform: translateZ(40px);
}

.nx-card-icon svg { width: 22px; height: 22px; color: #fff; }

.nx-card h3 {
    font-family: var(--nx-display);
    font-size: 22px;
    font-weight: 800;
    transform: translateZ(30px);
}

.nx-card p {
    margin-top: 8px;
    font-size: 14.5px;
    color: rgba(255, 255, 255, .75);
    transform: translateZ(20px);
}

.nx-perks {
    margin-top: clamp(40px, 5vw, 64px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.nx-perk {
    position: relative;
    padding: 26px 24px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
    border: 1px solid var(--nx-line);
    overflow: hidden;
    transition: transform .35s var(--nx-ease), border-color .35s;
}

.nx-perk:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c, var(--acc)) 55%, transparent); }

.nx-perk::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -60px;
    top: -60px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--c, var(--acc)) 35%, transparent), transparent 70%);
    transition: transform .6s var(--nx-ease);
}

.nx-perk:hover::before { transform: scale(1.4); }

.nx-perk svg { width: 26px; height: 26px; color: var(--c, var(--acc-2)); position: relative; }

.nx-perk h4 { margin-top: 16px; font-size: 18px; font-weight: 800; position: relative; }

.nx-perk p { margin-top: 6px; font-size: 14.5px; color: var(--nx-muted); position: relative; }

/* ---------- promo ticket ---------- */

.nx-promo-wrap { display: flex; justify-content: center; margin-top: 50px; perspective: 1200px; }

.nx-ticket {
    --tc: #f59e0b;
    position: relative;
    width: min(860px, 100%);
    display: grid;
    grid-template-columns: 1fr auto;
    border-radius: 26px;
    overflow: hidden;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(245, 158, 11, .28), transparent 50%),
        radial-gradient(120% 140% at 100% 100%, rgba(236, 72, 153, .28), transparent 50%),
        linear-gradient(135deg, #1a1408, #150c18);
    border: 1px solid rgba(253, 230, 138, .3);
    box-shadow: 0 40px 100px -30px rgba(245, 158, 11, .5), inset 0 1px 0 rgba(255, 255, 255, .12);
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .4s var(--nx-ease);
    animation: nx-float 6s ease-in-out infinite;
}

@keyframes nx-float { 50% { translate: 0 -8px; } }

.nx-ticket::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%);
    transform: translateX(-100%);
    animation: nx-shine 5s ease-in-out infinite;
}

.nx-ticket-main { padding: clamp(26px, 4vw, 42px); min-width: 0; }

.nx-ticket-main small {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #fde68a;
}

.nx-ticket-code {
    margin-top: 10px;
    font-family: var(--nx-display);
    font-size: clamp(24px, 3.6vw, 46px);
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    background: linear-gradient(100deg, #fff7d6, #fcd34d 40%, #f9a8d4 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nx-ticket-main p { margin-top: 14px; color: rgba(255, 255, 255, .78); max-width: 420px; }

.nx-ticket-main .nx-hero-actions { margin-top: 22px; }

.nx-ticket-stub {
    position: relative;
    display: grid;
    place-items: center;
    padding: 24px clamp(22px, 3vw, 40px);
    border-left: 2px dashed rgba(253, 230, 138, .35);
    text-align: center;
}

.nx-ticket-stub::before,
.nx-ticket-stub::after {
    content: "";
    position: absolute;
    left: -15px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--nx-bg);
}

.nx-ticket-stub::before { top: -14px; }
.nx-ticket-stub::after { bottom: -14px; }

.nx-ticket-stub b {
    display: block;
    font-family: var(--nx-display);
    font-size: clamp(44px, 6vw, 76px);
    font-weight: 800;
    line-height: .9;
    color: #fcd34d;
    text-shadow: 0 0 40px rgba(245, 158, 11, .6);
}

.nx-ticket-stub span { font-size: 13px; font-weight: 800; letter-spacing: .2em; color: #fde68a; }

/* ---------- steps ---------- */

.nx-steps {
    margin-top: clamp(40px, 5vw, 64px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    counter-reset: step;
}

.nx-step {
    position: relative;
    padding: 28px 24px 26px;
    border-radius: 20px;
    background: var(--nx-card);
    border: 1px solid var(--nx-line);
}

.nx-step::before {
    counter-increment: step;
    content: "0" counter(step);
    display: block;
    font-family: var(--nx-display);
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--acc-2);
    margin-bottom: 18px;
}

.nx-step h4 { font-size: 18px; font-weight: 800; }
.nx-step p { margin-top: 6px; color: var(--nx-muted); font-size: 15px; }
.nx-step .nx-btn { margin-top: 16px; }

.nx-links {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nx-social { --c: #5865f2; }
.nx-social:hover { border-color: var(--c); box-shadow: 0 10px 30px -10px var(--c); }
.nx-social svg { color: var(--c); }

/* ---------- final ---------- */

.nx-final {
    position: relative;
    min-height: 90vh;
    display: grid;
    place-items: center;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.nx-final .nx-hero-media { inset: -10% 0; }

.nx-final .nx-shade {
    background:
        radial-gradient(ellipse at center, rgba(7, 8, 12, .35) 0%, rgba(7, 8, 12, .85) 75%),
        linear-gradient(180deg, var(--nx-bg) 0%, rgba(7, 8, 12, 0) 25%, rgba(7, 8, 12, 0) 75%, var(--nx-bg) 100%);
}

.nx-final h2 {
    font-family: var(--nx-display);
    font-size: clamp(40px, 8vw, 110px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
}

.nx-final p { margin: 18px auto 0; max-width: 560px; font-size: 18px; color: rgba(255, 255, 255, .8); }

.nx-final .nx-hero-actions { justify-content: center; }

.nx-footer {
    padding: 36px var(--nx-gutter) 48px;
    text-align: center;
    color: var(--nx-dim);
    font-size: 13px;
    border-top: 1px solid var(--nx-line);
}

.nx-footer a { color: var(--nx-muted); }
.nx-footer a:hover { color: #fff; }

/* ---------- gallery viewer ---------- */

.nx-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(3, 4, 7, .94);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}

.nx-lightbox.is-open { opacity: 1; visibility: visible; }

.nx-lb-top {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.nx-lb-title { flex: 1; display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.nx-lb-title b { font-family: var(--nx-display); font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-lb-title span { font: 600 14px 'JetBrains Mono', ui-monospace, monospace; color: var(--nx-muted); }

.nx-lb-btn {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    transition: background .2s, transform .2s;
}

.nx-lb-btn:hover { background: rgba(255, 255, 255, .18); transform: scale(1.06); }
.nx-lb-btn svg { width: 26px; height: 26px; }
.nx-lb-close { width: 46px; height: 46px; }

.nx-lb-nav { justify-self: center; }
.nx-lightbox.is-single .nx-lb-nav,
.nx-lightbox.is-single .nx-lb-thumbs { visibility: hidden; }

.nx-lb-stage {
    height: 100%;
    min-height: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.nx-lb-stage img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .7);
    cursor: pointer;
    user-select: none;
    -webkit-user-drag: none;
    opacity: 0;
    transition: opacity .28s ease, transform .35s var(--nx-ease);
}

.nx-lb-stage img.from-right { transform: translateX(40px); }
.nx-lb-stage img.from-left { transform: translateX(-40px); }
.nx-lb-stage img.is-fade { transform: scale(.96); }
.nx-lb-stage img.is-in { opacity: 1; transform: none; }
.nx-lightbox.is-single .nx-lb-stage img { cursor: default; }

.nx-lb-thumbs {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    padding: 4px;
    scrollbar-width: none;
}

.nx-lb-thumbs button {
    flex: none;
    width: 110px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    opacity: .45;
    outline: 2px solid transparent;
    outline-offset: 2px;
    transition: opacity .2s, outline-color .2s;
}

.nx-lb-thumbs button:hover { opacity: .8; }
.nx-lb-thumbs button.is-active { opacity: 1; outline-color: var(--nx-accent); }
.nx-lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 640px) {
    .nx-lightbox { grid-template-columns: minmax(0, 1fr); padding: 12px 8px; }
    .nx-lb-nav { display: none; }
    .nx-lb-stage { grid-column: 1; }
    .nx-lb-thumbs button { width: 76px; }
}

/* ---------- toast ---------- */

.nx-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 120;
    translate: -50% 20px;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14px;
    background: #10b981;
    color: #fff;
    box-shadow: 0 16px 40px -10px rgba(16, 185, 129, .7);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, translate .3s var(--nx-ease);
}

.nx-toast.is-shown { opacity: 1; translate: -50% 0; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
    .nx-cards { grid-template-columns: repeat(2, 1fr); }
    .nx-sm-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .nx-mode-grid,
    .nx-mode.is-flip .nx-mode-grid { grid-template-columns: 1fr; }
    .nx-mode.is-flip .nx-mode-copy { order: 0; }
    .nx-perks { grid-template-columns: 1fr 1fr; }
    .nx-steps { grid-template-columns: 1fr; }
    .nx-stats { grid-template-columns: 1fr 1fr; }
    .nx-stat:nth-child(3) { border-left: 0; }
    .nx-stat:nth-child(n + 3) { border-top: 1px solid var(--nx-line); }
    .nx-dots { display: none; }
    .nx-hero-fg { opacity: .35; right: -20%; }
    .nx-shots-4 { grid-template-columns: 1fr 1fr; }
    .nx-shots-4 > :first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
    .nx-shots-4 > :nth-child(4) { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .nx-brand small, .nx-topbar .nx-btn-ghost { display: none; }
    .nx-cards, .nx-perks, .nx-sm-grid { grid-template-columns: 1fr; }
    .nx-card { min-height: 300px; }
    .nx-depth { grid-template-columns: 1fr; }
    .nx-depth-gauge { position: relative; top: 0; display: none; }
    .nx-layer { grid-template-columns: auto 1fr; padding: 20px; }
    .nx-layer-meta { grid-column: 1 / -1; text-align: left; display: flex; gap: 16px; }
    .nx-ticket { grid-template-columns: 1fr; }
    .nx-ticket-stub { border-left: 0; border-top: 2px dashed rgba(253, 230, 138, .35); }
    .nx-ticket-stub::before, .nx-ticket-stub::after { left: auto; top: -15px; }
    .nx-ticket-stub::before { left: -14px; }
    .nx-ticket-stub::after { right: -14px; bottom: auto; }
    .nx-cd-cell { min-width: 0; flex: 1; padding: 10px 6px 8px; }
    .nx-mode-num { font-size: 110px; }
    .nx-btn { padding: 12px 18px; font-size: 14px; }
    .nx-shots { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    [data-reveal] { opacity: 1; transform: none; filter: none; clip-path: none; }
    .nx-split .nx-ch, .nx-intro-anim { opacity: 1; transform: none; filter: none; }
}

/* placeholder inside a card: keep the label clear of the card's own text */
.nx-card-media .nx-ph { justify-content: flex-start; padding-top: 34px; }

/* ---------- background video (hero) ----------
   Sits over the still image; fades in once it actually plays. Two copies
   cross-fade at the loop point so a short clip loops without a visible jump. */
.nx-hero-media { overflow: hidden; }
.nx-hero-media > img { position: absolute; inset: 0; }

.nx-hero-media > .nx-bg-video {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .9s ease;
}

.nx-hero-media > .nx-bg-video.is-on { opacity: 1; }

/* no Ken Burns zoom when the hero is a video (and keep the still under it unzoomed too,
   so the fade-in from the picture to the video doesn't jump) */
.nx-hero-media > .nx-bg-video,
.nx-hero-media:has(.nx-bg-video) > img {
    animation: none;
    transform: none;
}

/* =========================================================
   News list page (/news/)
   ========================================================= */

.nx-list-hero {
    position: relative;
    min-height: 46vh;
    display: flex;
    align-items: flex-end;
    padding: 130px 0 56px;
    overflow: hidden;
    isolation: isolate;
}

.nx-list-hero .nx-hero-title { font-size: clamp(42px, 7vw, 96px); margin-top: 14px; }

.nx-list { padding-top: 24px; padding-bottom: clamp(70px, 9vw, 120px); }

.nx-anim-in {
    opacity: 0;
    transform: translateY(26px);
    animation: nx-fade-up .9s var(--nx-ease) forwards;
    animation-delay: var(--d, .15s);
}

/* with "reduce motion" on (Windows: animation effects off) animations are disabled,
   so the card must not rely on its fade-in to become visible */
@media (prefers-reduced-motion: reduce) {
    .nx-anim-in { opacity: 1; transform: none; }
}

.nx-list-feature {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 14%, #0d0f16), #0b0c12);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 40px 90px -40px color-mix(in srgb, var(--acc) 70%, transparent);
    transition: border-color .35s, box-shadow .35s, transform .35s var(--nx-ease);
}

.nx-list-feature:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--acc) 60%, transparent);
    box-shadow: 0 50px 110px -40px color-mix(in srgb, var(--acc) 90%, transparent);
}

.nx-list-feature-media { position: relative; min-height: 380px; overflow: hidden; }

.nx-list-feature-media img,
.nx-list-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--nx-ease);
}

.nx-list-feature-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 55%, color-mix(in srgb, var(--acc) 10%, #0c0d14) 100%);
}

.nx-list-feature:hover .nx-list-feature-media img,
.nx-list-card:hover .nx-list-card-media img { transform: scale(1.06); }

.nx-list-feature-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: clamp(26px, 4vw, 48px);
}

.nx-list-feature-body .nx-kicker { margin: 0; }

.nx-list-feature-body h2 {
    font-family: var(--nx-display);
    font-size: clamp(22px, 2.3vw, 32px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.01em;
    text-wrap: balance;
    overflow-wrap: break-word;
    hyphens: auto;
}

.nx-list-feature-body p { color: rgba(255, 255, 255, .75); font-size: 16.5px; }

.nx-list-feature-body .nx-btn { align-self: flex-start; margin-top: 6px; }

.nx-list-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.nx-list-grid:empty { display: none; }

.nx-list-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    background: var(--nx-card);
    border: 1px solid var(--nx-line);
    transition: transform .35s var(--nx-ease), border-color .35s;
}

.nx-list-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--acc) 55%, transparent); }

.nx-list-card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }

.nx-list-card-body { padding: 20px 20px 22px; }

.nx-list-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--nx-muted);
}

.nx-list-meta span { color: color-mix(in srgb, var(--acc) 70%, #fff); }

.nx-list-card h3 { margin-top: 10px; font-size: 19px; font-weight: 800; line-height: 1.25; }
.nx-list-card p { margin-top: 8px; font-size: 14.5px; color: var(--nx-muted); }

.nx-list-empty { padding: 60px 0; text-align: center; color: var(--nx-muted); }

@media (max-width: 900px) {
    .nx-list-feature { grid-template-columns: 1fr; }
    .nx-list-feature-media { min-height: 0; aspect-ratio: 16 / 9; }
    .nx-list-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .nx-list-grid { grid-template-columns: 1fr; }
}

/* ---------- phones ---------- */
@media (max-width: 640px) {
    /* top bar: brand + language + icon-only copy button */
    .nx-topbar { gap: 10px; }
    .nx-topbar .nx-btn-primary code { display: none; }
    .nx-topbar .nx-btn-primary { padding: 9px 11px; }

    /* long words (e.g. «відкривається») must fit one line at 320–430px */
    .nx-hero-title { font-size: clamp(26px, 8.6vw, 44px); }
    .nx-list-hero .nx-hero-title { font-size: clamp(34px, 11vw, 52px); }
    .nx-hero-inner { padding-top: 110px; }
    .nx-mode-name { font-size: clamp(30px, 10vw, 44px); }
    .nx-h2 { font-size: clamp(26px, 8vw, 38px); }
    .nx-final h2 { font-size: clamp(34px, 11vw, 56px); }
}

/* ---------- page-to-page transition (site ⇄ /news/), mirrors site-fx.css ---------- */
@view-transition { navigation: auto; }

.nx-brand img { view-transition-name: sfx-logo; }

::view-transition-old(root) { animation: nx-vt-out .35s ease both; }
::view-transition-new(root) { animation: nx-vt-in .5s cubic-bezier(.2, .8, .2, 1) both; }
::view-transition-group(sfx-logo) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }

@keyframes nx-vt-out { to { opacity: 0; transform: scale(.985); } }
@keyframes nx-vt-in { from { opacity: 0; transform: scale(1.015); } }

@supports not (view-transition-name: a) {
    body { animation: nx-vt-in .45s ease both; }
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
