@font-face {
    font-family: "Portfolio Sans";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/roboto-v51-latin-regular.woff2") format("woff2");
    font-display: block;
}

@font-face {
    font-family: "Portfolio Sans";
    font-style: normal;
    font-weight: 700;
    src: url("../fonts/roboto-v51-latin-700.woff2") format("woff2");
    font-display: block;
}

@font-face {
    font-family: "Portfolio Sans";
    font-style: normal;
    font-weight: 500;
    src: url("../fonts/roboto-v51-latin-500.woff2") format("woff2");
    font-display: block;
}

:root {
    color-scheme: dark;
    --background: #141414;
    --surface: #202020;
    --surface-hover: #303030;
    --text: #f2f0ed;
    --muted: #aaa9a7;
    --line: #3b3b3b;
    --accent: #e0ded9;
    --white: #f2f0ed;
    --radius-lg: 30px;
    --content-width: 1260px;
}

* {
    box-sizing: border-box;
}

html {
    scrollbar-gutter: stable;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: "Portfolio Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Keep the header visible as the page fades through charcoal. */
body::after {
    animation: page-reveal 550ms ease-out both;
    background: var(--background);
    content: "";
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: 10;
}

/* Hold the existing fade until the real fonts are ready. */
.fonts-loading body::after {
    animation: none;
    opacity: 1;
}

.fonts-loading .site-header {
    visibility: hidden;
}

body.is-leaving::after {
    animation: page-cover 450ms ease-in-out both;
}

@keyframes page-reveal {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes page-cover {
    from { opacity: 0; }
    to { opacity: 1; }
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.section-wrap {
    width: min(calc(100% - 64px), var(--content-width));
    margin-inline: auto;
}

.site-header {
    align-items: center;
    background: var(--background);
    color: var(--text);
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr auto 1fr;
    min-height: 110px;
    padding: 28px max(32px, calc((100vw - var(--content-width)) / 2));
    position: relative;
    z-index: 11;
}

.wordmark {
    display: grid;
    font-size: 20px;
    font-weight: 500;
    gap: 5px;
    justify-self: start;
    letter-spacing: -0.04em;
}

.wordmark-role {
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
}

.site-nav {
    background: linear-gradient(135deg, #2c2c2c, #252525);
    border: 1px solid #414141;
    border-radius: 999px;
    display: grid;
    grid-template-columns: repeat(2, 80px);
    padding: 5px;
    position: relative;
}

.site-nav a {
    border-radius: inherit;
    color: #e4e3e1;
    font-size: 13px;
    font-weight: 500;
    padding: 11px 0;
    position: relative;
    text-align: center;
    z-index: 1;
}

.site-nav a[aria-current="page"] {
    color: #fff;
}

.nav-indicator {
    background: #383838;
    border-radius: inherit;
    bottom: 5px;
    left: 5px;
    position: absolute;
    top: 5px;
    transition: transform 450ms cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 80px;
}

.site-nav[data-page="info"] .nav-indicator {
    transform: translateX(100%);
}

.nav-indicator::before {
    background: var(--text);
    border-radius: 2px;
    box-shadow: 0 0 12px 3px #ffffff35;
    content: "";
    height: 2px;
    left: calc(50% - 12px);
    position: absolute;
    top: -8px;
    width: 24px;
}

.header-links {
    align-items: center;
    display: flex;
    font-size: 13px;
    gap: 32px;
    justify-self: end;
}

.header-links > * {
    white-space: nowrap;
}

.header-links span[aria-disabled] {
    color: var(--muted);
    cursor: default;
}

.site-nav a:hover,
.header-links a:hover {
    color: #fff;
}

.info-page {
    background: var(--background);
}

.info-content {
    background: radial-gradient(ellipse at 50% 12%, #292929 0%, #191919 45%, #141414 80%);
    min-height: calc(100svh - 110px);
}

.about-page {
    max-width: 1100px;
    padding-block: clamp(60px, 8vw, 110px) 140px;
}

.about-label {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 11px;
    gap: 12px;
    letter-spacing: 0.12em;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.about-label::before {
    background: var(--text);
    border-radius: 50%;
    box-shadow: 0 0 16px #ffffff40;
    content: "";
    height: 8px;
    width: 8px;
}

.about-intro h1 {
    font-size: clamp(32px, 4.4vw, 56px);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 1.12;
    margin-bottom: 40px;
}

.about-lead {
    color: var(--muted);
    font-size: 19px;
    line-height: 1.6;
    margin: 0 0 64px auto;
    max-width: 580px;
}

.about-story {
    align-items: start;
    display: grid;
    gap: 48px clamp(40px, 7vw, 100px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-column {
    display: grid;
    gap: 48px;
}

.about-column-offset {
    padding-top: 96px;
}

.about-photo {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.about-photo img {
    height: 100%;
    inset: 0;
    object-fit: cover;
    object-position: center;
    position: absolute;
    width: 100%;
}

.about-photo-profile img {
    object-position: 36% 50%;
}

.about-photo-portrait {
    aspect-ratio: 4 / 5;
}

.about-photo-landscape {
    aspect-ratio: 3 / 4;
}

.about-mission {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 680px;
    padding-top: 16px;
    text-align: center;
}

.about-story h2 {
    font-size: 23px;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.25;
    margin-bottom: 20px;
}

.about-story p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.about-story p:last-child {
    margin-bottom: 0;
}

@media (max-width: 650px) {
    .about-page {
        padding-bottom: 80px;
    }

    .about-lead {
        font-size: 17px;
        margin-bottom: 48px;
    }

    .about-story {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }

    .about-column {
        gap: 40px;
    }

    .about-column-offset {
        padding-top: 0;
    }

    .about-photo {
        border-radius: 16px;
    }

}

.contact-link span {
    color: var(--accent);
}

/* Opening: local type, a quiet gradient, and one CSS-only scroll cue. */
.hero.section-wrap {
    width: 100%;
}

.hero {
    background: radial-gradient(ellipse at 50% 12%, #292929 0%, #191919 45%, #141414 80%);
    color: var(--text);
    display: flex;
    align-items: center;
    min-height: calc(100svh - 110px);
    padding: clamp(64px, 9vw, 130px) 32px 40px;
}

.hero-copy {
    margin-inline: auto;
    max-width: 960px;
    width: 100%;
}

.section-index,
.card-tag {
    font-size: 11px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.eyebrow {
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0 0 28px;
}

.eyebrow span {
    margin: 0 8px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h2,
h3 {
    letter-spacing: -0.065em;
}

.hero h1 {
    font-size: clamp(48px, 7.2vw, 96px);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 1.04;
    margin-bottom: 44px;
    text-shadow: 0 0 12px rgba(242, 240, 237, 0.12), 0 0 36px rgba(242, 240, 237, 0.08);
}

.hero-intro {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.45;
    margin-left: auto;
    max-width: 400px;
}

.hero-intro p {
    margin: 0;
}

.hero-profile {
    color: var(--text);
    display: block;
    font-weight: 500;
}

.hero-profile:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    margin: 48px 0 24px;
}

.scroll-link {
    align-items: center;
    color: var(--muted);
    display: inline-flex;
    height: 56px;
    justify-content: center;
    width: 56px;
}

.scroll-link svg {
    animation: scroll-cue 2.4s ease-in-out infinite;
}

@keyframes scroll-cue {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

.hero-note {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.site-header a:focus-visible,
.hero a:focus-visible {
    outline: 2px solid #f2f0ed;
    outline-offset: 6px;
}

.hero a:hover {
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .scroll-link svg { animation: none; }
    .nav-indicator { transition: none; }
    body::after { display: none; }
}

.section-index {
    color: var(--muted);
    margin: 5px 0 0;
}

.section-heading h2,
.contact-content h2 {
    font-size: clamp(44px, 5vw, 72px);
    line-height: 0.98;
    margin-bottom: 28px;
}

.work-section {
    padding-bottom: 120px;
    padding-top: 120px;
}

.section-heading {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.section-heading h2 {
    margin: 13px 0 0;
}

.journalism-grid {
    display: grid;
    gap: 60px;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.story-card,
.visual-card {
    display: block;
}

.story-image {
    aspect-ratio: 1.58;
    border-radius: 23px;
    overflow: hidden;
    position: relative;
}

.story-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
    width: 100%;
}

.story-card:hover .story-image img,
.visual-card:hover img {
    transform: scale(1.035);
}

.story-image-dark {
    background: #101116;
}

.story-image-dark img {
    opacity: 0.84;
}

.card-tag {
    background: rgba(20, 20, 20, 0.9);
    border-radius: 999px;
    color: var(--text);
    left: 18px;
    padding: 9px 12px;
    position: absolute;
    top: 18px;
}

.story-info {
    align-items: start;
    display: flex;
    gap: 15px;
    justify-content: space-between;
    padding-top: 28px;
}

.story-info h3 {
    font-size: 25px;
    line-height: 1.08;
    margin-bottom: 14px;
}

.story-info p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 0;
    max-width: 520px;
}

.story-info > div {
    min-width: 0;
}

.story-download {
    background: #fff;
    border-radius: 999px;
    color: var(--background);
    display: inline-flex;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    gap: 10px;
    padding: 12px 17px;
    white-space: nowrap;
    transition: background 180ms ease, transform 180ms ease;
}

.story-download:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.story-download:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 4px;
}

.journalism-feature.is-changing .story-image img {
    animation: story-image-change 350ms ease;
}

@keyframes story-image-change {
    0% {
        opacity: 0.35;
    }
    100% {
        opacity: 0.84;
    }
}

.arrow-circle {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 15px;
    height: 36px;
    justify-content: center;
    transition: background 180ms ease, color 180ms ease;
    width: 36px;
}

.story-card:hover .arrow-circle,
.visual-card:hover .arrow-circle {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--background);
}

.story-list {
    border-top: 1px solid var(--line);
}

.story-row {
    align-items: center;
    appearance: none;
    background: transparent;
    border-bottom: 1px solid var(--line);
    border-left: 0;
    border-right: 0;
    border-top: 0;
    color: inherit;
    cursor: pointer;
    display: grid;
    gap: 16px;
    grid-template-columns: 30px 1fr 20px;
    min-height: 128px;
    padding: 16px 0;
    text-align: left;
    transition: padding 180ms ease;
    width: 100%;
}

.story-row:hover {
    padding-left: 8px;
}

.story-row.is-selected {
    background: rgba(255, 255, 255, 0.06);
    padding-left: 12px;
}

.story-row.is-selected .story-number,
.story-row.is-selected .row-arrow {
    color: var(--accent);
}

.story-row-secondary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 24px;
    grid-template-columns: none;
}

.story-row-secondary .story-number {
    flex: 0 0 48px;
}

.story-row-secondary .story-row-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.story-row-secondary .story-row-copy strong,
.story-row-secondary .story-row-copy small {
    white-space: nowrap;
}

.story-row-secondary .row-arrow {
    flex: 0 0 24px;
    margin-left: auto;
}

.story-number,
.story-row-copy small,
.film-row-number,
.film-row-title p {
    color: var(--muted);
    font-size: 11px;
}

.story-row-copy strong {
    display: block;
    font-size: 15px;
    line-height: 1.25;
    margin-bottom: 10px;
}

.story-row-copy small {
    display: block;
    line-height: 1.45;
}

.row-arrow {
    color: var(--accent);
    font-size: 18px;
}

.visual-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.visual-card {
    aspect-ratio: 4 / 3;
    border-radius: 23px;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.visual-card img {
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
    width: 100%;
}

.visual-card-wide {
    margin-top: 0;
}

.visual-card-muted {
    background: var(--surface);
}

.visual-card::after {
    background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.7));
    content: "";
    inset: 0;
    position: absolute;
}

.visual-card-link {
    inset: 0;
    position: absolute;
    z-index: 2;
}

.visual-overlay {
    bottom: 20px;
    color: var(--white);
    display: grid;
    gap: 12px;
    left: 22px;
    position: absolute;
    right: 22px;
    z-index: 1;
}

.visual-overlay > span:first-child {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.visual-overlay strong {
    font-size: 22px;
    letter-spacing: -0.04em;
    line-height: 1.08;
    max-width: 86%;
}

.visual-overlay .arrow-circle {
    border-color: rgba(255, 255, 255, 0.6);
    justify-self: end;
    margin-top: -36px;
}

.film-section {
    background: var(--surface);
    border-radius: var(--radius-lg);
    color: var(--white);
    margin-bottom: 120px;
    max-width: var(--content-width);
    padding: 75px clamp(26px, 6vw, 85px) 85px;
}

.film-section .section-index,
.film-section .film-row-number,
.film-section .film-row-title p {
    color: var(--muted);
}


.film-list {
    border-top: 1px solid var(--line);
}

.film-row {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 26px;
    grid-template-columns: 30px minmax(210px, 0.9fr) 1.1fr 20px;
    min-height: 148px;
    padding: 20px 0;
    transition: color 180ms ease, padding 180ms ease;
}

.film-row:hover {
    color: var(--text);
    padding-inline: 8px;
}

.film-row h3 {
    font-size: 24px;
    line-height: 1.08;
    margin-bottom: 10px;
}

.film-row-title p,
.film-row-description {
    margin-bottom: 0;
}

.film-row-description {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    max-width: 310px;
}

.story-row-copy,
.film-row-title,
.film-row-description {
    min-width: 0;
}

.film-row-title {
    min-width: 250px;
}

.contact-section {
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 50px;
    grid-template-columns: 1fr 2fr;
    padding-bottom: 125px;
}

.contact-content h2 {
    margin-bottom: 45px;
}

.contact-link {
    border-bottom: 1px solid var(--text);
    display: inline-flex;
    font-size: clamp(19px, 2.5vw, 28px);
    gap: 20px;
    padding-bottom: 10px;
}

.site-footer {
    color: var(--muted);
    display: flex;
    font-size: 11px;
    justify-content: space-between;
    letter-spacing: 0.04em;
    padding-bottom: 35px;
    padding-top: 30px;
}

.site-footer a {
    color: var(--text);
}

@media (max-width: 850px) {
    .site-header {
        grid-template-columns: 1fr 1fr;
        gap: 26px;
    }

    .site-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
    }

    .header-links {
        grid-column: 2;
        grid-row: 1;
        gap: 20px;
    }

    .hero,
    .info-content {
        min-height: calc(100svh - 180px);
    }

    .contact-section {
        grid-template-columns: 1fr;
    }

    .journalism-grid {
        grid-template-columns: 1fr;
    }

    .visual-grid {
        grid-template-columns: 1fr 1fr;
    }

    .visual-card-wide {
        margin-top: 0;
    }

    .film-row {
        gap: 12px;
        grid-template-columns: 25px 1fr 20px;
        padding: 20px 0;
    }

    .film-row-description {
        display: none;
    }
}

@media (max-width: 560px) {
    .story-info {
        flex-wrap: wrap;
    }

    .story-download {
        margin-left: auto;
    }

    .section-wrap {
        width: min(calc(100% - 36px), var(--content-width));
    }

    .site-header {
        gap: 22px;
        padding: 20px 18px;
    }

    .header-links {
        font-size: 12px;
        gap: 16px;
    }

    .hero {
        padding: 60px 24px 32px;
    }

    .hero h1 {
        font-size: clamp(40px, 9.5vw, 54px);
        margin-bottom: 32px;
    }

    .eyebrow {
        font-size: 12px;
        max-width: 280px;
    }

    .hero-intro {
        font-size: 16px;
        margin-left: 0;
    }



    .work-section,
    .contact-section {
        padding-bottom: 80px;
        padding-top: 80px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
    }

    .visual-grid {
        grid-template-columns: 1fr;
    }

    .visual-card,
    .visual-card-wide {
        min-height: 0;
    }

    .film-section {
        border-radius: 20px;
        margin-bottom: 80px;
        padding-bottom: 55px;
        padding-top: 55px;
    }

    .film-row h3 {
        font-size: 20px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}

/* Apple-inspired media windows and lightweight galleries */
.media-window {
    background: var(--surface);
    overflow: hidden;
    position: relative;
}

.media-window-bar {
    align-items: center;
    background: rgba(32, 32, 32, 0.9);
    border: 1px solid var(--line);
    border-radius: 999px;
    display: flex;
    gap: 5px;
    left: 16px;
    padding: 6px 8px;
    position: absolute;
    top: 14px;
    z-index: 4;
}

.media-window-bar span {
    background: var(--muted);
    border-radius: 50%;
    height: 6px;
    width: 6px;
}

.media-window > img,
.media-carousel-slide img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.media-carousel {
    overflow: hidden;
    position: relative;
}

.media-carousel-track {
    display: flex;
    height: 100%;
    position: relative;
    transform: translateX(0);
    transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
    width: 100%;
    z-index: 0;
}

.media-carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    min-width: 100%;
    overflow: hidden;
    position: relative;
}

.media-carousel-controls {
    bottom: 18px;
    display: flex;
    gap: 7px;
    position: absolute;
    right: 18px;
    z-index: 5;
}

.visual-card .media-carousel-controls {
    bottom: auto;
    right: 18px;
    top: 18px;
}

.media-carousel-button {
    align-items: center;
    background: rgba(32, 32, 32, 0.9);
    border: 0;
    border-radius: 999px;
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    font-size: 15px;
    height: 32px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
    width: 32px;
}

.media-carousel-button:hover,
.media-carousel-button:focus-visible {
    background: var(--accent);
    color: var(--background);
    outline: none;
    transform: translateY(-2px);
}

.media-carousel-dots {
    align-items: center;
    bottom: 29px;
    display: flex;
    gap: 5px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    z-index: 5;
}

.media-carousel-dot {
    background: rgba(255, 255, 255, 0.68);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    height: 5px;
    padding: 0;
    transition: background 180ms ease, width 180ms ease;
    width: 5px;
}

.media-carousel-dot.is-active {
    background: var(--accent);
    width: 18px;
}

.story-image .media-window {
    height: 100%;
    width: 100%;
}

.story-row {
    gap: 16px;
    grid-template-columns: 58px 30px 1fr 20px;
}

.story-row-media,
.film-row-media {
    aspect-ratio: 1.4;
    border-radius: 9px;
    height: 42px;
}

.story-row-media img,
.film-row-media img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.visual-card .media-window {
    inset: 0;
    position: absolute;
    z-index: 0;
}

.visual-card .visual-still img,
.visual-card .media-carousel-slide img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.visual-card::after {
    z-index: 1;
}

.visual-overlay {
    z-index: 2;
}

.film-row {
    align-items: center;
    display: flex;
    gap: 24px;
}

.film-row-media {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    flex: 0 0 clamp(150px, 18vw, 210px);
    height: auto;
    overflow: hidden;
}

.film-row-media img {
    transition: transform 400ms ease;
}

.film-row:hover .film-row-media img {
    transform: scale(1.04);
}

.film-row-number {
    flex: 0 0 34px;
}

.film-row-title {
    flex: 1 1 300px;
    min-width: 250px;
}

.film-row-description {
    flex: 1 1 400px;
    min-width: 280px;
}

.film-row > .row-arrow {
    flex: 0 0 24px;
}

.film-row-title,
.film-row-description {
    min-width: 0;
}

.film-row-title h3 {
    max-width: 300px;
    overflow-wrap: normal;
}

.film-row-title p {
    white-space: nowrap;
}

.film-row-description {
    overflow-wrap: break-word;
}

@media (max-width: 850px) {
    .story-row {
        grid-template-columns: 48px 25px 1fr 20px;
    }

    .film-row {
        display: flex;
        gap: 14px;
    }

    .film-row-media {
        flex: 0 0 125px;
    }

    .film-row-number {
        flex: 0 0 25px;
    }

    .film-row-title {
        flex: 1 1 auto;
        min-width: 0;
    }
}

@media (max-width: 560px) {
    .media-window-bar {
        left: 12px;
        top: 12px;
    }

    .story-row {
        gap: 10px;
        grid-template-columns: 44px 22px 1fr 18px;
    }

    .story-row-media {
        height: 34px;
    }

    .film-row {
        gap: 10px;
    }

    .film-row-media {
        flex: 0 0 82px;
        height: auto;
    }

    .film-row-number {
        flex: 0 0 20px;
    }
}

/* Film gallery: visible artwork with compact Apple-inspired cards */
.film-grid {
    border-top: 0;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.film-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.film-card:hover {
    background: var(--surface-hover);
    border-color: #686866;
    color: var(--white);
    transform: translateY(-4px);
}

.film-card-image {
    aspect-ratio: 16 / 10;
    background: var(--background);
    overflow: hidden;
    position: relative;
}

.film-card-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
    width: 100%;
}

.film-card:hover .film-card-image img {
    transform: scale(1.045);
}

.film-card-index,
.film-card-arrow {
    align-items: center;
    background: rgba(29, 29, 31, 0.76);
    display: inline-flex;
    justify-content: center;
    position: absolute;
}

.film-card-index {
    border-radius: 999px;
    color: var(--text);
    font-size: 11px;
    left: 14px;
    letter-spacing: 0.08em;
    padding: 7px 10px;
    top: 14px;
}

.film-card-arrow {
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    bottom: 14px;
    color: var(--white);
    font-size: 18px;
    height: 38px;
    right: 14px;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
    width: 38px;
}

.film-card:hover .film-card-arrow {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--background);
}

.film-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px 21px 24px;
}

.film-card-meta {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.08em;
    margin-bottom: 13px;
    text-transform: uppercase;
}

.film-card h3 {
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.02;
    margin-bottom: 18px;
}

.film-card-featured h3 {
    color: var(--text);
}

.film-card-wide {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.film-card-wide .film-card-image {
    aspect-ratio: 16 / 9;
}

.film-card-wide .film-card-body {
    justify-content: center;
    padding: clamp(28px, 5vw, 64px);
}

.film-card-wide .film-card-description {
    max-width: 460px;
}

.film-card-description {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 0;
    max-width: 320px;
}

@media (max-width: 850px) {
    .film-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .film-card-wide {
        grid-template-columns: 1fr;
    }

    .film-card-wide .film-card-image {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 560px) {
    .film-grid {
        grid-template-columns: 1fr;
    }

    .film-card h3 {
        font-size: 25px;
    }
}
