/* ==========================================================================
   DeviLabs — GEO explainer reel  (shared: homepage + /geo)
   Self-contained visual system: own palette, own type, own motion.
   Type: Geist (UI/headline) · Instrument Serif (editorial accent) · Geist Mono (HUD)
   Motion is driven by /assets/dl-reel.js via CSS custom properties:
     --rl-p   0→1   scroll-in progress of the device (eased)
     --rl-s  -1→1   section scroll position (parallax)
     --rl-tx/-ty    pointer tilt (-1→1)   --rl-mx/-my  spotlight (0→1)
   ========================================================================== */

@property --rl-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.rl {
    --rl-bg:      #050806;
    --rl-ink:     #F3F6EF;
    --rl-dim:     rgba(243,246,239,0.58);
    --rl-faint:   rgba(243,246,239,0.34);
    --rl-line:    rgba(243,246,239,0.09);
    --rl-lime:    #C8FA4B;
    --rl-mint:    #7EF0A8;
    --rl-pine:    #14532D;
    --rl-sans:  'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --rl-serif: 'Instrument Serif', 'Times New Roman', serif;
    --rl-mono:  'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    --rl-ease:  cubic-bezier(0.16, 1, 0.3, 1);
    --rl-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --rl-p: 0; --rl-s: 0; --rl-tx: 0; --rl-ty: 0; --rl-mx: 0.5; --rl-my: 0.5;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--rl-bg);
    color: var(--rl-ink);
    font-family: var(--rl-sans);
    padding: clamp(96px, 12vw, 176px) 0 clamp(88px, 11vw, 160px);
    -webkit-font-smoothing: antialiased;
}
.rl *, .rl *::before, .rl *::after { box-sizing: border-box; }
.rl ol { list-style: none; padding: 0; }

/* ── Atmosphere ─────────────────────────────────────────────────────────── */
.rl__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.rl__aurora { position: absolute; inset: -10% -10% 0; filter: blur(80px); opacity: 0.9; }
.rl__aurora i {
    position: absolute; display: block; border-radius: 50%;
    mix-blend-mode: screen;
}
.rl__aurora i:nth-child(1) {
    width: 46vw; height: 46vw; left: 6%; top: 30%;
    background: radial-gradient(circle, rgba(200,250,75,0.22), transparent 62%);
    animation: rlDriftA 22s ease-in-out infinite alternate;
}
.rl__aurora i:nth-child(2) {
    width: 52vw; height: 52vw; right: 0; top: 18%;
    background: radial-gradient(circle, rgba(46,160,90,0.30), transparent 62%);
    animation: rlDriftB 26s ease-in-out infinite alternate;
}
.rl__aurora i:nth-child(3) {
    width: 40vw; height: 40vw; left: 34%; top: 58%;
    background: radial-gradient(circle, rgba(126,240,168,0.16), transparent 62%);
    animation: rlDriftC 30s ease-in-out infinite alternate;
}
@keyframes rlDriftA { to { transform: translate(14vw, -8vh) scale(1.15); } }
@keyframes rlDriftB { to { transform: translate(-12vw, 10vh) scale(0.9); } }
@keyframes rlDriftC { to { transform: translate(-8vw, -14vh) scale(1.2); } }

.rl__grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, rgba(243,246,239,0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(243,246,239,0.045) 1px, transparent 1px);
    background-size: 72px 72px;
    background-position: center top;
    -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 45%, #000 20%, transparent 75%);
            mask-image: radial-gradient(ellipse 70% 55% at 50% 45%, #000 20%, transparent 75%);
    transform: translateY(calc(var(--rl-s) * -40px));
}
.rl__noise {
    position: absolute; inset: 0; opacity: 0.07; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* hairlines that fade in at the top and bottom edges */
.rl::before, .rl::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1px; z-index: 1;
    background: linear-gradient(90deg, transparent, rgba(200,250,75,0.35), transparent);
    opacity: 0.6;
}
.rl::before { top: 0; }
.rl::after { bottom: 0; }

.rl__wrap {
    position: relative;
    max-width: 1240px; margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px);
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.rl__head { text-align: center; max-width: 980px; margin: 0 auto; }
.rl__kicker {
    display: inline-flex; align-items: center; gap: 10px;
    margin: 0 0 28px;
    padding: 7px 14px 7px 10px;
    border-radius: 999px;
    border: 1px solid var(--rl-line);
    background: rgba(243,246,239,0.035);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    font-family: var(--rl-mono);
    font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--rl-dim);
}
.rl__kicker b { color: var(--rl-ink); font-weight: 500; }
.rl__pulse {
    position: relative; width: 7px; height: 7px; border-radius: 50%;
    background: var(--rl-lime);
    box-shadow: 0 0 12px rgba(200,250,75,0.9);
}
.rl__pulse::after {
    content: ""; position: absolute; inset: -5px; border-radius: 50%;
    border: 1px solid var(--rl-lime);
    animation: rlPing 2.2s var(--rl-ease) infinite;
}
@keyframes rlPing { from { transform: scale(0.4); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.rl__title {
    margin: 0;
    font-family: var(--rl-sans);
    font-weight: 600;
    font-size: clamp(40px, 7.2vw, 104px);
    line-height: 0.98;
    letter-spacing: -0.045em;
    color: var(--rl-ink);
    text-wrap: balance;
}
.rl__title em {
    display: inline;
    font-family: var(--rl-serif);
    font-style: italic; font-weight: 400;
    letter-spacing: -0.02em;
    padding-right: 0.06em;
}
.rl__title em .rl-w__i {
    background: linear-gradient(100deg, var(--rl-lime) 0%, var(--rl-mint) 35%, #ffffff 50%, var(--rl-mint) 65%, var(--rl-lime) 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    animation: rlShimmer 7s linear infinite;
}
@keyframes rlShimmer { from { background-position: 100% 0; } to { background-position: -200% 0; } }

/* word-by-word reveal (spans injected by JS) */
.rl-w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.06em 0.02em 0.12em; margin: -0.06em -0.02em -0.12em; }
.rl-w__i {
    display: inline-block;
    transform: translate3d(0, 105%, 0) rotate(6deg);
    filter: blur(10px);
    opacity: 0;
    transition:
        transform 1.1s var(--rl-ease) calc(var(--i, 0) * 70ms + 120ms),
        filter 1.1s var(--rl-ease) calc(var(--i, 0) * 70ms + 120ms),
        opacity 0.8s ease calc(var(--i, 0) * 70ms + 120ms);
}
.rl.is-in .rl-w__i { transform: none; filter: blur(0); opacity: 1; }

.rl__lede {
    max-width: 58ch; margin: 28px auto 0;
    font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6;
    color: var(--rl-dim);
    letter-spacing: -0.005em;
}
.rl__lede strong { color: var(--rl-ink); font-weight: 500; }

.rl__cta {
    position: relative;
    display: inline-flex; align-items: center; gap: 12px;
    margin-top: 34px;
    padding: 14px 16px 14px 24px;
    border-radius: 999px;
    background: var(--rl-ink); color: #08100B;
    font-family: var(--rl-sans); font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.5s var(--rl-ease), box-shadow 0.5s var(--rl-ease);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.2), 0 18px 50px -18px rgba(200,250,75,0.55);
}
.rl__cta::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(200,250,75,0.55) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.9s var(--rl-ease);
}
.rl__cta:hover::before { transform: translateX(120%); }
.rl__cta:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,0.3), 0 26px 60px -18px rgba(200,250,75,0.7); }
.rl__cta-arrow {
    position: relative;
    display: grid; place-items: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: #08100B; color: var(--rl-lime);
    overflow: hidden;
}
.rl__cta-arrow svg { width: 14px; height: 14px; transition: transform 0.5s var(--rl-ease); }
.rl__cta:hover .rl__cta-arrow svg { transform: translateX(3px) rotate(-45deg); }
.rl__cta:focus-visible { outline: 2px solid var(--rl-lime); outline-offset: 4px; }

/* staged fades for non-split header bits */
.rl__fade {
    opacity: 0; transform: translateY(18px); filter: blur(6px);
    transition: opacity 1s var(--rl-ease), transform 1.1s var(--rl-ease), filter 1s var(--rl-ease);
    transition-delay: var(--d, 0ms);
}
.rl.is-in .rl__fade { opacity: 1; transform: none; filter: none; }

/* ── Stage ──────────────────────────────────────────────────────────────── */
.rl__scene {
    position: relative;
    margin-top: clamp(56px, 7vw, 96px);
    perspective: 1800px;
    perspective-origin: 50% 0%;
}

/* giant kinetic type behind the device */
.rl__ticker {
    position: absolute; left: 50%; top: 50%; z-index: 0;
    width: 100vw; transform: translate(-50%, -50%);
    pointer-events: none; user-select: none;
    display: grid; gap: 0.1em;
    font-family: var(--rl-serif); font-style: italic;
    font-size: clamp(90px, 15vw, 230px); line-height: 0.9;
    white-space: nowrap;
    opacity: calc(0.25 + var(--rl-p) * 0.75);
}
.rl__ticker-row { display: flex; width: max-content; }
.rl__ticker-row span { padding-right: 0.4em; color: transparent; -webkit-text-stroke: 1px rgba(243,246,239,0.085); }
.rl__ticker-row span:nth-child(odd) { -webkit-text-stroke-color: rgba(200,250,75,0.12); }
.rl__ticker-row--a { animation: rlTicker 60s linear infinite; }
.rl__ticker-row--b { animation: rlTicker 70s linear infinite reverse; }
@keyframes rlTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* device: scroll-linked "open" — tilted & small → flat & full */
.rl__device {
    position: relative; z-index: 2;
    max-width: 1080px; margin: 0 auto;
    transform-origin: 50% 100%;
    transform:
        translate3d(0, calc((1 - var(--rl-p)) * 40px), 0)
        rotateX(calc((1 - var(--rl-p)) * 26deg + var(--rl-ty) * -2.5deg))
        rotateY(calc(var(--rl-tx) * 3.5deg))
        scale(calc(0.82 + var(--rl-p) * 0.18));
    will-change: transform;
}
/* floor glow beneath the device */
.rl__device::before {
    content: ""; position: absolute; z-index: -1;
    left: 8%; right: 8%; bottom: -14%; height: 46%;
    background: radial-gradient(ellipse at center, rgba(200,250,75,0.38), rgba(46,160,90,0.18) 45%, transparent 70%);
    filter: blur(50px);
    opacity: calc(0.25 + var(--rl-p) * 0.75);
}

.rl__frame {
    position: relative;
    padding: clamp(6px, 0.9vw, 11px);
    border-radius: clamp(16px, 2vw, 26px);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.02) 40%),
        #0B100D;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        inset 0 0 0 1px rgba(255,255,255,0.05),
        0 50px 100px -40px rgba(0,0,0,0.9),
        0 30px 60px -30px rgba(0,0,0,0.7);
}
/* rotating light around the frame edge */
.rl__ring {
    position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
    background: conic-gradient(from var(--rl-a), transparent 0deg, transparent 220deg, rgba(200,250,75,0.95) 290deg, #ffffff 320deg, rgba(126,240,168,0.8) 340deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask-composite: exclude;
    animation: rlSpin 7s linear infinite;
    pointer-events: none;
}
.rl__ring--blur { inset: -2px; padding: 3px; filter: blur(10px); opacity: 0.8; }
@keyframes rlSpin { to { --rl-a: 360deg; } }

/* HUD bar */
.rl__hud {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 4px 8px 10px;
    font-family: var(--rl-mono);
    font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--rl-faint);
}
.rl__hud-l, .rl__hud-r { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.rl__hud-live { display: inline-flex; align-items: center; gap: 8px; color: var(--rl-dim); }
.rl__hud-live .rl__pulse { width: 6px; height: 6px; }
.rl:not(.is-playing) .rl__hud-live .rl__pulse { background: var(--rl-faint); box-shadow: none; }
.rl:not(.is-playing) .rl__hud-live .rl__pulse::after { animation: none; opacity: 0; }
.rl__hud-sep { width: 1px; height: 12px; background: var(--rl-line); }
.rl__time { color: var(--rl-ink); font-variant-numeric: tabular-nums; }
.rl__time small { color: var(--rl-faint); font-size: inherit; }

/* screen: video oversized by 1px on every side → no seam/line on any edge */
.rl__screen {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: clamp(10px, 1.3vw, 16px);
    overflow: hidden;
    background: #1C281B;
    isolation: isolate;
    transform: translateZ(0);          /* clip the video layer to the radius (Safari) */
}
.rl__video {
    position: absolute;
    top: -1px; left: -1px;
    width: calc(100% + 2px); height: calc(100% + 2px);
    max-width: none;
    object-fit: cover;
    display: block;
    cursor: pointer;
}
/* cursor spotlight + glass sheen over the screen */
.rl__sheen {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        radial-gradient(420px circle at calc(var(--rl-mx) * 100%) calc(var(--rl-my) * 100%), rgba(255,255,255,0.10), transparent 60%),
        linear-gradient(125deg, rgba(255,255,255,0.07) 0%, transparent 28%);
    mix-blend-mode: soft-light;
}
/* inner vignette so the bright film sits inside the dark bezel */
.rl__screen::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.35), inset 0 0 60px rgba(0,0,0,0.12);
}

/* play / pause */
.rl__toggle {
    position: absolute; z-index: 3;
    right: clamp(12px, 1.6vw, 20px); bottom: clamp(12px, 1.6vw, 20px);
    width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(8,14,10,0.62);
    -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
    color: var(--rl-ink);
    cursor: pointer;
    transition: transform 0.6s var(--rl-spring), background 0.4s ease, width 0.6s var(--rl-ease), height 0.6s var(--rl-ease), right 0.6s var(--rl-ease), bottom 0.6s var(--rl-ease);
}
.rl__toggle:hover { background: rgba(8,14,10,0.85); transform: scale(1.08); }
.rl__toggle:focus-visible { outline: 2px solid var(--rl-lime); outline-offset: 3px; }
.rl__toggle svg { width: 15px; height: 15px; }
.rl__toggle .i-play { display: block; margin-left: 2px; }
.rl__toggle .i-pause { display: none; }
.rl.is-playing .rl__toggle .i-play { display: none; }
.rl.is-playing .rl__toggle .i-pause { display: block; }
.rl:not(.is-playing) .rl__toggle {
    right: calc(50% - 44px); bottom: calc(50% - 44px);
    width: 88px; height: 88px;
    background: var(--rl-lime); color: #08100B;
    border-color: transparent;
    box-shadow: 0 0 0 12px rgba(200,250,75,0.18), 0 0 0 26px rgba(200,250,75,0.07), 0 30px 60px -20px rgba(0,0,0,0.7);
}
.rl:not(.is-playing) .rl__toggle svg { width: 26px; height: 26px; }

/* ── Floating answer-engine chips ───────────────────────────────────────── */
.rl__chip {
    position: absolute; z-index: 3;
    transform: translate3d(0, calc(var(--rl-s) * var(--depth, 1) * -70px), 0);
}
.rl__chip-in {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 9px 14px 9px 9px;
    border-radius: 14px;
    background: rgba(12,18,14,0.6);
    -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 24px 50px -24px rgba(0,0,0,0.9);
    font-size: 13.5px; font-weight: 500; letter-spacing: -0.01em;
    color: var(--rl-ink);
    white-space: nowrap;
    opacity: 0;
    translate: var(--fx, 0) var(--fy, 30px);
    scale: 0.9;
    filter: blur(8px);
    transition: opacity 0.9s var(--rl-ease), translate 1.2s var(--rl-ease), scale 1.2s var(--rl-ease), filter 0.9s var(--rl-ease), border-color 0.5s ease, box-shadow 0.5s ease;
    transition-delay: var(--d, 0ms);
    animation: rlFloat 6s ease-in-out infinite;
    animation-delay: var(--fd, 0s);
}
.rl.is-in .rl__chip-in { opacity: 1; translate: 0 0; scale: 1; filter: none; }
@keyframes rlFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.rl__chip-ico {
    width: 26px; height: 26px; border-radius: 8px;
    display: grid; place-items: center;
    background: rgba(243,246,239,0.07);
    border: 1px solid rgba(255,255,255,0.08);
    font-family: var(--rl-mono); font-size: 11px; font-weight: 500; color: var(--rl-dim);
}
.rl__chip-state {
    display: inline-flex; align-items: center; gap: 2px;
    width: 18px; height: 14px; margin-left: 2px;
}
/* idle: dot · ranking: equaliser · cited: check */
.rl__chip-state i {
    width: 3px; height: 3px; border-radius: 2px;
    background: var(--rl-faint);
    transition: height 0.3s ease, background 0.3s ease;
}
.rl[data-beat="1"] .rl__chip-state i { background: var(--rl-mint); animation: rlEq 0.8s ease-in-out infinite; }
.rl[data-beat="1"] .rl__chip-state i:nth-child(2) { animation-delay: -0.25s; }
.rl[data-beat="1"] .rl__chip-state i:nth-child(3) { animation-delay: -0.5s; }
@keyframes rlEq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.rl.is-cited .rl__chip-in { border-color: rgba(200,250,75,0.45); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 4px rgba(200,250,75,0.08), 0 24px 50px -24px rgba(0,0,0,0.9); }
.rl.is-cited .rl__chip-state i { background: var(--rl-lime); height: 3px; }
.rl.is-cited .rl__chip-ico { color: #08100B; background: var(--rl-lime); border-color: transparent; }

.rl__chip--1 { left: -3%;  top: 9%; --depth: 1.2; --fx: -40px; --fy: 0; --d: 500ms; --fd: -1s; }
.rl__chip--2 { left: -4%;  top: 60%; --depth: 0.7; --fx: -40px; --fy: 0; --d: 650ms; --fd: -3s; }
.rl__chip--3 { right: -3%; top: 19%; --depth: 1.0; --fx: 40px;  --fy: 0; --d: 580ms; --fd: -2s; }
.rl__chip--4 { right: -4%; top: 70%; --depth: 1.4; --fx: 40px;  --fy: 0; --d: 720ms; --fd: -4s; }

/* ── "Cited" badge — springs in on the cited beat ───────────────────────── */
.rl__cite {
    position: absolute; z-index: 4;
    top: 0; right: 4%;
    transform: translateY(-118%);
    pointer-events: none;
}
.rl__cite-in {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 18px 10px 10px;
    border-radius: 999px;
    background: var(--rl-lime); color: #08100B;
    font-weight: 600; font-size: 14px; letter-spacing: -0.01em;
    box-shadow: 0 0 0 6px rgba(200,250,75,0.16), 0 0 60px rgba(200,250,75,0.55), 0 20px 40px -12px rgba(0,0,0,0.7);
    opacity: 0; scale: 0.5; translate: 0 18px; filter: blur(6px);
    transition: opacity 0.35s ease, scale 0.7s var(--rl-spring), translate 0.7s var(--rl-spring), filter 0.4s ease;
}
.rl__cite-in svg { width: 24px; height: 24px; }
.rl__cite-in small { font-family: var(--rl-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; opacity: 0.7; text-transform: uppercase; }
.rl.is-cited .rl__cite-in { opacity: 1; scale: 1; translate: 0 0; filter: none; }

/* ── Chapters / beats ───────────────────────────────────────────────────── */
.rl__beats {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2.6vw, 40px);
    max-width: 1080px;
    margin: clamp(72px, 8vw, 120px) auto 0;
}
.rl__beat {
    display: block; width: 100%;
    margin: 0; padding: 0;
    text-align: left; font: inherit; color: inherit;
    background: none; border: 0;
    cursor: pointer;
}
.rl__beat:focus-visible { outline: 2px solid var(--rl-lime); outline-offset: 8px; border-radius: 6px; }
.rl__track {
    position: relative; display: block;
    height: 2px; margin-bottom: 22px;
    background: var(--rl-line);
    border-radius: 2px;
}
.rl__fill {
    position: absolute; left: 0; top: 0; bottom: 0;
    width: calc(var(--p, 0) * 100%);
    background: linear-gradient(90deg, rgba(200,250,75,0.2), var(--rl-lime));
    border-radius: inherit;
    box-shadow: 0 0 14px rgba(200,250,75,0.6);
}
.rl__fill::after {
    content: ""; position: absolute; right: -4px; top: 50%;
    width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(200,250,75,0.35), 0 0 16px var(--rl-lime);
    opacity: 0; transition: opacity 0.3s ease;
}
.rl__beat.is-active .rl__fill::after { opacity: 1; }
.rl__meta {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 12px;
    font-family: var(--rl-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--rl-faint);
    transition: color 0.5s ease;
}
.rl__beat.is-active .rl__meta b { color: var(--rl-lime); }
.rl__meta b { font-weight: 500; transition: color 0.5s ease; }
.rl__beat-title {
    display: block;
    font-family: var(--rl-serif);
    font-size: clamp(24px, 2.6vw, 34px); line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--rl-faint);
    transition: color 0.6s var(--rl-ease), transform 0.6s var(--rl-ease);
}
.rl__beat-desc {
    display: block; margin-top: 10px;
    font-size: 15px; line-height: 1.55;
    color: var(--rl-faint);
    transition: color 0.6s var(--rl-ease);
}
.rl__beat:hover .rl__beat-title { color: var(--rl-dim); }
.rl__beat.is-active .rl__beat-title { color: var(--rl-ink); transform: translateX(4px); }
.rl__beat.is-active .rl__beat-desc { color: var(--rl-dim); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .rl__chip--1, .rl__chip--2 { left: -1%; } .rl__chip--3, .rl__chip--4 { right: -1%; }
}
@media (max-width: 860px) {
    .rl__chip--2, .rl__chip--4 { display: none; }
    .rl__chip--1 { top: -6%; left: 0; }
    .rl__chip--3 { top: auto; bottom: -5%; right: 0; }
    .rl__hud-hide { display: none; }
}
@media (max-width: 640px) {
    .rl__chip { display: none; }
    .rl__beat-desc { display: none; }
    .rl__beat-title { font-size: 20px; }
    .rl__meta span { display: none; }
    .rl__track { margin-bottom: 14px; }
    .rl__cite { right: 50%; transform: translate(50%, -125%); }
    .rl__cite-in { font-size: 12.5px; padding: 7px 14px 7px 7px; }
    .rl__cite-in svg { width: 20px; height: 20px; }
    .rl__cite-in small { display: none; }
    .rl__toggle { width: 40px; height: 40px; }
    .rl:not(.is-playing) .rl__toggle { width: 64px; height: 64px; right: calc(50% - 32px); bottom: calc(50% - 32px); box-shadow: 0 0 0 8px rgba(200,250,75,0.18); }
    .rl__device {
        transform:
            translate3d(0, calc((1 - var(--rl-p)) * 40px), 0)
            rotateX(calc((1 - var(--rl-p)) * 16deg))
            scale(calc(0.9 + var(--rl-p) * 0.1));
    }
    .rl__hud { font-size: 10px; letter-spacing: 0.08em; padding: 2px 4px 8px; }
}

/* ── Reduced motion: final state, no drift, no autoplay (JS) ────────────── */
@media (prefers-reduced-motion: reduce) {
    .rl { --rl-p: 1 !important; }
    .rl__aurora i, .rl__ticker-row, .rl__ring, .rl__chip-in, .rl__title em .rl-w__i,
    .rl__pulse::after, .rl[data-beat="1"] .rl__chip-state i { animation: none !important; }
    .rl-w__i, .rl__fade, .rl__chip-in { transition: none !important; opacity: 1; transform: none; filter: none; translate: 0 0; scale: 1; }
    .rl__device, .rl__chip, .rl__grid { transform: none !important; }
}

/* ── Sound toggle (optional: [data-reel-sound]) ─────────────────────────── */
.rl__sound {
    position: absolute; z-index: 3;
    left: clamp(12px, 1.6vw, 20px); bottom: clamp(12px, 1.6vw, 20px);
    display: inline-flex; align-items: center; gap: 8px;
    height: 46px; padding: 0 16px 0 14px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(8,14,10,0.62);
    -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
    color: var(--rl-ink);
    font: 500 11px/1 var(--rl-mono); letter-spacing: 0.12em; text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.6s var(--rl-spring), background 0.4s ease, opacity 0.4s ease;
}
.rl__sound:hover { background: rgba(8,14,10,0.85); transform: scale(1.04); }
.rl__sound:focus-visible { outline: 2px solid var(--rl-lime); outline-offset: 3px; }
.rl__sound svg { width: 16px; height: 16px; flex: none; }
.rl__sound .i-on, .rl.is-sound .rl__sound .i-off, .rl.is-sound .rl__sound .t-off { display: none; }
.rl.is-sound .rl__sound .i-on { display: block; }
.rl__sound .t-on { display: none; }
.rl.is-sound .rl__sound .t-on { display: inline; }
.rl:not(.is-sound).is-playing .rl__sound .i-off { color: var(--rl-lime); }
.rl:not(.is-playing) .rl__sound { opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
    .rl__sound { height: 40px; padding: 0 12px; }
    .rl__sound span { display: none !important; }
}

/* six-chapter films: two rows of three */
.rl__beats { row-gap: clamp(32px, 4vw, 56px); }
