/* ============================================================================
   Labocine — HOMEPAGE, rebuilt 2026-07 as the flagship of the black-theme OTT
   revamp. Everything is scoped under `.hx` (fresh class names — the legacy
   `.home__*` classes in styles.css are NOT reused, so nothing leaks either way).
   The generative Three.js hero lives in /assets/js/home-hero.js; when WebGL /
   module scripts are unavailable the `.hx-hero__aurora` CSS fallback paints the
   backdrop instead.
   ============================================================================ */

.hx {
    --hx-bg: #07070a;
    --hx-surface: #131318;
    --hx-surface-2: #1b1b22;
    --hx-surface-3: #26262e;
    --hx-border: rgba(255, 255, 255, 0.1);
    --hx-border-strong: rgba(255, 255, 255, 0.2);
    --hx-text: #f3f3f5;
    --hx-muted: #b9b9c4;
    --hx-muted-2: #8b8b96;
    --hx-red: #f40000;
    --hx-red-hover: #ff2b2b;
    --hx-green: #34e08a;
    --hx-radius: 16px;
    --hx-radius-sm: 11px;
    --hx-maxw: 1800px;
    --hx-nav-h: 56px;

    background: var(--hx-bg);
    color: var(--hx-text);
    font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

html.hx-page, body.hx-page { background: #07070a; }
body.hx-page footer { color: #6f6f78; text-align: center; background: #07070a; }

.hx *, .hx *::before, .hx *::after { box-sizing: border-box; }
.hx a { color: inherit; text-decoration: none; }
.hx h1, .hx h2, .hx h3, .hx h4, .hx strong { color: inherit; }
.hx img { max-width: 100%; }

.hx__container { width: 100%; max-width: var(--hx-maxw); margin: 0 auto; padding: 0 clamp(18px, 2.6vw, 44px); }

/* breakout: wider than the container — edge-to-edge minus a slim gutter */
.hx-breakout { width: calc(100vw - 32px); margin-left: calc(50% - 50vw + 16px); }

/* Glassy top nav once the user scrolls past the hero (class set by page JS). */
body.hx-nav-glass .topbar {
    background: rgba(7, 7, 10, 0.78) !important;
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    backdrop-filter: blur(14px) saturate(130%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease;
}

/* ============================================================ HERO */
.hx-hero {
    position: relative;
    z-index: 40;   /* the open search panel must paint over later sections (topbar is z:200) */
    min-height: 100vh;
    min-height: 100svh;
    display: flex; align-items: center; justify-content: center;
    /* NO overflow:hidden here — a long search panel extends past the hero;
       the bg layers are clipped by .hx-hero__bg instead */
}
.hx-hero__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
#hx-canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    display: block; opacity: 0; transition: opacity 1.6s ease 0.2s;
}
html.hx-webgl #hx-canvas { opacity: 1; }

/* CSS aurora fallback — always painted, sits UNDER the canvas so it also acts
   as the pre-WebGL loading backdrop */
.hx-hero__aurora {
    position: absolute; inset: -12%;
    background:
        radial-gradient(38% 46% at 24% 34%, rgba(244, 0, 0, 0.16), transparent 70%),
        radial-gradient(30% 42% at 76% 26%, rgba(90, 96, 112, 0.24), transparent 70%),
        radial-gradient(46% 52% at 60% 78%, rgba(52, 224, 138, 0.07), transparent 72%);
    filter: blur(30px);
    animation: hx-aurora 26s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes hx-aurora {
    from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
    to { transform: translate3d(1.5%, 1.5%, 0) scale(1.06); }
}
.hx-hero::after { /* bottom scrim into the page */
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
    background: linear-gradient(180deg, transparent, var(--hx-bg) 92%);
    pointer-events: none;
}
.hx-hero__grain { /* faint film grain */
    position: absolute; inset: 0; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
    background-image: repeating-conic-gradient(rgba(255,255,255,0.6) 0% 0.0001%, transparent 0.0002% 0.0004%);
    background-size: 7px 7px;
}

.hx-hero__content { position: relative; z-index: 2; width: 100%; max-width: 980px; padding: 110px 28px 90px; text-align: center; }
/* readability plate: a soft dark clearing in the particle field behind the copy —
   the structures wrap around the content instead of fighting it */
.hx-hero__content::before {
    content: ""; position: absolute; inset: -30px -70px; z-index: -1; border-radius: 40px;
    background: radial-gradient(ellipse 60% 56% at 50% 46%, rgba(7, 7, 10, 0.92), rgba(7, 7, 10, 0.62) 55%, transparent 78%);
    pointer-events: none;
}
.hx-hero__title { text-shadow: 0 2px 34px rgba(0, 0, 0, 0.85); }
.hx-hero__tag { text-shadow: 0 1px 16px rgba(0, 0, 0, 0.95); }

.hx-hero__eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase;
    color: var(--hx-muted); margin: 0 0 26px; font-weight: 600;
}
.hx-hero__eyebrow::before, .hx-hero__eyebrow::after {
    content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--hx-border-strong));
}
.hx-hero__eyebrow::after { transform: scaleX(-1); }

.hx-hero__title {
    margin: 0; font-weight: 900; line-height: 1.02; letter-spacing: -0.015em;
    font-size: clamp(2.4rem, 7vw, 5.2rem); text-transform: uppercase; color: #fff;
}
.hx-hero__title .hx-w { display: inline-block; opacity: 0; transform: translateY(0.55em) rotate(1.5deg); animation: hx-word 0.9s cubic-bezier(0.2, 0.75, 0.2, 1) forwards; }
.hx-hero__title .hx-w:nth-child(1) { animation-delay: 0.10s; }
.hx-hero__title .hx-w:nth-child(2) { animation-delay: 0.18s; }
.hx-hero__title .hx-w:nth-child(3) { animation-delay: 0.26s; }
.hx-hero__title .hx-w:nth-child(4) { animation-delay: 0.38s; }
.hx-hero__title .hx-w:nth-child(5) { animation-delay: 0.47s; }
.hx-hero__title .hx-w:nth-child(6) { animation-delay: 0.56s; }
@keyframes hx-word { to { opacity: 1; transform: none; } }
.hx-hero__title .hx-red { color: var(--hx-red); text-shadow: 0 0 42px rgba(244, 0, 0, 0.4); }
.hx-hero__title a:hover .hx-red, .hx-hero__title a:hover { color: var(--hx-red-hover); }

.hx-hero__tag {
    margin: 22px auto 0; max-width: 620px; color: var(--hx-muted);
    font-size: clamp(0.98rem, 1.6vw, 1.12rem); line-height: 1.6;
    opacity: 0; animation: hx-fade 1s ease 0.75s forwards;
}
@keyframes hx-fade { to { opacity: 1; } }

/* ---------------- universal search ---------------- */
.hx-search { position: relative; z-index: 10; max-width: 640px; margin: 34px auto 0; opacity: 0; animation: hx-fade 0.9s ease 0.95s forwards; }
.hx-search--open { z-index: 80; }
.hx-search__bar {
    display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 20px;
    background: rgba(19, 19, 24, 0.66);
    border: 1px solid var(--hx-border-strong); border-radius: 999px;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.hx-search__bar:focus-within {
    border-color: rgba(244, 0, 0, 0.75);
    box-shadow: 0 0 0 4px rgba(244, 0, 0, 0.14), 0 18px 48px -18px rgba(0, 0, 0, 0.9);
    background: rgba(19, 19, 24, 0.9);
}
.hx-search__ic { flex: none; width: 21px; height: 21px; color: var(--hx-muted-2); transition: color 0.2s ease; }
.hx-search__bar:focus-within .hx-search__ic { color: var(--hx-red-hover); }
.hx-search__input { flex: 1 1 auto; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--hx-text); font-family: inherit; font-size: 1.05rem; }
.hx-search__input::placeholder { color: var(--hx-muted-2); }
.hx-search__kbd { flex: none; font-size: 0.7rem; color: var(--hx-muted-2); border: 1px solid var(--hx-border); border-radius: 6px; padding: 3px 7px; letter-spacing: 0.06em; }
/* in-flight: the kbd hint becomes a spinning electron orbit */
.hx-search__spin { flex: none; width: 20px; height: 20px; display: none; position: relative; }
.hx-search__spin::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid rgba(244, 0, 0, 0.2); border-top-color: var(--hx-red-hover);
    animation: hx-spin 0.7s linear infinite;
}
.hx-search__spin::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px;
    border-radius: 50%; background: var(--hx-red-hover);
}
@keyframes hx-spin { to { transform: rotate(360deg); } }
.hx-search--loading .hx-search__kbd { display: none; }
.hx-search--loading .hx-search__spin { display: block; }
/* skeleton rows shown the instant you type (no dead air) */
.hx-search__skel { display: flex; align-items: center; gap: 13px; padding: 8px 12px; }
.hx-search__skel i, .hx-search__skel b, .hx-search__skel s {
    display: block; position: relative; overflow: hidden; border-radius: 7px;
    background: rgba(255, 255, 255, 0.06); text-decoration: none;
}
.hx-search__skel i { flex: none; width: 74px; aspect-ratio: 16 / 9; }
.hx-search__skel b { width: 46%; height: 11px; margin-bottom: 7px; }
.hx-search__skel s { width: 28%; height: 9px; }
.hx-search__skel i::after, .hx-search__skel b::after, .hx-search__skel s::after {
    content: ""; position: absolute; inset: 0; transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
    animation: hx-shimmer 1.15s infinite;
}
@keyframes hx-shimmer { 100% { transform: translateX(100%); } }

.hx-search__panel {
    position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 60;
    max-height: min(560px, 62vh); overflow-y: auto; text-align: left;
    background: rgba(15, 15, 19, 0.97);
    border: 1px solid var(--hx-border-strong); border-radius: 18px;
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    box-shadow: 0 34px 90px -20px rgba(0, 0, 0, 0.95);
    display: none;
}
.hx-search--open .hx-search__panel { display: block; animation: hx-panel 0.22s cubic-bezier(0.2, 0.8, 0.3, 1); }
@keyframes hx-panel { from { opacity: 0; transform: translateY(-6px); } }
.hx-search__group { padding: 12px 10px 4px; }
.hx-search__label { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--hx-muted-2); padding: 4px 12px 7px; font-weight: 700; }
.hx-search__item {
    display: flex; align-items: center; gap: 13px; padding: 8px 12px; border-radius: 12px; cursor: pointer;
}
.hx-search__item:hover, .hx-search__item.is-active { background: rgba(255, 255, 255, 0.07); }
.hx-search__thumb { flex: none; width: 74px; aspect-ratio: 16 / 9; border-radius: 7px; background-size: cover; background-position: center; background-color: var(--hx-surface-2); }
.hx-search__meta { display: block; min-width: 0; flex: 1 1 auto; }
.hx-search__t { display: block; font-size: 0.95rem; font-weight: 600; color: var(--hx-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-search__s { display: block; font-size: 0.78rem; color: var(--hx-muted-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-search__empty { padding: 26px 18px; color: var(--hx-muted-2); font-size: 0.92rem; text-align: center; }
/* proactive quota hint under the bar (free members; mirrors the /search badge) */
.hx-search__hint {
    display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
    margin-top: 12px; font-size: 0.82rem; color: var(--hx-muted-2);
}
.hx-search__hint b { color: var(--hx-red-hover); font-weight: 800; }
.hx-search__hint-cta { color: var(--hx-muted); text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s ease; }
.hx-search__hint-cta:hover { color: #fff; }
.hx-search__hint--limit {
    display: inline-flex; margin: 12px auto 0; padding: 8px 18px; border-radius: 999px;
    background: rgba(244, 0, 0, 0.1); border: 1px solid rgba(244, 0, 0, 0.4); color: #ffb4b4;
}
.hx-search__hint--limit .hx-search__hint-cta { color: #fff; font-weight: 700; }
.hx-search { text-align: center; }

/* membership gate (login / free-limit) shown inside the results panel */
.hx-search__gate { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 32px 22px 30px; }
.hx-search__gate-ic {
    width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(244, 0, 0, 0.1); border: 1px solid rgba(244, 0, 0, 0.35); color: var(--hx-red-hover);
    margin-bottom: 15px;
}
.hx-search__gate-ic svg { width: 24px; height: 24px; }
.hx-search__gate-t { margin: 0; font-size: 1.08rem; font-weight: 800; color: #fff; }
.hx-search__gate-s { margin: 8px 0 0; font-size: 0.9rem; line-height: 1.55; color: var(--hx-muted); max-width: 400px; }
.hx-search__gate-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.hx-search__gate-ctas .hx-btn { height: 44px; padding: 0 22px; font-size: 0.92rem; }
.hx-search__quota { color: var(--hx-muted-2); }
.hx-search__quota b { color: var(--hx-red-hover); font-weight: 700; }
.hx-search__quota a { color: var(--hx-muted); text-decoration: underline; }
.hx-search__quota a:hover { color: #fff; }
.hx-search__foot { position: sticky; bottom: 0; padding: 9px 18px; font-size: 0.75rem; color: var(--hx-muted-2); border-top: 1px solid var(--hx-border); background: rgba(15, 15, 19, 0.97); border-radius: 0 0 18px 18px; }
.hx-search__foot b { color: var(--hx-muted); font-weight: 600; }

/* hero CTAs */
.hx-hero__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; opacity: 0; animation: hx-fade 0.9s ease 1.15s forwards; }
.hx-btn {
    position: relative; display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 28px;
    border-radius: 999px; border: 1px solid var(--hx-border-strong);
    background: var(--hx-surface-2); color: var(--hx-text);
    font-size: 0.98rem; font-weight: 700; cursor: pointer; white-space: nowrap;
    transition: transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}
.hx-btn:hover { transform: translateY(-2px); background: var(--hx-surface-3); }
.hx-btn:active { transform: translateY(0) scale(0.97); transition-duration: 0.07s; }
.hx-btn--red { background: var(--hx-red); border-color: var(--hx-red); color: #fff; box-shadow: 0 14px 34px -14px rgba(244, 0, 0, 0.65); }
.hx-btn--red:hover { background: var(--hx-red-hover); border-color: var(--hx-red-hover); box-shadow: 0 18px 42px -14px rgba(244, 0, 0, 0.8); }
.hx-btn--ghost { background: transparent; }
.hx-btn--ghost:hover { background: rgba(255, 255, 255, 0.06); }

/* live now chip in hero */
.hx-hero__live-row { text-align: center; }
.hx-hero__live {
    display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px;
    padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(244, 0, 0, 0.45);
    background: rgba(244, 0, 0, 0.1); color: #ffb4b4; font-size: 0.8rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    opacity: 0; animation: hx-fade 0.8s ease 0.05s forwards;
    transition: background 0.2s ease;
}
.hx-hero__live:hover { background: rgba(244, 0, 0, 0.2); }
.hx-hero__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--hx-red); animation: hx-pulse 1.6s ease infinite; }
@keyframes hx-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(244, 0, 0, 0.6); } 60% { box-shadow: 0 0 0 8px rgba(244, 0, 0, 0); } }

.hx-hero__cue {
    position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 1;
    transition: opacity 0.25s ease;
    width: 26px; height: 42px; border: 2px solid var(--hx-border-strong); border-radius: 16px;
    opacity: 0; animation: hx-fade 1s ease 1.7s forwards;
}
.hx-hero__cue::before {
    content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
    border-radius: 4px; background: var(--hx-muted); animation: hx-cue 1.8s ease infinite;
}
@keyframes hx-cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
.hx-hero--searching .hx-hero__cue { opacity: 0 !important; animation: none; }

/* ============================================================ SECTIONS */
.hx-section { margin-top: 74px; }
.hx-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.hx-eyebrow { display: block; font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--hx-red-hover); font-weight: 700; margin-bottom: 8px; }
.hx-eyebrow--green { color: var(--hx-green); }
.hx-title { margin: 0; font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -0.01em; color: #fff; }
.hx-more { flex: none; font-size: 0.85rem; font-weight: 600; color: var(--hx-muted); border-bottom: 1px solid transparent; transition: color 0.2s ease, border-color 0.2s ease; white-space: nowrap; }
.hx-more:hover { color: #fff; border-color: var(--hx-border-strong); }

/* ---------------- scroll choreography ----------------
   Sections are observed (.hx-reveal). Children carrying [data-hx-anim] start
   displaced in different directions and "assemble" into place with per-element
   delays (--hx-d) once the section enters the viewport — the puzzle coming
   together. The section itself only fades (children do the movement). */
.hx-reveal { opacity: 0.001; transition: opacity 0.5s ease; }
.hx-reveal.is-in { opacity: 1; }
.hx-reveal [data-hx-anim] {
    opacity: 0;
    transition: opacity 0.75s ease var(--hx-d, 0s), transform 0.85s cubic-bezier(0.16, 0.8, 0.26, 1) var(--hx-d, 0s);
    will-change: transform, opacity;
}
.hx-reveal [data-hx-anim="up"] { transform: translateY(46px); }
.hx-reveal [data-hx-anim="left"] { transform: translateX(-56px) rotate(-1.6deg); }
.hx-reveal [data-hx-anim="right"] { transform: translateX(56px) rotate(1.6deg); }
.hx-reveal [data-hx-anim="pop"] { transform: scale(0.86); transition-timing-function: ease, cubic-bezier(0.34, 1.45, 0.5, 1); }
.hx-reveal [data-hx-anim="rise"] { transform: translateY(70px) scale(0.965); }
/* "web": elements fly forward OUT of the habitat network — deep in 3D space,
   blurred and dim, then zoom to their place as the constellation wires up */
.hx-reveal [data-hx-anim="web"] {
    transform: translateZ(-640px) translateY(46px) rotateX(20deg);
    filter: blur(9px);
    transition: opacity 0.9s ease var(--hx-d, 0s), transform 1.1s cubic-bezier(0.16, 0.8, 0.26, 1) var(--hx-d, 0s), filter 0.9s ease var(--hx-d, 0s);
}
.hx-reveal.is-in [data-hx-anim] { opacity: 1; transform: none; }
.hx-reveal.is-in [data-hx-anim="web"] { filter: none; }
/* per-sibling assembly stagger */
.hx-mosaic .hx-card:nth-child(2) { --hx-d: 0.14s; }
.hx-mosaic .hx-card:nth-child(3) { --hx-d: 0.28s; }
.hx-mosaic .hx-card:nth-child(4) { --hx-d: 0.42s; }
.hx-mosaic .hx-card:nth-child(n+5) { --hx-d: 0.52s; }
.hx-habitat__grid .hx-hab { --hx-d: 0.3s; }
.hx-habitat__grid .hx-hab:nth-child(2) { --hx-d: 0.55s; }
.hx-habitat__grid .hx-hab:nth-child(3) { --hx-d: 0.8s; }
.hx-habitat__grid .hx-hab:nth-child(n+4) { --hx-d: 1s; }
.hx-tiles > *:nth-child(2) { --hx-d: 0.16s; }
.hx-section__head .hx-more { --hx-d: 0.2s; }

/* ============================================================ SELECTION MOSAIC
   A curated few (3-4 films) deserves a composed cinematic mosaic, not a rail:
   the first film is the 2x2 hero, the rest tile beside/beneath it. */
.hx-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 215px; gap: 16px; }
.hx-mosaic > * { min-width: 0; }
.hx-mosaic .hx-card { width: auto; flex: none; grid-column: span 2; }
.hx-mosaic .hx-card:first-child { grid-row: span 2; }
.hx-mosaic .hx-card__img { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.hx-mosaic .hx-card:first-child .hx-card__t { font-size: 1.45rem; }
.hx-mosaic .hx-card:first-child .hx-card__body { padding: 20px 22px; }
@media (max-width: 900px) {
    .hx-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
    .hx-mosaic .hx-card { grid-column: span 2; }
    .hx-mosaic .hx-card:first-child { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 540px) {
    .hx-mosaic { grid-template-columns: 1fr; grid-auto-rows: 190px; }
    .hx-mosaic .hx-card, .hx-mosaic .hx-card:first-child { grid-column: span 1; grid-row: span 1; }
    .hx-mosaic .hx-card:first-child { grid-row: span 2; }
}
/* Mosaic cards are LARGE — info reveals INSIDE the card (no floating popover,
   which would be smaller than the card itself). The scrim deepens and the
   details rise up from the bottom edge. */
.hx-mosaic .hx-pop { display: none; }
.hx-card__more { max-height: 0; opacity: 0; overflow: hidden; transform: translateY(14px); transition: max-height 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hx-mosaic .hx-card:hover .hx-card__more, .hx-mosaic .hx-card:focus-within .hx-card__more { max-height: 260px; opacity: 1; transform: none; }
.hx-card__more .hx-pop__row { margin: 10px 0 8px; }
.hx-card__desc { margin: 0; font-size: 0.86rem; line-height: 1.55; color: #c7c7d1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hx-mosaic .hx-card:not(:first-child) .hx-card__desc { -webkit-line-clamp: 2; }
.hx-card__more .hx-pop__cta { margin-top: 12px; height: 36px; }
.hx-mosaic .hx-card:hover .hx-card__scrim { background: linear-gradient(180deg, transparent 18%, rgba(0, 0, 0, 0.94) 78%); }
.hx-card__scrim { transition: background 0.4s ease; }
/* ---------------- TOUCH: scroll-focus replaces hover ----------------
   No pointer to hover with, so the card crossing the viewport's centre band
   "comes alive" (class set by an IntersectionObserver): lift + red edge glow,
   play chip appears, mosaic cards unfold their info, tiles get a light sweep,
   habitat members glow green. */
@media (hover: none) {
    .hx-card.is-focus { transform: translateY(-3px) scale(1.012); box-shadow: 0 20px 44px -20px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(244, 0, 0, 0.28); }
    .hx-card.is-focus .hx-card__img { border-color: var(--hx-border-strong); }
    .hx-card.is-focus .hx-card__play { opacity: 1; transform: scale(1); }
    .hx-mosaic .hx-card.is-focus .hx-card__more { max-height: 260px; opacity: 1; transform: none; }
    .hx-mosaic .hx-card.is-focus .hx-card__scrim { background: linear-gradient(180deg, transparent 18%, rgba(0, 0, 0, 0.94) 78%); }
    .hx-tile.is-focus { box-shadow: 0 24px 60px -26px rgba(0, 0, 0, 0.95); }
    .hx-tile.is-focus .hx-tile__glare {
        opacity: 1;
        background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.13) 46%, transparent 62%);
        background-size: 260% 100%;
        animation: hx-glare-sweep 1.5s ease 0.15s both;
    }
    .hx-hab.is-focus { border-color: rgba(52, 224, 138, 0.55); background: rgba(52, 224, 138, 0.07); box-shadow: 0 22px 46px -22px rgba(52, 224, 138, 0.35); }
    .hx-hab.is-focus .hx-hab__ring { box-shadow: 0 0 0 2px var(--hx-green), 0 0 30px -4px rgba(52, 224, 138, 0.6); }
    .hx-hab.is-focus .hx-hab__go { opacity: 1; transform: none; }
}
@keyframes hx-glare-sweep { from { background-position: 135% 0; } to { background-position: -55% 0; } }

/* ============================================================ FILM RAIL (server-rendered selection) */
.hx-railwrap { position: relative; }
.hx-rail {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 6px 2px 18px; scrollbar-width: none; -ms-overflow-style: none;
}
.hx-rail::-webkit-scrollbar { display: none; }
.hx-rail > * { min-width: 0; }
.hx-railwrap::before, .hx-railwrap::after {
    content: ""; position: absolute; top: 0; bottom: 18px; width: 54px; z-index: 2; pointer-events: none;
    opacity: 0; transition: opacity 0.25s ease;
}
.hx-railwrap::before { left: -2px; background: linear-gradient(90deg, var(--hx-bg), transparent); }
.hx-railwrap::after { right: -2px; background: linear-gradient(-90deg, var(--hx-bg), transparent); }
.hx-railwrap.can-left::before { opacity: 1; }
.hx-railwrap.can-right::after { opacity: 1; }
.hx-rail__btn {
    position: absolute; top: 50%; transform: translateY(-60%); z-index: 3;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hx-border-strong);
    background: rgba(12, 12, 16, 0.82); color: #fff; cursor: pointer;
    display: grid; place-items: center;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    opacity: 0; transition: opacity 0.22s ease, background 0.2s ease, transform 0.2s ease;
}
.hx-railwrap:hover .hx-rail__btn { opacity: 1; }
.hx-rail__btn:hover { background: var(--hx-red); border-color: var(--hx-red); }
.hx-rail__btn svg { width: 17px; height: 17px; }
.hx-rail__btn--l { left: -8px; }
.hx-rail__btn--r { right: -8px; }

.hx-card {
    position: relative; flex: 0 0 auto; width: min(340px, 74vw); scroll-snap-align: start;
    border-radius: var(--hx-radius-sm); overflow: visible; background: transparent;
    z-index: 1;
    transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.32s ease;
}
.hx-card:hover { transform: translateY(-5px) scale(1.015); box-shadow: 0 26px 54px -22px rgba(0, 0, 0, 0.95); z-index: 80; }
/* single-owner stacking: JS moves .is-top to the card under the pointer, so the
   previously hovered card can NEVER tie with (and out-paint) the expanding one */
.hx-card.is-top { z-index: 95; }
.hx-card__img {
    aspect-ratio: 16 / 9; background-size: cover; background-position: center; background-color: var(--hx-surface-2);
    border-radius: var(--hx-radius-sm); border: 1px solid var(--hx-border);
    transition: border-color 0.25s ease;
}
.hx-card:hover .hx-card__img { border-color: var(--hx-border-strong); }
.hx-card__scrim { position: absolute; inset: 0; border-radius: var(--hx-radius-sm); background: linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.86)); }
.hx-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; }
.hx-card__t { margin: 0; font-size: 1.02rem; font-weight: 700; color: #fff; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hx-card__by { margin: 4px 0 0; font-size: 0.8rem; color: var(--hx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-card__play {
    position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%;
    background: rgba(244, 0, 0, 0.92); color: #fff; display: grid; place-items: center;
    opacity: 0; transform: scale(0.7); transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.hx-card__play svg { width: 15px; height: 15px; margin-left: 2px; }
.hx-card:hover .hx-card__play { opacity: 1; transform: scale(1); }

/* ---------------- expanding info POPOVER (every card: curated/featured/scenes/…) ----------------
   Prime-style: scales up from the card centre over its neighbours with a bigger
   still (shine sweep), kind badge, meta, synopsis and a Watch CTA. Hover-intent
   via transition delays; the card's z-index raise above has a delayed revert so
   the pop finishes collapsing before dropping behind neighbours. */
.hx-pop {
    position: absolute; left: 50%; top: 50%; width: min(132%, 430px); z-index: 5;
    --hx-pop-x: -50%;
    transform: translate(var(--hx-pop-x), -53%) scale(0.86); opacity: 0; visibility: hidden;
    border-radius: 16px; overflow: hidden; pointer-events: none;
    background: rgba(14, 14, 18, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 44px 110px -26px rgba(0, 0, 0, 0.98), 0 0 0 1px rgba(0, 0, 0, 0.4);
    transition: opacity 0.26s ease, transform 0.34s cubic-bezier(0.2, 0.9, 0.3, 1.05), visibility 0s linear 0.3s;
}
.hx-card:hover .hx-pop, .hx-card:focus-within .hx-pop {
    opacity: 1; visibility: visible; transform: translate(var(--hx-pop-x), -53%) scale(1); pointer-events: auto;
    transition: opacity 0.24s ease 0.16s, transform 0.36s cubic-bezier(0.2, 0.9, 0.3, 1.08) 0.16s, visibility 0s linear 0.16s;
}
/* edge cards anchor their pop INSIDE the rail's scrollport so it never clips:
   first card grows rightward from its left edge, last card grows leftward */
.hx-rail .hx-card:first-child .hx-pop { left: -4px; --hx-pop-x: 0%; transform-origin: 14% 50%; }
.hx-rail .hx-card:last-child .hx-pop { left: auto; right: -4px; --hx-pop-x: 0%; transform-origin: 86% 50%; }
.hx-pop__media { position: relative; aspect-ratio: 16 / 9; background-size: cover; background-position: center; background-color: var(--hx-surface-2); overflow: hidden; }
.hx-pop__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14, 14, 18, 0.95)); }
/* cinematic shine sweep when the pop opens */
.hx-pop__shine { position: absolute; top: 0; bottom: 0; left: -70%; width: 55%; transform: skewX(-18deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent); }
.hx-card:hover .hx-pop__shine { animation: hx-shine 0.9s ease 0.22s; }
@keyframes hx-shine { to { left: 130%; } }
.hx-pop__body { padding: 14px 18px 17px; margin-top: -26px; position: relative; }
.hx-pop__row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.hx-pop__badge {
    flex: none; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
    color: #fff; background: var(--hx-red); border-radius: 5px; padding: 3px 8px;
}
.hx-pop__badge--green { background: rgba(52, 224, 138, 0.9); color: #04231a; }
.hx-pop__meta { font-size: 0.78rem; color: var(--hx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-pop__t { margin: 0; font-size: 1.16rem; font-weight: 800; color: #fff; line-height: 1.22; }
.hx-pop__by { margin: 4px 0 0; font-size: 0.8rem; color: var(--hx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-pop__d { margin: 9px 0 0; font-size: 0.84rem; line-height: 1.55; color: #c7c7d1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hx-pop__cta {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 13px;
    height: 38px; padding: 0 18px; border-radius: 999px; background: var(--hx-red); color: #fff;
    font-size: 0.86rem; font-weight: 700;
    transition: background 0.18s ease, transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.hx-pop__cta svg { width: 13px; height: 13px; }
.hx-card:hover .hx-pop__cta:hover { background: var(--hx-red-hover); transform: translateY(-2px); }
/* touch devices: no hover — cards stay compact, pop never renders */
@media (hover: none) { .hx-pop { display: none; } }
/* rails are scroll containers → give the pop vertical breathing room inside the
   scrollport (negative margins keep the page rhythm identical) */
@media (hover: hover) {
    .hx-railwrap .hx-rail { padding: 130px 2px 150px; margin: -124px 0 -132px; }
    .hx-railwrap::before, .hx-railwrap::after { top: 124px; bottom: 132px; }
    .hx-mosaic .hx-card:first-child .hx-pop { width: min(108%, 470px); }
}

/* ============================================================ LAZY RAILS (fetch-built hx-cards, same rail as Our Selection) */
.hx-owlsec { margin-top: 74px; }
.hx-owlsec.hidden { display: none; }
/* cursor-tilt cards get GPU hints; JS applies the inline 3D transform */
.hx-card { will-change: transform; }
.hx-card__logo {
    position: absolute; top: 12px; left: 12px; width: 40px; height: 40px; border-radius: 50%;
    object-fit: cover; border: 2px solid rgba(255, 255, 255, 0.4); background: var(--hx-surface);
}

/* ============================================================ SPOTLIGHT CINE-CAROUSEL (custom, replaces slick) */
.hx-spotc { position: relative; border-radius: var(--hx-radius); overflow: hidden; min-height: clamp(320px, 42vw, 520px); border: 1px solid var(--hx-border); background: var(--hx-surface); }
.hx-spotc__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0s linear 0.9s; }
.hx-spotc__slide.is-on { opacity: 1; visibility: visible; transition: opacity 0.9s ease; z-index: 2; }
.hx-spotc__a { position: absolute; inset: 0; display: flex; align-items: flex-end; overflow: hidden; }
.hx-spotc__bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    transform: scale(1.001);
}
.hx-spotc__slide.is-on .hx-spotc__bg { animation: hx-kenburns 7s ease-out forwards; }
@keyframes hx-kenburns { from { transform: scale(1.001); } to { transform: scale(1.09); } }
.hx-spotc__a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 28%, rgba(0, 0, 0, 0.92)); }
.hx-spotc__body { position: relative; z-index: 2; padding: 36px 40px 42px; max-width: 860px; }
.hx-spotc__slide.is-on .hx-spotc__body > * { animation: hx-caption 0.8s cubic-bezier(0.2, 0.75, 0.2, 1) both; }
.hx-spotc__slide.is-on .hx-spotc__body > *:nth-child(2) { animation-delay: 0.12s; }
.hx-spotc__slide.is-on .hx-spotc__body > *:nth-child(3) { animation-delay: 0.22s; }
@keyframes hx-caption { from { opacity: 0; transform: translateY(18px); } }
.hx-spotc__t { margin: 0; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; font-size: clamp(1.5rem, 3.6vw, 2.7rem); color: #fff; line-height: 1.12; }
.hx-spotc__read { display: inline-block; margin-top: 14px; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--hx-muted); }
.hx-spotc__slide:hover .hx-spotc__read { color: #fff; }
.hx-spotc__nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--hx-border-strong);
    background: rgba(10, 10, 14, 0.66); color: #fff; cursor: pointer; display: grid; place-items: center;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    opacity: 0; transition: opacity 0.25s ease, background 0.2s ease;
}
.hx-spotc:hover .hx-spotc__nav, .hx-spotc__nav:focus-visible { opacity: 1; }
.hx-spotc__nav:hover { background: var(--hx-red); border-color: var(--hx-red); }
.hx-spotc__nav svg { width: 18px; height: 18px; }
.hx-spotc__nav--l { left: 18px; }
.hx-spotc__nav--r { right: 18px; }
.hx-spotc__dots { position: absolute; z-index: 5; left: 0; right: 0; bottom: 16px; display: flex; gap: 8px; justify-content: center; }
.hx-spotc__dot { width: 22px; height: 4px; border-radius: 4px; border: 0; padding: 0; background: rgba(255, 255, 255, 0.28); cursor: pointer; transition: background 0.25s ease, width 0.25s ease; }
.hx-spotc__dot.is-on { background: var(--hx-red); width: 34px; }

/* ============================================================ EVENT BANNER */
.hx-event {
    position: relative; display: block; border-radius: var(--hx-radius); overflow: hidden;
    min-height: clamp(240px, 34vw, 420px); background-size: cover; background-position: center;
    border: 1px solid var(--hx-border);
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}
.hx-event:hover { transform: translateY(-4px); box-shadow: 0 34px 70px -30px rgba(0, 0, 0, 0.95); }
.hx-event::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.25) 60%, transparent); }
.hx-event__body { position: absolute; z-index: 2; left: 0; bottom: 0; padding: 34px 38px; max-width: 640px; }
.hx-event__t { margin: 0 0 12px; font-size: clamp(1.4rem, 3.4vw, 2.4rem); font-weight: 800; color: #fff; line-height: 1.1; }
.hx-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); border: 1px solid var(--hx-border-strong); color: #fff; font-size: 0.82rem; font-weight: 600; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* ============================================================ ISSUE CINEMATIC
   Breakout-width living banner: the cover slowly drifts (Ken Burns), a light
   band sweeps across periodically, and the "current" dot pulses. */
.hx-issue {
    position: relative; border-radius: var(--hx-radius); overflow: hidden;
    min-height: clamp(380px, 52vw, 640px);
    border: 1px solid var(--hx-border);
    display: flex; align-items: flex-end;
}
.hx-issue__bg, .hx-issue video {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    background-size: cover; background-position: center;
    animation: hx-issue-kb 24s ease-in-out infinite alternate;
    will-change: transform;
}
@keyframes hx-issue-kb {
    from { transform: scale(1.001) translate3d(0, 0, 0); }
    to { transform: scale(1.09) translate3d(-1.2%, 1%, 0); }
}
.hx-issue::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 40%, rgba(0, 0, 0, 0.88) 96%); }
/* periodic cinematic light sweep */
.hx-issue__sweep {
    position: absolute; top: -10%; bottom: -10%; left: -35%; width: 26%; z-index: 1;
    transform: skewX(-16deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
    animation: hx-issue-sweep 9s ease-in-out infinite;
    pointer-events: none;
}
@keyframes hx-issue-sweep { 0%, 55% { left: -35%; } 90%, 100% { left: 125%; } }
.hx-issue__body { position: relative; z-index: 2; padding: 42px 46px; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.hx-issue__t { margin: 0; font-size: clamp(1.8rem, 4.8vw, 3.6rem); font-weight: 900; color: #fff; line-height: 1.05; letter-spacing: -0.01em; max-width: 760px; }
/* the eyebrow gets a live pulsing marker */
.hx-issue .hx-eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.hx-issue .hx-eyebrow::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hx-red);
    animation: hx-pulse 1.8s ease infinite;
}
/* gentle lift on hover */
.hx-issue { transition: box-shadow 0.35s ease; }
.hx-issue:hover { box-shadow: 0 38px 90px -34px rgba(0, 0, 0, 0.95); }

/* ============================================================ LIVE STRIP */
.hx-live {
    position: relative; display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
    border-radius: var(--hx-radius); overflow: hidden; padding: 30px 36px;
    background-size: cover; background-position: center; border: 1px solid rgba(244, 0, 0, 0.4);
}
.hx-live::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 4, 4, 0.94), rgba(10, 4, 4, 0.55)); }
.hx-live > * { position: relative; z-index: 2; }
.hx-live__badge { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: 0.18em; color: #fff; font-size: 0.86rem; }
.hx-live__badge i { width: 10px; height: 10px; border-radius: 50%; background: var(--hx-red); animation: hx-pulse 1.6s ease infinite; }
.hx-live__t { margin: 0; flex: 1 1 280px; min-width: 0; font-size: clamp(1.15rem, 2.6vw, 1.7rem); font-weight: 800; color: #fff; }

/* ============================================================ SOCIAL (self-contained — styles.css has NO .social-button rules) */
.hx-soc { display: flex; gap: 14px; justify-content: center; }
.hx-soc__b {
    position: relative; width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid var(--hx-border-strong); background: var(--hx-surface-2); color: var(--hx-muted);
    transition: transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1), color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}
.hx-soc__b svg { width: 19px; height: 19px; display: block; }
.hx-soc__b:hover { transform: translateY(-4px); color: #fff; }
.hx-soc__b:active { transform: translateY(-1px) scale(0.95); }
.hx-soc__b--fb:hover { border-color: #1877f2; box-shadow: 0 10px 26px -10px rgba(24, 119, 242, 0.65); }
.hx-soc__b--tw:hover { border-color: #1da1f2; box-shadow: 0 10px 26px -10px rgba(29, 161, 242, 0.65); }
.hx-soc__b--ig:hover { border-color: #e1306c; box-shadow: 0 10px 26px -10px rgba(225, 48, 108, 0.6); }
.hx-soc__b--mail:hover { border-color: var(--hx-red); box-shadow: 0 10px 26px -10px rgba(244, 0, 0, 0.6); }

/* ============================================================ HABITAT ECOSYSTEM (green) */
.hx-habitat {
    position: relative; border-radius: var(--hx-radius); overflow: hidden;
    border: 1px solid rgba(52, 224, 138, 0.24);
    background:
        radial-gradient(60% 90% at 12% 10%, rgba(52, 224, 138, 0.1), transparent 60%),
        radial-gradient(50% 80% at 88% 90%, rgba(52, 224, 138, 0.07), transparent 60%),
        #0a120d;
    padding: 48px 40px 44px;
    text-align: center;
}
/* generative member-network canvas (same organism as the habitat page hero) */
.hx-habnet { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.85; pointer-events: none; }
.hx-habitat > *:not(canvas) { position: relative; z-index: 2; }
.hx-habitat__sub { margin: 10px auto 0; max-width: 520px; color: #9fbfae; font-size: 0.95rem; line-height: 1.6; }
.hx-habitat__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-top: 32px; perspective: 1100px; }
.hx-hab {
    display: flex; flex-direction: column; align-items: center; gap: 0; padding: 26px 18px 22px;
    background: rgba(10, 20, 14, 0.55); border: 1px solid rgba(52, 224, 138, 0.16); border-radius: var(--hx-radius-sm);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.24s ease, box-shadow 0.3s ease, background 0.24s ease;
    min-width: 0;
}
.hx-hab:hover {
    transform: translateY(-5px);
    border-color: rgba(52, 224, 138, 0.55); background: rgba(52, 224, 138, 0.07);
    box-shadow: 0 22px 46px -22px rgba(52, 224, 138, 0.35);
}
.hx-hab__ring { position: relative; width: 84px; height: 84px; border-radius: 50%; padding: 4px; background: rgba(52, 224, 138, 0.1); box-shadow: 0 0 0 1px rgba(52, 224, 138, 0.35); transition: box-shadow 0.3s ease; }
.hx-hab:hover .hx-hab__ring { box-shadow: 0 0 0 2px var(--hx-green), 0 0 30px -4px rgba(52, 224, 138, 0.6); }
.hx-hab__av { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: var(--hx-surface-2); }
.hx-hab__in { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.5rem; background: hsl(158, 45%, 16%); color: var(--hx-green); }
.hx-hab__meta { display: block; min-width: 0; max-width: 100%; }
.hx-hab__n { display: block; margin-top: 15px; font-weight: 700; color: #fff; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-hab__r { display: block; margin-top: 5px; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hx-green); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-hab__go { display: block; margin-top: 12px; font-size: 0.78rem; color: #9fbfae; opacity: 0; transform: translateY(4px); transition: opacity 0.25s ease, transform 0.25s ease; }
.hx-hab:hover .hx-hab__go { opacity: 1; transform: none; }
.hx-habitat__cta { margin-top: 30px; }
.hx-btn--green { background: var(--hx-green); border-color: var(--hx-green); color: #05231a; }
.hx-btn--green:hover { background: #4ff0a0; border-color: #4ff0a0; }

/* ============================================================ EXPLORE TILES (what-is + scenes) */
.hx-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hx-tiles > * { min-width: 0; }
.hx-tile {
    position: relative; display: flex; align-items: flex-end; min-height: clamp(220px, 26vw, 320px);
    border-radius: var(--hx-radius); overflow: hidden; border: 1px solid var(--hx-border);
    transform-style: preserve-3d; will-change: transform;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}
.hx-tile:hover { box-shadow: 0 40px 84px -30px rgba(0, 0, 0, 0.98); }
/* the image/video is its OWN depth layer: slightly overscaled so the JS can
   counter-shift it against the tilt (true parallax depth, no exposed edges) */
.hx-tile__bg, .hx-tile video {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    background-size: cover; background-position: center;
    transform: scale(1.09); will-change: transform;
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hx-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.88)); }
/* cursor-tracking specular glare (JS drives --gx/--gy) */
.hx-tile__glare {
    position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
    background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.18), transparent 60%);
}
.hx-tile:hover .hx-tile__glare { opacity: 1; }
/* content on STACKED depth planes — title floats highest, sub behind it */
.hx-tile__body { position: relative; z-index: 2; padding: 26px 28px; transform-style: preserve-3d; }
.hx-tile__t, .hx-tile__s { transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.hx-tile:hover .hx-tile__t { transform: translateZ(64px); }
.hx-tile:hover .hx-tile__s { transform: translateZ(34px); }
.hx-tile__t { margin: 0; font-size: clamp(1.2rem, 2.6vw, 1.7rem); font-weight: 800; color: #fff; }
.hx-tile__t em { font-style: normal; color: var(--hx-red-hover); }
.hx-tile__s { margin: 7px 0 0; font-size: 0.86rem; color: var(--hx-muted); }

/* ============================================================ SUBSCRIBE BAND */
.hx-band {
    position: relative; border-radius: var(--hx-radius); overflow: hidden; text-align: center;
    padding: 64px 30px; border: 1px solid rgba(244, 0, 0, 0.3);
    background:
        radial-gradient(70% 130% at 50% -20%, rgba(244, 0, 0, 0.28), transparent 60%),
        var(--hx-surface);
}
.hx-band__t { margin: 0; font-size: clamp(1.5rem, 3.6vw, 2.4rem); font-weight: 900; color: #fff; letter-spacing: -0.01em; }
.hx-band__s { margin: 12px auto 0; max-width: 560px; color: var(--hx-muted); font-size: 1rem; line-height: 1.6; }
.hx-band__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ============================================================ SOCIAL STRIP */
.hx-social { text-align: center; padding: 60px 20px 30px; }
.hx-social__t { color: var(--hx-muted); font-size: 0.98rem; margin: 0 0 18px; }

/* ============================================================ KINETIC MARQUEE */
.hx-marquee {
    margin-top: 84px; padding: 22px 0; overflow: hidden; white-space: nowrap;
    width: 100vw; margin-left: calc(50% - 50vw);   /* full-bleed band */
    border-top: 1px solid var(--hx-border); border-bottom: 1px solid var(--hx-border);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hx-marquee__track { display: inline-flex; align-items: center; gap: 34px; padding-right: 34px; animation: hx-marquee 30s linear infinite; will-change: transform; }
.hx-marquee:hover .hx-marquee__track { animation-play-state: paused; }
@keyframes hx-marquee { to { transform: translateX(-50%); } }
.hx-marquee__track span {
    font-size: clamp(1.5rem, 3.4vw, 2.5rem); font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em;
    color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.34);
    transition: color 0.3s ease;
}
.hx-marquee__track span:hover { color: var(--hx-red); -webkit-text-stroke: 1px var(--hx-red); }
.hx-marquee__track i { font-style: normal; color: var(--hx-red); font-size: 1.3rem; }

/* hero red words: periodic light sheen sweeping through the type.
   CRITICAL: the red words are ALSO .hx-w (the entrance reveal) — both
   animations must run together via longhands, otherwise `animation:` here
   replaces the word reveal and the words stay at opacity:0 (invisible). The
   nth-child animation-delay rules above apply to both (sheen holds till 74%,
   so an early start is invisible). */
.hx-hero__title .hx-w.hx-red {
    background: linear-gradient(110deg, var(--hx-red) 42%, #ff8d8d 50%, var(--hx-red) 58%);
    background-size: 240% 100%; background-position: 220% 0;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation-name: hx-word, hx-sheen;
    animation-duration: 0.9s, 7.5s;
    animation-timing-function: cubic-bezier(0.2, 0.75, 0.2, 1), ease-in-out;
    animation-fill-mode: forwards, none;
    animation-iteration-count: 1, infinite;
}
@keyframes hx-sheen { 0%, 74% { background-position: 220% 0; } 100% { background-position: -80% 0; } }

/* ============================================================ SUBSCRIBE UPSELL DIALOG
   (self-contained — replaces the legacy #event-modal that depended on the old
   page's deleted inline CSS; rendered OUTSIDE .hx so everything is set here) */
.hx-upsell {
    position: fixed; inset: 0; z-index: 320; display: none;
    font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
    /* the dialog sits OUTSIDE .hx — redeclare the tokens .hx-btn consumes */
    --hx-red: #f40000; --hx-red-hover: #ff2b2b;
    --hx-surface-2: #1b1b22; --hx-surface-3: #26262e;
    --hx-border-strong: rgba(255, 255, 255, 0.2); --hx-text: #f3f3f5;
}
.hx-upsell.is-open { display: block; }
.hx-upsell *, .hx-upsell *::before, .hx-upsell *::after { box-sizing: border-box; }
.hx-upsell__backdrop {
    position: absolute; inset: 0; background: rgba(4, 4, 6, 0.72);
    -webkit-backdrop-filter: blur(9px) saturate(120%); backdrop-filter: blur(9px) saturate(120%);
    opacity: 0; animation: hx-upsell-fade 0.3s ease forwards;
}
@keyframes hx-upsell-fade { to { opacity: 1; } }
.hx-upsell__sheet {
    position: absolute; left: 50%; top: 50%;
    width: min(480px, 92vw); padding: 40px 34px 32px; text-align: center;
    transform: translate(-50%, -46%) scale(0.96); opacity: 0;
    background:
        radial-gradient(90% 70% at 50% -20%, rgba(244, 0, 0, 0.16), transparent 60%),
        linear-gradient(180deg, #141418 0%, #0d0d10 100%);
    border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 22px;
    box-shadow: 0 40px 110px -28px rgba(0, 0, 0, 0.95);
    animation: hx-upsell-rise 0.42s cubic-bezier(0.16, 0.84, 0.3, 1) 0.05s forwards;
}
@keyframes hx-upsell-rise { to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.hx-upsell__close {
    position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05);
    color: #d6d6dc; font-size: 1.5rem; line-height: 1; cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.hx-upsell__close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; transform: rotate(90deg); }
.hx-upsell__eyebrow { margin: 0 0 10px; font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; color: #ff5a5a; font-weight: 700; }
.hx-upsell__t { margin: 0; font-size: 1.5rem; font-weight: 800; color: #f3f3f5; line-height: 1.25; letter-spacing: -0.01em; }
.hx-upsell__t em { font-style: normal; color: #f40000; }
.hx-upsell__s { margin: 12px auto 0; max-width: 360px; font-size: 0.95rem; line-height: 1.6; color: #b9b9c4; }
.hx-upsell__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.hx-upsell__link { display: inline-block; margin-top: 18px; font-size: 0.84rem; color: #8b8b96; text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s ease; }
.hx-upsell__link:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) {
    .hx-upsell__backdrop { animation: none; opacity: 1; }
    .hx-upsell__sheet { animation: none; opacity: 1; transform: translate(-50%, -50%); }
}

/* ============================================================ RESPONSIVE */
@media (max-width: 1024px) {
    .hx-section { margin-top: 58px; }
    .hx-rail__btn { display: none; }
}
@media (max-width: 768px) {
    .hx__container { padding: 0 16px; }
    .hx-hero__content { padding: 96px 18px 80px; }
    .hx-search__bar { height: 54px; }
    .hx-search__kbd { display: none; }
    .hx-issue__body, .hx-event__body { padding: 24px 20px; }
    .hx-live { padding: 22px 20px; }
    .hx-spotc__body { padding: 24px 20px 40px; }
    .hx-spotc__nav { display: none; }
    .hx-habitat { padding: 28px 20px; }
    .hx-tiles { grid-template-columns: 1fr; }
    .hx-card { width: min(300px, 78vw); }
    .hx-section__head { flex-wrap: wrap; }
}
@media (max-width: 540px) {
    .hx-hero__title { font-size: clamp(2.05rem, 11vw, 2.6rem); }
    .hx-hero__ctas .hx-btn { flex: 1 1 auto; justify-content: center; }
    .hx-card { width: 82vw; }
    .hx-habitat__grid { grid-template-columns: 1fr; }
    .hx-band { padding: 44px 18px; }
}

/* ============================================================ REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    .hx-hero__aurora { animation: none; }
    .hx-hero__title .hx-w { animation-duration: 0.01s; animation-delay: 0s; }
    .hx-hero__tag, .hx-search, .hx-hero__ctas, .hx-hero__live, .hx-hero__cue { animation-duration: 0.01s; animation-delay: 0s; }
    .hx-hero__cue::before, .hx-hero__live i, .hx-live__badge i { animation: none; }
    .hx-reveal, .hx-reveal [data-hx-anim] { opacity: 1; transform: none; transition: none; }
    .hx-card, .hx-card__img, .hx-tile, .hx-event, .hx-hab { transition: none; }
    .hx-marquee__track { animation: none; }
    .hx-issue__bg, .hx-issue video, .hx-issue__sweep, .hx-issue .hx-eyebrow::before { animation: none; }
    .hx-tile.is-focus .hx-tile__glare { animation: none; }
    /* keep the word-reveal (instant) so the red words never stay invisible */
    .hx-hero__title .hx-w.hx-red { animation: hx-word 0.01s forwards; -webkit-text-fill-color: currentColor; background: none; color: var(--hx-red); }
    .hx-card:hover .hx-pop__shine { animation: none; }
    .hx-card__more, .hx-tile, .hx-tile__body { transition: none; }
    .hx-reveal [data-hx-anim="web"] { filter: none; }
    .hx-spotc__slide.is-on .hx-spotc__bg { animation: none; }
    .hx-spotc__slide.is-on .hx-spotc__body > * { animation: none; }
    .hx-search__skel i::after, .hx-search__skel b::after, .hx-search__skel s::after { animation: none; }
}
