.dg-ecosystem {
    --gutter: clamp(24px, 5.55vw, 80px);
    --accent: #fff;
    --v2-text: #F3EEE3;
    background: #000;
    color: var(--v2-text);
    color-scheme: dark;
    font-family: dinot, Arial, sans-serif;
}

.dg-ecosystem--inline {
    position: relative;
    line-height: normal;
}

.dg-ecosystem--inline:not(.is-enhanced) .v2-controls {
    display: none;
}

.dg-ecosystem * {
    box-sizing: border-box;
}

.dg-ecosystem :is(h2, h3, p) {
    margin: 0;
    color: inherit;
}

.dg-ecosystem :is(button, a) {
    font: inherit;
    color: inherit;
}

.dg-ecosystem button {
    border: 0;
    cursor: pointer;
    background: none;
}

.dg-ecosystem :is(button, a):focus-visible {
    outline: 1px solid #fff;
    outline-offset: 5px;
}

.dg-ecosystem .v2-controls {
    position: absolute;
    right: var(--gutter);
    top: 12px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 24px;
}

.dg-ecosystem .v2-controls button {
    min-height: 44px;
    font-size: 12px;
}

.dg-ecosystem .v2-controls button:first-child {
    opacity: .7;
}

.dg-ecosystem .v2-controls span {
    font-size: 26px;
    margin-left: 10px;
    vertical-align: middle;
}

.dg-ecosystem .v2-story {
    position: relative;
}

.dg-ecosystem .v2-stage {
    position: sticky;
    top: 0;
    height: 100dvh;
    overflow: hidden;
    background: #000;
    max-width: 1600px;
    margin: auto;
}

.dg-ecosystem--inline .v2-stage {
    height: 100lvh;
    max-width: none;
    background: #000;
}

.dg-ecosystem .v2-heading {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: 65px;
    display: flex;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid #2e2e2e;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dg-ecosystem .v2-heading span:first-child {
    opacity: .7;
}

.dg-ecosystem .v2-scene {
    position: absolute;
    left: 36%;
    right: 3%;
    top: 0;
    height: 100%;
    perspective: 3000px;
    perspective-origin: 50% 45%;
    pointer-events: none;
}

.dg-ecosystem .v2-world-size {
    position: absolute;
    left: 50%;
    top: 52%;
    transform: scale(var(--world-size, 1));
    transform-style: preserve-3d;
}

.dg-ecosystem .v2-world {
    width: 0;
    height: 0;
    transform-style: preserve-3d;
}

.dg-ecosystem .v2-plane {
    position: absolute;
    left: -260px;
    top: -130px;
    width: 520px;
    height: 260px;
    transform-style: preserve-3d;
}

.dg-ecosystem .v2-plane-surface {
    position: absolute;
    inset: 0;
    border: 1px solid #ffffff29;
}

.dg-ecosystem .v2-plane :is(img, canvas) {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dg-ecosystem .v2-video-surface {
    background: #000;
}

.dg-ecosystem .v2-label-anchor {
    position: absolute;
    left: 520px;
    top: 260px;
    width: 0;
    height: 0;
}

.dg-ecosystem .v2-plane-label {
    position: absolute;
    left: 14px;
    top: -9px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .1em;
}

.dg-ecosystem .v2-plane-label>span {
    width: 40px;
    height: 1px;
    background: #fff;
}

.dg-ecosystem .v2-plane-label strong {
    font-weight: 500;
    text-transform: none;
}

.dg-ecosystem .v2-ink-anchor {
    position: absolute;
    left: 0;
    top: 0;
}

.dg-ecosystem .v2-ink-tag {
    position: absolute;
    right: 14px;
    top: -10px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 500;
}

.dg-ecosystem .v2-ink-tag i {
    width: 32px;
    height: 1px;
    background: currentColor;
}

.dg-ecosystem .v2-marks i {
    position: absolute;
    width: 10px;
    height: 10px;
    border: solid #fff;
    border-width: 0;
}

.dg-ecosystem .v2-marks i:nth-child(1) {
    left: -16px;
    top: -16px;
    border-left-width: 1px;
    border-top-width: 1px;
}

.dg-ecosystem .v2-marks i:nth-child(2) {
    right: -16px;
    top: -16px;
    border-right-width: 1px;
    border-top-width: 1px;
}

.dg-ecosystem .v2-marks i:nth-child(3) {
    left: -16px;
    bottom: -16px;
    border-left-width: 1px;
    border-bottom-width: 1px;
}

.dg-ecosystem .v2-marks i:nth-child(4) {
    right: -16px;
    bottom: -16px;
    border-right-width: 1px;
    border-bottom-width: 1px;
}

.dg-ecosystem .v2-copy {
    position: absolute;
    left: var(--gutter);
    top: 28%;
    width: 31%;
    max-width: 460px;
}

.dg-ecosystem .v2-copy.v2-chapter {
    top: var(--v2-chapter-top, 28%);
}

.dg-ecosystem .v2-copy h2 {
    font-size: clamp(40px, 5vw, 80px);
    line-height: 1;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: -.01em;
}

.dg-ecosystem .v2-chapter h3 {
    margin-top: 16px;
    font-size: 40px;
    line-height: 1;
    font-weight: 500;
    font-style: normal;
    text-transform: none;
    letter-spacing: 0;
}

.dg-ecosystem .v2-chapter-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-top: 28px;
    background: #000;
}

.dg-ecosystem:not(.is-linear) .v2-chapter-video {
    display: none;
}

.dg-ecosystem .v2-copy p {
    margin-top: 28px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.55;
}

.dg-ecosystem .v2-intro p, .dg-ecosystem .v2-finale p {
    opacity: .7;
}

.dg-ecosystem .v2-eyebrow {
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
}

.dg-ecosystem .v2-chapter, .dg-ecosystem .v2-finale {
    opacity: 0;
}

.dg-ecosystem .v2-finale {
    top: 23%;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.dg-ecosystem .v2-finale h2 {
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.02;
}

.dg-ecosystem .v2-finale p {
    margin-top: 0;
}

.dg-ecosystem .v2-finale strong {
    font-size: 18px;
}

.dg-ecosystem .v2-finale-links {
    display: grid;
    justify-items: start;
    gap: 10px;
}

.dg-ecosystem .v2-finale-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    text-underline-offset: 4px;
}

.dg-ecosystem .v2-finale-link::before {
    content: "";
    flex: 0 0 7px;
    height: 7px;
    border-block-start: 1.5px solid;
    border-inline-end: 1.5px solid;
    transform: rotate(45deg);
}

.dg-ecosystem[dir="rtl"] .v2-finale-link::before {
    transform: rotate(-45deg);
}

.dg-ecosystem .v2-finale-link:hover {
    text-decoration: underline;
}

.dg-ecosystem .v2-scroll-hint {
    position: absolute;
    left: var(--gutter);
    bottom: 64px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dg-ecosystem .v2-scroll-hint span {
    font-size: 28px;
}

.dg-ecosystem .v2-progress {
    position: absolute;
    left: var(--gutter);
    right: 50%;
    bottom: 54px;
    display: grid;
    grid-template-columns: repeat(var(--eco-columns, 5), minmax(0, 1fr));
    gap: 14px;
}

.dg-ecosystem .v2-progress button {
    min-width: 0;
    padding: 10px 0;
    text-align: left;
    opacity: .48;
    font-family: dinot, "DIN OT", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0;
    text-transform: none;
}

.dg-ecosystem .v2-track {
    display: block;
    width: 100%;
    height: 1px;
    margin-bottom: 10px;
    background: #3B4A4A;
}

.dg-ecosystem .v2-track span {
    display: block;
    height: 100%;
    width: 0;
    background: #fff;
}

.dg-ecosystem [hidden] {
    display: none !important;
}

.dg-ecosystem.is-linear .v2-story {
    height: auto !important;
}

.dg-ecosystem.is-linear .v2-stage {
    position: relative;
    height: auto;
    padding: 150px var(--gutter) 60px;
}

.dg-ecosystem.is-linear .v2-copy {
    position: static;
    width: 100%;
    max-width: 720px;
    margin: 0 auto 65px;
    opacity: 1 !important;
    transform: none !important;
}

.dg-ecosystem.is-linear :is(.v2-scene, .v2-progress, .v2-scroll-hint) {
    display: none;
}

@media (min-width: 761px) {
    .dg-ecosystem .v2-plane-label strong {
        font-size: 16px;
    }
}

@media (max-width: 1100px) {
    .dg-ecosystem .v2-progress {
        grid-template-columns: repeat(var(--eco-small-columns, 3), minmax(0, 1fr));
    }

    .dg-ecosystem--compact-mobile {
        --v2-progress-bottom: 16px;
    }

    .dg-ecosystem--compact-mobile .v2-progress {
        bottom: var(--v2-progress-bottom);
        grid-template-columns: repeat(var(--eco-columns, 5), minmax(0, auto));
        gap: clamp(6px, 1.5vw, 14px);
    }
}

@media (max-width: 760px) {
    .dg-ecosystem .v2-controls {
        gap: 16px;
    }

    .dg-ecosystem .v2-heading {
        top: 66px;
        font-size: 10px;
    }

    .dg-ecosystem .v2-heading span:first-child {
        font-size: 15px;
        letter-spacing: 0;
    }

    .dg-ecosystem .v2-copy, .dg-ecosystem .v2-copy.v2-chapter {
        top: 120px;
        width: calc(100% - 2 * var(--gutter));
        max-width: 460px;
    }

    .dg-ecosystem--compact-mobile .v2-copy.v2-chapter {
        top: clamp(96px, 14dvh, 120px);
    }

    .dg-ecosystem .v2-eyebrow {
        font-size: 15px;
    }

    .dg-ecosystem .v2-copy :is(h2, h3) {
        font-size: 28px;
    }

    .dg-ecosystem .v2-copy p {
        font-size: 17px;
        margin-top: 17px;
    }

    .dg-ecosystem .v2-scene {
        left: 0;
        right: 0;
        top: 39%;
        height: 45%;
    }

    .dg-ecosystem.is-chapter .v2-scene {
        top: var(--v2-mobile-scene-top, 39%);
        bottom: 132px;
        height: auto;
    }

    .dg-ecosystem--compact-mobile.is-chapter .v2-scene {
        top: calc(var(--v2-mobile-scene-top, 39%) - 8px);
        bottom: var(--v2-scene-bottom);
    }

    .dg-ecosystem .v2-progress {
        right: var(--gutter);
        bottom: var(--v2-progress-bottom, 28px);
    }

    .dg-ecosystem .v2-progress button {
        font-size: 12px;
    }

    .dg-ecosystem .v2-scroll-hint {
        bottom: 30px;
    }

    .dg-ecosystem .v2-finale {
        gap: 16px;
    }

    .dg-ecosystem .v2-finale p {
        margin-top: 0;
    }

    .dg-ecosystem .v2-finale-links {
        gap: 2px;
    }

    .dg-ecosystem .v2-finale-link {
        min-height: 44px;
    }
}

@media (max-width: 760px) and (orientation: portrait) {
    .dg-ecosystem--inline .v2-stage:has(.v2-finale[aria-hidden="false"]) .v2-scene {
        top: max(39%, var(--v2-finale-scene-top, 39%));
        bottom: 0;
        height: auto;
    }
}

@media (max-width: 1100px) and (max-height: 560px) and (orientation: landscape) {
    .dg-ecosystem--inline:not(.is-linear) {
        --gutter: clamp(20px, 4vw, 44px);
    }

    .dg-ecosystem--inline:not(.is-linear) .v2-copy,
    .dg-ecosystem--inline:not(.is-linear) .v2-copy.v2-chapter {
        top: clamp(20px, 8dvh, 40px);
        width: 43%;
        max-width: none;
    }

    .dg-ecosystem--inline:not(.is-linear) .v2-copy :is(h2, h3) {
        font-size: clamp(22px, 7dvh, 32px);
    }

    .dg-ecosystem--inline:not(.is-linear) .v2-chapter h3 {
        margin-top: 8px;
    }

    .dg-ecosystem--inline:not(.is-linear) .v2-eyebrow {
        font-size: 12px;
    }

    .dg-ecosystem--inline:not(.is-linear) .v2-copy p {
        margin-top: 12px;
        font-size: clamp(13px, 3.8dvh, 16px);
    }

    .dg-ecosystem--inline:not(.is-linear) .v2-scene {
        left: 51%;
        right: 0;
        top: 0;
        bottom: auto;
        height: calc(100% - 52px);
    }

    .dg-ecosystem--inline:not(.is-linear) .v2-progress {
        right: var(--gutter);
        bottom: var(--v2-progress-bottom, 8px);
        grid-template-columns: repeat(var(--eco-columns, 5), minmax(0, 1fr));
        gap: 12px;
    }

    .dg-ecosystem--inline:not(.is-linear) .v2-progress button {
        min-height: 44px;
        padding: 8px 0;
        font-size: 12px;
    }

    .dg-ecosystem--inline:not(.is-linear) .v2-track {
        margin-bottom: 6px;
    }

    .dg-ecosystem--inline:not(.is-linear) .v2-scroll-hint {
        bottom: 16px;
    }

    .dg-ecosystem--inline:not(.is-linear) .v2-scroll-hint span {
        font-size: 24px;
    }

    .dg-ecosystem--inline:not(.is-linear) .v2-finale {
        width: 48%;
        gap: 10px;
    }

    .dg-ecosystem--inline:not(.is-linear) .v2-finale h2 {
        font-size: clamp(20px, 6dvh, 30px);
    }

    .dg-ecosystem--inline:not(.is-linear) .v2-finale p {
        margin-top: 0;
    }

    .dg-ecosystem--compact-mobile:not(.is-linear) .v2-scene {
        bottom: var(--v2-scene-bottom);
        height: auto;
    }
}

@media (max-width: 760px), (max-width: 1100px) and (max-height: 560px) and (orientation: landscape) {
    .dg-ecosystem--compact-mobile {
        --v2-scene-bottom: calc(var(--v2-progress-bottom) + var(--v2-progress-height, 55px) + 8px);
    }

    .dg-ecosystem--compact-mobile .v2-scene {
        --v2-fit-width: 670;
        --v2-fit-height: 700;
    }

    .dg-ecosystem--compact-mobile.is-chapter .v2-scene {
        --v2-fit-width: 770;
    }

    .dg-ecosystem--compact-mobile.is-chapter .v2-world-size {
        left: 46%;
    }

    .dg-ecosystem--compact-mobile .v2-plane-label {
        left: 8px;
    }
}

/* The modal owns its scrolling and never changes the host page typography. */
dialog.dg-ecosystem-dialog {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
}

.dg-ecosystem-dialog::backdrop {
    background: transparent;
}

.dg-ecosystem-dialog::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 100;
    background: #000;
    opacity: var(--reveal-cover, 0);
    pointer-events: none;
}

.dg-ecosystem-dialog.is-transitioning {
    will-change: clip-path;
}

.dg-ecosystem-dialog.is-transitioning .ecosystem-scroller {
    overflow-y: hidden;
}

.dg-ecosystem-dialog .ecosystem-scroller {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: none;
    scroll-behavior: auto;
    scrollbar-gutter: stable;
}

.dg-ecosystem-dialog .site-header {
    position: absolute;
}

.dg-ecosystem-dialog .ecosystem-close {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    color: var(--ink);
}

.dg-ecosystem-dialog .ecosystem-close span {
    font-size: 26px;
}

.dg-ecosystem-dialog .is-enhanced {
    scroll-margin: 0;
}

.dg-ecosystem-dialog.is-enhanced .story-stage {
    position: sticky;
    top: 0;
    height: 100dvh;
    min-height: 0;
    will-change: auto;
}

.dg-ecosystem-dialog [hidden] {
    display: none !important;
}

@media (max-width: 760px) {
    .dg-ecosystem-dialog .header-label {
        display: none;
    }

    .dg-ecosystem-dialog .header-actions {
        gap: 12px;
    }
}

/* Content backgrounds and fallback media do not affect the enhanced V2 layout. */
.dg-ecosystem .v2-progress button {
    overflow-wrap: anywhere;
    hyphens: auto;
    align-self: start;
}

.dg-ecosystem .v2-stage-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.dg-ecosystem .v2-main-fallback, .dg-ecosystem .v2-chapter-media {
    display: none;
}

.dg-ecosystem.is-linear .v2-stage-background {
    display: none;
}

.dg-ecosystem.is-linear .v2-main-fallback, .dg-ecosystem.is-linear .v2-chapter-media {
    display: block;
    margin-top: 28px;
}

.dg-ecosystem.is-linear :is(.v2-main-fallback, .v2-chapter-media) img {
    display: block;
    max-width: 100%;
    max-height: 420px;
    margin: 0 auto 20px;
    object-fit: contain;
}

.dg-ecosystem.is-linear .v2-chapter-video {
    margin-top: 0;
}

.dg-ecosystem[dir="rtl"] .v2-copy {
    left: auto;
    right: var(--gutter);
}

.dg-ecosystem[dir="rtl"] .v2-progress button {
    text-align: right;
}

@media (max-width: 760px) {
    .dg-ecosystem .v2-plane-label {
        white-space: normal;
        min-width: 80px;
    }
}