/* =========================================================
   YTA OPEN DATA STORY
   ========================================================= */

.yta-story {
    --yta-purple: #91449b;
    --yta-deep: #111111;
    --yta-soft: #f4f0f5;
    --yta-grey: #777777;
    --yta-border: rgba(17,17,17,0.12);

    width: 100%;
    overflow: clip;
    background: #ffffff;
    color: var(--yta-deep);
    box-sizing: border-box;
}

.yta-story *,
.yta-story *::before,
.yta-story *::after {
    box-sizing: border-box;
}


/* =========================================================
   HERO
   ========================================================= */

.yta-hero {
    min-height: 94vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px 30px;
    overflow: hidden;
}

.yta-hero::before {
    content: "";
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(145,68,155,0.12) 0%,
            rgba(145,68,155,0.04) 45%,
            transparent 70%
        );
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.yta-hero-inner {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.yta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin-bottom: 40px;
}

.yta-eyebrow span {
    width: 30px;
    height: 1px;
    background: currentColor;
}

.yta-hero h1 {
    font-size: clamp(48px, 7vw, 110px);
    line-height: 0.96;
    letter-spacing: -0.045em;
    margin: 0 auto 45px;
    max-width: 1150px;
    font-weight: 800;
}

.yta-hero-number {
    font-size: clamp(72px, 13vw, 190px);
    line-height: 0.85;
    font-weight: 900;
    letter-spacing: -0.065em;
    color: var(--yta-purple);
    margin: 35px 0 20px;
}

.yta-hero-label {
    font-size: clamp(18px, 2vw, 27px);
    line-height: 1.4;
    max-width: 520px;
    margin: 0 auto;
}

.yta-live-pill {
    margin: 28px auto 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid var(--yta-border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.yta-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #27a55f;
    box-shadow: 0 0 0 4px rgba(39,165,95,0.13);
}

.yta-scroll-cue {
    margin: 85px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.yta-scroll-cue span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.17em;
}

.yta-scroll-line {
    width: 1px;
    height: 60px;
    background: var(--yta-deep);
    transform-origin: top;
    animation: ytaScrollLine 1.8s ease-in-out infinite;
}

@keyframes ytaScrollLine {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }

    40% {
        transform: scaleY(1);
        opacity: 1;
    }

    100% {
        transform: scaleY(1);
        opacity: 0;
    }
}


/* =========================================================
   STORY INTRO
   ========================================================= */

.yta-story-intro {
    padding: 140px 30px 180px;
}

.yta-story-intro-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.yta-story-intro p {
    font-size: 18px;
    font-weight: 700;
    color: var(--yta-grey);
    margin: 0 0 25px;
}

.yta-story-intro h2 {
    font-size: clamp(42px, 6vw, 90px);
    line-height: 1.02;
    letter-spacing: -0.045em;
    max-width: 1000px;
    margin: 0;
}

.yta-story-intro em {
    font-style: normal;
    color: var(--yta-purple);
}


/* =========================================================
   SCROLLYTELLING
   ========================================================= */

.yta-scrolly {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 40px 160px;
    display: grid;
    grid-template-columns:
        minmax(320px, 0.8fr)
        minmax(500px, 1.2fr);
    gap: 90px;
    align-items: start;
}

.yta-scrolly-text {
    position: relative;
}

.yta-step {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.28;
    transform: translateY(25px);
    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
}

.yta-step.is-active {
    opacity: 1;
    transform: translateY(0);
}

.yta-step-number {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--yta-purple);
    margin-bottom: 22px;
}

.yta-step h2 {
    font-size: clamp(36px, 4vw, 65px);
    line-height: 1;
    letter-spacing: -0.035em;
    margin: 0 0 30px;
    max-width: 650px;
}

.yta-step p {
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.55;
    max-width: 580px;
    margin: 0 0 18px;
}

.yta-step strong {
    color: var(--yta-purple);
}

.yta-step-small {
    font-size: 17px !important;
    color: var(--yta-grey);
    max-width: 480px !important;
}


/* =========================================================
   STICKY VISUAL
   ========================================================= */

.yta-scrolly-visual {
    position: relative;
    min-width: 0;
}

.yta-visual-stage {
    position: sticky;
    top: 125px;
    min-height: 680px;
    height: calc(100vh - 160px);
    max-height: 780px;
    border-radius: 28px;
    background: #f4f0f5;
    padding: 34px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.yta-visual-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.yta-visual-meta > span:first-child {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.yta-visual-live {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: #238851;
}

.yta-visual-number {
    font-size: clamp(55px, 7vw, 110px);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -0.065em;
    color: var(--yta-purple);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.yta-visual-caption {
    font-size: 18px;
    margin-top: 12px;
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}


/* =========================================================
   DOT FIELD
   ========================================================= */

.yta-dot-field {
    margin-top: auto;
    display: grid;
    grid-template-columns:
        repeat(10, minmax(10px, 1fr));
    gap: clamp(7px, 1vw, 13px);
    align-content: end;
    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}

.yta-data-dot {
    width: 100%;
    aspect-ratio: 1;
    max-width: 28px;
    border-radius: 50%;
    background: var(--yta-purple);
    justify-self: center;
    transition:
        background 0.65s ease,
        opacity 0.65s ease,
        transform 0.65s
        cubic-bezier(.2,.8,.2,1);
}

.yta-data-dot.is-partial {
    background: rgba(17,17,17,0.14);
}

.yta-data-dot.is-completed {
    background: var(--yta-purple);
}

.yta-data-dot.is-muted {
    opacity: 0.15;
    transform: scale(0.72);
}

.yta-dot-legend {
    margin-top: 28px;
    display: flex;
    gap: 28px;
    font-size: 12px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.yta-dot-legend.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.yta-dot-legend > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.yta-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.yta-completed-dot {
    background: var(--yta-purple);
}

.yta-partial-dot {
    background: rgba(17,17,17,0.18);
}


/* =========================================================
   FIVE DIMENSIONS
   ========================================================= */

.yta-dimensions {
    position: absolute;
    inset: 120px 35px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(30px);
    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
}

.yta-dimensions.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.yta-dimension {
    min-height: 145px;
    border-radius: 20px;
    background: #ffffff;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: scale(0.94);
    opacity: 0;
    transition:
        transform 0.45s ease,
        opacity 0.45s ease;
}

.yta-dimensions.is-visible
.yta-dimension {
    transform: scale(1);
    opacity: 1;
}

.yta-dimensions.is-visible
.yta-dimension:nth-child(2) {
    transition-delay: 0.07s;
}

.yta-dimensions.is-visible
.yta-dimension:nth-child(3) {
    transition-delay: 0.14s;
}

.yta-dimensions.is-visible
.yta-dimension:nth-child(4) {
    transition-delay: 0.21s;
}

.yta-dimensions.is-visible
.yta-dimension:nth-child(5) {
    transition-delay: 0.28s;
}

.yta-dimension:last-child {
    grid-column: 1 / -1;
}

.yta-dimension span {
    font-size: 11px;
    color: var(--yta-purple);
    font-weight: 900;
}

.yta-dimension strong {
    font-size: clamp(22px, 2vw, 34px);
    letter-spacing: -0.025em;
}


/* =========================================================
   JOURNEY
   ========================================================= */

.yta-journey {
    position: absolute;
    inset: 150px 50px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.yta-journey.is-visible {
    opacity: 1;
}

.yta-journey-line,
.yta-journey-progress {
    position: absolute;
    left: 5%;
    right: 5%;
    top: 50%;
    height: 3px;
    transform: translateY(-50%);
}

.yta-journey-line {
    background: rgba(17,17,17,0.15);
}

.yta-journey-progress {
    right: auto;
    width: 0;
    background: var(--yta-purple);
    transition: width 1.2s ease;
}

.yta-journey.is-visible
.yta-journey-progress {
    width: 90%;
}

.yta-journey-stop {
    position: relative;
    z-index: 2;
    width: 90px;
    min-height: 90px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--yta-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    transform: scale(0);
    transition:
        transform 0.45s
        cubic-bezier(.2,.9,.3,1.3);
}

.yta-journey.is-visible
.yta-journey-stop {
    transform: scale(1);
}

.yta-journey.is-visible
.yta-journey-stop:nth-of-type(2) {
    transition-delay: 0.1s;
}

.yta-journey.is-visible
.yta-journey-stop:nth-of-type(3) {
    transition-delay: 0.2s;
}

.yta-journey.is-visible
.yta-journey-stop:nth-of-type(4) {
    transition-delay: 0.3s;
}

.yta-journey.is-visible
.yta-journey-stop:nth-of-type(5) {
    transition-delay: 0.4s;
}

.yta-journey.is-visible
.yta-journey-stop:nth-of-type(6) {
    transition-delay: 0.5s;
}

.yta-journey-stop span {
    font-size: 10px;
    color: var(--yta-purple);
    font-weight: 900;
}

.yta-journey-stop strong {
    font-size: 12px;
    margin-top: 4px;
}


/* =========================================================
   SNAPSHOT
   ========================================================= */

.yta-snapshot {
    max-width: 1500px;
    margin: 0 auto;
    padding: 130px 40px 170px;
}

.yta-snapshot-heading {
    max-width: 850px;
    margin-bottom: 70px;
}

.yta-snapshot-heading span {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    color: var(--yta-purple);
}

.yta-snapshot-heading h2 {
    font-size: clamp(42px, 6vw, 85px);
    line-height: 1;
    letter-spacing: -0.045em;
    margin: 18px 0 0;
}

.yta-snapshot-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.yta-snapshot-card {
    min-height: 300px;
    padding: 28px;
    background: var(--yta-deep);
    color: #ffffff;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
}

.yta-snapshot-card span {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.13em;
    opacity: 0.65;
}

.yta-snapshot-card strong {
    margin-top: auto;
    font-size: clamp(40px, 4vw, 68px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.yta-snapshot-card p {
    margin: 12px 0 0;
    font-size: 16px;
    opacity: 0.72;
}


/* =========================================================
   NEXT CHAPTER
   ========================================================= */

.yta-next-chapter {
    min-height: 80vh;
    padding: 120px 40px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
}

.yta-next-chapter > span {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    color: var(--yta-purple);
}

.yta-next-chapter h2 {
    font-size: clamp(48px, 7vw, 100px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    margin: 24px 0 35px;
}

.yta-next-chapter p {
    max-width: 650px;
    font-size: 22px;
    line-height: 1.55;
    color: var(--yta-grey);
}


/* =========================================================
   DARK MODE
   ========================================================= */

body.dark-bg .yta-story {
    --yta-deep: #ffffff;
    --yta-grey: #bcbcbc;
    --yta-border: rgba(255,255,255,0.18);

    background: #000000;
    color: #ffffff;
}

body.dark-bg .yta-visual-stage {
    background: #151515;
}

body.dark-bg .yta-data-dot.is-partial {
    background: rgba(255,255,255,0.2);
}

body.dark-bg .yta-partial-dot {
    background: rgba(255,255,255,0.2);
}

body.dark-bg .yta-dimension,
body.dark-bg .yta-journey-stop {
    background: #222222;
    color: #ffffff;
}

body.dark-bg .yta-journey-line {
    background: rgba(255,255,255,0.15);
}

body.dark-bg .yta-scroll-line {
    background: #ffffff;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .yta-scrolly {
        grid-template-columns: 1fr;
        padding-left: 24px;
        padding-right: 24px;
        gap: 0;
    }

    .yta-scrolly-text {
        order: 2;
    }

    .yta-scrolly-visual {
        order: 1;
        position: sticky;
        top: 90px;
        z-index: 10;
    }

    .yta-visual-stage {
        position: relative;
        top: auto;
        min-height: 470px;
        height: 58vh;
        max-height: 560px;
    }

    .yta-step {
        min-height: 75vh;
    }

    .yta-snapshot-grid {
        grid-template-columns: 1fr 1fr;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .yta-hero {
        min-height: 88vh;
        padding:
            55px
            18px
            70px;
    }

    .yta-eyebrow {
        font-size: 10px;
        margin-bottom: 28px;
    }

    .yta-hero h1 {
        font-size: clamp(44px, 14vw, 66px);
    }

    .yta-hero-number {
        font-size: clamp(64px, 22vw, 105px);
        margin-top: 30px;
    }

    .yta-story-intro {
        padding:
            100px
            18px
            120px;
    }

    .yta-story-intro h2 {
        font-size: 46px;
    }

    .yta-scrolly {
        padding:
            0
            14px
            100px;
    }

    .yta-scrolly-visual {
        top: 75px;
    }

    .yta-visual-stage {
        min-height: 390px;
        height: 54vh;
        padding: 22px;
        border-radius: 20px;
    }

    .yta-visual-number {
        font-size: 55px;
    }

    .yta-dot-field {
        gap: 6px;
    }

    .yta-data-dot {
        max-width: 16px;
    }

    .yta-step {
        min-height: 80vh;
        padding:
            70px
            8px;
    }

    .yta-step h2 {
        font-size: 40px;
    }

    .yta-step p {
        font-size: 20px;
    }

    .yta-dimensions {
        inset:
            100px
            20px
            25px;
        gap: 8px;
    }

    .yta-dimension {
        min-height: 95px;
        padding: 14px;
        border-radius: 14px;
    }

    .yta-dimension strong {
        font-size: 18px;
    }

    .yta-journey {
        inset:
            110px
            20px
            35px;
    }

    .yta-journey-stop {
        width: 53px;
        min-height: 53px;
    }

    .yta-journey-stop strong {
        font-size: 8px;
    }

    .yta-journey-stop span {
        display: none;
    }

    .yta-snapshot {
        padding:
            100px
            16px
            120px;
    }

    .yta-snapshot-grid {
        grid-template-columns: 1fr;
    }

    .yta-snapshot-card {
        min-height: 210px;
    }

    .yta-next-chapter {
        padding:
            100px
            18px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (
    prefers-reduced-motion: reduce
) {

    .yta-story *,
    .yta-story *::before,
    .yta-story *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

}