/* A portrait stays with the reader while three chapters unfold. */
.about-story {
    position: relative;
    background: #fff;
    padding: 116px 0 90px;
    z-index: 3;
    overflow: visible
}

.about-story>.container {
    position: relative;
    z-index: 1
}

.about-bridge {
    position: absolute;
    left: 0;
    top: -155px;
    width: 100%;
    height: 510px;
    overflow: visible;
    pointer-events: none;
    z-index: 2
}

.about-bridge-path {
    fill: none;
    stroke: url(#about-gold);
    stroke-width: 2;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke
}

.story-mask-definition {
    position: absolute;
    pointer-events: none
}

.story-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 96px;
    align-items: end;
    margin-bottom: 64px
}

.story-heading h2 {
    font-size: clamp(40px, 4.3vw, 64px);
    line-height: 1.07;
    letter-spacing: -.035em;
    max-width: 500px
}

.story-heading>p {
    font-size: 18px;
    color: var(--coffee);
    line-height: 1.6;
    padding-bottom: 6px;
    margin: 0
}

.story-layout {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
    gap: 96px;
    align-items: start
}

.story-portrait {
    margin: 0;
    width: 100%;
    max-width: 460px;
    align-self: start
}

.story-picture {
    position: relative;
    isolation: isolate
}

.story-mask {
    height: 520px;
    max-height: 62svh;
    min-height: 350px;
    overflow: hidden;
    background: #eee5d8
}

.story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transform-origin: 50% 39%
}

.story-photo-corner {
    position: absolute;
    left: -12px;
    top: 36px;
    bottom: -12px;
    width: 56%;
    border-left: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
    pointer-events: none;
    z-index: -1
}

.story-portrait figcaption {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 25px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--coffee)
}

.story-portrait figcaption strong {
    font-family: var(--heading);
    font-weight: 500;
    color: var(--ink)
}

.story-portrait figcaption>span {
    white-space: nowrap;
    font-size: 12px;
    padding-top: 2px
}

.story-progress {
    display: none;
    gap: 7px;
    margin-top: 24px;
    width: 90px
}

.story-progress>span {
    position: relative;
    display: block;
    background: var(--line);
    height: 2px;
    flex: 1;
    overflow: hidden
}

.story-progress i {
    position: absolute;
    inset: 0;
    background: var(--bronze);
    transform-origin: left
}

.story-rail {
    min-width: 0
}

.story-chapter {
    padding: 32px 0 50px;
    border-bottom: 1px solid var(--line)
}

.story-chapter:first-child {
    padding-top: 12px
}

.story-chapter:last-child {
    padding-bottom: 0;
    border: 0
}

.story-chapter-copy {
    max-width: 460px
}

.story-index {
    display: block;
    font-size: 12px;
    letter-spacing: .08em;
    color: var(--bronze);
    margin-bottom: 24px;
    font-variant-numeric: tabular-nums
}

.story-chapter h3 {
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.14;
    letter-spacing: -.035em;
    margin: 0 0 26px;
    text-wrap: initial
}

.story-chapter p {
    font-size: 17px;
    line-height: 1.85;
    color: var(--coffee);
    max-width: 43ch
}

.story-chapter .text-link {
    margin-top: 10px
}

.about-story .credentials-timeline {
    border-top: 1px solid var(--line);
    padding-top: 60px;
    margin-top: 90px
}

.about-story .credentials-line {
    top: 0;
    height: 100%
}

/* Extra reading distance exists only while the portrait can be pinned safely. */
.story-pinned .story-progress {
    display: flex
}

.story-pinned .story-chapter {
    min-height: 68svh;
    display: flex;
    align-items: center;
    padding: 55px 0;
    border: 0
}

.story-pinned .story-chapter:first-child {
    padding-top: 15px
}

.story-pinned .story-chapter:last-child {
    min-height: 78svh;
    padding-bottom: 90px
}

.story-pinned .story-mask {
    clip-path: url(#about-portrait-mask)
}

@media(max-width:1150px) {

    .story-heading,
    .story-layout {
        gap: 55px
    }

    .story-portrait figcaption {
        display: block
    }

    .story-portrait figcaption>span {
        display: block;
        margin-top: 8px
    }

    .story-mask {
        height: 470px
    }

    .story-chapter h3 {
        font-size: 36px
    }
}

@media(max-width:979px) {
    .about-story {
        padding: 85px 0 70px
    }

    .about-bridge {
        height: 340px;
        top: -90px;
        opacity: .65
    }

    .story-heading {
        gap: 40px;
        margin-bottom: 46px
    }

    .story-heading h2 {
        font-size: 43px
    }

    .story-heading>p {
        font-size: 16px
    }

    .story-layout {
        gap: 40px
    }

    .story-mask {
        height: 430px;
        min-height: 0;
        max-height: none
    }

    .story-chapter {
        padding: 28px 0 36px
    }

    .story-chapter h3 {
        font-size: 29px
    }

    .story-chapter p {
        font-size: 16px
    }

    .story-index {
        margin-bottom: 16px
    }
}

@media(max-width:760px) {
    .about-story {
        padding: 70px 0 60px
    }

    .story-heading {
        display: block;
        margin-bottom: 34px
    }

    .story-heading h2 {
        font-size: 39px
    }

    .story-heading>p {
        font-size: 16px;
        margin-top: 22px
    }

    .story-heading>p br {
        display: none
    }

    .story-layout {
        grid-template-columns: 1fr;
        gap: 45px
    }

    .story-portrait {
        max-width: 400px;
        margin: 0 auto
    }

    .story-mask {
        height: auto;
        aspect-ratio: 4/5
    }

    .story-portrait figcaption {
        display: flex;
        font-size: 12px;
        gap: 18px
    }

    .story-portrait figcaption>span {
        margin: 0;
        font-size: 11px
    }

    .story-photo-corner {
        left: -8px;
        bottom: -8px;
        top: 28px
    }

    .story-rail {
        padding-left: 0
    }

    .story-chapter {
        padding: 30px 0 38px
    }

    .story-chapter:first-child {
        padding-top: 0
    }

    .story-chapter h3 {
        font-size: 30px;
        margin-bottom: 20px
    }

    .story-chapter p {
        line-height: 1.75
    }

    .story-index {
        font-size: 11px;
        margin-bottom: 16px
    }

    .about-bridge {
        top: -85px;
        height: 310px;
        opacity: .5
    }

    .about-story .credentials-timeline {
        margin-top: 58px;
        padding-top: 42px
    }
}

@media(max-width:370px) {
    .story-heading h2 {
        font-size: 35px
    }

    .story-portrait figcaption {
        display: block
    }

    .story-portrait figcaption>span {
        margin-top: 8px
    }

    .story-chapter h3 {
        font-size: 27px
    }
}

@media(prefers-reduced-motion:reduce) {
    .about-bridge {
        display: none
    }

    .story-image,
    .story-chapter-copy {
        transform: none !important;
        opacity: 1 !important
    }

    .story-mask {
        clip-path: none !important
    }
}

@media print {
    .about-story {
        padding: 30px 0
    }

    .about-bridge,
    .story-photo-corner,
    .story-progress {
        display: none
    }

    .story-layout {
        display: block
    }

    .story-portrait {
        position: static !important;
        transform: none !important;
        max-width: 250px
    }

    .story-chapter {
        min-height: 0 !important;
        break-inside: avoid
    }

    .story-mask {
        clip-path: none !important
    }

    .story-image,
    .story-chapter-copy {
        transform: none !important;
        opacity: 1 !important
    }
}