/* EDITORIAL LAYOUT AND COMPONENT ADJUSTMENTS.
   Later rules preserve the approved V3 refinements. Keep order when editing.
   Use theme variables rather than adding new colour literals. */

:root {
    --page: 1240px;
    color-scheme: light dark;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
}

a {
    color: inherit
}

.wrap {
    width: min(var(--page), calc(100% - 64px));
    margin: auto
}

.skip {
    position: absolute;
    left: -9999px;
    top: 8px;
    background: var(--bg);
    padding: 10px
}

.skip:focus {
    left: 12px;
    z-index: 3
}

.top {
    height: 78px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between
}

.brand {
    text-decoration: none;
}

.brand span {
    color: var(--accent)
}

.top nav {
    display: flex;
    gap: 28px;
}

.top nav a {
    text-decoration: none
}

.top nav a:hover,
.top nav a:focus {
    text-decoration: underline;
    text-underline-offset: 5px
}

.hero {
    padding: 76px 0 88px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 64px
}

.eyebrow,
.kicker {
    color: var(--accent)
}

h1 {
    margin: 18px 0 26px;
    max-width: 720px
}

.lede {
    max-width: 590px;
    color: var(--muted);
}

.actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.button {
    text-decoration: none;
    background: var(--accent);
    color: var(--bg);
    padding: 13px 18px;
    border-radius: 2px
}

.text-link {
    text-underline-offset: 4px
}

.hero-art {
    position: relative;
    margin: 0;
    background: var(--panel);
    padding: 0;
    overflow: hidden
}

.hero-art img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    display: block
}

figcaption,
.hero-art small,
.photo-note {
    display: block;
    padding: 10px 12px;
    color: var(--muted);
}

.divider {
    border-top: 1px solid var(--line)
}

.section {
    padding: 60px 0 72px
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 28px
}

.section-head h2 {
    margin: 0
}

.section-head p {
    color: var(--muted);
    margin: 0;
    max-width: 390px;
}

.projects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line)
}

.project {
    background: var(--bg);
    padding: 28px;
    min-height: 218px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none
}

.project:hover .project-title {
    color: var(--accent)
}

.number {
    color: var(--accent);
}

.project-title {
    margin: 14px 0 8px
}

.project p {
    color: var(--muted);
    margin: 0;
    max-width: 490px
}

.arrow {
    align-self: flex-end;
    color: var(--accent)
}

.metrics {
    display: flex;
    gap: 48px;
    padding: 34px 0 8px
}

.metric strong {
    display: block;
    color: var(--accent);
}

.metric span {
    color: var(--muted)
}

.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: start
}

.media-grid figure {
    margin: 0
}

.media-grid img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    background: var(--panel)
}

.media-grid figcaption {
    padding: 10px 0;
    color: var(--muted);
}

.media-grid figcaption a {
    color: var(--ink);
    text-underline-offset: 3px
}

.media-more {
    margin: 24px 0 0;
    max-width: 760px;
    color: var(--muted);
}

.about {
    display: grid;
    grid-template-columns: .65fr 1.35fr;
    gap: 60px;
    align-items: start
}

.about h2 {
    margin: 0
}

.about p {
    color: var(--muted);
    max-width: 680px;
    margin: 0
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 23px
}

.tags span {
    border: 1px solid var(--line);
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--muted)
}

.contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    background: var(--panel);
    padding: 34px 38px
}

.contact h2 {
    margin: 0
}

.contact p {
    margin: 8px 0 0;
    color: var(--muted);
}

footer {
    padding: 32px 0 46px;
    color: var(--muted);
    display: flex;
    justify-content: space-between
}

.index-art {
    padding: 20px;
    background: var(--panel)
}

.index-art img {
    height: 385px
}

.stamp {
    position: absolute;
    left: 0;
    top: 42px;
    background: var(--accent);
    color: var(--bg);
    padding: 19px 22px;
}

.field-art img {
    height: 460px;
    filter: saturate(.78)
}

.field-art:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 55%, var(--overlay-soft))
}

.photo-note {
    position: relative;
    z-index: 1;
    background: var(--panel)
}

.button {
    color: var(--bg)
}

@media(max-width:760px) {
    .wrap {
        width: calc(100% - 38px)
    }

    .top {
        height: auto;
        min-height: 70px;
        align-items: flex-start;
        padding: 19px 0;
        gap: 16px;
        flex-direction: column
    }

    .top nav {
        gap: 18px;
        overflow-x: auto;
        max-width: 100%;
        padding-bottom: 2px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 50px 0 56px
    }

    h1 {
        max-width: 600px
    }

    .hero-art img {
        height: 300px
    }

    .section {
        padding: 46px 0 54px
    }

    .section-head {
        display: block
    }

    .section-head p {
        margin-top: 12px
    }

    .projects {
        grid-template-columns: 1fr
    }

    .project {
        min-height: 185px;
        padding: 23px
    }

    .metrics {
        gap: 20px;
        justify-content: space-between
    }

    .media-grid {
        grid-template-columns: 1fr;
        gap: 18px
    }

    .media-more {
        margin-top: 18px
    }

    .about {
        grid-template-columns: 1fr;
        gap: 20px
    }

    .contact {
        align-items: flex-start;
        flex-direction: column;
        padding: 26px
    }

    footer {
        gap: 12px;
        flex-direction: column
    }

    .index-art img {
        height: 300px
    }

    .field-art img {
        height: 330px
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    * {
        transition: none !important
    }
}

:root {
    color-scheme: light
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 5px
}

.review-bar {
    padding: 10px 0;
    background: var(--ink);
    color: var(--bg);
}

.review-bar .wrap {
    display: flex;
    justify-content: space-between;
    gap: 16px
}

.review-bar a {
    color: inherit;
    text-underline-offset: 3px
}

.case {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start
}

.case h2 {
    margin: 14px 0 24px
}

.case-copy {
    color: var(--muted)
}

.case-copy p {
    margin: 0 0 18px
}

.role {
    margin: 24px 0;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--muted)
}

.role strong {
    display: block;
    color: var(--ink);
    margin-bottom: 5px
}

.case figure {
    margin: 0;
    background: var(--panel)
}

.case img {
    display: block;
    width: 100%;
    height: auto
}

.case figcaption {
    padding: var(--caption-padding)
}

.case-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 22px 0
}

.case-links a {
    text-underline-offset: 4px
}

.context-title {
    margin: 36px 0 8px
}

.context-intro {
    color: var(--muted);
    max-width: 850px
}

.fact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 22px
}

.fact {
    padding: 24px;
    border: 1px solid var(--line);
    background: var(--panel)
}

.fact .label {
    color: var(--accent)
}

.fact h4 {
    margin: 12px 0
}

.fact p {
    color: var(--muted);
    margin: 0 0 18px
}

.fact a {
    text-underline-offset: 4px
}

.field-intro {
    max-width: 760px;
    color: var(--muted)
}

.film-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 30px 0 34px
}

.film {
    display: flex;
    flex-direction: column;
    text-decoration: none
}

.film-image {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--panel);
    overflow: hidden
}

.film img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block
}

.play {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: var(--ink);
    color: var(--bg);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
}

.film h3 {
    margin: 17px 0 10px;
}

.film p {
    color: var(--muted);
    margin: 0
}

.film .watch {
    margin: 18px 0 0;
    color: var(--accent)
}

.film:hover h3,
.film:focus h3 {
    color: var(--accent)
}

.source-note {
    color: var(--muted)
}

.campaign {
    margin-top: 44px;
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 32px;
    padding: 28px;
    background: var(--panel);
    align-items: center
}

.campaign img {
    width: 100%;
    height: auto;
    display: block
}

.campaign h3 {
    margin: 10px 0 16px;
}

.campaign p {
    color: var(--muted);
    margin: 0 0 14px
}

.campaign a {
    text-underline-offset: 4px
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px 20px
}

.photo-grid figure {
    margin: 0
}

.photo-open {
    border: 0;
    padding: 0;
    width: 100%;
    background: var(--panel);
    cursor: zoom-in;
    display: block;
    height: 205px
}

.photo-open img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block
}

.photo-grid figcaption {
    padding: 12px 0;
}

.photo-grid figcaption strong {
    color: var(--ink);
    display: block;
    margin-bottom: 3px
}

.photo-grid a {
    text-underline-offset: 3px
}

.gallery-help {
    color: var(--muted);
    margin-top: 24px
}

.lightbox {
    width: min(1060px, 94vw);
    max-height: 94vh;
    padding: 22px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink)
}

.lightbox::backdrop {
    background: var(--overlay-strong)
}

.lightbox img {
    display: block;
    width: 100%;
    height: min(63vh, 620px);
    object-fit: contain;
    background: var(--panel)
}

.lightbox-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.lightbox button {
    padding: 9px 14px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink);
    cursor: pointer
}

.lightbox-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 15px
}

.lightbox p {
    margin: 0;
}

.lightbox small {
    display: block;
    color: var(--muted)
}

.lightbox-controls {
    display: flex;
    gap: 8px
}

.page-note {
    color: var(--muted);
    margin-top: 16px
}

.hero-art img {
    object-fit: contain;
    height: auto;
    max-height: 470px
}

.project {
    min-height: 228px
}

.photo-grid,
.film-grid {
    align-items: start
}

.section-head {
    gap: 35px
}

@media(max-width:1050px) {
    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .photo-open {
        height: 260px
    }

    .case {
        gap: 35px
    }

    .hero {
        gap: 35px
    }

    .film-grid {
        gap: 18px
    }

    .campaign {
        gap: 25px
    }
}

@media(max-width:760px) {

    .case,
    .fact-grid,
    .film-grid,
    .campaign {
        grid-template-columns: 1fr
    }

    .case {
        gap: 28px
    }

    .photo-grid {
        gap: 22px 16px
    }

    .photo-open {
        height: 190px
    }

    .campaign {
        padding: 22px;
        gap: 22px
    }

    .review-bar .wrap {
        align-items: flex-start
    }

    .film-image {
        max-height: 330px
    }

    .lightbox {
        padding: 15px
    }

    .lightbox-bottom {
        align-items: flex-start
    }

    .section-head {
        align-items: flex-start
    }
}

@media(max-width:430px) {
    .photo-grid {
        grid-template-columns: 1fr
    }

    .photo-open {
        height: 255px
    }

    .lightbox-bottom {
        flex-direction: column
    }

    .metrics {
        flex-wrap: wrap
    }

    .review-bar .wrap {
        flex-direction: column;
        gap: 4px
    }
}

.top {
    height: 88px
}

.hero {
    display: block;
    padding: 90px 0 55px
}

.hero h1 {
    max-width: 1060px;
    margin: 24px 0 30px
}

.hero .lede {
    max-width: 730px;
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 25px
}

.hero-note {
    max-width: 260px;
    color: var(--muted)
}

.proof-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    border-top: 1px solid var(--line);
    padding: 28px 0 48px
}

.proof-strip strong {
    display: block;
    color: var(--accent)
}

.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center
}

.feature h2 {
    margin: 15px 0 22px
}

.feature p,
.bodycopy {
    color: var(--muted)
}

.feature figure {
    margin: 0
}

.feature img {
    width: 100%;
    display: block
}

.feature figcaption {
    padding-left: 0
}

.chapter {
    display: flex;
    gap: 25px;
    align-items: baseline;
    border-bottom: 1px solid var(--line);
    padding-bottom: 25px;
    margin-bottom: 40px
}

.chapter h2 {
    margin: 0;
}

.dark-section {
    background: var(--ink);
    color: var(--bg)
}

.dark-section .kicker,
.dark-section a {
    color: var(--accent)
}

.dark-section p,
.dark-section figcaption {
    color: var(--panel)
}

.principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 45px
}

.principles h3 {
    margin: 12px 0
}

.principles p {
    color: var(--muted)
}

.evidence-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    margin: 36px 0
}

.evidence-pair figure {
    margin: 0
}

.evidence-pair img {
    width: 100%;
    height: 310px;
    object-fit: contain;
    background: var(--panel)
}

.evidence-pair p {
    color: var(--muted)
}

.eyebrow {
    margin: 0
}

.closing {
    max-width: 750px
}

.photo-open:hover img {
    filter: brightness(.92)
}

@media(max-width:760px) {
    .hero {
        padding: 50px 0 35px
    }

    .hero-bottom {
        display: block
    }

    .hero-note {
        margin-top: 30px
    }

    .proof-strip {
        gap: 15px
    }

    .feature,
    .principles,
    .evidence-pair {
        grid-template-columns: 1fr;
        gap: 28px
    }

    .top {
        height: auto
    }

    .evidence-pair img {
        height: auto
    }

    .film-grid {
        grid-template-columns: 1fr
    }

    .review-bar .wrap {
        flex-direction: row
    }
}

.top .brand {
    display: block;
}

.top .brand span {
    display: inline
}

.top .brand small {
    display: inline;
    margin-left: 6px
}

.hero .actions {
    flex-wrap: wrap
}

.chapter {
    flex-wrap: wrap;
    gap: 12px
}

.actions {
    flex-wrap: wrap
}

.story-invitation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px
}

.story-invitation h2 {
    margin: 12px 0
}

.story-invitation p {
    max-width: 720px
}

.story-invitation .button {
    white-space: nowrap
}

.reportage-teaser {
    display: block;
    position: relative
}

.reportage-teaser img {
    display: block;
    width: 100%;
    max-height: 500px;
    object-fit: cover
}

.reportage-teaser .button {
    position: absolute;
    bottom: 24px;
    left: 24px;
}

.photo-story {
    max-width: 1000px;
    margin: auto
}

.photo-story figure {
    margin: 0 0 65px
}

.photo-story img {
    display: block;
    width: 100%;
    height: auto
}

.photo-story figcaption {
    padding: 18px 0;
    max-width: 800px
}

.photo-story figcaption small {
    display: block;
    margin-top: 8px
}

.top nav {
    flex-wrap: wrap
}

@media(max-width:760px) {
    .story-invitation {
        display: block
    }

    .story-invitation .button {
        display: inline-block;
        margin-top: 10px
    }

    .photo-story figure {
        margin-bottom: 38px
    }

    .top nav {
        gap: 14px
    }
}

/* Shared site identity and final homepage rhythm. */
.top {
    min-height: 104px;
    height: auto;
    gap: 28px;
    padding-top: 24px;
    padding-bottom: 24px
}

.top .brand {
    white-space: nowrap
}

.top nav {
    gap: 24px;
}

.hero {
    padding-top: 43px;
    padding-bottom: 45px
}

.hero h1 {
    max-width: 1050px;
    margin: 0 0 28px
}

.hero .lede {
    max-width: 750px
}

.hero-bottom {
    display: block
}

.hero .actions {
    margin-top: 24px
}

.chapter {
    margin-bottom: 32px;
    padding-bottom: 18px
}

.case h2 {
    margin-top: 16px
}

.field-story-image {
    display: block;
    aspect-ratio: 1.957187;
    overflow: hidden;
    position: relative
}

.field-story-image img {
    display: block;
    width: 100%;
    height: 110.0917%;
    position: absolute;
    top: -5.0459%;
    object-fit: cover
}

.site-footer {
    display: block;
    padding: 0;
    background: var(--panel);
    margin-top: 40px;
    color: var(--ink);
}

.footer-content {
    padding: 52px 0 36px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 50px;
    align-items: end
}

.site-footer h2 {
    margin: 12px 0 20px
}

.site-footer .bodycopy {
    max-width: 600px
}

.footer-signature {
    color: var(--muted)
}

@media(max-width:1000px) {
    .top {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px
    }

    .top nav {
        gap: 20px
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px
    }
}

@media(max-width:760px) {
    .top {
        padding: 22px 0;
        gap: 19px
    }

    .top nav {
        gap: 14px
    }

    .hero {
        padding: 30px 0 35px
    }

    .hero h1 {
        margin-bottom: 25px
    }

    .footer-content {
        padding: 38px 0 30px
    }

    .site-footer {
        margin-top: 20px
    }
}

@media(max-width:480px) {
    .top nav {
        gap: 10px
    }

    .proof-strip {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-top: 25px;
        padding-bottom: 30px
    }

    .proof-strip>div {
        display: grid;
        grid-template-columns: 135px 1fr;
        gap: 15px;
        align-items: center
    }

    .proof-strip strong {
        white-space: nowrap
    }
}

.top .brand .brand-identity {
    display: block;
    color: var(--ink)
}

.top .brand .brand-identity>span {
    color: var(--accent)
}

.top .brand .portfolio-label {
    display: block;
    color: var(--muted);
    margin-top: 8px
}

.hero .hero-disciplines {
    margin: 0 0 20px;
    color: var(--accent);
}

@media(max-width:760px) {
    .hero .hero-disciplines {
        margin-bottom: 18px;
    }
}

.chapter {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 24px
}

.feature .kicker,
.case .kicker,
#locations-heading {
    color: var(--accent)
}

.feature .kicker {
    margin: 0 0 16px
}

.feature figcaption a {
    text-underline-offset: 3px
}

.about p+p {
    margin-top: 20px
}

.learning-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 24px
}

.learning-layout h2 {
    margin: 0 0 28px
}

.education-list {
    margin: 0
}

.education-list>div {
    padding: 0 0 22px;
    margin: 0 0 22px;
    border-bottom: 1px solid var(--line)
}

.education-list dt {
    margin-bottom: 8px
}

.education-list dd {
    margin: 0;
    color: var(--muted)
}

.education-list dd span {
    display: block;
}

.membership-heading {
    margin-top: 34px
}

.certification-list article {
    border-top: 1px solid var(--line);
    padding: 20px 0
}

.certification-list h3 {
    margin: 9px 0
}

.certification-list article>p:last-child {
    color: var(--muted);
    margin: 0
}

.certification-list .kicker {
    margin: 0
}

@media(max-width:760px) {
    .learning-layout {
        grid-template-columns: 1fr;
        gap: 40px
    }

    .learning-layout h2 {
        margin-bottom: 24px
    }

    .chapter {
        margin-bottom: 20px
    }
}

.section-head h2.gallery-label,
.section-head #locations-heading {
    color: var(--accent);
    margin: 0
}

/* Uniform portrait gallery crops; full originals remain in the lightbox. */
.photo-grid .photo-open {
    position: relative;
    aspect-ratio: 3/2;
    height: auto;
    overflow: hidden;
    background: transparent
}

.photo-grid .photo-open img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--photo-position, 50% 50%)
}

.photo-grid [data-photo="5"] {
    --photo-position: 38% 50%
}

.photo-grid [data-photo="2"] {
    --photo-position: 48% 50%
}

.photo-grid [data-photo="4"] {
    --photo-position: 50% 50%
}

.photo-grid [data-photo="7"] {
    --photo-position: 55% 50%
}

.photo-grid [data-photo="3"] {
    --photo-position: 29% 50%
}

.photo-grid [data-photo="6"] {
    --photo-position: 50% 50%
}

.photo-grid [data-photo="1"] {
    --photo-position: 50% 50%
}

.photo-grid [data-photo="0"] {
    --photo-position: 34% 50%
}


.section-head h2.gallery-label,
.section-head #locations-heading {
    color: var(--ink)
}

.section-head h2.gallery-label,
.section-head #locations-heading {
    color: var(--ink);
    margin: 0
}

#education.divider {
    border-top: 0
}

#education>.wrap.section {
    position: relative;
    padding-top: 34px
}

#education>.wrap.section::before {
    content: "";
    display: block;
    width: 100%;
    border-top: 1px solid var(--line);
    margin: 0 0 34px
}

#education .learning-layout {
    margin-top: 0
}

.gallery-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0
}

.gallery-actions .button {
    display: inline-block;
    max-width: 100%
}

.gallery-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 28px
}

.gallery-bottom .gallery-help {
    margin: 0;
    flex: 1
}

.gallery-bottom .gallery-actions {
    flex-shrink: 0
}

@media(max-width:760px) {
    .gallery-bottom {
        flex-direction: column;
        align-items: stretch
    }

    .gallery-bottom .gallery-actions {
        justify-content: flex-end
    }
}

/* Matching case-study image panels and caption bars. */
#ukraine .case>figure,
#field-stories .field-feature>figure {
    margin: 0;
    background: var(--panel)
}

#ukraine .case>figure>figcaption,
#field-stories .field-feature>figure>figcaption {
    padding: var(--caption-padding);
    background: var(--panel)
}

#field-stories .field-story-image {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1280 / 650
}

#field-stories .field-story-image img {
    position: absolute;
    display: block;
    width: 100%;
    height: 110.769231%;
    max-height: none;
    top: -5.384615%;
    left: 0;
    object-fit: fill
}

/* One spacing rhythm for the three homepage case studies. */
#work .feature,
#ukraine .case,
#field-stories .field-feature {
    align-items: start
}

#work .feature .kicker,
#ukraine .case .kicker,
#field-stories .field-feature .kicker {
    margin: 0 0 16px
}

#work .feature h2,
#ukraine .case h2,
#field-stories .field-feature h2 {
    margin: 0 0 24px
}

/* Qualifications continue the About section with a compact internal gap. */
#about>.wrap.section {
    padding-bottom: 28px
}

#education>.wrap.section {
    padding-top: 0
}

#education>.wrap.section::before {
    margin-bottom: 28px
}

#explanatory-films>.section>.kicker {
    margin: 0 0 16px
}

#explanatory-films h2 {
    margin: 0 0 24px
}

.homepage-film-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 32px
}

.homepage-film-pair figure {
    margin: 0;
    background: var(--panel)
}

.homepage-film-pair img {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover
}

.homepage-film-pair figcaption {
    padding: var(--caption-padding)
}

@media(max-width:760px) {
    .homepage-film-pair {
        grid-template-columns: 1fr
    }
}

.reach-table-wrap {
    overflow-x: auto
}

.reach-table {
    border-collapse: collapse;
    width: 100%;
    margin: 24px 0
}

.reach-table th,
.reach-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line)
}

.reach-table caption {
    text-align: left;
    margin-bottom: 12px
}

.reach-table tbody th {
    font-weight: 400
}

.reach-table td:last-child {
    text-align: right
}

.map-key>span {
    display: inline-flex;
    align-items: center;
    gap: 6px
}

.map-key svg {
    width: 20px;
    height: 20px;
    flex: none
}

.map-leader {
    stroke: var(--muted);
    stroke-width: 1;
    pointer-events: none;
    vector-effect: non-scaling-stroke
}

.map-anchor {
    fill: var(--muted);
    pointer-events: none
}

.railway-route {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.5;
    stroke-dasharray: 3 4;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    pointer-events: none
}

.railway-hit {
    fill: none;
    stroke: transparent;
    stroke-width: 20;
    pointer-events: stroke;
    vector-effect: non-scaling-stroke
}

.railway-marker .railway-route {
    stroke-width: 1.25;
    stroke-dasharray: 2 4
}

.railway-marker.is-active .railway-route,
.railway-marker:focus-visible .railway-route {
    stroke-width: 2.5;
    filter: drop-shadow(0 1px 2px var(--bg))
}

/* Railway journeys share the Fieldwork colour and legend label. */
.railway-route {
    stroke: var(--ink)
}

.map-key .railway-route {
    stroke-width: 1.25;
    stroke-dasharray: 2 4
}

.map-key {
    padding-top: 12px
}

/* Homepage evidence panel: match the shared case-study caption bar. */
#work .feature > figure {
    background: var(--panel);
}
#work .feature > figure > figcaption {
    background: var(--panel);
    padding: var(--caption-padding);
}

/* All map cards use a filled 3:2 image frame; per-asset bar crops live in map-images.js. */
.map-detail-figure { margin: 18px 0 0; }
.map-image-frame { aspect-ratio: 3 / 2; overflow: hidden; position: relative; }
.map-image-frame .map-detail-image { width: 100%; height: 100%; object-fit: cover; display: block; background: transparent; }
.map-image-credit { padding: 8px 0 0; }

/* In-story evidence images stay within the reading column. */
.story-copy section > figure { margin: 28px 0; }
.story-copy section > figure img { display: block; width: 100%; height: auto; }
.story-copy section > figure figcaption { padding: var(--caption-padding); background: var(--panel); }

/* Inner-page openings: keep labels aligned with the image top, rather than
   vertically centring short copy beside tall previews. Index layout is separate. */
.story-hero,
.story-hero.story-hero-compact {
    padding-top: 24px;
    align-items: start;
}
.story-hero > div > .eyebrow,
.page-intro > .kicker,
.media-intro > div > .eyebrow {
    margin-top: 0;
}
/* Listing/reference pages have no breadcrumb; use one shared opening gap. */
.page-intro,
.media-intro {
    padding-top: 40px;
}
.media-intro {
    align-items: start;
}
/* Reportage uses a full-width opening below the standard breadcrumb. */
.reportage-intro {
    padding-top: 24px;
}

/* Railway essay: compact paired frames, original captions in reading order.
   Portrait platform photograph is cropped for the shared landscape frame.
   Source files remain unchanged; no duplicate image/download links. */
.railway-page .reportage-intro { padding-bottom: 28px; }
.railway-page .reportage-intro h1 { margin: 12px 0 16px; }
.reportage-meta, .reportage-source { font-size: var(--type-small); color: var(--muted); }
.reportage-introduction { max-width: 900px; }
.reportage-introduction p { margin: 14px 0; }
.photo-story.photo-story-compact {
    max-width: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}
.photo-story-compact figure { margin: 0; background: var(--panel); }
.photo-story-compact img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; }
.photo-story-compact #frame-2 img { object-position: 50% 60%; }
.photo-story-compact figcaption { padding: 18px 20px 20px; max-width: none; }
.photo-story-compact figcaption p { margin: 8px 0 0; }
@media (max-width: 760px) {
    .photo-story.photo-story-compact { grid-template-columns: 1fr; gap: 22px; }
    .photo-story-compact figure { margin-bottom: 0; }
}

/* Multimedia overview: shared caption panel, four project routes, uniform previews. */
.multimedia-page .media-intro figcaption { background: var(--panel); padding: var(--caption-padding); }
.multimedia-page .collection-links { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.multimedia-page .collection-links > a { padding: 20px 0; }
.collection-thumbnail { display: block; overflow: hidden; aspect-ratio: 16 / 9; }
.multimedia-page .collection-thumbnail img {
    display: block; width: 100%; height: 100%; max-height: none;
    object-fit: cover; transform: scale(var(--preview-scale, 1));
}
@media (max-width: 1000px) { .multimedia-page .collection-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .multimedia-page .collection-links { grid-template-columns: 1fr; } }

/* The photography filter retains the homepage gallery as one full-width unit. */
.collection-photography { grid-column: 1 / -1; }
.collection-photography > h3 { margin: 0 0 28px; }
.collection-photography > .gallery-help { margin-top: 28px; }
