/* ── Self-hosted fonts (SIL OFL 1.1, license texts in /fonts) — no Google
   Fonts CDN: remote loading leaks visitor IPs (LG München, 2022). ── */
@font-face
{
    font-family: 'DM Serif Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/DMSerifDisplay-Regular.woff2') format('woff2');
}

@font-face
{
    font-family: 'DM Serif Display';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/DMSerifDisplay-Italic.woff2') format('woff2');
}

@font-face
{
    font-family: 'DM Mono';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/DMMono-300.woff2') format('woff2');
}

@font-face
{
    font-family: 'DM Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/DMMono-400.woff2') format('woff2');
}

@font-face
{
    font-family: 'DM Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/DMMono-500.woff2') format('woff2');
}

@font-face
{
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/InstrumentSans-Variable.woff2') format('woff2');
}

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

:root
{
    --primary: #34495e;
    --secondary: #c8823a;
    --ink: #0a0f16;
    --surface: #111923;
    --border: rgba(255, 255, 255, 0.07);
    --text: #e8edf3;
    --muted: #7a90a4;
    --dimmer: #4a6070;
}

html
{
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body
{
    background: var(--ink);
    color: var(--text);
    font-family: 'Instrument Sans', sans-serif;
    overflow-x: hidden;
}

/* Noise overlay */
body::before
{
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: 0.5;
}

/* ── Background atmosphere ── */
.bg-scene
{
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse 110% 60% at 50% -5%, #1e3248 0%, #0a0f16 55%);
}

.orb-amber
{
    position: fixed;
    bottom: -180px;
    left: -120px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    z-index: -1;
    background: radial-gradient(circle, rgba(200, 130, 58, 0.09) 0%, transparent 70%);
    pointer-events: none;
}

.orb-blue
{
    position: fixed;
    top: -80px;
    right: -60px;
    width: 450px;
    height: 650px;
    border-radius: 50%;
    z-index: -1;
    background: radial-gradient(circle, rgba(52, 73, 94, 0.38) 0%, transparent 70%);
    pointer-events: none;
}

.grid-bg
{
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: linear-gradient(rgba(38, 53, 69, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 53, 69, 0.3) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ── Shimmer text ── */
.shimmer
{
    background: linear-gradient(90deg, #c8823a 0%, #e8aa6a 40%, #c8823a 60%, #a5671e 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer
{
    from
    {
        background-position: 200% 0;
    }
    to
    {
        background-position: -200% 0;
    }
}

/* ── Animations ── */
@keyframes fadeUp
{
    from
    {
        opacity: 0;
        transform: translateY(24px);
    }
    to
    {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn
{
    from
    {
        opacity: 0;
    }
    to
    {
        opacity: 1;
    }
}

@keyframes lineGrow
{
    from
    {
        transform: scaleX(0);
    }
    to
    {
        transform: scaleX(1);
    }
}

@keyframes bounceY
{
    0%, 100%
    {
        transform: translateY(0);
    }
    50%
    {
        transform: translateY(4px);
    }
}

@keyframes pulse
{
    0%, 100%
    {
        opacity: 1;
    }
    50%
    {
        opacity: 0.4;
    }
}

.anim-fade-up
{
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
}

.anim-fade-in
{
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.d1
{
    animation-delay: 0.10s;
}

.d2
{
    animation-delay: 0.25s;
}

.d3
{
    animation-delay: 0.40s;
}

.d4
{
    animation-delay: 0.55s;
}

.d5
{
    animation-delay: 0.70s;
}

.d6
{
    animation-delay: 0.85s;
}

.d7
{
    animation-delay: 1.00s;
}

/* ── Layout ── */
.wrap
{
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 10;
}

@media (max-width: 600px)
{
    .wrap
    {
        padding: 0 20px;
    }
}

/* ── Navbar ── */
nav
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    position: relative;
    z-index: 50;
    max-width: 1040px;
    margin: 0 auto;
}

.logo
{
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon
{
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.logo-text
{
    font-family: 'DM Serif Display', serif;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    color: white;
    line-height: 1;
}

.nav-tag
{
    font-family: 'DM Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dimmer);
}

@media (max-width: 480px)
{
    .nav-tag
    {
        display: none;
    }
}

/* ── Hero ── */
.hero
{
    padding: 64px 0 96px;
}

.eyebrow
{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(52, 73, 94, 0.7);
    background: rgba(10, 15, 22, 0.6);
    backdrop-filter: blur(12px);
    margin-bottom: 32px;
}

.eyebrow-dot
{
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--secondary);
    animation: pulse 2s ease infinite;
}

.eyebrow-text
{
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--dimmer);
}

h1
{
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    color: white;
    line-height: 1.07;
    letter-spacing: -0.02em;
    max-width: 780px;
    margin-bottom: 24px;
}

.subhead
{
    font-size: 1rem;
    color: #94abbe;
    line-height: 1.7;
    max-width: 620px;
    margin-bottom: 40px;
}

@media (min-width: 768px)
{
    .subhead
    {
        font-size: 1.05rem;
    }
}

/* ── Store buttons ── */
.btn-row
{
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.store-btn
{
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    color: var(--text);
    text-decoration: none;
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
    cursor: pointer;
}

.store-btn:hover
{
    background: rgba(200, 130, 58, 0.12);
    border-color: rgba(200, 130, 58, 0.45);
    transform: translateY(-2px);
}

.store-btn:hover .arrow
{
    color: var(--secondary);
}

.btn-label-small
{
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
}

.hero-note
{
    font-family: 'DM Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-top: 18px;
}

.btn-label-main
{
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    line-height: 1.2;
}

.arrow
{
    color: #4a6070;
    transition: color 0.2s;
    margin-left: 4px;
}

/* ── Scroll indicator ── */
.scroll-hint
{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 72px;
}

.scroll-mouse
{
    width: 22px;
    height: 34px;
    border-radius: 100px;
    border: 1px solid rgba(52, 73, 94, 0.8);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 6px;
}

.scroll-dot
{
    width: 4px;
    height: 8px;
    border-radius: 3px;
    background: var(--secondary);
    animation: bounceY 1.6s ease infinite;
}

.scroll-label
{
    font-family: 'DM Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--dimmer);
}

/* ── Features section ── */
.features
{
    padding: 0 0 100px;
}

.section-rule-wrap
{
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.rule-line
{
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, var(--secondary) 40%, transparent);
    transform-origin: left;
    animation: lineGrow 1s ease 0.6s both;
}

.rule-line.right
{
    transform-origin: right;
}

.rule-tag
{
    font-family: 'DM Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--dimmer);
    white-space: nowrap;
}

h2
{
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: white;
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin-bottom: 48px;
}

/* ── Cards ── */
.card-grid
{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

@media (max-width: 768px)
{
    .card-grid
    {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 480px) and (max-width: 768px)
{
    .card-grid
    {
        grid-template-columns: 1fr 1fr;
    }
}

.card
{
    position: relative;
    border-radius: 18px;
    background: rgba(10, 15, 22, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.055);
    padding: 28px;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card::before
{
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(200, 130, 58, 0.38), transparent 55%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.card:hover
{
    transform: translateY(-5px);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.55);
}

.card:hover::before
{
    opacity: 1;
}

.card-top
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.card-num
{
    font-family: 'DM Mono', monospace;
    font-size: 0.58rem;
    color: var(--dimmer);
    letter-spacing: 0.1em;
}

.card-tag
{
    font-family: 'DM Mono', monospace;
    font-size: 0.52rem;
    padding: 4px 8px;
    border-radius: 100px;
    border: 1px solid rgba(200, 130, 58, 0.2);
    color: var(--secondary);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: rgba(200, 130, 58, 0.05);
}

.card-icon
{
    margin-bottom: 18px;
}

.card h3
{
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    color: white;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.card p
{
    font-size: 0.85rem;
    color: #7a90a4;
    line-height: 1.7;
}

.founder-note
{
    border-top: 1px solid rgba(200, 130, 58, 0.25);
    padding: 88px 0 96px;
    margin-top: 24px;
}

.founder-inner
{
    max-width: 640px;
    margin: 0 auto;
}

.founder-eyebrow
{
    display: block;
    font-family: 'DM Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 22px;
}

.founder-note h2
{
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-bottom: 36px;
}

.founder-body p
{
    font-size: 1rem;
    color: #94abbe;
    line-height: 1.75;
    margin-bottom: 20px;
}

.founder-body p:last-of-type
{
    margin-bottom: 0;
}

.founder-body em
{
    font-style: italic;
}

.founder-signoff
{
    margin-top: 40px;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.65;
}

.founder-signoff em
{
    font-style: italic;
}

@media (max-width: 600px)
{
    .founder-note
    {
        padding: 64px 0 72px;
    }
}

/* ── Footer ── */
footer
{
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1040px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 8px;
}

footer span
{
    font-family: 'DM Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dimmer);
}

footer a
{
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover
{
    color: var(--secondary);
}

@media (max-width: 500px)
{
    footer
    {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ── Hero reflow animation ── */
.reflow-hero
{
    display: none;
    margin-top: 64px;
}

.reflow-hero.ready
{
    display: block;
}

.rs-viewport
{
    position: relative;
    display: flex;
    justify-content: center;
    overflow: visible;
}

.rs-stage
{
    position: relative;
    flex: none;
    width: 900px;
    height: 440px;
    transform-origin: top center;
    transition: opacity 0.6s ease;
}

/* .rs-page-gone: the emptied PDF page fades the moment the last block leaves
   it. .rs-centered: on arrival the badge fades and the phone (content
   clipped inside it) glides to stage center. Transitions live under the
   classes so removing them on reset snaps instantly. */
.rs-page-gone .rs-pdfcard
{
    opacity: 0;
    transform: scale(0.95) translateY(10px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.rs-centered .rs-badge
{
    opacity: 0;
    transition: opacity 0.5s ease;
}

.rs-centered .rs-phone
{
    transform: translateX(-300px);
    transition: transform 0.85s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.rs-pdfcard
{
    position: absolute;
    left: 20px;
    top: 16px;
    width: 390px;
    height: 408px;
    border-radius: 8px;
    background: linear-gradient(160deg, #fffefb 0%, #eef0ed 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 30px 70px rgba(0, 0, 0, 0.55),
        0 4px 14px rgba(0, 0, 0, 0.35);
}

.rs-pdfcard::before
{
    content: 'PDF';
    position: absolute;
    top: -9px;
    left: 14px;
    padding: 3px 8px;
    border-radius: 5px;
    background: #b6462e;
    color: white;
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.12em;
}

.rs-phone
{
    position: absolute;
    left: 640px;
    top: 10px;
    width: 220px;
    height: 420px;
    border-radius: 30px;
    background: linear-gradient(160deg, #232f3d, #17202b);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 30px 70px rgba(0, 0, 0, 0.6),
        0 6px 18px rgba(0, 0, 0, 0.4);
}

.rs-screen
{
    position: absolute;
    inset: 8px;
    border-radius: 23px;
    background: #0d141d;
    overflow: hidden;
    transition: box-shadow 0.8s ease;
}

/* The clipped scroll layer inside the screen — identical rows to where the
   traveling bars land, plus generated reading below the fold. */
.rs-scroll
{
    position: absolute;
    inset: 0 0 auto 0;
    height: 1100px;
    display: none;
}

.rs-swapped .rs-scroll
{
    display: block;
}

.rs-scrolling .rs-scroll
{
    transform: translateY(-600px);
    transition: transform 5200ms cubic-bezier(0.4, 0.05, 0.55, 0.95);
}

.rs-sh,
.rs-sb,
.rs-scap,
.rs-sfig,
.rs-seq
{
    position: absolute;
    border-radius: 3px;
}

.rs-sh
{
    background: #ffffff;
}

.rs-sb
{
    background: #cfdae6;
}

.rs-scap
{
    background: #8fa3b5;
}

.rs-sfig
{
    border-radius: 6px;
    background-color: rgba(74, 127, 181, 0.16);
    border: 1.5px solid rgba(116, 166, 214, 0.45);
    background-image: radial-gradient(circle at 30% 62%, rgba(116, 166, 214, 0.4) 0 12%, transparent 13%),
    linear-gradient(to top right, transparent 46%, rgba(116, 166, 214, 0.35) 47% 53%, transparent 54%);
}

.rs-seq
{
    border-radius: 6px;
    background-color: rgba(200, 130, 58, 0.16);
    border: 1.5px solid rgba(224, 163, 94, 0.5);
}

.rs-seq::after
{
    content: '∑ x·wᵀ';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: 15px;
    color: #e0a35e;
}

/* Marked for demolition: red (via inline background) + violent pulsating */
.rs-el.rs-alarm
{
    animation: rsAlarm 0.13s ease-in-out 0.12s infinite alternate;
    box-shadow: 0 0 10px rgba(208, 59, 59, 0.6);
}

@keyframes rsAlarm
{
    from
    {
        transform: translate(-3px, -1px) scale(1.05);
    }
    to
    {
        transform: translate(3px, 1px) scale(1.18);
    }
}

/* Furniture explosion fragments — red-hot on the way out */
.rs-frag
{
    position: absolute;
    z-index: 6;
    border-radius: 1.5px;
    background: linear-gradient(140deg, #e86a4a 0%, #b23320 60%, #7a1f12 100%);
    box-shadow: 0 0 10px rgba(226, 88, 55, 0.8), 0 0 22px rgba(226, 88, 55, 0.35);
    opacity: 1;
    transition: transform 0.8s ease-out, opacity 0.7s ease 0.1s;
}

/* Figure/formula arrival: no bounce — a single smooth settle from slightly
   oversized to exact fit, with a brief soft glow as it locks in. */
.rs-squeeze
{
    animation: rsSnapIn 0.45s cubic-bezier(0.2, 0.6, 0.3, 1);
}

@keyframes rsSnapIn
{
    0%
    {
        transform: scale(1.04);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
    35%
    {
        box-shadow: 0 0 16px 1px rgba(255, 255, 255, 0.22);
    }
    100%
    {
        transform: none;
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.rs-settled .rs-screen
{
    box-shadow:
        0 0 0 1px rgba(224, 163, 94, 0.45),
        0 0 26px rgba(200, 130, 58, 0.30),
        0 0 70px rgba(200, 130, 58, 0.14);
}

/* A slow light sheen sweeps the glass while the phone scrolls. */
.rs-scrolling .rs-screen::after
{
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.07) 45%, rgba(255, 255, 255, 0.02) 52%, transparent 62%);
    background-size: 260% 100%;
    animation: rsSheen 4.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes rsSheen
{
    from
    {
        background-position: 130% 0;
    }
    to
    {
        background-position: -130% 0;
    }
}

.rs-speaker
{
    position: absolute;
    top: 14px;
    left: 50%;
    width: 44px;
    height: 6px;
    margin-left: -22px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.55);
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.18);
}

.rs-speaker::after
{
    content: '';
    position: absolute;
    right: 5px;
    top: 1.5px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(90, 130, 190, 0.8);
    box-shadow: 0 0 3px rgba(90, 130, 190, 0.7);
}

.rs-badge
{
    position: absolute;
    left: 493px;
    top: 177px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(10, 15, 22, 0.85);
    border: 1px solid rgba(200, 130, 58, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rs-badge svg
{
    width: 42px;
    height: 42px;
}

.rs-logo-halo
{
    fill: none;
    stroke: url(#rsLogoGrad);
    stroke-width: 10;
    stroke-linecap: round;
    filter: url(#rsLogoBlur);
    opacity: 0.45;
}

.rs-logo-line
{
    fill: none;
    stroke: url(#rsLogoGrad);
    stroke-width: 8;
    stroke-linecap: round;
}

/* A glow travels the mark's path entry-to-terminus while the engine works. */
.rs-logo-flow
{
    fill: none;
    stroke: #f0ffff;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 14 86;
    opacity: 0;
}

.rs-reflowing .rs-logo-flow
{
    opacity: 0.9;
    animation: rsLogoFlow 1.25s linear infinite;
}

@keyframes rsLogoFlow
{
    from
    {
        stroke-dashoffset: 100;
    }
    to
    {
        stroke-dashoffset: 0;
    }
}

.rs-badge::after
{
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 1px solid rgba(200, 130, 58, 0.6);
    opacity: 0;
}

.rs-reflowing .rs-badge::after
{
    animation: rsRing 1.1s ease infinite;
}

@keyframes rsRing
{
    from
    {
        opacity: 0.8;
        transform: scale(1);
    }
    to
    {
        opacity: 0;
        transform: scale(1.9);
    }
}

/* The travel dots are GONE (2026-07-31): the flow animating through the
   logo badge replaced them — the engine itself shows the transformation. */

/* Ambient aurora behind the stage, drifting slowly. */
.rs-viewport::before
{
    content: '';
    position: absolute;
    inset: -70px -40px;
    background:
        radial-gradient(ellipse 40% 55% at 24% 45%, rgba(52, 100, 150, 0.20) 0%, transparent 70%),
        radial-gradient(ellipse 36% 50% at 78% 40%, rgba(200, 130, 58, 0.14) 0%, transparent 70%);
    filter: blur(6px);
    animation: rsAurora 11s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes rsAurora
{
    from
    {
        transform: translateX(-14px) scale(1);
        opacity: 0.85;
    }
    to
    {
        transform: translateX(14px) scale(1.06);
        opacity: 1;
    }
}

/* The two objects are named; labels fade when the phone glides to center. */
.rs-label
{
    position: absolute;
    top: -10px;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
    text-align: center;
    transition: opacity 0.5s ease;
}

.rs-label-pdf
{
    left: 20px;
    width: 390px;
}

.rs-label-app
{
    left: 640px;
    width: 220px;
    color: rgba(232, 170, 106, 0.75);
}

.rs-centered .rs-label
{
    opacity: 0;
}

/* A phone with a clock reads as a phone. */
.rs-status
{
    position: absolute;
    top: 4px;
    right: 12px;
    z-index: 7;
    font-family: 'DM Mono', monospace;
    font-size: 7px;
    color: rgba(255, 255, 255, 0.45);
}

/* One sentence narrates the step the eye is watching. */
.rs-caption
{
    margin-top: 20px;
    min-height: 1.4em;
    text-align: center;
    font-size: 0.82rem;
    color: #d5dde6;
}

.rs-caption.pop
{
    animation: rsCaptionPop 0.45s ease;
}

@keyframes rsCaptionPop
{
    from
    {
        opacity: 0;
        transform: translateY(6px);
    }
    to
    {
        opacity: 1;
        transform: none;
    }
}

/* Spotlight: whatever is not acting dims. Filter, not opacity — the
   elements carry inline opacity, which would win over a stylesheet. */
.rs-focus-furn .rs-b,
.rs-focus-furn .rs-h,
.rs-focus-furn .rs-cap,
.rs-focus-furn .rs-fig,
.rs-focus-furn .rs-eq
{
    filter: opacity(0.45);
}

.rs-focus-text .rs-fig,
.rs-focus-text .rs-eq
{
    filter: opacity(0.5);
}

.rs-focus-blocks .rs-b,
.rs-focus-blocks .rs-h,
.rs-focus-blocks .rs-cap
{
    filter: opacity(0.6);
}

.rs-el
{
    position: absolute;
    border-radius: 3px;
    z-index: 5;
    will-change: left, top, width, height, opacity;
}

/* Traveling bars carry a soft amber wake while the reflow runs. */
.rs-reflowing .rs-el
{
    animation: rsGlowWake 1.6s ease;
}

@keyframes rsGlowWake
{
    0%
    {
        box-shadow: 0 0 0 rgba(232, 170, 106, 0);
    }
    35%
    {
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), 0 0 14px rgba(232, 170, 106, 0.35);
    }
    100%
    {
        box-shadow: 0 0 0 rgba(232, 170, 106, 0);
    }
}

.rs-fig
{
    background: #e9eef4;
    border: 1.5px solid #a8bccd;
    border-radius: 6px;
    background-image: radial-gradient(circle at 30% 62%, rgba(74, 127, 181, 0.35) 0 12%, transparent 13%),
    linear-gradient(to top right, transparent 46%, rgba(74, 127, 181, 0.3) 47% 53%, transparent 54%);
}

.rs-fig.rs-phone-style
{
    background-color: rgba(74, 127, 181, 0.16);
    border-color: rgba(116, 166, 214, 0.45);
}

.rs-eq
{
    background: #f7ecdb;
    border: 1.5px solid #ddc194;
    border-radius: 6px;
    --eqc: #a5712c;
}

.rs-eq.rs-phone-style
{
    background-color: rgba(200, 130, 58, 0.16);
    border-color: rgba(224, 163, 94, 0.5);
    --eqc: #e0a35e;
}

.rs-eq::after
{
    content: '∑ x·wᵀ';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: 15px;
    color: var(--eqc);
    transition: color 0.85s ease;
}

.rs-legend
{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    margin-top: 22px;
}

.rs-chip
{
    font-family: 'DM Mono', monospace;
    font-size: 0.56rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--dimmer);
    background: linear-gradient(160deg, rgba(30, 42, 56, 0.55), rgba(10, 15, 22, 0.65));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: color 0.4s, border-color 0.4s, background 0.4s, transform 0.4s, box-shadow 0.4s;
}

.rs-chip.lit
{
    color: #e8aa6a;
    border-color: rgba(200, 130, 58, 0.65);
    background: rgba(200, 130, 58, 0.14);
    transform: scale(1.14);
    box-shadow: 0 0 20px rgba(200, 130, 58, 0.28);
    animation: rsChipPop 0.5s ease;
}

@keyframes rsChipPop
{
    0%
    {
        transform: scale(0.9);
    }
    55%
    {
        transform: scale(1.32);
    }
    100%
    {
        transform: scale(1.14);
    }
}

/* A finished step: back to normal size, quiet amber — done, not active. */
.rs-chip.done
{
    color: var(--secondary);
    border-color: rgba(200, 130, 58, 0.35);
    background: rgba(200, 130, 58, 0.06);
}

/* ── Scroll-triggered reveals (gated on JS so content never hides without it) ── */
html.js .reveal
{
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .reveal.in-view
{
    opacity: 1;
    transform: none;
}

html.js .reveal.rd2
{
    transition-delay: 0.12s;
}

html.js .reveal.rd3
{
    transition-delay: 0.24s;
}

html.js .reveal.rd4
{
    transition-delay: 0.36s;
}

html.js .section-rule-wrap .rule-line
{
    animation: none;
    transform: scaleX(0);
}

html.js .section-rule-wrap.in-view .rule-line
{
    animation: lineGrow 1s ease 0.2s both;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce)
{
    html
    {
        scroll-behavior: auto;
    }

    .shimmer,
    .eyebrow-dot,
    .scroll-dot,
    .rule-line,
    .rs-badge::after,
    .rs-viewport::before,
    .rs-scrolling .rs-screen::after,
    .rs-logo-flow,
    .rs-reflowing .rs-el,
    .rs-caption.pop
    {
        animation: none !important;
    }

    .anim-fade-up,
    .anim-fade-in
    {
        animation: none !important;
        opacity: 1 !important;
    }

    html.js .reveal
    {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .rule-line,
    html.js .section-rule-wrap .rule-line
    {
        transform: scaleX(1);
    }

    .rs-stage,
    .rs-page-gone .rs-pdfcard,
    .rs-centered .rs-badge,
    .rs-centered .rs-phone,
    .rs-scrolling .rs-scroll,
    .rs-chip,
    .rs-frag
    {
        transition: none;
    }

    .rs-chip.lit,
    .rs-squeeze,
    .rs-el.rs-alarm
    {
        animation: none;
    }
}

/* Scrollbar */
::-webkit-scrollbar
{
    width: 5px;
}

::-webkit-scrollbar-track
{
    background: var(--ink);
}

::-webkit-scrollbar-thumb
{
    background: #34495e;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover
{
    background: var(--secondary);
}
