.dhs-enhanced,
.dhs-enhanced body {
    overflow-x: clip;
}

.dhs-enhanced body {
    overflow-y: visible;
}

.dhs-main {
    clear: both;
    display: flow-root;
    width: 100%;
}

.dhs-wrap {
    float: none;
    display: flow-root;
    padding-bottom: var(--dks-space-section);
}

.dhs-intro {
    clear: both;
    max-width: 1040px;
    margin: clamp(24px, 4vw, 54px) auto clamp(52px, 7vw, 96px);
    color: var(--dks-color-ink-primary);
    font-family: var(--dks-font-display);
    font-size: clamp(28px, 3vw, 46px);
    font-weight: 400;
    line-height: 1.24;
    text-align: center;
}

.dhs-intro p {
    font: inherit;
}

.dhs-story {
    --dhs-stage-height: min(720px, calc(100vh - 48px));
    --dhs-stage-gutter: clamp(28px, 4vw, 56px);
    --dhs-panel-gutter: clamp(24px, 3vw, 42px);
    position: relative;
    clear: both;
    width: 100%;
}

.dhs-year-track {
    display: contents;
}

.dhs-year-rail {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    gap: 8px;
    width: 100%;
    padding: 12px 4px;
    overflow-x: auto;
    background: var(--dks-color-surface-page);
    border-top: 1px solid var(--dks-color-edge-soft);
    border-bottom: 1px solid var(--dks-color-edge-soft);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.dhs-year-rail::-webkit-scrollbar {
    display: none;
}

.dhs-year-link {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    min-height: var(--dks-size-target-min);
    padding: 0 12px;
    color: var(--dks-color-text-muted);
    border: 1px solid transparent;
    border-radius: var(--dks-radius-control);
    font-family: var(--dks-font-display);
    font-size: 15px;
    font-weight: 600;
}

.dhs-year-link:hover,
.dhs-year-link.is-active {
    color: var(--dks-color-ink-primary);
    background: var(--dks-color-surface-paper);
    border-color: var(--dks-color-edge-accent);
}

.dhs-year-link.is-active {
    font-weight: 800;
    box-shadow: 0 5px 18px rgba(15, 42, 68, 0.12);
}

.dhs-rail-progress {
    display: none;
}

.dhs-desktop {
    display: none;
}

.dhs-mobile-list {
    display: grid;
    gap: 28px;
    padding-top: 28px;
}

.dhs-card {
    height: auto;
    overflow: hidden;
    background: var(--dks-color-surface-paper);
    border: 1px solid var(--dks-color-edge-soft);
    border-radius: var(--dks-radius-panel);
    box-shadow: 0 12px 34px rgba(15, 42, 68, 0.09);
    scroll-margin-top: 92px;
    transition:
        border-color var(--dks-motion-fast) var(--dks-motion-ease-out),
        box-shadow var(--dks-motion-fast) var(--dks-motion-ease-out);
}

.dhs-card.is-active {
    border-color: var(--dks-color-edge-accent);
    box-shadow: var(--dks-shadow-media);
}

.dhs-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--dks-color-surface-navy-deep);
}

.dhs-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dhs-media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.9);
    background:
        linear-gradient(135deg, transparent 49.5%, var(--dks-color-edge-accent) 50%, transparent 50.5%),
        var(--dks-color-surface-navy-deep);
    font-family: var(--dks-font-display);
    font-size: clamp(42px, 10vw, 82px);
    font-weight: 800;
}

.dhs-card-copy {
    padding: clamp(22px, 5vw, 34px);
}

.dhs-card-year,
.dhs-stage-year {
    display: block;
    margin-bottom: 14px;
    color: var(--dks-color-ink-secondary);
    font-family: var(--dks-font-display);
    font-size: 16px;
    font-weight: 600;
}

.dhs-card h2,
.dhs-stage-panel h2 {
    margin: 0 0 20px;
    color: var(--dks-color-ink-primary);
    font-family: var(--dks-font-display);
    font-size: clamp(26px, 6vw, 40px);
    font-weight: 500;
    line-height: 1.2;
}

.dhs-description {
    min-width: 0;
    color: var(--dks-color-ink-secondary);
    font-family: var(--dks-font-body);
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.dhs-description p {
    margin: 0 0 12px;
}

.dhs-description p:last-child {
    margin-bottom: 0;
}

.dhs-gallery {
    margin-top: 24px;
}

.dhs-gallery-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--dks-size-target-min);
    padding: 0 22px;
    color: var(--dks-color-ink-primary);
    border: 1px solid var(--dks-color-edge-soft);
    border-radius: var(--dks-radius-control);
    font-family: var(--dks-font-display);
    font-size: 14px;
    font-weight: 600;
}

.dhs-gallery-action:hover {
    color: var(--dks-color-surface-paper);
    background: var(--dks-color-ink-primary);
    border-color: var(--dks-color-ink-primary);
}

.dhs-gallery-hidden {
    display: none;
}

@media screen and (min-width: 1024px) {
    .dhs-enhanced .dhs-year-track {
        position: absolute;
        inset: 0 auto 0 0;
        z-index: 5;
        display: block;
        width: 124px;
    }

    .dhs-enhanced .dhs-year-track > .dhs-year-rail {
        position: sticky;
        top: 24px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 0;
        width: 124px;
        height: var(--dhs-stage-height);
        margin: 0;
        padding: 24px 20px 24px 0;
        overflow: visible;
        background: transparent;
        border: 0;
    }

    .dhs-enhanced .dhs-year-rail::before {
        position: absolute;
        top: 32px;
        bottom: 32px;
        left: 0;
        width: 2px;
        content: "";
        background: var(--dks-color-edge-soft);
    }

    .dhs-enhanced .dhs-year-link {
        justify-content: flex-start;
        min-width: 0;
        min-height: 36px;
        padding: 0 0 0 24px;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        font-size: 14px;
    }

    .dhs-enhanced .dhs-year-link::before {
        position: absolute;
        top: 50%;
        left: 0;
        width: 14px;
        height: 2px;
        content: "";
        background: var(--dks-color-edge-soft);
        transform: translateY(-50%);
        transition: width var(--dks-motion-fast) var(--dks-motion-ease-out);
    }

    .dhs-enhanced .dhs-year-link.is-active::before,
    .dhs-enhanced .dhs-year-link:hover::before {
        width: 36px;
        background: var(--dks-color-edge-accent);
    }

    .dhs-enhanced .dhs-year-link.is-active {
        padding-left: 44px;
    }

    .dhs-enhanced .dhs-rail-progress {
        position: absolute;
        top: 32px;
        left: 0;
        display: block;
        width: 2px;
        height: calc(100% - 64px);
        background: var(--dks-color-edge-accent);
        transform: scaleY(0);
        transform-origin: top center;
        transition: transform var(--dks-motion-medium) var(--dks-motion-ease-out);
    }

    .dhs-enhanced .dhs-desktop {
        position: relative;
        display: block;
    }

    .dhs-enhanced .dhs-sticky-shell {
        position: sticky;
        top: 24px;
        z-index: 2;
        height: var(--dhs-stage-height);
        padding-left: 124px;
    }

    .dhs-enhanced .dhs-stage {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .dhs-enhanced .dhs-media-stack {
        position: absolute;
        top: calc(var(--dhs-stage-gutter) + clamp(12px, 1.5vw, 22px));
        bottom: calc(var(--dhs-stage-gutter) + clamp(12px, 1.5vw, 22px));
        left: 0;
        width: 56%;
        overflow: hidden;
        background: var(--dks-color-surface-navy-deep);
        box-shadow: var(--dks-shadow-media);
    }

    .dhs-enhanced .dhs-stage-media {
        position: absolute;
        inset: 0;
        margin: 0;
        opacity: 0;
        clip-path: inset(0 100% 0 0);
        transform: scale(1.035);
        transition:
            opacity var(--dks-motion-medium) var(--dks-motion-ease-out),
            clip-path var(--dks-motion-slow) var(--dks-motion-ease-inout),
            transform var(--dks-motion-slow) var(--dks-motion-ease-out);
    }

    .dhs-enhanced .dhs-stage-media::after {
        position: absolute;
        inset: 0;
        content: "";
        pointer-events: none;
        background: linear-gradient(90deg, transparent 72%, rgba(15, 42, 68, 0.16));
    }

    .dhs-enhanced .dhs-stage-media.is-active {
        z-index: 2;
        opacity: 1;
        clip-path: inset(0 0 0 0);
        transform: scale(1);
    }

    .dhs-enhanced .dhs-stage-media img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .dhs-enhanced .dhs-panel-stack {
        position: absolute;
        top: var(--dhs-panel-gutter);
        bottom: var(--dhs-panel-gutter);
        right: 0;
        z-index: 3;
        width: 58%;
        height: auto;
        overflow: visible;
    }

    .dhs-enhanced .dhs-panel-stack::before {
        display: none;
    }

    .dhs-enhanced .dhs-stage-panel {
        position: absolute;
        top: 50%;
        right: 0;
        bottom: auto;
        left: 0;
        z-index: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        height: auto;
        padding: clamp(32px, 3.4vw, 56px);
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        background: rgba(255, 255, 255, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 16px;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        transform: translateY(calc(-50% + 22px));
        transition:
            opacity var(--dks-motion-medium) var(--dks-motion-ease-out),
            transform var(--dks-motion-medium) var(--dks-motion-ease-out),
            visibility 0s linear var(--dks-motion-medium);
    }

    .dhs-enhanced .dhs-stage-panel.is-active {
        z-index: 2;
        opacity: 1;
        visibility: visible;
        transform: translateY(-50%);
        transition-delay: 90ms;
    }

    .dhs-enhanced .dhs-stage-panel h2 {
        font-size: clamp(30px, 2.8vw, 46px);
    }

    .dhs-enhanced .dhs-stage-panel .dhs-description {
        font-size: 16px;
        line-height: 1.58;
    }

    .dhs-enhanced .dhs-stage-panel--long {
        justify-content: flex-start;
        padding: clamp(28px, 3vw, 46px);
    }

    .dhs-enhanced .dhs-stage-panel--long .dhs-stage-year {
        margin-bottom: 8px;
    }

    .dhs-enhanced .dhs-stage-panel--long h2 {
        margin-bottom: 14px;
        font-size: clamp(28px, 2.3vw, 36px);
    }

    .dhs-enhanced .dhs-steps {
        position: relative;
        z-index: 1;
        margin-top: calc(-1 * var(--dhs-stage-height));
        pointer-events: none;
    }

    .dhs-enhanced .dhs-step {
        min-height: 60vh;
    }

    .dhs-enhanced .dhs-step:first-child {
        min-height: calc(var(--dhs-stage-height) * 0.65);
    }

    .dhs-enhanced .dhs-mobile-list {
        display: none;
    }
}

@media screen and (min-width: 1024px) and (max-height: 740px) {
    .dhs-enhanced .dhs-year-link {
        min-height: 30px;
        font-size: 13px;
    }

    .dhs-enhanced .dhs-stage-panel {
        padding: 30px 40px;
    }

    .dhs-enhanced .dhs-stage-panel h2 {
        margin-bottom: 14px;
        font-size: 30px;
    }

    .dhs-enhanced .dhs-stage-panel--long {
        padding: 28px 38px;
    }

    .dhs-enhanced .dhs-stage-panel .dhs-description {
        font-size: 15px;
        line-height: 1.55;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dhs-year-link,
    .dhs-card,
    .dhs-gallery-action,
    .dhs-stage-media,
    .dhs-stage-panel,
    .dhs-rail-progress {
        scroll-behavior: auto;
        transition-duration: 0ms !important;
        transition-delay: 0ms !important;
    }
}
