/* Scroll reveals + extended landing (IntersectionObserver + hover transitions) */

.site-extended {
    --reveal-duration: 0.92s;
    --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --reveal-opacity-start: 0.001;
    --reveal-x: 0px;
    --reveal-y: 34px;
    --reveal-scale: 0.99;
    --reveal-rotate-x: 0deg;
    --reveal-blur: 10px;
    --reveal-clip-start: inset(0 0 0 0 round 0px);
    --reveal-clip-end: inset(0 0 0 0 round 0px);
    /* Space between hero copy and first extended section (“What is Undra?”); main + placeholder are siblings */
    padding-top: clamp(4.5rem, 14vw, 11rem);
}

.reveal {
    opacity: var(--reveal-opacity-start);
    transform:
        perspective(1400px)
        translate3d(var(--reveal-x), var(--reveal-y), 0)
        scale(var(--reveal-scale))
        rotateX(var(--reveal-rotate-x));
    filter: blur(var(--reveal-blur));
    clip-path: var(--reveal-clip-start);
    transition:
        opacity var(--reveal-duration) var(--reveal-ease),
        transform var(--reveal-duration) var(--reveal-ease),
        filter calc(var(--reveal-duration) * 1.08) var(--reveal-ease),
        clip-path calc(var(--reveal-duration) * 0.95) var(--reveal-ease);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform, filter;
    backface-visibility: hidden;
}

.reveal.is-revealed {
    opacity: 1;
    transform: perspective(1400px) translate3d(0, 0, 0) scale(1) rotateX(0deg);
    filter: blur(0);
    clip-path: var(--reveal-clip-end);
}

.reveal--soft {
    --reveal-duration: 0.72s;
    --reveal-y: 18px;
    --reveal-scale: 0.995;
    --reveal-blur: 6px;
}

.reveal--text {
    --reveal-duration: 0.96s;
    --reveal-y: 26px;
    --reveal-blur: 8px;
    --reveal-clip-start: inset(0 0 100% 0 round 0px);
}

.reveal--hero {
    --reveal-duration: 1.16s;
    --reveal-y: 56px;
    --reveal-scale: 0.955;
    --reveal-rotate-x: 7deg;
    --reveal-blur: 18px;
}

.reveal--cascade {
    --reveal-duration: 0.88s;
    --reveal-y: 30px;
    --reveal-scale: 0.982;
    --reveal-blur: 9px;
}

.reveal--spotlight {
    position: relative;
    isolation: isolate;
}

.reveal--spotlight::after {
    content: '';
    position: absolute;
    inset: -26% -14%;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12), transparent 34%),
        linear-gradient(118deg, transparent 18%, rgba(255, 255, 255, 0.16) 44%, transparent 72%);
    opacity: 0;
    transform: translate3d(-6%, 7%, 0) scale(0.92) rotate(7deg);
    transform-origin: center;
    mix-blend-mode: screen;
    pointer-events: none;
    transition:
        opacity 1.1s var(--reveal-ease),
        transform 1.35s var(--reveal-ease);
    transition-delay: calc(var(--reveal-delay, 0s) + 0.08s);
    z-index: -1;
}

.reveal--spotlight.is-revealed::after {
    opacity: 0.82;
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
}

.section-cinematic {
    position: relative;
    isolation: isolate;
}

.section-cinematic::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(1080px, 90vw);
    height: clamp(240px, 42vw, 520px);
    transform: translateX(-50%);
    background:
        radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.055), transparent 38%),
        radial-gradient(circle at 50% 72%, rgba(96, 165, 250, 0.08), transparent 62%);
    pointer-events: none;
    z-index: -1;
}

.section-cinematic--app::after {
    background:
        radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.08), transparent 34%),
        radial-gradient(circle at 50% 74%, rgba(184, 85, 124, 0.14), transparent 60%);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        filter: none;
        clip-path: none;
        transition: none;
        will-change: auto;
    }

    .reveal--spotlight::after {
        opacity: 0.18;
        transform: none;
        transition: none;
    }
}

.site-extended .content-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Between-section divider: full viewport width; content stays max-width */
.site-extended .content-section + .content-section {
    position: relative;
}

.site-extended .content-section + .content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: 100vw;
    border-top: 1px dashed color-mix(in srgb, var(--text-primary) 9%, transparent);
    pointer-events: none;
}

.site-extended .content-section.section-alt {
    background: transparent;
}

.site-extended .section-title {
    font-size: clamp(2.25rem, 4.5vw, 3rem);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.1;
    color: var(--text-primary);
}

.site-extended .content-section.has-feature-list .section-title {
    margin-bottom: 3rem;
}

/* “What is Undra?” — match centered section title */
#content-start .glass-card {
    text-align: center;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card-grid.card-grid--tech {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.glass-card {
    padding: 2rem 2.25rem;
    border-radius: 12px;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.glass-card:hover {
    transform: translateY(-3px);
}

.glass-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.glass-card h3.title-lg {
    font-size: 1.8rem;
}

.glass-card p {
    line-height: 1.75;
    color: var(--muted);
    font-size: 0.98rem;
}

.glass-card--tall {
    padding: 2.5rem;
}

/* Getting started: horizontal steps, gradient icon tiles, dashed connectors */
.how-it-works-section .how-it-works-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 1180px;
    margin: 0 auto;
}

.how-it-works-step {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    padding: 0 0.35rem;
}

.how-it-works-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.how-it-works-icon--1 {
    background: linear-gradient(145deg, #f59e0b 0%, #ea580c 100%);
}

.how-it-works-icon--2 {
    background: linear-gradient(145deg, #22c55e 0%, #0d9488 100%);
}

.how-it-works-icon--3 {
    background: linear-gradient(145deg, #a855f7 0%, #db2777 100%);
}

.how-it-works-icon--4 {
    background: linear-gradient(145deg, #34d399 0%, #06b6d4 100%);
}

.how-it-works-kicker {
    margin: 0 0 0.45rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.how-it-works-title {
    margin: 0 0 0.65rem;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--text-primary);
}

.how-it-works-desc {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.65;
    color: var(--muted);
    font-family:
        ui-monospace,
        'SFMono-Regular',
        'SF Mono',
        Menlo,
        Consolas,
        monospace;
}

.how-it-works-connector {
    flex: 0 0 72px;
    flex-shrink: 0;
    width: 72px;
    min-width: 64px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 18px;
    /* Visible on dark bg (was ~invisible at 0.2 opacity) */
    color: color-mix(in srgb, var(--muted) 92%, var(--text-primary));
    opacity: 0.85;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.06));
}

.how-it-works-connector-svg {
    width: 72px;
    height: 46px;
    display: block;
    overflow: visible;
}

.how-it-works-connector-path {
    opacity: 0.95;
}

.how-it-works-marker path {
    opacity: 1;
}

@media (max-width: 960px) {
    .how-it-works-section .how-it-works-track {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-width: 28rem;
    }

    .how-it-works-connector {
        display: none;
    }

    .how-it-works-step {
        padding: 1.25rem 1.35rem;
        border-radius: 12px;
        border: none;
        background: rgba(255, 255, 255, 0.02);
        margin-bottom: 0.75rem;
    }

    .how-it-works-step:last-child {
        margin-bottom: 0;
    }

    .how-it-works-icon {
        margin-bottom: 0.85rem;
    }
}

.feature-block {
    margin-bottom: 3rem;
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-block h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.feature-block p {
    line-height: 1.75;
    color: var(--muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.feature-block ul {
    line-height: 1.85;
    color: var(--muted);
    padding-left: 2rem;
    font-size: 1.05rem;
}

.tech-lead {
    margin-bottom: 2rem;
}

.tech-lead p {
    line-height: 1.75;
    color: var(--muted);
    font-size: 1.05rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 12px;
    background: transparent;
    border: none;
}

.faq-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-item p {
    line-height: 1.75;
    color: var(--muted);
}

.site-extended-footer {
    padding: 0.55rem 1.5rem;
    text-align: center;
    background: transparent;
    border-top: none;
}

.site-extended-footer p {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--text-secondary);
}

.site-extended-footer .muted {
    color: var(--text-muted);
    font-size: 0.7rem;
    line-height: 1.35;
    margin-bottom: 0;
}

@media (max-width: 520px) {
    .site-extended-footer {
        padding: 0.5rem 1rem;
    }
}

/* ─── Undraverse: Graph + Orbit animated showcase cards ─── */
.has-undraverse-showcase .section-title {
    margin-bottom: 0.75rem;
}

.undraverse-showcase-lead {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 2.5rem;
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--muted);
    font-weight: 400;
}

.undraverse-showcase-lead strong {
    color: var(--text-secondary);
    font-weight: 600;
}

.undraverse-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
    gap: 2.25rem;
    margin-bottom: 0;
    align-items: stretch;
}

.undraverse-showcase-card.glass-card {
    display: flex;
    flex-direction: column;
    padding: 2.1rem 2.1rem 1.85rem;
    overflow: hidden;
    min-height: 0;
}

/* Graph card: preview aligns with orbit card (same min-height); SVG targets ~400px figure height like the orbit square */
.undraverse-showcase-grid .undraverse-showcase-card:first-child .undraverse-preview--graph {
    margin-top: 0;
    flex: 1 1 auto;
}

.undraverse-showcase-card-text {
    text-align: center;
}

.undraverse-showcase-card-text h3 {
    font-size: 1.65rem;
    margin-bottom: 0.55rem;
}

.undraverse-showcase-card-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.65;
}

.undraverse-preview {
    margin-top: auto;
    border-radius: 10px;
    border: none;
    background:
        radial-gradient(ellipse 85% 70% at 50% 20%, rgba(79, 156, 255, 0.06), transparent 55%),
        linear-gradient(180deg, var(--gradient-surface-top) 0%, var(--bg) 100%);
    overflow: hidden;
    color: rgba(228, 228, 231, 0.45);
}

.undraverse-preview--graph,
.undraverse-preview--orbit {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.undraverse-preview--graph {
    align-items: center;
    justify-content: center;
    min-height: 440px;
    padding: 18px 8px 12px;
    background: transparent;
    border-radius: 0;
}

.undraverse-preview--orbit {
    align-items: center;
    min-height: 440px;
    padding: 18px 8px 12px;
    background: transparent;
    border-radius: 0;
}

.uv-graph-svg {
    width: 100%;
    height: auto;
    max-height: 460px;
    display: block;
}

/* Same visual weight as orbit: orbit caps at 400px square; graph uses ~400px height → width ~ 304/172 * 400 ≈ 707px */
.undraverse-preview--graph .uv-graph-svg {
    flex: 0 0 auto;
    display: block;
    width: min(100%, calc(400px * 304 / 172));
    max-width: 100%;
    height: auto;
    aspect-ratio: 304 / 172;
    margin-inline: auto;
}

.undraverse-preview--orbit .uv-orbit-svg {
    width: min(100%, 400px);
    margin-inline: auto;
}

.uv-graph-arrowhead path {
    fill: color-mix(in srgb, var(--text-primary) 32%, transparent);
}

.uv-graph-svg text {
    font-family:
        'Inter',
        system-ui,
        sans-serif;
    font-size: 4.25px;
    font-weight: 500;
    letter-spacing: 0.01em;
    fill: color-mix(in srgb, var(--text-primary) 72%, transparent);
}

.uv-graph-node--hub text {
    font-size: 4.85px;
    font-weight: 600;
    fill: color-mix(in srgb, var(--text-primary) 88%, transparent);
}

.uv-graph-edge {
    stroke: color-mix(in srgb, var(--text-primary) 22%, transparent);
    stroke-width: 1.1;
    stroke-linecap: round;
}

.uv-graph-edge--solid {
    opacity: 0.85;
}

.uv-graph-edge--trace {
    stroke-dasharray: 4 6;
    opacity: 0.65;
    animation: uv-graph-edge-flow 3.2s linear infinite;
}

.uv-graph-edge--glow {
    stroke: color-mix(in srgb, var(--accent) 42%, transparent);
    stroke-width: 1.65;
    opacity: 0.65;
    animation: uv-graph-edge-glow 2.8s ease-in-out infinite;
}

.uv-graph-edge--canvas-link {
    stroke: color-mix(in srgb, var(--u-item-canvas) 48%, var(--text-primary) 52%);
    stroke-width: 1;
    stroke-dasharray: 3.5 5;
    opacity: 0.55;
}

.uv-graph-node circle {
    stroke: none;
}

.uv-graph-node--note circle {
    fill: color-mix(in srgb, var(--u-item-note) 38%, #15151a);
}

.uv-graph-node--plan circle {
    fill: color-mix(in srgb, var(--u-item-plan) 42%, #15151a);
}

.uv-graph-node--canvas circle {
    fill: color-mix(in srgb, var(--u-item-canvas) 40%, #15151a);
}

.uv-graph-node--orphan {
    opacity: 0.88;
    animation: uv-graph-node-float 4.2s ease-in-out infinite;
}

.uv-graph-node--orphan ~ .uv-graph-node--orphan {
    animation-delay: 0.75s;
}

.uv-graph-node--orphan text {
    fill: color-mix(in srgb, var(--u-item-canvas) 55%, var(--text-primary) 45%);
    font-size: 3.85px;
}

.uv-graph-node--hub circle {
    fill: color-mix(in srgb, var(--u-item-note) 52%, #12121a);
}

.uv-graph-node--mini {
    animation: uv-graph-node-float 3.6s ease-in-out infinite;
}

.uv-graph-node--mid {
    animation: uv-graph-node-float 3.2s ease-in-out 0.2s infinite;
}

.uv-graph-node--hub {
    transform-origin: 152px 92px;
    transform-box: fill-box;
    animation: uv-graph-center-pulse 2.8s ease-in-out infinite;
}

.uv-orbit-svg {
    width: 100%;
    height: auto;
    max-height: 480px;
    display: block;
}

/* Full ring tracks (dim), like Pixi stroke before the bright progress arc */
.uv-orbit-track {
    fill: none;
    stroke: #94a3b8;
    stroke-opacity: 0.22;
    stroke-width: 1.05;
    pointer-events: none;
    animation: uv-orbit-track-breathe 5s ease-in-out infinite;
}

.uv-orbit-arc {
    fill: none;
    pointer-events: none;
}

.uv-orbit-hub {
    font-family:
        'Inter',
        system-ui,
        sans-serif;
    pointer-events: none;
}

.uv-orbit-hub-year {
    font-size: 9px;
    font-weight: 700;
    fill: #e2e8f0;
    letter-spacing: -0.04em;
    animation: uv-orbit-hub-text 3s ease-in-out infinite;
}

.uv-orbit-hub-meta {
    font-size: 5px;
    font-weight: 600;
    fill: #cbd5e1;
    letter-spacing: 0.01em;
    animation: uv-orbit-hub-text 3s ease-in-out 0.15s infinite;
}

.uv-orbit-hub-meta--time {
    font-size: 4.6px;
    fill: color-mix(in srgb, #cbd5e1 88%, transparent);
}

.uv-orbit-pin-stem {
    stroke-width: 0.85;
    stroke-linecap: round;
    opacity: 0.55;
}

.uv-orbit-pins line:nth-of-type(1) {
    stroke: var(--u-item-note);
}

.uv-orbit-pins line:nth-of-type(2) {
    stroke: var(--u-item-plan);
}

.uv-orbit-pins line:nth-of-type(3) {
    stroke: var(--u-item-canvas);
}

.uv-orbit-pin-dot {
    transform-origin: center;
    transform-box: fill-box;
}

.uv-orbit-pin-dot--note {
    fill: var(--u-item-note);
    animation: uv-orbit-pin 2.4s ease-in-out infinite;
}

.uv-orbit-pin-dot--plan {
    fill: var(--u-item-plan);
    animation: uv-orbit-pin 2.4s ease-in-out 0.35s infinite;
}

.uv-orbit-pin-dot--canvas {
    fill: var(--u-item-canvas);
    animation: uv-orbit-pin 2.4s ease-in-out 0.7s infinite;
}

.uv-orbit-arc--sec {
    animation: uv-orbit-sec-tick 2s linear infinite;
}

.uv-orbit-arc--min {
    animation: uv-orbit-min-tick 3.5s ease-in-out infinite;
}

@keyframes uv-graph-edge-flow {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -24;
    }
}

@keyframes uv-graph-edge-glow {
    0%,
    100% {
        opacity: 0.35;
    }
    50% {
        opacity: 0.85;
    }
}

@keyframes uv-graph-node-float {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(1.5px, -2px);
    }
}

@keyframes uv-graph-center-pulse {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(0, -1px) scale(1.03);
    }
}

@keyframes uv-orbit-track-breathe {
    0%,
    100% {
        stroke-opacity: 0.22;
    }
    50% {
        stroke-opacity: 0.1;
    }
}

@keyframes uv-orbit-sec-tick {
    0%,
    100% {
        stroke-dashoffset: 42.82;
    }
    50% {
        stroke-dashoffset: 36.5;
    }
}

@keyframes uv-orbit-min-tick {
    0%,
    100% {
        stroke-dashoffset: 69.28;
    }
    50% {
        stroke-dashoffset: 64.2;
    }
}

@keyframes uv-orbit-hub-text {
    0%,
    100% {
        opacity: 0.9;
    }
    50% {
        opacity: 1;
    }
}

@keyframes uv-orbit-pin {
    0%,
    100% {
        opacity: 0.65;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .uv-graph-edge--trace,
    .uv-graph-edge--glow,
    .uv-graph-node--hub,
    .uv-graph-node--mini,
    .uv-graph-node--mid,
    .uv-graph-node--orphan,
    .uv-orbit-track,
    .uv-orbit-arc--sec,
    .uv-orbit-arc--min,
    .uv-orbit-hub-year,
    .uv-orbit-hub-meta,
    .uv-orbit-pin-dot--note,
    .uv-orbit-pin-dot--plan,
    .uv-orbit-pin-dot--canvas {
        animation: none !important;
    }

    .uv-graph-node--hub,
    .uv-graph-node--mini,
    .uv-graph-node--mid,
    .uv-graph-node--orphan {
        transform: none;
    }

    .uv-orbit-track {
        stroke-opacity: 0.22;
    }

    .uv-orbit-pin-dot--note,
    .uv-orbit-pin-dot--plan,
    .uv-orbit-pin-dot--canvas {
        opacity: 1;
        transform: none;
    }
}

/* ─── Media library showcase (matches in-app Media page) ─── */
.has-media-showcase .section-title {
    margin-bottom: 0.75rem;
}

.media-showcase-lead {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 2.5rem;
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--muted);
    font-weight: 400;
}

.media-showcase-lead strong {
    color: var(--text-secondary);
    font-weight: 600;
}

.media-showcase-card.glass-card {
    display: flex;
    flex-direction: column;
    padding: 2.1rem 2.1rem 1.85rem;
    max-width: 920px;
    margin: 0 auto;
    overflow: hidden;
}

.media-showcase-card-text h3 {
    font-size: 1.65rem;
    margin-bottom: 0.55rem;
}

.media-showcase-card-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--muted);
}

.media-showcase-preview-wrap {
    margin-top: auto;
    border-radius: 10px;
    border: none;
    background:
        radial-gradient(ellipse 85% 70% at 50% 18%, rgba(45, 212, 191, 0.042), transparent 52%),
        linear-gradient(180deg, color-mix(in srgb, var(--gradient-surface-top) 72%, transparent) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 100%);
    overflow: hidden;
    padding: 14px 12px 18px;
}

.site-media-preview--lg .site-media-preview-title {
    font-size: 1.2rem;
}

.site-media-preview--lg .site-media-preview-badge {
    font-size: 0.62rem;
    padding: 3px 8px;
}

.site-media-preview--lg .site-media-preview-search {
    font-size: 0.82rem;
    padding: 8px 11px;
}

.site-media-preview--lg .site-media-preview-seg {
    --media-seg-col: 88px;

    margin-top: 8px;
    border-radius: 10px;
}

.site-media-preview--lg .site-media-preview-seg-btn {
    padding: 7px 4px;
    font-size: 0.62rem;
    letter-spacing: 0.03em;
}

.site-media-preview--lg .site-media-preview-main {
    min-height: 300px;
    gap: 10px;
}

.site-media-preview--lg .site-media-preview-aside {
    flex-basis: 118px;
    padding: 8px 8px 8px 6px;
    border-radius: 9px;
    gap: 4px;
}

.site-media-preview--lg .site-media-preview-aside-head {
    font-size: 0.62rem;
    margin: 4px 3px 3px;
}

.site-media-preview--lg .site-media-preview-row {
    padding: 6px 8px;
    font-size: 0.78rem;
    border-radius: 6px;
}

.site-media-preview--lg .site-media-preview-row.is-tag .site-media-preview-row-label {
    font-size: 0.72rem;
}

.site-media-preview--lg .site-media-preview-row-count {
    font-size: 0.72rem;
}

.site-media-preview--lg .site-media-preview-grid {
    gap: 8px;
}

.site-media-preview--lg .site-media-preview-tile {
    border-radius: 8px;
}

.site-media-preview--lg .site-media-preview-name {
    font-size: 0.68rem;
    padding: 4px 6px 6px;
}

/* ─── Explorer showcase (folder tree + in-folder reorder) ─── */
.has-explorer-showcase .section-title {
    margin-bottom: 0.75rem;
}

.explorer-showcase-lead {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 2.5rem;
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--muted);
    font-weight: 400;
}

.explorer-showcase-lead strong {
    color: var(--text-secondary);
    font-weight: 600;
}

.explorer-showcase-card.glass-card {
    display: flex;
    flex-direction: column;
    padding: 2.1rem 2.1rem 1.85rem;
    max-width: 920px;
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: visible;
}

.explorer-showcase-card-text h3 {
    font-size: 1.65rem;
    margin-bottom: 0.55rem;
}

.explorer-showcase-card-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--muted);
}

.explorer-showcase-preview-wrap {
    margin-top: auto;
    border-radius: 10px;
    border: none;
    background:
        radial-gradient(ellipse 85% 70% at 50% 18%, rgba(148, 184, 255, 0.045), transparent 52%),
        linear-gradient(180deg, color-mix(in srgb, var(--gradient-surface-top) 72%, transparent) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 100%);
    overflow-x: hidden;
    overflow-y: visible;
    padding: 14px 12px 22px;
}

.site-explorer-preview--lg .site-explorer-chrome {
    margin-bottom: 10px;
    padding-bottom: 8px;
}

.site-explorer-preview--lg .site-explorer-chrome-title {
    font-size: 0.72rem;
}

.site-explorer-preview--lg .site-explorer-lib-pill {
    font-size: 0.65rem;
    padding: 3px 9px;
}

.site-explorer-preview--lg .site-explorer-body {
    min-height: 300px;
    padding: 10px 10px 12px;
    border-radius: 10px;
}

.site-explorer-preview--lg .site-explorer-hint--tree {
    font-size: 0.65rem;
    margin: 2px 4px 9px 6px;
}

.site-explorer-preview--lg .site-explorer-tree-list {
    gap: 4px;
}

.site-explorer-preview--lg .site-explorer-row--tree {
    padding-top: 7px;
    padding-bottom: 7px;
    padding-right: 9px;
    border-radius: 6px;
}

.site-explorer-preview--lg .site-explorer-grip {
    width: 6px;
    height: 16px;
}

.site-explorer-preview--lg .site-explorer-kind-ico {
    width: 20px;
    height: 20px;
    border-radius: 5px;
}

.site-explorer-preview--lg .site-explorer-kind-ico svg {
    width: 12px;
    height: 12px;
}

.site-explorer-preview--lg .site-explorer-row-title {
    font-size: 0.88rem;
}

.site-explorer-preview--lg .site-explorer-row--tree .site-explorer-row-title {
    font-size: 0.82rem;
}

.site-explorer-preview--lg .site-explorer-twisty {
    font-size: 9px;
    width: 12px;
}

.site-explorer-preview--lg .site-explorer-folder-ico {
    width: 14px;
    height: 14px;
}

.site-explorer-preview--lg .site-explorer-folder-row {
    padding: 5px 6px 4px;
}

.site-explorer-preview--lg .site-explorer-row--indent {
    padding-left: 24px;
}

.site-explorer-preview--lg .site-explorer-tree-list.site-explorer-tree-list--reorder {
    --tree-gap: 4px;
    --tree-row-h: 38px;
    gap: var(--tree-gap);
}
