/* ==========================================================================
   CERRAMIENTOS DE TERRAZAS · Capa "Explorar" (mecánica tipo museo digital)
   - Servicios como carrusel horizontal con filtros por chips
   - Historias a pantalla completa por diapositivas (modo historia)
   - Visor con zoom y paneo para fotos de proyectos
   - Comparador antes/después arrastrable
   Se carga después de theme.css. Sin explore.js todo sigue funcionando
   como cuadrícula normal.
   ========================================================================== */

html.ct-lock { overflow: hidden; }

/* ------------------------------------------------------------------------
   Portada de cada servicio (imagen arriba, icono solapado)
   ------------------------------------------------------------------------ */
.service-cover {
    position: relative;
    margin: -32px -28px 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    cursor: pointer;
    background: #DCE8EB;
}
.service-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}
.service-card:hover .service-cover img { transform: scale(1.06); }
.service-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 37, 48, .35) 0%, rgba(13, 37, 48, 0) 35%, rgba(13, 37, 48, 0) 65%, rgba(13, 37, 48, .35) 100%);
    pointer-events: none;
}
.service-cover__chip {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 6px 8px;
    border-radius: 999px;
    background: rgba(13, 37, 48, .55);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background .2s ease;
}
.service-cover__chip svg { width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: #fff; color: var(--petrol); }
.service-card:hover .service-cover__chip { background: rgba(13, 37, 48, .8); }

.service-card .service-cover + .service-icon {
    position: relative;
    z-index: 1;
    margin-top: -30px;
    border: 4px solid #fff;
    padding: 13px;
}
.service-card:has(.service-cover)::before { display: none; }

/* ------------------------------------------------------------------------
   Barra "Explorar": chips de filtro + flechas del carrusel
   ------------------------------------------------------------------------ */
.explore-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin: -16px 0 24px;
    flex-wrap: wrap;
}
.explore-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 2px;
    margin: -4px -2px;
}
.explore-chips::-webkit-scrollbar { display: none; }
.explore-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--hairline);
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.explore-chip:hover { border-color: var(--aqua); color: var(--aqua-700); }
.explore-chip[aria-pressed="true"] {
    background: var(--petrol);
    border-color: var(--petrol);
    color: #fff;
    box-shadow: 0 8px 18px -10px rgba(26, 58, 74, .8);
}
.explore-chip__count {
    min-width: 20px;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--aqua-50);
    color: var(--aqua-700);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}
.explore-chip[aria-pressed="true"] .explore-chip__count { background: rgba(255, 255, 255, .18); color: #fff; }

.explore-nav { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.explore-status { font-size: 13px; color: var(--ink-55); white-space: nowrap; }
.explore-arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--hairline);
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    transition: background .2s, color .2s, opacity .2s, transform .2s;
}
.explore-arrow svg { width: 20px; height: 20px; }
.explore-arrow:hover:not(:disabled) { background: var(--petrol); color: #fff; transform: translateY(-1px); }
.explore-arrow:disabled { opacity: .35; cursor: default; box-shadow: none; }

/* Carrusel horizontal con snap */
.services .services-grid.is-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scroll-padding-left: 2px;
    padding: 8px 2px 28px;
    margin: -8px -2px 0;
    scrollbar-width: none;
}
.services .services-grid.is-carousel::-webkit-scrollbar { display: none; }
.services .services-grid.is-carousel .service-card {
    flex: 0 0 min(352px, 80%);
    scroll-snap-align: start;
    grid-column: auto;
}
.services .services-grid.is-carousel .service-card[hidden] { display: none !important; }
.explore-empty { padding: 40px 0; color: var(--ink-55); }

/* Barra de progreso del carrusel */
.explore-track {
    height: 4px;
    border-radius: 999px;
    background: var(--hairline);
    overflow: hidden;
    margin-top: -8px;
}
.explore-track span {
    display: block;
    height: 100%;
    width: var(--w, 30%);
    margin-left: var(--x, 0%);
    border-radius: inherit;
    background: linear-gradient(90deg, var(--aqua), var(--sun));
    transition: margin-left .15s linear, width .2s ease;
}

@media (max-width: 700px) {
    .explore-bar { margin-top: -24px; }
    .explore-chips { width: 100%; }
    .explore-nav { width: 100%; justify-content: space-between; }
}

/* ------------------------------------------------------------------------
   Elementos ampliables (galería, antes/después, tecnología)
   ------------------------------------------------------------------------ */
.ct-zoomable { position: relative; cursor: zoom-in; }
.ct-zoom-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: var(--petrol);
    box-shadow: 0 6px 16px -6px rgba(13, 37, 48, .5);
    opacity: 0;
    transform: scale(.85);
    transition: opacity .2s ease, transform .2s ease;
}
.ct-zoom-btn svg { width: 20px; height: 20px; }
.ct-zoomable:hover .ct-zoom-btn,
.ct-zoom-btn:focus-visible { opacity: 1; transform: none; }
@media (hover: none) {
    .ct-zoom-btn { opacity: 1; transform: none; width: 36px; height: 36px; }
}
.transformation-before .ct-zoom-btn, .transformation-after .ct-zoom-btn { top: 10px; right: 10px; }

/* ------------------------------------------------------------------------
   Modo historia (pantalla completa)
   ------------------------------------------------------------------------ */
.story {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: #0B1418;
    color: #fff;
    overflow: hidden;
    animation: ex-fade .3s ease both;
}
@keyframes ex-fade { from { opacity: 0; } to { opacity: 1; } }

.story__top {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 5;
    padding: 14px 20px 28px;
    background: linear-gradient(180deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 100%);
}
.story__progress { display: flex; gap: 6px; margin-bottom: 14px; }
.story__seg {
    flex: 1;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .28);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.story__seg::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 0;
    background: #fff;
    border-radius: inherit;
    transition: width .35s ease;
}
.story__seg.is-done::after, .story__seg.is-active::after { width: 100%; }
.story__seg.is-active::after { background: var(--sun-light); }

.story__bar { display: flex; align-items: center; gap: 16px; }
.story__meta { display: flex; flex-direction: column; min-width: 0; }
.story__kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.story__meta strong { font-family: var(--font-sans); font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story__count { margin-left: auto; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; }
.story__close, .story__nav, .viewer__btn {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background .2s, transform .2s, opacity .2s;
}
.story__close { width: 42px; height: 42px; }
.story__close svg, .story__nav svg, .viewer__btn svg { width: 20px; height: 20px; }
.story__close:hover, .story__nav:hover:not(:disabled), .viewer__btn:hover:not(:disabled) { background: rgba(255, 255, 255, .24); }
.story__nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 54px;
    height: 54px;
    margin-top: -27px;
}
.story__nav--prev { left: 20px; }
.story__nav--next { right: 20px; }
.story__nav:disabled { opacity: 0; pointer-events: none; }

.story__track { position: absolute; inset: 0; }
.story-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 110px 96px 56px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(40px) scale(.98);
    transition: opacity .45s ease, transform .55s cubic-bezier(.2, .7, .2, 1), visibility 0s .55s;
}
.story-slide.is-before { transform: translateX(-40px) scale(.98); }
.story-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .45s ease, transform .55s cubic-bezier(.2, .7, .2, 1), visibility 0s;
}

.story-kicker {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--sun-light);
}
.story-slide h3 {
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

/* Portada */
.story-slide--cover { justify-content: flex-start; align-items: flex-end; padding-bottom: 72px; }
.story-slide__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    transition: transform 6s ease-out;
}
.story-slide--cover.is-active .story-slide__bg { transform: scale(1); }
.story-slide__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(5, 14, 18, .92) 0%, rgba(5, 14, 18, .35) 55%, rgba(5, 14, 18, .25) 100%),
        linear-gradient(90deg, rgba(5, 14, 18, .55) 0%, rgba(5, 14, 18, 0) 70%);
}
.story-slide__content { position: relative; max-width: 720px; }
.story-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 14px 7px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    font-size: 13px;
    font-weight: 700;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.story-chip svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--sun); color: var(--ink); }
.story-slide--cover h3 { font-size: clamp(38px, 6vw, 76px); margin-bottom: 18px; }
.story-slide--cover p { font-size: clamp(16px, 1.6vw, 20px); line-height: 1.55; color: rgba(255, 255, 255, .85); max-width: 56ch; }
.story-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .7);
}
.story-hint kbd {
    display: inline-grid;
    place-items: center;
    min-width: 26px;
    height: 24px;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, .35);
    font-family: inherit;
    font-size: 12px;
}

/* Diapositiva partida: imagen + texto */
.story-split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    width: 100%;
    max-width: 1180px;
}
.story-figure {
    position: relative;
    margin: 0;
    border-radius: 22px;
    overflow: hidden;
    background: #16252B;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
}
.story-figure img { width: 100%; max-height: 64vh; aspect-ratio: 1 / 1; object-fit: cover; cursor: zoom-in; }
.story-figure figcaption {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(8, 20, 26, .7);
    font-size: 13px;
    color: rgba(255, 255, 255, .8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.story-figure figcaption strong { color: #fff; font-size: 15px; }
.story-figure .ct-zoom-btn { opacity: 1; transform: none; }
.story-text h3 { font-size: clamp(28px, 3.4vw, 46px); margin-bottom: 22px; }
.story-list { display: flex; flex-direction: column; gap: 12px; }
.story-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    font-size: 16px;
    color: rgba(255, 255, 255, .92);
}
.story-list li svg {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    padding: 5px;
    border-radius: 50%;
    background: var(--grad-aqua);
    color: #fff;
}

/* Comparador antes / después */
.story-slide--compare { flex-direction: column; gap: 24px; }
.story-compare-head { text-align: center; }
.story-compare-head h3 { font-size: clamp(26px, 3vw, 40px); margin-bottom: 6px; }
.story-compare-head p { margin: 0 auto; color: rgba(255, 255, 255, .7); font-size: 14px; }
.compare {
    --pos: 50%;
    position: relative;
    width: min(1000px, 100%);
    max-height: 62vh;
    aspect-ratio: 16 / 10;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
    user-select: none;
    touch-action: pan-y;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 3px;
    margin-left: -1.5px;
    background: #fff;
    box-shadow: 0 0 12px rgba(0, 0, 0, .4);
    pointer-events: none;
}
.compare__knob {
    position: absolute;
    top: 50%;
    left: var(--pos);
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
    border-radius: 50%;
    background: #fff;
    color: var(--petrol);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    pointer-events: none;
}
.compare__knob svg { width: 26px; height: 26px; }
.compare__label {
    position: absolute;
    top: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    pointer-events: none;
}
.compare__label--before { left: 16px; background: rgba(20, 24, 26, .75); }
.compare__label--after { right: 16px; background: var(--grad-aqua); }
.compare__range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    -webkit-appearance: none;
    appearance: none;
}
.compare__range:focus-visible + .compare__knob { outline: 3px solid var(--sun-light); outline-offset: 3px; }

/* ¿Sabías que…? */
.story-slide--fact { overflow: hidden; }
.story-slide--fact .story-slide__bg { filter: blur(26px) saturate(130%); opacity: .45; transform: scale(1.2); }
.story-slide--fact .story-slide__shade { background: radial-gradient(800px 500px at 50% 50%, rgba(14, 90, 102, .35), rgba(5, 14, 18, .85)); }
.story-fact { position: relative; max-width: 820px; text-align: center; }
.story-fact__big {
    display: block;
    margin: 6px 0 18px;
    font-family: var(--font-sans);
    font-size: clamp(72px, 13vw, 168px);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: .95;
    background: linear-gradient(90deg, var(--aqua-light), #fff 45%, var(--sun-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.story-fact p { margin: 0 auto; max-width: 40ch; font-size: clamp(18px, 2vw, 24px); line-height: 1.5; color: rgba(255, 255, 255, .9); }

/* Llamada final */
.story-slide--cta { gap: 32px; flex-wrap: wrap; align-content: center; }
.story-cta { max-width: 560px; }
.story-cta .avatar { width: 64px; height: 64px; margin-bottom: 18px; }
.story-cta h3 { font-size: clamp(30px, 3.6vw, 48px); margin-bottom: 14px; }
.story-cta p { color: rgba(255, 255, 255, .8); font-size: 17px; margin-bottom: 26px; }
.story-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.story-cta__actions .btn-ghost {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    box-shadow: none;
}
.story-cta__actions .btn-ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.story-cta__actions .btn-wa { background: #128C4A; color: #fff; box-shadow: none; }
.story-cta__actions .btn-wa:hover { background: #0F7A40; color: #fff; }
.story-cta__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.story-cta__chips li {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    font-size: 13px;
    color: rgba(255, 255, 255, .85);
}
.story-next {
    display: flex;
    flex-direction: column;
    width: 300px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 20px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    text-align: left;
    transition: transform .25s ease, background .25s ease;
}
.story-next:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .12); }
.story-next img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.story-next > div { display: flex; flex-direction: column; }
.story-next span { padding: 14px 16px 2px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sun-light); }
.story-next strong { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px 16px; font-family: var(--font-sans); font-size: 18px; }
.story-next strong svg { width: 20px; height: 20px; flex-shrink: 0; }

@media (max-width: 900px) {
    .story__top { padding: 10px 14px 24px; }
    .story-slide { padding: 96px 20px 92px; overflow-y: auto; align-items: flex-start; }
    .story-slide--cover { align-items: flex-end; padding-bottom: 104px; }
    .story-split { grid-template-columns: 1fr; gap: 24px; }
    .story-figure img { max-height: 42vh; aspect-ratio: 4 / 3; }
    .story-list li { font-size: 15px; padding: 10px 14px; }
    .story__nav { top: auto; bottom: 22px; margin-top: 0; width: 48px; height: 48px; }
    .story__nav--prev { left: 14px; }
    .story__nav--next { right: 14px; }
    .story__nav:disabled { opacity: .3; }
    .story-slide--compare { justify-content: center; align-items: center; }
    .compare { aspect-ratio: 4 / 5; max-height: 58vh; }
    .story-slide--fact { align-items: center; }
    .story-slide--cta { align-items: flex-start; }
    .story-next { width: 100%; flex-direction: row; align-items: center; }
    .story-next img { width: 96px; aspect-ratio: 1; }
    .story-next > div { min-width: 0; }
}

/* ------------------------------------------------------------------------
   Visor con zoom
   ------------------------------------------------------------------------ */
.viewer {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    background: #070D10;
    color: #fff;
    animation: ex-fade .25s ease both;
}
.viewer.is-info-closed { grid-template-columns: minmax(0, 1fr) 0; }
.viewer__stage {
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    touch-action: none;
    cursor: grab;
}
.viewer__stage.is-dragging { cursor: grabbing; }
.viewer__img {
    max-width: calc(100% - 140px);
    max-height: calc(100% - 140px);
    border-radius: 6px;
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9);
}
.viewer__img.is-animating { transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.viewer__top {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}
.viewer__top > * { pointer-events: auto; }
.viewer__count { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; margin-right: auto; }
.viewer__tools {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.viewer__btn { width: 40px; height: 40px; border: 0; background: transparent; }
.viewer__btn:disabled { opacity: .35; }
.viewer__level { min-width: 48px; text-align: center; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .85); }
.viewer__close { border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .1); width: 44px; height: 44px; }
.viewer__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 52px;
    height: 52px;
    margin-top: -26px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .1);
}
.viewer__nav--prev { left: 16px; }
.viewer__nav--next { right: 16px; }
.viewer__nav[hidden] { display: none; }
.viewer__hint {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 3;
    transform: translateX(-50%);
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-size: 12px;
    color: rgba(255, 255, 255, .7);
    white-space: nowrap;
    pointer-events: none;
    transition: opacity .4s ease;
}
.viewer.is-zoomed .viewer__hint { opacity: 0; }
.viewer__info {
    overflow: hidden auto;
    padding: 84px 28px 28px;
    background: #0E1A1F;
    border-left: 1px solid rgba(255, 255, 255, .08);
}
.viewer.is-info-closed .viewer__info { padding: 0; border: 0; }
.viewer__info h3 { color: #fff; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.viewer__info p { color: rgba(255, 255, 255, .75); font-size: 15px; line-height: 1.55; margin-bottom: 18px; }
.viewer__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0; }
.viewer__thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: none;
    opacity: .6;
    transition: opacity .2s, border-color .2s;
}
.viewer__thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.viewer__thumb:hover { opacity: 1; }
.viewer__thumb[aria-current="true"] { opacity: 1; border-color: var(--sun); }

@media (max-width: 900px) {
    .viewer, .viewer.is-info-closed { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
    .viewer__img { max-width: 100%; max-height: calc(100% - 120px); border-radius: 0; }
    .viewer__info { max-height: 34vh; padding: 18px 20px 22px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
    .viewer.is-info-closed .viewer__info { display: none; }
    .viewer__info h3 { font-size: 19px; }
    .viewer__thumbs { grid-template-columns: repeat(6, 1fr); margin: 14px 0; }
    .viewer__nav { top: auto; bottom: 14px; margin-top: 0; width: 44px; height: 44px; }
    .viewer__hint { display: none; }
    .viewer__level { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .story, .viewer, .story-slide, .story-slide__bg { animation: none !important; transition: none !important; }
}
