/* Homepage people and story-video sections — intentionally scoped and loaded
   after index.php's legacy inline styles. The existing hero remains the only
   gradient-led section. */

.media-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: #2458c6;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.media-section-label::before {
    content: '';
    width: 30px;
    height: 2px;
    flex: 0 0 auto;
    background: #2458c6;
}

.people-section {
    padding: clamp(68px, 8vw, 108px) 0;
    background: #fff;
}

.people-grid {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    align-items: center;
    gap: clamp(42px, 7vw, 92px);
}

.people-copy {
    min-width: 0;
}

.people-copy h2 {
    max-width: 560px;
    margin: 0;
    color: #0a1d48;
    font-size: clamp(2.45rem, 4.6vw, 4.25rem);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: .98;
}

.people-copy h2 span {
    display: block;
    color: #2458c6;
}

.people-description {
    max-width: 480px;
    margin: 24px 0 0;
    color: #626f86;
    font-size: .96rem;
    line-height: 1.8;
}

.people-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 30px;
    border-top: 1px solid #dce4ef;
    border-bottom: 1px solid #dce4ef;
}

.people-value {
    min-width: 0;
    padding: 16px 12px 16px 0;
}

.people-value + .people-value {
    padding-left: 13px;
    border-left: 1px solid #dce4ef;
}

.people-value small,
.people-value strong {
    display: block;
}

.people-value small {
    margin-bottom: 5px;
    color: #2458c6;
    font-size: .65rem;
    font-weight: 700;
}

.people-value strong {
    color: #0a1d48;
    font-size: .78rem;
    font-weight: 650;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.people-link {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-top: 26px;
    color: #0a1d48;
    font-size: .86rem;
    font-weight: 700;
    text-decoration: none;
}

.people-link span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #2458c6;
    border-radius: 50%;
    color: #2458c6;
    transition: transform .2s ease, color .2s ease, background .2s ease;
}

.people-link:hover {
    color: #2458c6;
}

.people-link:hover span {
    transform: translateX(3px);
    color: #fff;
    background: #2458c6;
}

.people-link:focus-visible,
.story-footer a:focus-visible,
.story-sound:focus-visible {
    outline: 3px solid rgba(47, 107, 255, .34);
    outline-offset: 4px;
}

.people-media {
    position: relative;
    min-width: 0;
    padding-inline: clamp(18px, 2.4vw, 36px);
}

.people-media .tc-frame {
    position: relative;
    height: clamp(410px, 36vw, 535px);
    overflow: visible;
    aspect-ratio: auto;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    isolation: isolate;
}

.people-media .tc-track {
    overflow: visible;
}

.people-media .tc-slide {
    --frame-color: #16286a;
    --stack-x: 50%;
    --stack-y: 50%;
    --stack-w: 62%;
    --stack-h: 90%;
    --card-inset: 5px;
    --card-inset-double: 10px;
    --caption-height: 42px;
    inset: auto;
    top: var(--stack-y);
    left: var(--stack-x);
    z-index: 0;
    width: var(--stack-w);
    height: var(--stack-h);
    overflow: hidden;
    border: 3px solid var(--frame-color);
    border-radius: 3px;
    background: var(--frame-color);
    box-shadow: 0 18px 42px rgba(10, 29, 72, .12);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(.9);
    transition:
        left 480ms cubic-bezier(.22, .61, .36, 1),
        top 480ms cubic-bezier(.22, .61, .36, 1),
        width 480ms cubic-bezier(.22, .61, .36, 1),
        height 480ms cubic-bezier(.22, .61, .36, 1),
        opacity 300ms ease,
        transform 480ms cubic-bezier(.22, .61, .36, 1);
}

.people-media .tc-slide[data-stack-position="current"],
.people-media .tc-slide.is-current:not([data-stack-position]) {
    --stack-x: 50%;
    --stack-w: 62%;
    --stack-h: 90%;
    --card-inset: 6px;
    --card-inset-double: 12px;
    --caption-height: 58px;
    border-width: 4px;
    z-index: 4;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.people-media .tc-slide[data-stack-position="prev-1"] {
    --stack-x: 35%;
    --stack-w: 50%;
    --stack-h: 76%;
    z-index: 3;
    opacity: 1;
    transform: translate(-50%, -50%) scale(.985);
}

.people-media .tc-slide[data-stack-position="next-1"] {
    --stack-x: 65%;
    --stack-w: 50%;
    --stack-h: 76%;
    z-index: 3;
    opacity: 1;
    transform: translate(-50%, -50%) scale(.985);
}

.people-media .tc-slide[data-stack-position="prev-2"] {
    --stack-x: 21%;
    --stack-w: 39%;
    --stack-h: 62%;
    z-index: 2;
    opacity: .96;
    transform: translate(-50%, -50%) scale(.97);
}

.people-media .tc-slide[data-stack-position="next-2"] {
    --stack-x: 79%;
    --stack-w: 39%;
    --stack-h: 62%;
    z-index: 2;
    opacity: .96;
    transform: translate(-50%, -50%) scale(.97);
}

.people-media .tc-slide[data-stack-position="prev-3"] {
    --stack-x: 9%;
    --stack-w: 29%;
    --stack-h: 50%;
    z-index: 1;
    opacity: .9;
    transform: translate(-50%, -50%) scale(.95);
}

.people-media .tc-slide[data-stack-position="next-3"] {
    --stack-x: 91%;
    --stack-w: 29%;
    --stack-h: 50%;
    z-index: 1;
    opacity: .9;
    transform: translate(-50%, -50%) scale(.95);
}

.people-media .tc-slide[data-stack-position="hidden"] {
    visibility: hidden;
}

.people-media .tc-slide img {
    position: absolute;
    top: var(--card-inset);
    left: var(--card-inset);
    width: calc(100% - var(--card-inset-double));
    height: calc(100% - var(--card-inset) - var(--caption-height));
    object-fit: cover;
    transform: none;
}

.people-media .tc-slide.is-current img {
    animation: none;
    transform: none;
}

.people-media .tc-slide::after {
    display: none;
}

.people-media .tc-slide::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    height: var(--caption-height);
    border-top: 0;
    background: var(--frame-color);
}

.people-media .tc-caption {
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    height: var(--caption-height);
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 16px;
    z-index: 2;
    background: transparent;
    color: #fff;
    text-align: center;
    opacity: 0;
}

.people-media .tc-slide[data-stack-position="current"] .tc-caption,
.people-media .tc-slide.is-current:not([data-stack-position]) .tc-caption {
    opacity: 1;
}

.people-media .tc-caption h3 {
    overflow: hidden;
    margin: 0;
    color: #fff;
    font-size: .82rem;
    font-weight: 650;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.people-media .tc-caption p {
    display: block;
    overflow: hidden;
    max-width: 100%;
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: .66rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.people-media .tc-foot {
    display: none;
}

.people-media .tc-nav {
    top: 50%;
    z-index: 8;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #617396;
    opacity: .72;
    backdrop-filter: none;
}

.people-media .tc-frame:hover .tc-nav {
    opacity: .82;
}

.people-media .tc-nav:hover {
    border-color: transparent;
    background: transparent;
    color: #2458c6;
    opacity: 1;
}

.people-media .tc-nav:focus-visible {
    outline: 3px solid rgba(47, 107, 255, .34);
    outline-offset: 2px;
    color: #2458c6;
}

.people-media .tc-prev {
    left: -34px;
}

.people-media .tc-next {
    right: -34px;
}

.story-section {
    padding: clamp(70px, 8vw, 108px) 0;
    background: #eef4ff;
}

.story-heading {
    display: grid;
    grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
    align-items: end;
    gap: 42px;
    margin-bottom: 34px;
}

.story-heading h2 {
    max-width: 540px;
    margin: 0;
    color: #0a1d48;
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: 1;
}

.story-heading > p {
    max-width: 520px;
    margin: 0 0 3px auto;
    color: #626f86;
    font-size: .96rem;
    line-height: 1.75;
}

.story-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 8.6;
    border-radius: 4px 56px 4px 4px;
    background: #071634;
    box-shadow: 0 28px 64px rgba(10, 29, 72, .2);
}

.story-frame video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #071634;
    cursor: pointer;
}

.story-frame video:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .9);
    outline-offset: -6px;
}

.story-frame.portrait-fallback video {
    object-fit: contain;
}

.story-shade {
    position: absolute;
    inset: 0;
    background: rgba(10, 29, 72, .34);
    pointer-events: none;
}

.story-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px;
    color: #fff;
    text-align: center;
    pointer-events: none;
}

.story-overlay > p {
    margin: 0 0 12px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    transition: opacity .25s ease;
}

.story-overlay h3 {
    max-width: 680px;
    margin: 0;
    font-size: clamp(1.75rem, 4.3vw, 3.55rem);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.04;
    transition: opacity .25s ease;
}

.story-sound {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 3;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 50%;
    background: rgba(7, 22, 52, .58);
    color: #fff;
    backdrop-filter: blur(8px);
}

.story-frame.is-playing .story-overlay > p,
.story-frame.is-playing .story-overlay h3 {
    opacity: 0;
}

.story-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    padding-top: 20px;
    color: #626f86;
    font-size: .78rem;
}

.story-footer strong {
    color: #0a1d48;
}

.story-footer a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #2458c6;
    font-weight: 700;
    text-decoration: none;
    margin-left: auto;
}

@media (max-width: 991.98px) {
    .people-grid,
    .story-heading {
        grid-template-columns: 1fr;
    }

    .people-grid {
        gap: 44px;
    }

    .people-media {
        padding-inline: clamp(28px, 6vw, 48px);
    }

    .people-media .tc-frame {
        height: clamp(400px, 68vw, 525px);
    }

    .story-heading {
        gap: 18px;
    }

    .story-heading > p {
        margin-left: 0;
    }
}

@media (max-width: 575.98px) {
    .people-section,
    .story-section {
        padding: 64px 0;
    }

    .people-copy h2 {
        font-size: clamp(2.35rem, 12vw, 3.2rem);
    }

    .people-values {
        grid-template-columns: 1fr;
    }

    .people-value {
        padding: 13px 0;
    }

    .people-value + .people-value {
        padding-left: 0;
        border-top: 1px solid #dce4ef;
        border-left: 0;
    }

    .people-media {
        padding-inline: 20px;
    }

    .people-media .tc-frame {
        height: min(104vw, 390px);
    }

    .people-media .tc-slide[data-stack-position="current"],
    .people-media .tc-slide.is-current:not([data-stack-position]) {
        --stack-w: 82%;
        --stack-h: 90%;
        --card-inset: 5px;
        --card-inset-double: 10px;
        --caption-height: 50px;
    }

    .people-media .tc-slide[data-stack-position="prev-1"] {
        --stack-x: 20%;
        --stack-w: 58%;
        --stack-h: 66%;
    }

    .people-media .tc-slide[data-stack-position="next-1"] {
        --stack-x: 80%;
        --stack-w: 58%;
        --stack-h: 66%;
    }

    .people-media .tc-slide[data-stack-position="prev-2"],
    .people-media .tc-slide[data-stack-position="next-2"],
    .people-media .tc-slide[data-stack-position="prev-3"],
    .people-media .tc-slide[data-stack-position="next-3"] {
        visibility: hidden;
        opacity: 0;
    }

    .people-media .tc-prev {
        left: -14px;
    }

    .people-media .tc-next {
        right: -14px;
    }

    .story-frame {
        width: min(100%, 430px);
        max-height: 76svh;
        margin-inline: auto;
        aspect-ratio: 9 / 16;
        border-radius: 4px 42px 4px 4px;
    }

    .story-frame video,
    .story-frame.portrait-fallback video {
        object-fit: cover;
    }

    .story-overlay {
        padding: 26px;
    }

    .story-overlay h3 {
        font-size: clamp(1.75rem, 9.5vw, 2.6rem);
    }

    .story-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .people-media .tc-slide,
    .people-link span,
    .story-overlay > p,
    .story-overlay h3 {
        transition: none;
    }
}
