:root {
    --jenkins-ink: #24211f;
    --jenkins-paper: #f5efe5;
    --jenkins-paper-light: #fffaf1;
    --jenkins-steam: #dfd5c8;
    --jenkins-clay: #a66043;
    --jenkins-terracotta: #c57850;
    --jenkins-ochre: #edbf62;
    --jenkins-yellow: rgba(255, 221, 139, 0.94);
    --jenkins-glaze: #4d7d78;
    --jenkins-moss: #7d8f62;
    --jenkins-slate: #626b6a;
    --jenkins-line: rgba(36, 33, 31, 0.16);
    --jenkins-soft-line: rgba(36, 33, 31, 0.08);
    --jenkins-shadow: 0 26px 60px rgba(36, 33, 31, 0.16);
    --jenkins-glass: rgba(255, 250, 241, 0.48);
    --jenkins-font-fancy: "lincoln-electric-regular", sans-serif;
}

body {
    background: var(--jenkins-paper);
    color: var(--jenkins-ink);
    font-family: "Redonda", system-ui, sans-serif;
    font-weight: 300;
    overflow-x: hidden;
}

a {
    color: var(--jenkins-glaze);
    text-decoration-color: rgba(77, 125, 120, 0.35);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
}
p {
    margin-bottom: 16px;
}

.jenkins-article {
    background:
            linear-gradient(115deg, rgba(166, 96, 67, 0.13), transparent 24rem),
            linear-gradient(245deg, rgba(77, 125, 120, 0.14), transparent 26rem);
    min-height: 100svh;
    overflow-x: clip;
    position: relative;
}

.jenkins-article::before {
    background:
            linear-gradient(104deg, transparent 0 12%, rgba(201, 157, 69, 0.22) 12% 21%, transparent 21% 100%),
            linear-gradient(168deg, transparent 0 66%, rgba(77, 125, 120, 0.13) 66% 76%, transparent 76% 100%);
    content: "";
    inset: 0;
    opacity: 0.8;
    pointer-events: none;
    position: fixed;
}

.jenkins-article .container-xl {
    max-width: min(1180px, 100%);
    position: relative;
    z-index: 1;
}

.story-hero {
    background: #171412;
    display: grid;
    isolation: isolate;
    min-height: 100svh;
    overflow: hidden;
    padding: 80px 0 0; /* for sticky nav */
    position: relative;
}

.story-hero::before {
    background:
            linear-gradient(90deg, rgba(18, 15, 13, 0.88) 0%, rgba(18, 15, 13, 0.68) 10%, rgba(18, 15, 13, 0.24) 20%, rgba(18, 15, 13, 0.08) 30%),
            linear-gradient(0deg, rgba(18, 15, 13, 0.78) 0%, rgba(18, 15, 13, 0.28) 15%, rgba(18, 15, 13, 0.14) 30%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.story-hero .container-xl {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100svh;
    padding-bottom: clamp(2rem, 6vw, 5.5rem);
    padding-top: clamp(4rem, 8vw, 6.5rem);
}

.hero-cover-image {
    height: 100%;
    inset: 0;
    object-fit: cover;
    object-position: 56% center;
    position: absolute;
    transform-origin: center;
    width: 100%;
    z-index: -2;
}

.hero-cover-copy {
    max-width: 49rem;
    position: relative;
}

.kicker::before {
    background: var(--jenkins-paper);
    border-radius: 999px;
    content: "";
    height: 0.35rem;
    left: 0;
    opacity: 0.95;
    position: absolute;
    top: -1.15rem;
    width: min(11.25rem, 40vw);
}

.kicker,
.eyebrow {
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.kicker {
    color: var(--jenkins-paper);
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.story-hero h1 {
    color: var(--jenkins-yellow);
    filter:
            drop-shadow(0 0 0.025em rgba(0, 0, 0, 1))
            drop-shadow(0 0.065em 0.075em rgba(18, 12, 8, 0.34));
    font-size: clamp(6.2rem, 13vw, 11rem);
    letter-spacing: 0;
    line-height: 0.82;
    margin: 0 0 1.3rem;
    max-width: 7ch;
    /*text-shadow: 0 1em 2em rgba(0, 0, 0, 1);*/
    text-transform: uppercase;
    font-family: var(--jenkins-font-fancy);
    font-weight: 400;
    font-style: normal;

}

.hero-deck {
    color: rgba(255, 250, 241, 0.94);
    font-size: clamp(1.24rem, 2.15vw, 1.9rem);
    line-height: 1.35;
    margin: 0;
    max-width: 42rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.58);
}

.hero-photo-caption {
    align-self: flex-end;
    color: rgba(255, 250, 241, 0.72);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.35;
    margin: clamp(1.5rem, 4vw, 3rem) 0 0;
    max-width: 18rem;
    text-align: right;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}

.intro-photo {
    /*border-radius: 6px;*/
    filter: drop-shadow(0 18px 38px rgba(36, 33, 31, 0.12)) drop-shadow(0 4px 12px rgba(36, 33, 31, 0.08));
    margin: 0;
}

.photo-frame {
    --photo-position: center;
    border: 1px solid rgba(36, 33, 31, 0.13);
    border-bottom: 0;
    /*border-radius: 6px;*/
    box-shadow: none;
    container-type: inline-size;
    display: block;
    overflow: hidden;
    position: relative;
}

.photo-frame::after {
    background:
            linear-gradient(180deg, transparent 58%, rgba(36, 33, 31, 0.32)),
            radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(36, 33, 31, 0.16) 100%),
            repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 70px);
    content: "";
    inset: 0;
    mix-blend-mode: soft-light;
    opacity: 1;
    pointer-events: none;
    position: absolute;
    z-index: 4;
}

.photo-frame.top-gradient::after {
    background:
            linear-gradient(0deg, transparent 0, rgba(0, 0, 0, 1));
}
.photo-frame img {
    aspect-ratio: 4 / 3;
    display: block;
    height: auto;
    object-fit: cover;
    object-position: var(--photo-position);
    position: relative;
    width: 100%;
    z-index: 1;
}

.photo-frame.tall img {
    aspect-ratio: 3 / 4;
}

.photo-frame.wide img {
    aspect-ratio: 16 / 9;
}

.section-photo-title {
    color: var(--jenkins-paper);
    filter:
            drop-shadow(0 0 0.01em rgba(0, 0, 0, 0.25))
            drop-shadow(0 0.04em 0.05em rgba(18, 12, 8, 0.2));
    font-family: var(--jenkins-font-fancy);
    font-weight: 400;
    font-style: normal;
    font-size: clamp(3.5rem, 16cqw, 15rem);
    left: 50%;
    line-height: 0.72;
    mix-blend-mode: normal;
    /*opacity: 0.92;*/
    pointer-events: none;
    position: absolute;
    text-align: center;
    text-transform: uppercase;
    top: clamp(0.7rem, 2.2cqw, 1.8rem);
    transform: translateX(-50%);
    white-space: nowrap;
    width: min-content;
    z-index: 5;
}

.container-video {
    background: #171412;
    margin: clamp(3rem, 8vw, 6rem) 0;
    overflow: hidden;
    position: relative;
}

.container-video .row {
    margin-left: 0;
    margin-right: 0;
}

.container-video [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

.story-video {
    margin: 0;
}

.foundry-video {
    aspect-ratio: 16 / 9;
    background: #171412;
    container-type: inline-size;
    min-height: clamp(22rem, 58vw, 52rem);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.foundry-video::before,
.foundry-video::after,
.foundry-depth,
.foundry-heat,
.foundry-sparks {
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.foundry-video::before {
    /*background:*/
    /*  linear-gradient(90deg, rgba(18, 15, 13, 0.78), rgba(18, 15, 13, 0.44) 42%, rgba(18, 15, 13, 0.08) 74%),*/
    /*  linear-gradient(0deg, rgba(18, 15, 13, 0.82), rgba(18, 15, 13, 0.18) 54%, rgba(18, 15, 13, 0.34)),*/
    /*  radial-gradient(circle at 29% 70%, rgba(236, 143, 57, 0.34), transparent 21%);*/
    mix-blend-mode: multiply;
    opacity: 0.94;
    z-index: 2;
}

.foundry-video::after {
    background:
            repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 5px),
            repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 7px);
    mix-blend-mode: overlay;
    opacity: 0.22;
    z-index: 6;
    animation: foundryGrain 0.9s steps(2, end) infinite;
}

.foundry-media-slot {
    inset: 0;
    overflow: hidden;
    position: absolute;
    z-index: 1;
}

.foundry-media-slot > img,
.foundry-media-slot > video {
    display: block;
    filter: saturate(1.08) contrast(1.07) brightness(0.82);
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.06);
    width: 100%;
    animation: foundryDrift 12s ease-in-out infinite alternate;
}

.foundry-depth {
    background:
            linear-gradient(90deg, rgba(18, 15, 13, 0.52), rgba(18, 15, 13, 0.32) 42%, rgba(18, 15, 13, 0.08) 72%, rgba(18, 15, 13, 0.28)),
            linear-gradient(0deg, rgba(18, 15, 13, 0.46), transparent 56%, rgba(18, 15, 13, 0.14));
    z-index: 2;
}

.foundry-video-copy {
    bottom: clamp(1.1rem, 4cqw, 3.4rem);
    color: var(--jenkins-paper);
    left: clamp(1rem, 5cqw, 5rem);
    max-width: min(38rem, 74cqw);
    padding: 0;
    pointer-events: none;
    position: absolute;
    right: clamp(1rem, 5cqw, 5rem);

    z-index: 7;
    background: transparent;
}

.foundry-video-copy h3 {
    color: var(--jenkins-paper);
    font-family: var(--jenkins-font-fancy);
    font-weight: 400;
    font-style: normal;
    font-size: clamp(3.6rem, 11cqw, 9rem);
    letter-spacing: 0;
    line-height: 0.76;
    margin: 0 0 0.45rem;
    text-transform: uppercase;
}

.foundry-video-copy p {
    color: rgba(255, 250, 241, 0.92);
    font-size: clamp(1rem, 1.22vw, 1.15rem);
    line-height: 1.5;
    margin: 0;
    max-width: 35rem;
    text-shadow: 0 0.12em 0.28em rgba(18, 12, 8, 0.86);
}

.ending-video {
    /*border-radius: 6px;*/
    margin: -5rem 0 0;
    overflow: hidden;
    position: relative;
    max-width: 100%;
    z-index: 1;
}

.ending-video video {
    aspect-ratio: 16 / 9;
    display: block;
    filter: saturate(1.04) contrast(1.04) brightness(0.94);
    height: auto;
    object-fit: cover;
    width: 100%;
}


@keyframes foundryDrift {
    from {
        transform: scale(1.06) translate3d(-0.6%, 0, 0);
    }

    to {
        transform: scale(1.12) translate3d(1.1%, -1.2%, 0);
    }
}

@keyframes foundryGlow {
    from {
        opacity: 0.54;
        transform: translate3d(-1.5%, 1%, 0);
    }

    to {
        opacity: 0.86;
        transform: translate3d(1.5%, -1%, 0);
    }
}

@keyframes foundryHeat {
    from {
        opacity: 0.42;
        transform: translateX(-8%) skewX(-10deg) scaleX(0.96);
    }

    to {
        opacity: 0.72;
        transform: translateX(5%) skewX(-6deg) scaleX(1.05);
    }
}

@keyframes foundrySparks {
    from {
        background-position: 22% 70%, 39% 62%, 58% 80%;
        opacity: 0.18;
    }

    42% {
        opacity: 0.42;
    }

    to {
        background-position: 25% 28%, 43% 24%, 61% 34%;
        opacity: 0.1;
    }
}

@keyframes foundryGrain {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-1.5%, 1%, 0);
    }
}

.article-flow {
    padding: 1rem 0 5.5rem;
}

.story-block {
    /*border-top: 1px solid var(--jenkins-line);*/
    isolation: isolate;
    padding: clamp(1rem, 2vw, 2rem) 0;
    position: relative;
}

.story-block:first-child {
    border-top: 0;
}

.story-block:first-child::before {
    display: none;
}

.story-block.photos-left::before,
.story-block.image-left::before {
    background:
            linear-gradient(270deg, var(--accent, var(--jenkins-clay)), rgba(255, 250, 241, 0.16) 62%, transparent);
    left: auto;
    right: 0;
    transform: rotate(0.25deg);
}

.story-block > .row,
.story-block > h3 {
    position: relative;
    z-index: 1;
}

.eyebrow {
    align-items: center;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
    width: 100%;
}

.story-block h2 {
    color: var(--jenkins-ink);
    font-size: clamp(3.5rem, 7vw, 5rem);
    letter-spacing: 2px;
    line-height: 0.92;
    margin: 0 0 10px;
    text-transform: uppercase;
    font-family: var(--jenkins-font-fancy);
    font-weight: 400;
    font-style: normal;
}

.story-block h2 span.futura {
    font-family: "Futura", sans-serif;
    font-weight: 600;
    font-size: 48px;
    padding-bottom: 16px;
    display: block;
}

.story-block h3 {
    color: var(--jenkins-ink);
    font-size: clamp(3.25rem, 5.5vw, 4.1rem);
    font-family: var(--jenkins-font-fancy);
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0;
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
}
.article-copy-container {
    margin-top: 1.2rem;
}
.article-copy {
    color: rgba(36, 33, 31, 0.82);
    font-size: clamp(1.08rem, 1.55vw, 1.28rem);
    background: #fff;
    padding: 2.5rem 3rem;
    -webkit-backdrop-filter: blur(10px) saturate(1.08);
    backdrop-filter: blur(10px) saturate(1.08);
    background:
            linear-gradient(135deg, rgba(255, 250, 241, 0.62), var(--jenkins-glass) 94%, rgba(223, 213, 200, 0.24)),
            linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(36, 33, 31, 0.025));
    border: 1px solid rgba(36, 33, 31, 0.1);
    /*border-radius: 0 0 6px 6px;*/
    border-top: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: none;
    display: block;
    line-height: 1.4;
    margin-top: 0;
    max-width: 100%;
    width: 100%;
}

.photo-pair {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr);
}

.story-photo {
    filter: drop-shadow(0 18px 38px rgba(36, 33, 31, 0.12)) drop-shadow(0 4px 12px rgba(36, 33, 31, 0.08));
    margin: 0;
}

.intro-photo figcaption,
.story-photo figcaption,
.story-video figcaption {
    color: rgba(36, 33, 31, 0.72);
    font-family: var(--bs-font-sans-serif);
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0.65rem 0 0;
    max-width: 42rem;
}

[data-reveal],
[data-photo-reveal] {
    will-change: opacity, transform;
}

@media (min-width: 992px) {

    .story-block.image-left .row {
        flex-direction: row-reverse;
    }
}

@media (max-width: 991.98px) {
    .story-hero::before {
        background:
                linear-gradient(90deg, rgba(18, 15, 13, 0.9) 0%, rgba(18, 15, 13, 0.72) 46%, rgba(18, 15, 13, 0.18) 100%),
                linear-gradient(0deg, rgba(18, 15, 13, 0.82) 0%, rgba(18, 15, 13, 0.38) 58%, rgba(18, 15, 13, 0.16) 100%);
    }

    .foundry-video-copy {
        background: #000;
        bottom: auto;
        left: auto;
        position: relative;
        right: auto;
        max-width: 100%;
        padding: clamp(1rem, 4vw, 1.6rem);
        text-shadow: none;
    }

    .foundry-video {
        aspect-ratio: auto;
        min-height: 0;
    }

    .foundry-video::before,
    .foundry-video::after {
        display: none;
    }

    .foundry-media-slot {
        aspect-ratio: 16 / 9;
        inset: auto;
        position: relative;
    }

    .foundry-media-slot > img,
    .foundry-media-slot > video {
        height: 100%;
    }

}


@media (max-width: 767.98px) {
    .story-hero .container-xl {
        padding-bottom: 2rem;
        padding-top: 4rem;
    }

    .story-hero h1 {
        font-size: clamp(3.2rem, 16vw, 5.4rem);
    }

    .hero-deck {
        font-size: clamp(1.08rem, 5vw, 1.34rem);
        max-width: 26rem;
    }

    .hero-photo-caption {
        align-self: flex-start;
        font-size: 0.78rem;
        text-align: left;
    }

    .photo-pair {
        grid-template-columns: 1fr;
    }

    .story-block {
        padding: 3rem 0;
    }

    .story-block::after {
        opacity: 0.24;
    }

    .container-video {
        margin-top: clamp(3rem, 10vw, 5rem);
        overflow: hidden;
        scroll-margin-top: 1rem;
    }

    .foundry-video-copy {
        max-width: none;
        padding: 1rem;
    }

    .foundry-video-copy h3 {
        font-size: clamp(3.4rem, 17cqw, 4.6rem);
        margin-bottom: 0.35rem;
    }

    .foundry-video-copy p {
        font-size: 0.94rem;
        line-height: 1.36;
        max-width: 100%;
    }

}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
