:root {
    --ink: #f2efe8;
    --muted: #a6a39c;
    --dim: #77746e;
    --ground: #0b0b0a;
    --surface: #121210;
    --line: #2a2925;
    --accent: #d84b32;
    --serif: "Instrument Serif", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;
    --bg-color: var(--ground);
    --fg-color: var(--ink);
    --muted-color: var(--muted);
    --border-color: var(--line);
    --font-serif: var(--serif);
    --font-sans: var(--sans);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    background: var(--ground);
    color: var(--ink);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

button, a {
    color: inherit;
}

button {
    font: inherit;
}

a {
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

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

.site-header {
    position: relative;
    z-index: 20;
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 0 3.5vw;
    border-bottom: 1px solid var(--line);
    background: rgba(11, 11, 10, 0.94);
    backdrop-filter: blur(14px);
}

.wordmark {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    cursor: pointer;
    font-family: var(--serif);
    font-size: 25px;
    letter-spacing: 0;
}

.nav-links {
    display: flex;
    min-width: 0;
    gap: 26px;
    align-items: center;
}

.nav-link {
    position: relative;
    padding: 24px 0 22px;
    border: 0;
    background: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 0;
    text-decoration: none;
}

.nav-link::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    background: var(--accent);
    content: "";
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 220ms ease, transform 220ms ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--ink);
}

.nav-link.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.tab-pane[hidden] {
    display: none;
}

.hero {
    position: relative;
    height: min(78svh, 760px);
    min-height: 520px;
    overflow: hidden;
    isolation: isolate;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 58%;
    animation: hero-drift 20s ease-out both;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 7, 6, 0.77) 0%, rgba(7, 7, 6, 0.24) 58%, rgba(7, 7, 6, 0.08) 100%),
        linear-gradient(0deg, rgba(7, 7, 6, 0.72) 0%, transparent 44%);
}

.hero-copy {
    position: absolute;
    top: 50%;
    left: 7vw;
    max-width: 760px;
    transform: translateY(-48%);
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.hero-eyebrow {
    color: rgba(255, 255, 255, 0.75);
    animation: title-in 900ms 150ms ease both;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-family: var(--serif);
    font-size: 166px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 0.73;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.25);
    animation: title-in 1100ms 260ms ease both;
}

.hero-intro {
    max-width: 460px;
    margin: 34px 0 0 4px;
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--serif);
    font-size: 27px;
    line-height: 1.25;
    animation: title-in 1000ms 420ms ease both;
}

.hero-foot {
    position: absolute;
    right: 3.5vw;
    bottom: 28px;
    left: 3.5vw;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.67);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 0 5px;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: none;
    color: var(--ink);
    cursor: pointer;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.text-link span {
    transition: transform 180ms ease;
}

.text-link:hover span {
    transform: translate(3px, -2px);
}

.hero .text-link {
    color: white;
}

.intro-band {
    display: grid;
    grid-template-columns: minmax(140px, 0.55fr) minmax(300px, 1.45fr);
    gap: 8vw;
    max-width: 1440px;
    margin: 0 auto;
    padding: 110px 7vw 130px;
}

.intro-statement {
    max-width: 850px;
    margin: 0;
    font-family: var(--serif);
    font-size: 67px;
    line-height: 1.03;
}

.feature-section,
.selected-work,
.cinema-section,
.movement-section {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 3.5vw 140px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 34px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.section-heading h2,
.writing-feature h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 96px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 0.95;
}

.section-heading .eyebrow {
    margin-bottom: 12px;
}

.section-note {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
    text-align: right;
    text-transform: uppercase;
}

.film-frame {
    position: relative;
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.film-frame video {
    width: 100%;
    aspect-ratio: 1280 / 692;
    background: #000;
}

.photo-triptych {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5vw 2vw;
}

figure {
    margin: 0;
}

.selected-photo-wide {
    grid-column: 1 / -1;
}

.selected-photo img,
.archive-photo img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: filter 500ms ease, transform 900ms cubic-bezier(0.2, 0.65, 0.25, 1);
}

.selected-photo {
    overflow: hidden;
}

.selected-photo img {
    filter: saturate(0.86);
}

.selected-photo:hover img,
.archive-photo:hover img {
    filter: saturate(1);
    transform: scale(1.012);
}

figcaption {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 11px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.writing-feature {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 8vw;
    max-width: 1440px;
    margin: 0 auto;
    padding: 110px 7vw 150px;
    background: var(--ink);
    color: var(--ground);
}

.writing-feature .eyebrow {
    color: #66635d;
}

.writing-feature-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 38px;
}

.writing-feature-copy p {
    max-width: 540px;
    margin: 0;
    font-family: var(--serif);
    font-size: 39px;
    line-height: 1.16;
}

.writing-feature .text-link {
    color: var(--ground);
}

.inner-page {
    min-height: 70vh;
    animation: pane-in 420ms ease both;
}

.page-intro {
    display: grid;
    grid-template-columns: 0.8fr 1.35fr 0.65fr;
    gap: 5vw;
    max-width: 1440px;
    min-height: 430px;
    margin: 0 auto;
    padding: 110px 3.5vw 100px;
    align-items: start;
}

.page-intro h1 {
    margin: -10px 0 0;
    font-family: var(--serif);
    font-size: 142px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 0.85;
}

.page-intro > p:last-child {
    max-width: 310px;
    margin: 3px 0 0;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 20px;
    line-height: 1.25;
}

.photo-archive {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10vw 4vw;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 3.5vw 160px;
}

.archive-photo-offset {
    padding-top: 18vw;
}

.writing-index {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 3.5vw 150px;
}

.writing-row {
    display: grid;
    grid-template-columns: 0.7fr 2fr auto;
    gap: 5vw;
    align-items: start;
    padding: 38px 0 44px;
    border-top: 1px solid var(--line);
}

.writing-row:last-child {
    border-bottom: 1px solid var(--line);
}

.writing-row h2 {
    margin: -7px 0 8px;
    font-family: var(--serif);
    font-size: 66px;
    font-weight: 400;
    line-height: 1;
}

.writing-row p {
    max-width: 550px;
    margin: 0;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 19px;
}

.writing-meta {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.08em;
    line-height: 1.6;
    text-transform: uppercase;
}

.row-arrow {
    font-size: 26px;
    text-decoration: none;
    transition: transform 180ms ease;
}

.row-arrow:hover {
    transform: translate(4px, -4px);
}

.list-heading {
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.list-heading a {
    color: var(--ink);
    text-decoration: none;
}

.film-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px 18px;
}

.cinema-section + .cinema-section {
    padding-top: 10px;
}

.film-card {
    min-width: 0;
    color: var(--ink);
    text-decoration: none;
}

.film-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: var(--surface);
    filter: saturate(0.82);
    transition: filter 350ms ease, transform 500ms ease;
}

.film-card:hover .film-poster {
    filter: saturate(1);
    transform: translateY(-4px);
}

.film-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 11px;
}

.film-name {
    overflow: hidden;
    font-family: var(--serif);
    font-size: 20px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.film-rating {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.loading-copy {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 20px;
}

.strava-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.strava-card {
    display: flex;
    min-height: 310px;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--ground);
    color: var(--ink);
    text-decoration: none;
    transition: background 250ms ease;
}

.strava-card:hover {
    background: var(--surface);
}

.strava-header {
    display: flex;
    flex-direction: column;
}

.strava-title {
    overflow: hidden;
    font-family: var(--serif);
    font-size: 28px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.strava-location {
    margin-top: 8px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.strava-metrics {
    margin-top: 20px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.strava-map-container {
    height: 118px;
    margin-top: 28px;
    color: var(--accent);
}

.strava-map-container svg {
    width: 100%;
    height: 100%;
}

.footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    padding: 80px 3.5vw 28px;
    border-top: 1px solid var(--line);
    background: var(--ground);
}

.footer-mark {
    margin: 0;
    font-family: var(--serif);
    font-size: 30px;
}

.footer > p:nth-child(2) {
    margin: 2px 0 0;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.2;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-content: flex-start;
    justify-content: flex-end;
}

.footer-links a {
    color: var(--muted);
    font-size: 11px;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--ink);
}

.copyright {
    grid-column: 1 / -1;
    margin: 80px 0 0;
    color: var(--dim);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 800ms ease, transform 800ms cubic-bezier(0.2, 0.65, 0.25, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.container,
.script-page {
    width: min(760px, calc(100% - 40px));
    margin: 0 auto;
    padding: 72px 0 100px;
}

.blog-read-link {
    color: var(--ink);
}

.container blockquote {
    border-left-color: var(--accent) !important;
    background: var(--surface) !important;
    color: var(--ink) !important;
}

@keyframes hero-drift {
    from { transform: scale(1.06); }
    to { transform: scale(1); }
}

@keyframes title-in {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pane-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 900px) {
    .site-header {
        min-height: 108px;
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
        justify-content: center;
        padding: 14px 22px 0;
    }

    .nav-links {
        width: 100%;
        gap: 22px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        flex: 0 0 auto;
        padding: 12px 0 15px;
    }

    .hero {
        height: 70svh;
        min-height: 500px;
    }

    .hero-copy {
        left: 6vw;
    }

    .hero h1 {
        font-size: 126px;
    }

    .hero-intro {
        font-size: 24px;
    }

    .intro-statement {
        font-size: 52px;
    }

    .section-heading h2,
    .writing-feature h2 {
        font-size: 76px;
    }

    .writing-feature-copy p {
        font-size: 32px;
    }

    .intro-band,
    .writing-feature {
        grid-template-columns: 1fr;
    }

    .page-intro {
        grid-template-columns: 1fr;
        gap: 32px;
        min-height: 0;
        padding-top: 80px;
    }

    .page-intro h1 {
        font-size: 104px;
        max-width: 700px;
    }

    .writing-row h2 {
        font-size: 52px;
    }

    .film-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .strava-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .site-header {
        padding-right: 18px;
        padding-left: 18px;
    }

    .wordmark {
        font-size: 23px;
    }

    .nav-links {
        gap: 20px;
    }

    .hero {
        height: 68svh;
        min-height: 480px;
    }

    .hero-image {
        object-position: 54% center;
    }

    .hero-copy {
        top: 46%;
        right: 22px;
        left: 22px;
        transform: translateY(-45%);
    }

    .hero h1 {
        font-size: 90px;
        line-height: 0.78;
    }

    .hero-intro {
        max-width: 330px;
        margin-top: 25px;
        font-size: 20px;
    }

    .hero-foot {
        right: 22px;
        bottom: 20px;
        left: 22px;
    }

    .hero-foot > span:first-child {
        display: none;
    }

    .intro-band {
        gap: 20px;
        padding: 78px 22px 90px;
    }

    .intro-statement {
        font-size: 36px;
    }

    .feature-section,
    .selected-work,
    .cinema-section,
    .movement-section {
        padding-right: 18px;
        padding-bottom: 90px;
        padding-left: 18px;
    }

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

    .section-heading h2 {
        font-size: 55px;
    }

    .section-note {
        text-align: left;
    }

    .photo-triptych,
    .photo-archive {
        grid-template-columns: 1fr;
        gap: 54px;
    }

    .selected-photo-wide {
        grid-column: auto;
    }

    .archive-photo-offset {
        padding-top: 0;
    }

    .writing-feature {
        gap: 70px;
        padding: 80px 22px 90px;
    }

    .writing-feature h2 {
        font-size: 58px;
    }

    .writing-feature-copy p {
        font-size: 28px;
    }

    .page-intro {
        gap: 26px;
        padding: 72px 22px 78px;
    }

    .page-intro h1 {
        font-size: 62px;
    }

    .photo-archive,
    .writing-index {
        padding-right: 18px;
        padding-bottom: 100px;
        padding-left: 18px;
    }

    .writing-row {
        grid-template-columns: 1fr auto;
        gap: 24px 18px;
    }

    .writing-meta {
        grid-column: 1 / -1;
    }

    .writing-row h2 {
        font-size: 40px;
    }

    .film-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 12px;
    }

    .film-name {
        font-size: 17px;
    }

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

    .strava-card {
        min-height: 280px;
    }

    .footer {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 60px 22px 26px;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .copyright {
        grid-column: auto;
        margin-top: 34px;
    }

    .container,
    .script-page {
        width: auto !important;
        max-width: none !important;
        margin-right: 20px;
        margin-left: 20px;
        overflow-wrap: break-word;
    }

    .container > header > div {
        flex-wrap: wrap;
        gap: 8px 20px;
    }

    .container .footer {
        display: block;
        margin-top: 70px;
        padding-right: 0;
        padding-left: 0;
    }

    .container .footer-links {
        margin: 24px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
