/* ============================================================
   GTA6MOD — Guide landing (local prototype)
   Dark neon editorial guide, built on the site's palette.
   ============================================================ */

:root {
    color-scheme: dark;
    --bg: #070709;
    --bg-soft: #0b0b10;
    --panel: #101016;
    --panel-2: #0c0c12;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.2);
    --text: #f4f4f7;
    --muted: #9b9ba7;
    --muted-2: #6f6f7c;
    --pink: #ff006e;
    --cyan: #00f5ff;
    --purple: #9d4edd;
    --gold: #ffb703;
    --wrap: 1240px;
    --gut: clamp(18px, 4vw, 48px);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --font-display: "Anton", "Archivo Black", Impact, "Arial Narrow", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 128px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* clip, не hidden: hidden превращает body в scroll-контейнер и ломает
       position: sticky у панели содержания. clip обрезает так же, но sticky живёт. */
    overflow-x: hidden;
    overflow-x: clip;
}

/* fixed world background: Vice City skyline at night */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(6, 6, 9, 0.58) 0%, rgba(6, 6, 9, 0.76) 30%, rgba(6, 6, 9, 0.86) 66%, rgba(6, 6, 9, 0.93) 100%),
        radial-gradient(58% 40% at 82% 4%, rgba(0, 245, 255, 0.13), transparent 62%),
        radial-gradient(50% 42% at 8% 18%, rgba(255, 0, 110, 0.14), transparent 64%),
        url("../images/gallery_69d4262f34c82.webp") center 32% / cover no-repeat;
}

/* film grain */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

::selection { background: var(--pink); color: #fff; }

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.005em;
    line-height: 0.95;
}

p { margin: 0; }

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--pink);
    color: #fff;
    padding: 12px 18px;
    border-radius: 0 0 8px 0;
    font-weight: 600;
}
.skip-link:focus { left: 0; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gut);
}

/* ---------- progress + header ---------- */

.progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    z-index: 130;
    background: linear-gradient(90deg, var(--pink), var(--purple), var(--cyan));
    box-shadow: 0 0 14px rgba(255, 0, 110, 0.65);
}

.top {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 62px;
    padding: 12px var(--gut);
    background: linear-gradient(180deg, rgba(7, 7, 9, 0.8), rgba(7, 7, 9, 0));
    border-bottom: 1px solid transparent;
    transition: background 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
}

.top.is-stuck {
    padding-block: 9px;
    background: rgba(7, 7, 9, 0.9);
    border-bottom-color: var(--line);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.brand {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}
.brand span { color: var(--pink); }

.top-nav {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.8vw, 26px);
    margin-left: auto;
}
.top-nav a {
    position: relative;
    font-size: 0.74rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--muted);
    padding-block: 6px;
    transition: color 0.3s ease;
}
.top-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--pink), var(--cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}
.top-nav a:hover { color: #fff; }
.top-nav a:hover::after { transform: scaleX(1); }

.top-cta {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    text-decoration: none;
    background:
        linear-gradient(rgba(12, 12, 18, 0.92), rgba(12, 12, 18, 0.92)) padding-box,
        linear-gradient(120deg, rgba(255, 255, 255, 0.35), rgba(255, 0, 110, 0.55), rgba(0, 245, 255, 0.35)) border-box;
    transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.top-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.32) 48%, transparent 62%);
    transform: translateX(-130%);
    transition: transform 0.8s var(--ease);
}
.top-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -14px rgba(255, 0, 110, 0.8); }
.top-cta:hover::before { transform: translateX(130%); }

/* ---------- hero ---------- */

/* Hero = the first screen. The key art covers it edge to edge (no empty
   fields, no letterbox), the copy sits in the middle-left over a dark scrim,
   and a hairline strip with chips closes the fold. */
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background: #08080b;
    border-bottom: 1px solid var(--line);
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    line-height: 0;
}
.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 34%;
    display: block;
    transform: scale(1.03) translate3d(var(--px, 0px), var(--py, 0px), 0);
    transition: transform 1.1s var(--ease);
}

.hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(56% 46% at 84% 10%, rgba(0, 245, 255, 0.12), transparent 64%),
        radial-gradient(46% 40% at 4% 90%, rgba(255, 0, 110, 0.2), transparent 66%),
        linear-gradient(92deg, rgba(6, 6, 9, 0.95) 0%, rgba(6, 6, 9, 0.87) 26%, rgba(6, 6, 9, 0.52) 48%, rgba(6, 6, 9, 0.12) 70%, transparent 86%),
        linear-gradient(180deg, rgba(6, 6, 9, 0.62) 0%, rgba(6, 6, 9, 0) 24%, rgba(6, 6, 9, 0) 56%, rgba(6, 6, 9, 0.86) 100%);
}

.hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-rows: 1fr auto;
    width: 100%;
    padding-top: calc(62px + clamp(26px, 5vh, 56px));
    padding-bottom: clamp(18px, 2.6vh, 30px);
}

.hero__copy {
    align-self: center;
    max-width: min(720px, 60vw);
    padding-right: 24px;
}

/* vertical editorial marker on the right edge (desktop only) */
.hero__rail {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    writing-mode: vertical-rl;
    font-size: 0.56rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    pointer-events: none;
}
.hero__rail span { color: rgba(255, 255, 255, 0.38); }
.hero__rail b {
    font-weight: 500;
    letter-spacing: 0.24em;
    color: rgba(255, 255, 255, 0.72);
}

.hero__foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding-top: clamp(12px, 1.6vh, 18px);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero__cue {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.3s ease;
}
.hero__cue i {
    position: relative;
    width: 46px;
    height: 1px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.26);
}
.hero__cue i::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--pink), var(--cyan));
    transform: translateX(-100%);
    animation: cueRun 2.6s var(--ease) infinite;
}
.hero__cue:hover { color: #fff; }

@keyframes cueRun {
    0% { transform: translateX(-100%); }
    60%, 100% { transform: translateX(100%); }
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 13px 6px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(10, 10, 14, 0.55);
    backdrop-filter: blur(8px);
    font-size: 0.66rem;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: #dcdce4;
}
.kicker i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 0 4px rgba(255, 0, 110, 0.18);
    animation: pulse 2.4s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(255, 0, 110, 0.16); }
    50% { box-shadow: 0 0 0 9px rgba(255, 0, 110, 0); }
}

.hero h1 {
    margin: clamp(14px, 1.8vw, 22px) 0 0;
    font-size: clamp(3.2rem, 9vw, 7.6rem);
    line-height: 0.86;
    letter-spacing: -0.015em;
}
.hero h1 .outline {
    display: block;
    margin-top: 0.06em;
    font-size: 0.66em;
    color: transparent;
    -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.5);
}
.hero h1 .accent {
    background: linear-gradient(92deg, #fff 10%, var(--pink) 52%, var(--purple) 88%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lead {
    max-width: 60ch;
    margin-top: clamp(12px, 1.6vw, 18px);
    font-size: clamp(0.95rem, 1.1vw, 1.06rem);
    line-height: 1.62;
    color: #d2d2dc;
    text-wrap: pretty;
}
.hero__lead strong { color: #fff; font-weight: 600; }

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: clamp(18px, 2.2vw, 26px);
}

.hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ---------- buttons ---------- */

.btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    background:
        linear-gradient(rgba(12, 12, 18, 0.92), rgba(12, 12, 18, 0.92)) padding-box,
        linear-gradient(120deg, rgba(255, 255, 255, 0.42), rgba(255, 0, 110, 0.58), rgba(0, 245, 255, 0.42)) border-box;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 10px 26px -24px rgba(0, 0, 0, 1);
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.4s var(--ease), box-shadow 0.4s ease, border-color 0.3s ease, color 0.3s ease;
}
.btn svg {
    position: relative;
    z-index: 2;
    width: 14px;
    height: 14px;
    flex: none;
}
.btn > * { position: relative; z-index: 2; }

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(115deg, transparent 24%, rgba(255, 255, 255, 0.34) 47%, transparent 62%);
    transform: translateX(-135%);
    transition: transform 0.85s var(--ease);
    pointer-events: none;
}
.btn:hover::before { transform: translateX(135%); }

.btn:hover {
    transform: translateY(-2px);
    border-color: transparent;
    box-shadow: 0 16px 38px -24px rgba(255, 0, 110, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.btn--primary {
    color: #fff;
    border-color: transparent;
    background-image: linear-gradient(100deg, #ff006e 0%, #ff2f8c 42%, #a13ee0 78%, #00c8d7 130%);
    background-size: 210% 100%;
    box-shadow:
        0 14px 38px -18px rgba(255, 0, 110, 0.95),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    animation: btnFlow 9s ease-in-out infinite;
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 20px 48px -18px rgba(255, 0, 110, 1),
        inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.btn--ghost {
    color: #fff;
    border-color: transparent;
    background:
        linear-gradient(rgba(12, 12, 18, 0.78), rgba(12, 12, 18, 0.78)) padding-box,
        linear-gradient(120deg, rgba(255, 255, 255, 0.4), rgba(255, 0, 110, 0.55), rgba(0, 245, 255, 0.4)) border-box;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -22px rgba(0, 245, 255, 0.9);
}

.btn--cyan {
    color: #032027;
    background-image: linear-gradient(100deg, #00d7e6 0%, #00f5ff 48%, #8fe9ff 100%);
    background-size: 180% 100%;
    box-shadow:
        0 14px 38px -20px rgba(0, 245, 255, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn--cyan:hover { transform: translateY(-2px); box-shadow: 0 20px 46px -20px rgba(0, 245, 255, 1); }

.btn--sm {
    min-height: 38px;
    padding: 9px 16px;
    font-size: 0.66rem;
    letter-spacing: 0.11em;
}

@keyframes btnFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* hero quick links: frosted tiles with a hairline accent instead of pills */
.hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hchip {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 128px;
    padding: 11px 16px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 13px;
    background: linear-gradient(180deg, rgba(16, 16, 24, 0.62), rgba(8, 8, 12, 0.46));
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    backdrop-filter: blur(14px) saturate(1.15);
    text-decoration: none;
    transition: transform 0.4s var(--ease), border-color 0.3s ease, box-shadow 0.4s ease, background 0.3s ease;
}

.hchip__val {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 0.92;
    letter-spacing: 0.01em;
    background: linear-gradient(180deg, #ffffff 12%, rgba(255, 255, 255, 0.62) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;
    transition: background-image 0.3s ease;
}
.hchip--pink .hchip__val { background-image: linear-gradient(180deg, #ffffff 10%, #ff8fbd 100%); }
.hchip--cyan .hchip__val { background-image: linear-gradient(180deg, #ffffff 10%, #7ef0fb 100%); }

.hchip__label {
    font-size: 0.56rem;
    line-height: 1.25;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.hchip > * { position: relative; z-index: 2; }

.hchip::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.16) 48%, transparent 64%);
    transform: translateX(-140%);
    transition: transform 0.85s var(--ease);
    pointer-events: none;
}

.hchip::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--pink), var(--cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease);
}

.hchip:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(180deg, rgba(24, 21, 31, 0.78), rgba(10, 10, 16, 0.6));
    box-shadow: 0 20px 36px -24px rgba(0, 0, 0, 0.9);
}
.hchip:hover::before { transform: translateX(140%); }
.hchip:hover::after { transform: scaleX(1); }
.hchip:hover .hchip__label { color: rgba(255, 255, 255, 0.82); }

.hchip--pink:hover { border-color: rgba(255, 0, 110, 0.55); box-shadow: 0 20px 38px -22px rgba(255, 0, 110, 0.95); }
.hchip--pink:hover .hchip__val { background-image: linear-gradient(180deg, #ffffff 6%, #ff006e 100%); }
.hchip--cyan:hover { border-color: rgba(0, 245, 255, 0.5); box-shadow: 0 20px 38px -22px rgba(0, 245, 255, 0.8); }
.hchip--cyan:hover .hchip__val { background-image: linear-gradient(180deg, #ffffff 6%, #00e6f2 100%); }
.hchip:hover .hchip__val { background-image: linear-gradient(180deg, #ffffff 4%, rgba(255, 255, 255, 0.82) 100%); }

/* ---------- contents bar ---------- */

.contents {
    position: sticky;
    top: 62px;
    z-index: 110;
    border-block: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(10, 10, 14, 0.94), rgba(8, 8, 12, 0.88));
    backdrop-filter: blur(16px) saturate(1.12);
    -webkit-backdrop-filter: blur(16px) saturate(1.12);
    box-shadow: 0 22px 44px -34px #000;
}
.contents::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 52px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(8, 8, 12, 0), rgba(8, 8, 12, 0.94));
}
.contents__inner {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    padding: 10px 0 12px;
}
.contents__inner::-webkit-scrollbar { display: none; }
.contents__label {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 5px;
    padding-right: 15px;
    border-right: 1px solid var(--line);
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted-2);
}
.contents__label::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.9);
}

.contents__link {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    flex: none;
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px 9px 12px;
    min-height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(24, 24, 33, 0.68), rgba(10, 10, 15, 0.58));
    font-size: 0.67rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    color: #d2d2dc;
    transition: transform 0.35s var(--ease), color 0.25s ease, border-color 0.25s ease, box-shadow 0.35s ease, background 0.25s ease;
}
.contents__link span { position: relative; z-index: 2; }
.contents__link > b {
    position: relative;
    z-index: 2;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 0.68rem;
    line-height: 1;
    color: var(--pink);
    opacity: 0.85;
    transition: color 0.25s ease, opacity 0.25s ease;
}
.contents__link::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.22) 48%, transparent 64%);
    transform: translateX(-135%);
    transition: transform 0.7s var(--ease);
    pointer-events: none;
}
.contents__link:hover {
    color: #fff;
    border-color: rgba(255, 0, 110, 0.42);
    background: linear-gradient(180deg, rgba(34, 26, 38, 0.82), rgba(14, 12, 18, 0.72));
    transform: translateY(-1px);
    box-shadow: 0 12px 26px -20px rgba(255, 0, 110, 0.9);
}
.contents__link:hover::before { transform: translateX(135%); }
.contents__link:hover > b { color: #ff4d94; opacity: 1; }

.contents__link.is-active {
    color: #fff;
    border-color: transparent;
    background:
        linear-gradient(180deg, rgba(42, 20, 34, 0.88), rgba(16, 10, 18, 0.8)) padding-box,
        linear-gradient(120deg, rgba(255, 255, 255, 0.52), rgba(255, 0, 110, 0.85), rgba(0, 245, 255, 0.62)) border-box;
    box-shadow:
        0 0 0 1px rgba(255, 0, 110, 0.12),
        0 14px 30px -22px rgba(255, 0, 110, 1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.contents__link.is-active > b { color: #fff; opacity: 1; }
.contents__link.is-active::before { transform: translateX(135%); transition: none; }

.contents__progress {
    position: absolute;
    left: 0;
    bottom: -1px;
    z-index: 3;
    display: block;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--pink), var(--cyan));
    box-shadow: 0 0 12px rgba(255, 0, 110, 0.65);
    pointer-events: none;
}

/* ---------- sections ---------- */

.section {
    position: relative;
    padding: clamp(38px, 4.6vw, 62px) 0;
}
.section--stats { padding-top: clamp(28px, 3.4vw, 42px); }

.sec-head {
    display: flex;
    align-items: flex-start;
    gap: clamp(12px, 1.6vw, 20px);
    margin-bottom: clamp(18px, 2.2vw, 28px);
}
.sec-head--inline {
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}
.sec-num {
    flex: none;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    line-height: 0.75;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.32);
    padding-top: 3px;
}
.sec-head h2 { font-size: clamp(1.6rem, 3.1vw, 2.5rem); }
.sec-head p {
    margin-top: 8px;
    max-width: 72ch;
    color: var(--muted);
    font-size: clamp(0.88rem, 0.98vw, 0.96rem);
    line-height: 1.62;
    text-wrap: pretty;
}
.sec-note {
    flex: none;
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
    padding-bottom: 4px;
}

/* ---------- stats ---------- */

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    background: rgba(8, 8, 12, 0.42);
}
.stat {
    position: relative;
    overflow: hidden;
    padding: clamp(14px, 1.8vw, 22px) clamp(12px, 1.6vw, 18px);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.stat::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--pink), transparent 65%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.stat:hover::after { opacity: 1; }
.stat__value {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    line-height: 0.9;
    display: flex;
    align-items: baseline;
    gap: 5px;
}
.stat__value small {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--muted-2);
}
.stat__label {
    margin-top: 5px;
    font-size: 0.68rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------- cards ---------- */

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(18, 18, 26, 0.92) 0%, rgba(11, 11, 17, 0.94) 100%);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.45s var(--ease), border-color 0.35s ease, box-shadow 0.45s ease;
}
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 0, 110, 0.13), transparent 68%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.22); box-shadow: 0 24px 56px -36px rgba(0, 0, 0, 1); }
.card:hover::before { opacity: 1; }

.card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #14141b;
}
.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.94) brightness(0.94);
    transition: transform 0.7s var(--ease), filter 0.45s ease;
}
.card:hover .card__media img { transform: scale(1.05); filter: saturate(1.08) brightness(1); }
.card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 14, 0.66) 100%);
}

.card__badge {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(7, 7, 9, 0.74);
    border: 1px solid var(--line);
    backdrop-filter: blur(6px);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d8d8e2;
}
.card__badge--pink { border-color: rgba(255, 0, 110, 0.45); color: #ffc8db; }
.card__badge--cyan { border-color: rgba(0, 245, 255, 0.4); color: #c4fbff; }

.card__body {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 13px 15px 15px;
    flex: 1;
}
.card__body h3 {
    font-size: clamp(0.98rem, 1.2vw, 1.14rem);
    line-height: 1.08;
    letter-spacing: 0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card__text {
    font-size: 0.83rem;
    line-height: 1.55;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card__points {
    list-style: none;
    margin: 1px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.card__points li {
    position: relative;
    padding-left: 13px;
    font-size: 0.74rem;
    line-height: 1.4;
    color: #8e8e9a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card__points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.58em;
    width: 6px;
    height: 1px;
    background: var(--pink);
}

.card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.card__open {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
    transition: color 0.3s ease;
}
.card:hover .card__open { color: #fff; }
.card__arrow {
    flex: none;
    width: 24px;
    height: 24px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s var(--ease);
}
.card__arrow svg { width: 10px; height: 10px; }
.card:hover .card__arrow { background: var(--pink); border-color: var(--pink); transform: translateX(2px); }

/* ---------- featured layout ---------- */

.feat {
    display: grid;
    grid-template-columns: 1.22fr 0.78fr;
    gap: clamp(10px, 1.4vw, 16px);
    align-items: stretch;
}

.card--lead .card__media { aspect-ratio: 16 / 8.4; }
.card--lead .card__body { padding: 16px 18px 17px; gap: 8px; }
.card--lead .card__body h3 { font-size: clamp(1.25rem, 1.9vw, 1.72rem); -webkit-line-clamp: 3; }
.card--lead .card__text { -webkit-line-clamp: 3; font-size: 0.88rem; }
.card--lead .card__points li { font-size: 0.78rem; }

.feat__stack {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1vw, 12px);
}

.rowcard {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(14, 14, 20, 0.86);
    text-decoration: none;
    color: inherit;
    flex: 1;
    transition: transform 0.35s var(--ease), border-color 0.3s ease, background 0.3s ease;
}
.rowcard:hover { transform: translateX(3px); border-color: rgba(255, 255, 255, 0.22); background: rgba(18, 18, 26, 0.92); }
.rowcard__thumb {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: #14141b;
}
.rowcard__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.rowcard:hover .rowcard__thumb img { transform: scale(1.06); }
.rowcard__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rowcard__badge {
    font-size: 0.56rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
}
.rowcard__badge--pink { color: #ff9ec4; }
.rowcard__badge--cyan { color: #8ce8ef; }
.rowcard__title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    line-height: 1.08;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rowcard__more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-2);
}
.rowcard__more svg { width: 9px; height: 9px; }
.rowcard:hover .rowcard__more { color: var(--pink); }

/* ---------- chapter rail ---------- */

.rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 1fr);
    gap: clamp(10px, 1.2vw, 14px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.rail::-webkit-scrollbar { height: 5px; }
.rail::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border-radius: 99px; }
.rail > * { scroll-snap-align: start; }

@media (min-width: 900px) {
    .rail {
        grid-auto-flow: row;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        overflow: visible;
        padding-bottom: 0;
    }
}

.chapter .card__media { aspect-ratio: 16 / 10; }
.chapter .card__media::before {
    content: attr(data-num);
    position: absolute;
    right: 8px;
    bottom: 0;
    z-index: 2;
    font-family: var(--font-display);
    font-size: 2.2rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.24);
}
.chapter .card__body { padding: 11px 13px 13px; }
.chapter .card__body h3 { font-size: 0.94rem; }
.chapter .card__foot { padding-top: 7px; }

.actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}
.actions-note {
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-left: auto;
}

/* ---------- map band ---------- */

.band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: clamp(320px, 38vw, 430px);
    display: flex;
    align-items: center;
    border-block: 1px solid var(--line);
    background-image: var(--band);
    background-size: cover;
    background-position: center 56%;
}
.band__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(6, 6, 9, 0.96) 0%, rgba(6, 6, 9, 0.86) 42%, rgba(6, 6, 9, 0.42) 100%),
        radial-gradient(60% 60% at 78% 100%, rgba(255, 0, 110, 0.25), transparent 65%),
        linear-gradient(180deg, rgba(6, 6, 9, 0.25), rgba(6, 6, 9, 0.6));
}
.band__inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    padding-block: clamp(30px, 4vw, 48px);
}
.band__kicker {
    display: inline-block;
    font-size: 0.64rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #ffb3ce;
    margin-bottom: 10px;
}
.band h2 { font-size: clamp(1.9rem, 4.4vw, 3.4rem); line-height: 0.95; }
.band p {
    margin: 12px 0 20px;
    max-width: 52ch;
    color: #d3d3dd;
    font-size: 0.92rem;
    line-height: 1.62;
}
.band__facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(4px);
}
.band__facts li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 18px;
    background: rgba(10, 10, 15, 0.72);
}
.band__facts b {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    line-height: 1;
}
.band__facts span { font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------- world split ---------- */

.split {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: clamp(20px, 3.4vw, 44px);
    align-items: start;
}
.split__aside { position: sticky; top: 108px; }
.split__aside h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.split__aside > p { margin-top: 10px; color: var(--muted); line-height: 1.66; font-size: 0.92rem; }

.facts { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 0; }
.facts li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-top: 1px solid var(--line);
    font-size: 0.84rem;
    color: var(--muted);
}
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts b {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.05rem;
    color: #fff;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.facts span { text-align: right; }

.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(10px, 1.2vw, 14px);
}
.mini-grid .card__media { aspect-ratio: 16 / 9; }
.mini-grid .card__body { padding: 11px 13px 13px; }
.mini-grid .card__body h3 { font-size: 0.94rem; }
.mini-grid .card__text { -webkit-line-clamp: 2; font-size: 0.79rem; }

/* ---------- dossier ---------- */

.dossier {
    margin-top: clamp(28px, 3.4vw, 44px);
    border-top: 1px solid var(--line);
}
.dossier__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}
.dossier__title {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted-2);
    line-height: 1.4;
}
.dossier__note {
    flex: none;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-2);
}
.dossier__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(26px, 4vw, 56px);
    margin: 0;
    padding: 0;
}
.dossier__row {
    padding: 13px 0 14px;
    border-bottom: 1px solid var(--line);
}
.dossier__row dt {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-family: var(--font-display);
    font-size: clamp(0.92rem, 1.1vw, 1.02rem);
    text-transform: uppercase;
    line-height: 1.12;
    color: #fff;
}
.dossier__num {
    flex: none;
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--pink);
}
.dossier__row dd {
    margin: 5px 0 0;
    padding-left: 32px;
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--muted);
    text-wrap: pretty;
}

/* ---------- fact lines ---------- */

.factline {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 14px;
    padding: 0;
    border-block: 1px solid var(--line);
}
.factline li {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 16px 8px 0;
    margin-right: 16px;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-2);
    border-right: 1px solid var(--line);
}
.factline li:last-child { border-right: 0; }
.factline b {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    color: #fff;
}

/* ---------- generic grids ---------- */

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(10px, 1.3vw, 16px);
}

.wide-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(10px, 1.4vw, 16px);
}
.wide-two .card__media { aspect-ratio: 16 / 8; }
.wide-two .card__body h3 { font-size: clamp(1.1rem, 1.7vw, 1.5rem); -webkit-line-clamp: 2; }

.section--finale {
    background:
        radial-gradient(45% 65% at 50% 0%, rgba(255, 0, 110, 0.08), transparent 70%),
        rgba(7, 7, 10, 0.55);
    border-block: 1px solid var(--line);
}
.spoiler-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 16px;
    padding: 9px 14px;
    border: 1px dashed rgba(255, 0, 110, 0.36);
    border-radius: 8px;
    background: rgba(255, 0, 110, 0.06);
    font-size: 0.78rem;
    color: #ffc6da;
    max-width: 820px;
}
.spoiler-note b { color: #fff; }

/* ---------- feed ---------- */

.feed { border-top: 1px solid var(--line); }
.feed--two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(18px, 3vw, 38px); }
.feed__row {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 11px 2px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
    transition: background 0.3s ease, padding-left 0.35s var(--ease);
}
.feed__row:hover { background: rgba(255, 255, 255, 0.03); padding-left: 8px; }
.feed__date { font-size: 0.64rem; letter-spacing: 0.06em; color: var(--muted-2); white-space: nowrap; }
.feed__title {
    font-family: var(--font-display);
    font-size: clamp(0.86rem, 1.25vw, 1.02rem);
    text-transform: uppercase;
    line-height: 1.14;
}
.feed__row:hover .feed__title { color: #fff; }
.feed__tag { font-size: 0.56rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted-2); white-space: nowrap; }

/* ---------- CTA ---------- */

.section--cta { padding-bottom: clamp(30px, 4vw, 52px); }
.cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--line);
    padding: clamp(30px, 5vw, 58px);
    text-align: center;
    background: #0d0d13;
}
.cta__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center 42%;
    opacity: 0.42;
    filter: saturate(1.05);
}
.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 90% at 50% 120%, rgba(255, 0, 110, 0.3), transparent 70%),
        linear-gradient(180deg, rgba(7, 7, 9, 0.72), rgba(7, 7, 9, 0.94));
}
.cta h2 { font-size: clamp(1.8rem, 4.4vw, 3.3rem); line-height: 0.94; }
.cta p { margin: 12px auto 0; max-width: 54ch; color: #cfcfd9; font-size: 0.92rem; }
.cta .hero__actions { justify-content: center; margin-top: 20px; }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line); padding: clamp(32px, 5vw, 54px) 0 22px; background: rgba(6, 6, 9, 0.72); }
.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: clamp(22px, 3.4vw, 42px);
}
.footer__brand p { margin-top: 10px; color: var(--muted); font-size: 0.84rem; max-width: 36ch; line-height: 1.6; }
.footer h3 {
    font-size: 0.64rem;
    letter-spacing: 0.18em;
    color: var(--muted-2);
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 11px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer a { text-decoration: none; color: #b6b6c1; font-size: 0.82rem; transition: color 0.25s ease; }
.footer a:hover { color: #fff; }
.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: clamp(24px, 3.4vw, 38px);
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 0.66rem;
    letter-spacing: 0.05em;
    color: var(--muted-2);
}

.db-error { color: var(--muted); }

/* ---------- reveal ---------- */

.reveal {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

.reveal-line {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s var(--ease);
}
.reveal-line.is-in { transform: scaleX(1); }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
    .feat { grid-template-columns: 1fr 0.85fr; }
    .split { grid-template-columns: 1fr; }
    .split__aside { position: static; }
    .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; }
    .footer__brand { grid-column: span 3; }
    .band__inner { grid-template-columns: 1.1fr 0.9fr; }
}

@media (max-width: 900px) {
    .top-nav { display: none; }
    .contents { top: 62px; }

    /* hero: full-bleed art on every screen, copy anchored to the bottom */
    .hero { min-height: 100vh; min-height: 100svh; }
    .hero__media img { object-position: 54% 26%; }
    .hero__scrim {
        background:
            linear-gradient(180deg, rgba(6, 6, 9, 0.66) 0%, rgba(6, 6, 9, 0.28) 14%, rgba(6, 6, 9, 0.1) 30%, rgba(6, 6, 9, 0.46) 46%, rgba(6, 6, 9, 0.86) 62%, rgba(6, 6, 9, 0.97) 82%, #070709 100%);
    }
    .hero__grid { padding-top: calc(62px + 16px); padding-bottom: 16px; }
    .hero__copy { align-self: end; max-width: none; padding-right: 0; }
    .hero__rail { display: none; }
    .hero__foot { padding-top: 12px; }
    .hero__chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .hchip { min-width: 0; padding: 9px 13px 10px; border-radius: 12px; }
    .hchip__val { font-size: 1.22rem; }
    .hchip__label { font-size: 0.52rem; letter-spacing: 0.12em; }
    .hero__cue { display: none; }

    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feat { grid-template-columns: 1fr; }
    .feat__stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rowcard { flex: none; }
    .wide-two { grid-template-columns: 1fr; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .band__inner { grid-template-columns: 1fr; gap: 20px; }
    .band__facts { max-width: 420px; }
    .feed--two { grid-template-columns: 1fr; }
    .actions-note { margin-left: 0; width: 100%; }
}

@media (max-width: 680px) {
    html { scroll-padding-top: 132px; }
    .sec-head { display: block; }
    .sec-num { display: block; margin-bottom: 8px; padding-top: 0; font-size: 1.4rem; }
    .sec-head--inline { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
    .sec-head--inline .btn { align-self: flex-start; }
    .contents__label { display: none; }
    .contents__link { min-height: 40px; }
    .top { padding-block: 10px; }
    .top-cta { min-height: 40px; }
    .footer a { display: inline-block; padding-block: 4px; }
    .contents__inner { gap: 6px; padding: 8px 0 10px; }
    .contents__link { padding: 7px 12px 8px 10px; font-size: 0.62rem; letter-spacing: 0.08em; }
    .contents__link > b { font-size: 0.62rem; }
    .section { padding-block: 34px; }
    .hero h1 { font-size: clamp(3rem, 15vw, 5.4rem); }
    .hero__lead { font-size: 0.94rem; }
    .btn { min-height: 44px; padding: 11px 18px; font-size: 0.68rem; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feat__stack { grid-template-columns: 1fr; }
    .mini-grid { grid-template-columns: 1fr; }
    .grid { grid-template-columns: 1fr; }

    /* compact horizontal cards for long lists */
    .grid > .card,
    .mini-grid > .card { flex-direction: row; align-items: stretch; }
    .grid > .card .card__media,
    .mini-grid > .card .card__media { flex: 0 0 42%; aspect-ratio: auto; min-height: 148px; }
    .grid > .card .card__media img,
    .mini-grid > .card .card__media img { position: absolute; inset: 0; }
    .grid > .card .card__media::after,
    .mini-grid > .card .card__media::after { background: linear-gradient(90deg, transparent 55%, rgba(10, 10, 14, 0.55) 100%); }
    .grid > .card .card__body,
    .mini-grid > .card .card__body { padding: 11px 12px 12px; }
    .grid > .card .card__points,
    .mini-grid > .card .card__points { display: none; }

    .dossier__list { grid-template-columns: 1fr; }
    .dossier__head { flex-direction: column; gap: 3px; align-items: flex-start; }
    .dossier__row dd { padding-left: 30px; }
    .band__facts li { padding: 12px 14px; }
    .feed__row { grid-template-columns: 1fr auto; }
    .feed__date { grid-column: span 2; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__brand { grid-column: span 2; }
    .factline li { padding-right: 12px; margin-right: 12px; }
}

/* Very small phones (iPhone SE 1st gen, 320px): keep the hero in one screen. */
@media (max-width: 360px) {
    .kicker { gap: 7px; padding: 5px 10px 5px 8px; font-size: 0.55rem; letter-spacing: 0.1em; }
    .hero__grid { padding-top: calc(62px + 12px); padding-bottom: 14px; }
    .hero__lead { font-size: 0.9rem; line-height: 1.55; }
    .hero__actions { gap: 8px; margin-top: 14px; }
    .hero__actions .btn { min-height: 42px; padding: 10px 12px; font-size: 0.6rem; letter-spacing: 0.05em; }
    .hero__foot { padding-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .hero__media img { transform: none; }
    .btn::before,
    .top-cta::before { display: none; }
}

/* Shared site footer (includes/site_footer.php): the landing's global h1-h4
   rule uses the condensed display font, so restore the site's body typeface
   for the footer column headings. */
.site-footer .footer-section h3,
.site-footer .footer-group h3 {
    font-family: var(--font-body);
    letter-spacing: 0.14em;
    line-height: 1.3;
}

/* Shared site header (includes/site_header.php) is fixed. Keep the sticky
   contents bar and hero copy below it, and preserve anchor offsets. The value
   is refined from the real header height by landing.js. */
:root { --site-header-h: 76px; }

@media (max-width: 1200px) { :root { --site-header-h: 70px; } }
@media (max-width: 960px)  { :root { --site-header-h: 67px; } }
@media (max-width: 768px)  { :root { --site-header-h: 67px; } }

html { scroll-padding-top: calc(var(--site-header-h) + 66px); }
.progress { z-index: 1001; }
.contents { top: var(--site-header-h); }
.hero__grid { padding-top: calc(var(--site-header-h) + clamp(26px, 5vh, 56px)); }

@media (max-width: 900px) {
    .contents { top: var(--site-header-h); }
    .hero__grid { padding-top: calc(var(--site-header-h) + 16px); }
}

@media (max-width: 680px) {
    html { scroll-padding-top: calc(var(--site-header-h) + 65px); }
}

@media (max-width: 360px) {
    .hero__grid { padding-top: calc(var(--site-header-h) + 12px); }
}