/* OTOLOOM /moduller — 14 sahneli tiyatro (GSAP) + düz-akış fallback */

html { scroll-behavior: auto; } /* ScrollTrigger snap ile çakışmasın */

.mod-hero { padding: clamp(8rem, 16vh, 12rem) 0 clamp(2rem, 5vh, 4rem); }

.mod-h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    line-height: 1.08;
    letter-spacing: -.03em;
    margin: .4rem 0 1rem;
}

/* ── Fallback (varsayılan): sahneler düz akışta okunur kartlar ── */
.mod-theater { padding-bottom: 2rem; }

.mod-stagevp { position: relative; max-width: 1180px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

.mod-scene {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(1.6rem, 4vw, 3.5rem);
    align-items: center;
    padding: clamp(2rem, 5vh, 3.5rem) 0;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.mod-scene:last-of-type { border-bottom: none; }

.mod-copy h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.6rem);
    margin: .6rem 0 .9rem;
}

.mod-lead { font-size: 1.02rem; line-height: 1.7; margin-bottom: 1.2rem; }

.mod-visual {
    padding: clamp(1.6rem, 3vw, 2.6rem);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
}

.mod-visual .vg { margin: 0; padding: 0; width: 100%; max-width: 340px; }
.mod-visual .vg-route { height: 150px; }
.mod-visual .vg-bars { height: 110px; }
.mod-visual .vg-shelf i { height: 26px; }
.mod-visual .vg-ring svg { width: 90px; height: 90px; }
.mod-visual .ph-rows, .mod-visual .ph-route, .mod-visual .mp-list { width: 100%; }
.mod-visual .mp-list { display: flex; flex-direction: column; gap: .6rem; min-height: 0; }
.mod-visual .mp-list li { max-height: none; }
.mod-visual .pa-diagram { justify-content: center; flex-wrap: wrap; row-gap: .8rem; }

.mod-rail { display: none; }

/* ── Tiyatro modu (GSAP aktif, ≥900px) ── */
.theater-on .mod-stagevp {
    height: 100vh;
    display: block;
    perspective: 1400px;
}

.theater-on .mod-scene {
    position: absolute;
    inset: 0;
    margin: auto;
    max-width: 1060px;
    height: min(72vh, 620px);
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
    border-bottom: none;
    visibility: hidden;
    opacity: 0;
    will-change: transform, opacity;
}

.theater-on .mod-rail {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    position: absolute;
    right: clamp(.4rem, 2vw, 1.4rem);
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.mod-rail button {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .2rem .3rem;
    opacity: .45;
    transition: opacity .3s;
}

.mod-rail button i {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .25);
    transition: background .3s, box-shadow .3s, transform .3s;
}

.mod-rail button span { font-size: .58rem; }

.mod-rail button.act { opacity: 1; }

.mod-rail button.act i {
    background: var(--teal);
    box-shadow: 0 0 10px rgba(52, 225, 196, .7);
    transform: scale(1.3);
}

/* ── Kapanış CTA ── */
.mod-cta { padding: clamp(4rem, 12vh, 7rem) 0; }

.mod-cta-in { text-align: center; }

.mod-cta-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.6rem;
}

/* ── responsive ── */
@media (max-width: 900px) {
    .mod-scene { grid-template-columns: 1fr; }
    .mod-visual { min-height: 200px; }
}

/* uyarı rengi etiketi (mal kabul vinyeti) */
.ph-tagx.warn { color: var(--amber); }

/* ilerleme sayacı */
.mod-counter {
    position: absolute;
    left: clamp(1.25rem, 4vw, 2.5rem);
    bottom: 2rem;
    z-index: 5;
    font-size: .8rem;
    letter-spacing: .2em;
    color: var(--txt3);
    display: none;
}

.mod-counter b {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--txt);
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-right: .3rem;
}

.theater-on .mod-counter { display: block; }
