/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* single accent — deep rose, < 80% saturation, anti-Lila */
    --accent: #A11626;          /* dark red — refined editorial crimson, low-mid lightness */
    --accent-deep: #6E0E1A;     /* deeper variant for hover / pressed states */

    /* neutrals — off-black, never #000 */
    --ink: #0E0E10;
    --paper: #F4F1EA;
    --white: #FFFFFF;

    /* opacities */
    --text: rgba(255, 255, 255, 0.94);
    --muted: rgba(255, 255, 255, 0.70);
    --muted-soft: rgba(255, 255, 255, 0.48);
    --rule: rgba(255, 255, 255, 0.18);

    --font-display: 'Archivo Black', 'Impact', sans-serif;
    --font-body: 'Geist', system-ui, -apple-system, sans-serif;
    --font-mono: 'Geist Mono', ui-monospace, monospace;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--ink);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-height: 1.5;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

/* ---------- Slide track (grid-stacked) ---------- */
.slide-track {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: 100%;
    background: var(--ink);
}

.hero {
    grid-area: 1 / 1 / -1 / -1;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    isolation: isolate;
    background: var(--ink);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    will-change: transform, opacity;
    z-index: 1;
}

.hero.is-current {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

.hero-inner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    will-change: transform;
    z-index: 0;
}

.hero-video,
.hero-bg,
.hero-bg-mobile {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

.hero-bg-mobile {
    display: none;            /* hidden by default; revealed on mobile breakpoint */
}

/* Slide 1 — anchor the BG video to where the player stands in the frame (~65% horizontal) */
.hero[data-slide-index="0"] .hero-video {
    object-position: 62% center;
}

/* ---------- Scrims ---------- */
.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(105deg, rgba(14,14,16,0.85) 0%, rgba(14,14,16,0.45) 38%, rgba(14,14,16,0) 62%),
        linear-gradient(0deg, rgba(14,14,16,0.55) 0%, rgba(14,14,16,0) 30%);
}

.hero-scrim--egypt {
    background:
        linear-gradient(255deg, rgba(14,14,16,0.85) 0%, rgba(14,14,16,0.45) 38%, rgba(14,14,16,0) 62%),
        linear-gradient(0deg, rgba(14,14,16,0.55) 0%, rgba(14,14,16,0) 30%);
}

.hero-scrim--ahly {
    background:
        linear-gradient(105deg, rgba(14,14,16,0.85) 0%, rgba(14,14,16,0.55) 35%, rgba(14,14,16,0.15) 70%, rgba(14,14,16,0.4) 100%),
        linear-gradient(0deg, rgba(14,14,16,0.45) 0%, rgba(14,14,16,0) 28%);
}

/* ---------- Subject cutout (slide 1) — fills container at the exact dimensions of the BG video ---------- */
.hero-subject {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;          /* same fit mode as .hero-video, so dimensions match exactly */
    object-position: 65% center;/* anchor figure right-of-center to pair with editorial frame on the left */
    z-index: 3;
    pointer-events: none;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.55));
}

/* ---------- Hero name plate (slide 1) — anchored to the LOWER viewport zone (above the footer bar) ---------- */
.hero-name {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;          /* bottom-anchored */
    gap: 6px;
    padding: 0 4vw 12vh;                /* breathing room above the footer (stamp + CTA) */
    pointer-events: none;
    text-align: center;
}

.hero-name__display {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    line-height: 0.85;
}

.hero-name__letter {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: min(clamp(96px, 16.5vw, 240px), 32vh);    /* width-aware AND height-aware to never crash into the editorial frame */
    line-height: 0.84;
    letter-spacing: -0.04em;
    color: var(--accent);                                /* deep rose red */
    text-transform: uppercase;
    text-shadow: 0 14px 60px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.hero-name__note {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: clamp(11px, 1.1vw, 17px);
    line-height: 1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--white);
    padding: 0 clamp(8px, 1vw, 18px);
    white-space: nowrap;
    align-self: center;
    transform: translateY(-0.04em);
    flex-shrink: 0;
}

.hero-name__signature {
    display: inline-block;
    margin-top: 0;
    padding-top: 6px;
    font-family: 'Permanent Marker', 'Caveat', cursive;
    font-weight: 400;
    font-size: min(clamp(38px, 4.6vw, 72px), 9vh);
    line-height: 0.9;
    letter-spacing: 0.005em;
    color: var(--white);
    transform: rotate(-3.5deg);
    text-shadow:
        0 2px 0 rgba(0, 0, 0, 0.25),
        0 8px 28px rgba(0, 0, 0, 0.5);
}

/* Slide 1 frame — editorial content moved to the UPPER-LEFT zone, clearly above the lower typography */
.hero[data-slide-index="0"] .frame__content {
    max-width: 38ch;
    align-self: start;
    gap: 18px;                  /* tighter vertical rhythm inside the block */
    padding-top: 8px;
}

.hero[data-slide-index="0"] .lede {
    max-width: 34ch;
    font-size: clamp(13.5px, 0.95vw, 15.5px);
    line-height: 1.6;
}

.hero[data-slide-index="0"] .metric__row {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.hero[data-slide-index="0"] .metric__value {
    font-size: clamp(18px, 1.6vw, 24px);
}

/* ---------- Frame (editorial layout) ---------- */
.frame {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    gap: 32px 48px;
    padding: 36px 56px;
    pointer-events: none;
}

.frame > * { pointer-events: auto; }

/* top + bottom span full width */
.frame__top {
    grid-column: 1 / -1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.frame__content {
    grid-row: 2;
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 48ch;
}

.frame--left .frame__content {
    grid-column: 1;
    justify-self: start;
    text-align: left;
}

.frame--right .frame__content {
    grid-column: 2;
    justify-self: end;
    text-align: right;
    align-items: flex-end;
}

.frame__bottom {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* ---------- Stagger fade-in for active slide content ---------- */
.frame__content > * {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.is-current .frame__content > * {
    opacity: 1;
    transform: translateY(0);
}

.is-current .frame__content > *:nth-child(1) { transition-delay: 180ms; }
.is-current .frame__content > *:nth-child(2) { transition-delay: 260ms; }
.is-current .frame__content > *:nth-child(3) { transition-delay: 340ms; }
.is-current .frame__content > *:nth-child(4) { transition-delay: 420ms; }

/* ---------- Brand ---------- */
.brand {
    font-family: var(--font-display);
    font-size: 16px;
    letter-spacing: 0.02em;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.brand__dot { color: var(--accent); }

.brand__num {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 16px;
    letter-spacing: 0.02em;
    line-height: 1;
}


/* ---------- Edition tag ---------- */
.edition {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.edition__num { color: var(--white); font-weight: 500; }
.edition__sep { color: var(--muted-soft); }
.edition__total { color: var(--muted); }

.edition__rule {
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--rule);
    margin: 0 4px;
}

.edition__date { color: var(--white); }

/* ---------- Section index (00 — Label) ---------- */
.index {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.index__num {
    color: var(--accent);
    font-weight: 500;
}

.index__rule {
    width: 32px;
    height: 1px;
    background: var(--accent);
    opacity: 0.6;
}

.index__label {
    color: var(--white);
    font-weight: 500;
}

.frame--right .index { flex-direction: row-reverse; }

/* ---------- Title ---------- */
.title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Slide 1 mobile title is hidden on desktop (the .hero-name letter display takes over there) */
.title--mobile { display: none; }

.title__pre {
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(20px, 1.8vw, 26px);
    line-height: 1;
    color: var(--muted);
    letter-spacing: 0.01em;
}

.title__main {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(44px, 5.4vw, 88px);
    line-height: 0.95;
    letter-spacing: -0.022em;
    color: var(--white);
    text-transform: uppercase;
}

/* ---------- Lede paragraph ---------- */
.lede {
    font-family: var(--font-body);
    font-size: clamp(14px, 1.05vw, 16px);
    font-weight: 400;
    line-height: 1.65;
    color: var(--muted);
    max-width: 48ch;
}

.frame--right .lede { margin-left: auto; }

/* ---------- Metric block ---------- */
.metric {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 4px;
    width: 100%;
}

.metric__rule {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--rule);
}

.metric__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.frame--right .metric__row { direction: rtl; }
.frame--right .metric__row > * { direction: ltr; text-align: right; }

.metric__col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.metric__label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted-soft);
}

.metric__value {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(20px, 1.8vw, 26px);
    line-height: 1.1;
    color: var(--white);
    letter-spacing: -0.005em;
}

.metric__value--sm {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0;
    color: var(--text);
}

/* ---------- Stamp (footer meta) ---------- */
.stamp {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
}

.stamp--right { text-align: right; }

.stamp__k {
    color: var(--muted-soft);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 10px;
}

.stamp__v { color: var(--white); }

/* ---------- CTA (next chapter cue) ---------- */
.cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
    transition: color 260ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cta__num {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 18px;
    color: var(--accent);
    letter-spacing: 0;
}

.cta__rule {
    width: 24px;
    height: 1px;
    background: var(--rule);
    transition: width 320ms cubic-bezier(0.16, 1, 0.3, 1),
                background 220ms ease;
}

.cta__label {
    color: var(--white);
    font-weight: 500;
}

.cta__arrow {
    transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.cta:hover { color: var(--accent); }
.cta:hover .cta__rule { width: 44px; background: var(--accent); }
.cta:hover .cta__label { color: var(--accent); }
.cta:hover .cta__arrow { transform: translateX(5px); }
.cta:hover .cta__arrow--back { transform: translateX(-5px); }
.cta:active { transform: translateY(-1px); }

/* ============================================
   NEWS — RAIL ENTRYPOINT + DRAWER
   ============================================ */

/* ---- Right-edge vertical rail (chapter 04) ---- */
.news-rail {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 80;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;

    padding: 22px 12px;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-right: none;
    background: rgba(14, 14, 16, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.06);

    color: var(--white);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;

    transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1),
                background 320ms cubic-bezier(0.16, 1, 0.3, 1),
                border-color 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.news-rail:hover {
    transform: translateY(-50%) translateX(-6px);
    background: rgba(20, 20, 24, 0.72);
    border-color: var(--accent);
}

.news-rail:active { transform: translateY(-50%) translateX(-4px); }

.news-rail__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(161, 22, 38, 0.55);
    animation: news-pulse 2.6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.news-rail:hover .news-rail__dot {
    background: var(--white);
    animation: none;
    box-shadow: none;
}

@keyframes news-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(161, 22, 38, 0.55); }
    50%      { box-shadow: 0 0 0 6px rgba(161, 22, 38, 0); }
}

.news-rail__index {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 0;
    color: var(--accent);
    line-height: 1;
    transition: color 320ms ease;
}

.news-rail:hover .news-rail__index { color: var(--white); }

.news-rail__divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.18);
}

.news-rail__label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);    /* read bottom-to-top */
    font-weight: 500;
    color: var(--white);
}

.news-rail__count {
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 0;
    line-height: 1;
    min-width: 16px;
    text-align: center;
    color: var(--white);
    transition: color 320ms ease;
}

.news-rail:hover .news-rail__count { color: var(--accent); }

/* ---- Drawer shell ---- */
.news-drawer {
    position: fixed;
    inset: 0;
    z-index: 100;
    visibility: hidden;
    pointer-events: none;
}

.news-drawer[data-open="true"] {
    visibility: visible;
    pointer-events: auto;
}

.news-drawer__scrim {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 10, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.news-drawer[data-open="true"] .news-drawer__scrim { opacity: 1; }

.news-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(560px, 92vw);
    background: #131316;                /* slightly elevated above --ink */
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -40px 0 80px -20px rgba(0, 0, 0, 0.6);
    transform: translateX(100%);
    transition: transform 520ms cubic-bezier(0.76, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.news-drawer[data-open="true"] .news-drawer__panel { transform: translateX(0); }

/* ---- Drawer subject cutout (editorial Hamza figure in the header zone) ---- */
.news-drawer__subject {
    position: absolute;
    top: -8px;
    right: -28px;
    height: clamp(220px, 36vh, 320px);
    width: auto;
    z-index: 1;
    pointer-events: none;
    filter: drop-shadow(0 18px 48px rgba(0, 0, 0, 0.55));
    /* fade out the bottom edge so the cutout bleeds into the meta strip elegantly */
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
    transform: translateY(20px);
    transition: transform 760ms cubic-bezier(0.16, 1, 0.3, 1) 240ms,
                opacity 720ms cubic-bezier(0.16, 1, 0.3, 1) 240ms;
    opacity: 0;
}

.news-drawer[data-open="true"] .news-drawer__subject {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Drawer header ---- */
.news-drawer__top {
    position: relative;
    z-index: 2;
    padding: 38px 36px 24px;
    padding-right: 200px;             /* leave room for the subject cutout on the right */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.news-drawer__heading { min-width: 0; }

.news-drawer__chapter {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.news-drawer__chapter-num { color: var(--accent); }

.news-drawer__chapter-rule {
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--accent);
    opacity: 0.6;
}

.news-drawer__chapter-label { color: var(--white); }

.news-drawer__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(30px, 3.2vw, 42px);
    line-height: 0.98;
    letter-spacing: -0.022em;
    color: var(--white);
    text-transform: uppercase;
}

.news-drawer__close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 240ms ease, border-color 240ms ease, transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.news-drawer__close:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: rotate(90deg);
}

.news-drawer__close:active { transform: rotate(90deg) translateY(1px); }

/* ---- Drawer meta strip ---- */
.news-drawer__meta {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 0;
    padding: 16px 36px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(19, 19, 22, 0) 0%, rgba(19, 19, 22, 0.8) 30%, rgba(19, 19, 22, 1) 100%);
}

.news-drawer__stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    margin-right: 28px;
}

.news-drawer__stat:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
}

.news-drawer__stat--updated { justify-self: end; align-items: flex-end; text-align: right; }

.news-drawer__stat-k {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted-soft);
}

.news-drawer__stat-v {
    font-family: var(--font-display);
    font-size: 18px;
    line-height: 1;
    color: var(--white);
    letter-spacing: -0.005em;
}

.news-drawer__stat--updated .news-drawer__stat-v {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
}

/* ---- Article list ---- */
.news-drawer__list {
    position: relative;
    z-index: 2;
    flex: 1;
    overflow-y: auto;
    padding: 8px 0 32px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    background: #131316;
}

.news-drawer__list::-webkit-scrollbar { width: 6px; }
.news-drawer__list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 3px;
}

/* ---- Article item (editorial — no card box, hairline-divided) ---- */
.news-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px 36px 28px;
    color: var(--text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 320ms cubic-bezier(0.16, 1, 0.3, 1);

    /* staggered fade-up on render */
    opacity: 0;
    transform: translateY(10px);
    animation: news-item-in 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--i, 0) * 60ms + 80ms);
}

@keyframes news-item-in {
    to { opacity: 1; transform: translateY(0); }
}

.news-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.news-item:hover { background: rgba(255, 255, 255, 0.02); }
.news-item:hover::before { transform: scaleY(1); }
.news-item:active { transform: translateY(1px); }

.news-item[dir="rtl"] { text-align: right; }
.news-item[dir="rtl"]::before { left: auto; right: 0; }

.news-item__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.news-item[dir="rtl"] .news-item__meta { flex-direction: row-reverse; }

.news-item__num {
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0;
    color: var(--accent);
    line-height: 1;
}

.news-item__source {
    color: var(--white);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    max-width: 240px;
}

.news-item__date {
    margin-left: auto;
    color: var(--muted-soft);
    white-space: nowrap;
}

.news-item[dir="rtl"] .news-item__date { margin-left: 0; margin-right: auto; }

.news-item__title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 17px;
    line-height: 1.32;
    letter-spacing: -0.008em;
    color: var(--white);
    transition: color 220ms ease;
}

.news-item:hover .news-item__title { color: var(--accent); }

.news-item__desc {
    font-family: var(--font-body);
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--muted);
    font-weight: 400;
    max-width: 56ch;
}

.news-item__cue {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted-soft);
    transition: color 280ms ease, gap 280ms ease;
}

.news-item__cue svg { transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1); }

.news-item:hover .news-item__cue { color: var(--white); gap: 14px; }
.news-item:hover .news-item__cue svg { transform: translateX(6px); }

/* ---- Skeleton loaders ---- */
.news-item--skeleton {
    pointer-events: none;
    opacity: 1;
    transform: none;
    animation: none;
}

.sk {
    display: block;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: sk-shimmer 1.6s ease-in-out infinite;
    border-radius: 3px;
}

.sk-line { height: 12px; }
.sk-line--xs { width: 80px; height: 9px; }
.sk-line--md { width: 70%; }
.sk-line--lg { width: 92%; height: 18px; }

@keyframes sk-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---- Empty / error state ---- */
.news-empty {
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.news-empty strong {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 18px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.news-empty__hint {
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: var(--muted-soft);
}

.news-empty code {
    font-family: var(--font-mono);
    font-size: 11px;
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 6px;
    border-radius: 3px;
    color: var(--white);
}

/* ============================================
   Responsive
   ============================================ */
/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .frame {
        padding: 28px 32px;
        gap: 24px 32px;
    }
    .frame__content { gap: 18px; }
    .title__main { font-size: clamp(38px, 6vw, 64px); }
    .title__pre { font-size: 18px; }
    .lede { font-size: 14px; }
    .metric__value { font-size: 20px; }
    .hero-name__letter { font-size: clamp(86px, 16vw, 200px); }
    .hero-name__note { font-size: clamp(10px, 0.95vw, 14px); padding: 0 10px; }
    .hero-name__signature { font-size: clamp(34px, 4.6vw, 64px); }
}

@media (max-width: 760px) {
    .frame {
        padding: 20px 20px;
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        gap: 20px;
    }

    .frame--left .frame__content,
    .frame--right .frame__content {
        grid-column: 1;
        justify-self: stretch;
        text-align: left;
        align-items: flex-start;
        max-width: none;
    }

    .frame--right .index { flex-direction: row; }
    .frame--right .lede { margin-left: 0; }
    .frame--right .metric__row { direction: ltr; }
    .frame--right .metric__row > * { text-align: left; }

    .title__main { font-size: clamp(36px, 11vw, 52px); }
    .title__pre { font-size: 16px; }

    .lede { font-size: 14px; line-height: 1.6; }

    .metric__row { gap: 18px; }
    .metric__value { font-size: 18px; }
    .metric__value--sm { font-size: 13px; }

    .frame__top { gap: 12px; }
    .edition__rule { display: none; }
    .edition__date { display: none; }

    .frame__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .stamp--right { text-align: left; }

    .cta { font-size: 10px; gap: 10px; }
    .cta__num { font-size: 16px; }
    .cta__label { white-space: nowrap; }

    .hero-subject {
        opacity: 0.55;
        object-position: 80% center;
    }
    /* ==================================================================
       MOBILE REDESIGN — magazine-cover composition over dedicated portrait BGs.
       Desktop is fully preserved; this block only governs ≤760px.
       ================================================================== */

    /* Background asset swap — portrait PNGs only, videos/landscape images hidden */
    .hero-video,
    .hero-bg {
        display: none;
    }

    .hero-bg-mobile {
        display: block;
        object-position: center center;
    }

    /* Top-weighted gradient scrim — content lives in the upper half, player figure stays clear in the lower half */
    .hero-inner::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background:
            linear-gradient(180deg,
                rgba(14, 14, 16, 0.78) 0%,
                rgba(14, 14, 16, 0.55) 22%,
                rgba(14, 14, 16, 0.25) 42%,
                rgba(14, 14, 16, 0.0) 60%,
                rgba(14, 14, 16, 0.0) 100%
            );
    }

    /* Hide global desktop scrim — gradient above does the work cleanly on mobile */
    .hero-scrim { display: none; }

    /* Hide the slide 1 letter-by-letter desktop typography — replaced by .title--mobile inside the frame */
    .hero-name { display: none; }

    /* Show the mobile title on slide 1 */
    .title--mobile { display: flex; }

    /* Frame stacks all content at the TOP so the player's body in the BG stays visible below */
    .frame {
        padding: 18px 20px 18px;
        grid-template-rows: auto auto auto 1fr;     /* header → content → footer → empty space */
        gap: 12px;
    }

    .frame__top    { grid-row: 1; }
    .frame__content{ grid-row: 2; }
    .frame__bottom { grid-row: 3; align-self: start; }

    .frame__content {
        display: flex;
        flex-direction: column;
        gap: 12px;
        max-width: 100%;
        height: auto;                       /* natural height, no stretch */
        align-self: start;
        text-align: left;
        align-items: flex-start;
        padding: 0;
    }

    /* Lede sits directly below the title — no longer pushed to the bottom */
    .lede {
        margin-top: 0;
        font-size: 13px;
        line-height: 1.55;
        max-width: 100%;
        color: rgba(255, 255, 255, 0.85);
    }

    /* Title — clean stacked headline, no marker font on mobile */
    .title {
        margin-top: 4px;
    }
    .title__pre { font-size: 15px; }
    .title__main { font-size: clamp(36px, 10vw, 52px); line-height: 0.92; }

    /* Compact metric — single row, smaller scale */
    .metric {
        gap: 10px;
    }
    .metric__rule { display: none; }
    .metric__row {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
    }
    .metric__value { font-size: 15px; }
    .metric__value--sm { font-size: 12.5px; }
    .metric__label { font-size: 9px; }

    /* Override frame--right slide-2 mirror — on mobile everything aligns left for readability */
    .frame--right .frame__content { align-items: flex-start; text-align: left; }
    .frame--right .index { flex-direction: row; }
    .frame--right .lede { margin-left: 0; max-width: 100%; }
    .frame--right .metric__row { direction: ltr; }
    .frame--right .metric__row > * { text-align: left; }

    /* Per-slide custom — slide 1 already had max-width override; keep mobile-clean */
    .hero[data-slide-index="0"] .frame__content { max-width: 100%; padding-bottom: 0; }
    .hero[data-slide-index="0"] .metric__row { grid-template-columns: 1fr 1fr; }

    /* Rail collapses to a compact horizontal pill in the top-right on mobile */
    .news-rail {
        top: 14px;
        right: 14px;
        bottom: auto;
        transform: none;
        flex-direction: row;
        gap: 10px;
        padding: 8px 12px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.16);
    }
    .news-rail:hover { transform: translateY(-1px); }
    .news-rail:active { transform: translateY(0); }
    .news-rail__label {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 10px;
    }
    .news-rail__divider { width: 18px; height: 1px; }
    .news-rail__index { font-size: 12px; }
    .news-rail__count { font-size: 12px; }

    .news-drawer__panel { width: 100vw; }
    .news-drawer__top { padding: 26px 20px 18px; padding-right: 160px; }
    .news-drawer__title { font-size: 26px; }
    .news-drawer__meta { padding: 14px 20px 16px; }
    .news-drawer__subject {
        right: -20px;
        height: clamp(200px, 32vh, 260px);
    }
    .news-drawer__stat { padding-right: 16px; margin-right: 16px; }
    .news-drawer__stat-v { font-size: 16px; }
    .news-item { padding: 22px 20px 24px; }
    .news-item__title { font-size: 16px; }
    .news-item__desc { font-size: 13px; }
}
