/* --- TOONZ STORY SYSTEM REFINED --- */
:root {
    --tss-accent: #E87722;
}

.toonz-story-system {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #F4F1EA;
    color: #000;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    display: flex;
}

/* LEFT NAVIGATOR TIMELINE */
.tss-navigator {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 40px;
    z-index: 10;
}

.tss-nav-line {
    position: absolute;
    left: 8px;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.tss-nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.5s;
    cursor: pointer;
}

.tss-n-num {
    font-size: 14px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.tss-n-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tss-nav-item.active {
    color: var(--tss-accent);
}

/* BADGE SEAL */
.tss-badge-seal {
    position: absolute;
    right: -20px;
    top: -30px;
    width: 100px;
    height: 100px;
    z-index: 15;
    background: #fff;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: rotateSeal 15s linear infinite;
    mix-blend-mode: normal;
    /* Changed from multiply to keep white bg */
    opacity: 1;
}

.tss-badge-seal svg {
    width: 80%;
    height: 80%;
}

.tss-badge-seal text {
    fill: var(--tss-accent);
    font-weight: 800;
    font-size: 10px;
}

.tss-seal-star {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--tss-accent);
    font-size: 16px;
}

@keyframes rotateSeal {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* CONTENT CONTAINER */
.tss-main-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    padding: 0 5% 0 12%;
}

.tss-slide {
    position: absolute;
    top: 0;
    left: 12%;
    width: calc(100% - 17%);
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.8s ease;
}

.tss-slide.active {
    opacity: 1;
    visibility: visible;
}

.tss-col-left {
    flex: 0 0 450px;
}

.tss-fixed-label {
    position: absolute;
    top: 40px;
    left: 40px;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 10;
}

.tss-headline {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.tss-top-head {
    font-size: clamp(80px, 10vw, 160px);
    font-weight: 900;
    line-height: 0.8;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
}

.tss-btm-head {
    font-size: clamp(40px, 5vw, 85px);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -1.5px;
    color: #444;
}

.tss-subtext {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    max-width: 400px;
    margin-bottom: 50px;
}

/* CTA ARROW */
.tss-cta-orange {
    text-decoration: none;
    color: #000;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    transition: 0.3s;
}

.tss-cta-arrow {
    display: inline-block;
    width: 60px;
    height: 1px;
    background: var(--tss-accent);
    position: relative;
}

.tss-cta-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 7px;
    height: 7px;
    border-top: 1px solid var(--tss-accent);
    border-right: 1px solid var(--tss-accent);
    transform: rotate(45deg);
}

.tss-cta-orange:hover .tss-cta-arrow {
    width: 80px;
}

/* VISUAL GRIDS */
.tss-col-right {
    flex: 1;
    position: relative;
    height: 70vh;
    margin-left: 50px;
}

.tss-col-right img,
.tss-img-overlap-btm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Universal hover zoom for all image containers in right column */
.tss-col-right div,
.tss-img-overlap-btm,
.tss-img-front,
.tss-img-back {
    overflow: hidden !important;
    border-radius: 12px;
}

.tss-col-right div:hover img,
.tss-img-overlap-btm:hover img,
.tss-img-front:hover img,
.tss-img-back:hover img {
    transform: scale(1.1);
}

/* SLIDE 1: OVERLAP */
.s1-overlap {
    height: 55vh;
    /* Reduced height */
    width: 45vw;
    /* Reduced width */
}

.s1-overlap .tss-img-back {
    width: 85%;
    height: 85%;
}

.s1-overlap .tss-img-front {
    position: absolute;
    bottom: 5%;
    right: 5%;
    width: 40%;
    height: 40%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    border: 5px solid #F4F1EA;
}

/* SLIDE 2: GRID SYSTEM */
.s2-grid-system {
    display: flex;
    gap: 15px;
    position: relative;
    height: 60vh;
    width: 55vw;
}

.s2-grid-system .tss-img-main {
    flex: 0 0 62%;
    height: 85%;
}

.s2-grid-system .tss-img-stack {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 85%;
}

.s2-grid-system .tss-stack-top,
.s2-grid-system .tss-stack-btm {
    height: calc(50% - 7.5px);
}

.tss-img-overlap-btm {
    position: absolute;
    bottom: 5%;
    left: 45%;
    transform: translateX(-20%);
    width: 35%;
    height: 35%;
    z-index: 5;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    border: 5px solid #F4F1EA;
}

/* SLIDE 3: COLLAGE */
.s3-collage {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 60vh;
    width: 60vw;
    position: relative;
    margin-right: 5%;
}

.s3-collage .tss-row-top {
    display: flex;
    gap: 12px;
    height: 48%;
    position: relative;
}

.s3-collage .tss-row-mid {
    display: flex;
    gap: 12px;
    height: 22%;
}

.s3-collage .tss-row-btm {
    display: flex;
    gap: 12px;
    height: 30%;
}

.tss-c-main {
    flex: 0 0 62%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.tss-c-card {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 42%;
    height: 101%;
    background: #f3ede7;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 5;
    border: 3px solid #d5d2cc;
}

.tss-card-map {
    height: 55%;
    opacity: 0.8;
    filter: grayscale(0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tss-card-stats {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 15px;
}

.tss-stat-box {
    display: flex;
    flex-direction: column;
}

.tss-stat-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--tss-accent);
    line-height: 1;
}

.tss-stat-label {
    font-size: 7px;
    font-weight: 800;
    color: #111;
    margin-top: 5px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tss-c-img {
    flex: 1;
    height: 100%;
}

.tss-c-img-long {
    flex: 0 0 70%;
    height: 100%;
}

.tss-c-img-short {
    flex: 1;
    height: 100%;
}

.tss-footer-nav {
    position: absolute;
    bottom: 50px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    z-index: 10;
}

.tss-scroll-info {
    font-size: 8px;
    font-weight: 800;
    text-align: left;
    line-height: 1.2;
}

.tss-scroll-icon {
    display: block;
    font-size: 18px;
    margin-top: 5px;
}

.tss-nav-controls {
    display: flex;
    align-items: center;
    gap: 60px;
}

.tss-status {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.tss-arrows {
    display: flex;
    gap: 20px;
}

.tss-arrows button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: 0.3s;
}

.tss-arrows button:hover {
    color: var(--tss-accent);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .toonz-story-system {
        height: auto;
        display: block;
    }

    .tss-slide {
        position: relative;
        left: 0;
        width: 100%;
        flex-direction: column;
        opacity: 1;
        visibility: visible;
        padding: 100px 30px;
    }

    .tss-col-left {
        width: 100%;
        flex: none;
        margin-bottom: 50px;
    }

    .tss-col-right {
        width: 100%;
        height: 350px;
        margin-left: 0;
    }

    .tss-navigator,
    .tss-badge-seal {
        display: none;
    }
}