:root {
    --ink: #10100e;
    --ink-2: #24231f;
    --paper: #f7f5ef;
    --paper-2: #ece8df;
    --milk: #fffdf7;
    --rust: #a65335;
    --olive: #60684f;
    --blue: #879da5;
    --line: rgba(16, 16, 14, 0.14);
    --line-light: rgba(255, 255, 255, 0.28);
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
    --radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    min-height: 100vh;
}

body.menu-open,
body.lightbox-open {
    overflow: hidden;
}

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

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

button {
    color: inherit;
    font: inherit;
}

::selection {
    background: var(--rust);
    color: var(--milk);
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 80;
    width: 100%;
    height: 3px;
    background: var(--rust);
    transform: scaleX(0);
    transform-origin: left;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
    align-items: center;
    gap: 24px;
    padding: 24px 34px;
    color: var(--milk);
    transition: background 0.28s ease, padding 0.28s ease, color 0.28s ease, border-color 0.28s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
    padding-block: 14px;
    background: rgba(16, 16, 14, 0.88);
    border-bottom: 1px solid var(--line-light);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    min-width: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.brand-copy small {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.68);
    letter-spacing: 0;
}

.desktop-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.desktop-nav a {
    position: relative;
    padding: 8px 0;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.24s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-button {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.menu-button i,
.menu-button i::before,
.menu-button i::after {
    display: block;
    width: 28px;
    height: 2px;
    background: currentColor;
    transition: transform 0.26s ease, opacity 0.26s ease;
}

.menu-button i {
    position: relative;
}

.menu-button i::before,
.menu-button i::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-button i::before {
    top: -8px;
}

.menu-button i::after {
    top: 8px;
}

.site-header.is-open .menu-button i {
    background: transparent;
}

.site-header.is-open .menu-button i::before {
    transform: translateY(8px) rotate(45deg);
}

.site-header.is-open .menu-button i::after {
    transform: translateY(-8px) rotate(-45deg);
}

.site-menu {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: stretch end;
    background: rgba(0, 0, 0, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.site-menu.is-open {
    opacity: 1;
    pointer-events: auto;
}

.menu-panel {
    width: min(520px, 100%);
    min-height: 100%;
    display: grid;
    align-content: center;
    gap: 18px;
    padding: 88px 50px 48px;
    background: var(--ink);
    color: var(--milk);
    transform: translateX(28px);
    transition: transform 0.35s ease;
}

.site-menu.is-open .menu-panel {
    transform: translateX(0);
}

.menu-close {
    position: absolute;
    top: 24px;
    right: 34px;
    border: 1px solid var(--line-light);
    border-radius: 999px;
    background: transparent;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.menu-panel a {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 3.4rem;
    line-height: 0.95;
    transition: color 0.22s ease, transform 0.22s ease;
}

.menu-panel a:hover,
.menu-panel a:focus-visible {
    color: var(--blue);
    transform: translateX(8px);
}

.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: var(--ink);
    color: var(--milk);
}

.hero-slider,
.hero-slide,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-slide {
    margin: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.95s ease, transform 5s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.88) contrast(1.06);
}

.hero-shade {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.08)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent 48%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 48px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    align-content: end;
    padding: 150px 0 110px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero-meta span:first-child::after {
    content: "";
    display: inline-block;
    width: 64px;
    height: 1px;
    margin-left: 16px;
    vertical-align: middle;
    background: currentColor;
    opacity: 0.56;
}

.hero h1,
.section-kicker p,
.story-copy h2,
.about-copy h2,
.contact-card h2 {
    font-family: "Playfair Display", Georgia, serif;
    letter-spacing: 0;
}

.hero h1 {
    width: min(950px, 100%);
    margin: 0;
    font-size: 6.8rem;
    line-height: 0.86;
}

.hero p {
    width: min(620px, 100%);
    margin: 28px 0 0;
    font-size: 1.1rem;
    line-height: 1.78;
    color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 34px;
}

.text-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    padding-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.text-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: currentColor;
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 0.24s ease;
}

.text-link::before {
    content: ">";
    font-family: "Plus Jakarta Sans", sans-serif;
}

.text-link:hover::after,
.text-link:focus-visible::after {
    transform: scaleX(0.35);
}

.text-link.is-muted {
    color: rgba(255, 255, 255, 0.7);
}

.text-link.dark {
    color: var(--ink);
}

.hero-controls {
    position: absolute;
    right: 34px;
    bottom: 34px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-controls button,
.lightbox-nav,
.lightbox-close {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line-light);
    border-radius: 50%;
    background: rgba(16, 16, 14, 0.42);
    color: var(--milk);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-controls button:hover,
.lightbox-nav:hover,
.lightbox-close:hover {
    transform: translateY(-2px);
    background: rgba(16, 16, 14, 0.78);
}

.scroll-cue {
    position: absolute;
    left: 34px;
    bottom: 34px;
    z-index: 3;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    letter-spacing: 0;
}

.scroll-cue::after {
    content: "";
    display: block;
    width: 1px;
    height: 54px;
    margin: 12px auto 0;
    background: currentColor;
    opacity: 0.7;
    animation: cue 1.7s ease-in-out infinite;
}

.intro-strip {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(360px, 0.8fr);
    gap: 48px;
    align-items: end;
    padding: 80px 0 70px;
    border-bottom: 1px solid var(--line);
}

.intro-strip p {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 3.6rem;
    line-height: 1.05;
}

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

.intro-stats span {
    min-height: 130px;
    display: grid;
    align-content: end;
    padding: 18px;
    border: 1px solid var(--line);
    background: var(--milk);
}

.intro-stats strong {
    display: block;
    margin-bottom: 12px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2.15rem;
    line-height: 1;
}

.portfolio-section,
.stories-section,
.about-section,
.experience-section,
.contact-section,
.site-footer {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.portfolio-section,
.stories-section,
.about-section,
.experience-section {
    padding-top: 108px;
}

.section-kicker {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
    margin-bottom: 34px;
}

.section-kicker span,
.eyebrow {
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
    color: var(--rust);
}

.section-kicker p {
    margin: 0;
    max-width: 830px;
    font-size: 4.8rem;
    line-height: 0.96;
}

.portfolio-toolbar {
    position: sticky;
    top: 72px;
    z-index: 25;
    display: flex;
    gap: 8px;
    align-items: center;
    overflow-x: auto;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--line);
    background: rgba(247, 245, 239, 0.88);
    backdrop-filter: blur(14px);
    scrollbar-width: none;
}

.portfolio-toolbar::-webkit-scrollbar {
    display: none;
}

.filter-button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.filter-button.is-active,
.filter-button:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--milk);
}

.signature-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 82px;
    gap: 14px;
}

.signature-card {
    position: relative;
    overflow: hidden;
    display: block;
    border-radius: var(--radius);
    background: var(--ink);
    cursor: pointer;
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.13);
    transition: transform 0.34s ease, opacity 0.3s ease, filter 0.3s ease;
}

.signature-card.is-filtered-out {
    display: none;
}

.signature-card.span-2 {
    grid-column: span 6;
    grid-row: span 6;
}

.signature-card.tall {
    grid-column: span 3;
    grid-row: span 6;
}

.signature-card.wide {
    grid-column: span 6;
    grid-row: span 4;
}

.signature-card.square {
    grid-column: span 3;
    grid-row: span 4;
}

.signature-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 0.6s ease, filter 0.6s ease;
}

.signature-card::after,
.story-media::after,
.contact-section::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.04) 58%);
}

.signature-card:hover,
.signature-card:focus-visible {
    transform: translateY(-6px);
}

.signature-card:hover img,
.signature-card:focus-visible img,
.story-row:hover .story-media img {
    transform: scale(1.06);
    filter: saturate(0.82) contrast(1.08);
}

.photo-index {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.74rem;
    font-weight: 900;
}

.photo-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    display: grid;
    gap: 6px;
    color: var(--milk);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.signature-card:hover .photo-caption,
.signature-card:focus-visible .photo-caption {
    opacity: 1;
    transform: translateY(0);
}

.photo-caption span {
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.photo-caption strong {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.75rem;
    line-height: 1;
}

.story-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr) 170px;
    gap: 28px;
    align-items: stretch;
    min-height: 560px;
    padding: 38px 0;
    border-top: 1px solid var(--line);
}

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

.story-media {
    position: relative;
    overflow: hidden;
    height: 560px;
    border-radius: var(--radius);
    background: var(--ink);
}

.story-media img,
.contact-section > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.story-copy {
    display: grid;
    align-content: center;
}

.story-number {
    margin-bottom: 38px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 5.6rem;
    line-height: 0.8;
    color: rgba(16, 16, 14, 0.14);
}

.story-copy h2 {
    margin: 12px 0 16px;
    font-size: 4.2rem;
    line-height: 0.92;
}

.story-copy p,
.about-copy p,
.experience-section p,
.contact-card p {
    color: rgba(16, 16, 14, 0.7);
    line-height: 1.84;
}

.story-thumbs {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 12px;
    height: 560px;
    min-height: 0;
}

.story-thumbs img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    border-radius: var(--radius);
    filter: saturate(0.86);
}

.about-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    gap: 70px;
    align-items: center;
}

.about-images {
    position: relative;
    min-height: 680px;
}

.about-main {
    width: 82%;
    height: 620px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-float {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 45%;
    height: 290px;
    object-fit: cover;
    border: 12px solid var(--paper);
    border-radius: var(--radius);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.about-copy h2,
.contact-card h2 {
    margin: 14px 0 24px;
    font-size: 4.55rem;
    line-height: 0.96;
}

.about-copy .lead {
    color: var(--ink);
    font-size: 1.12rem;
}

.experience-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
}

.experience-section article {
    min-height: 260px;
    display: grid;
    align-content: end;
    gap: 12px;
    padding: 28px;
    background: var(--milk);
}

.experience-section span {
    color: var(--rust);
    font-size: 0.78rem;
    font-weight: 900;
}

.experience-section h3 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2.5rem;
    line-height: 1;
}

.experience-section p {
    margin: 0;
}

.contact-section {
    position: relative;
    min-height: 720px;
    margin-top: 108px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--ink);
}

.contact-section::after {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.18)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.52), transparent);
}

.contact-section > img {
    position: absolute;
    inset: 0;
}

.contact-card {
    position: relative;
    z-index: 2;
    width: min(620px, calc(100% - 48px));
    min-height: 720px;
    display: grid;
    align-content: center;
    padding: 60px;
    color: var(--milk);
}

.contact-card .eyebrow {
    color: var(--blue);
}

.contact-card p {
    color: rgba(255, 255, 255, 0.74);
}

.contact-card .text-link.dark {
    color: var(--milk);
}

.contact-links {
    display: grid;
    gap: 12px;
    margin: 30px 0;
    font-weight: 800;
}

.contact-links a,
.site-footer a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 34px 0 54px;
    margin-top: 40px;
    border-top: 1px solid var(--line);
    color: rgba(16, 16, 14, 0.68);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 18px;
}

.lightbox {
    width: min(1180px, calc(100% - 28px));
    max-height: 90vh;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: var(--milk);
    overflow: visible;
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.86);
    backdrop-filter: blur(10px);
}

.lightbox-figure {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--ink);
    box-shadow: var(--shadow);
}

.lightbox img {
    width: 100%;
    height: min(78vh, 780px);
    object-fit: contain;
    background: var(--ink);
}

.lightbox figcaption {
    display: grid;
    gap: 5px;
    padding: 16px 18px 18px;
    background: var(--ink);
}

.lightbox figcaption strong {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.65rem;
    line-height: 1.1;
}

.lightbox figcaption span {
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.5;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    z-index: 4;
}

.lightbox-close {
    top: -58px;
    right: 0;
}

.lightbox-prev {
    top: 50%;
    left: -58px;
    transform: translateY(-50%);
}

.lightbox-next {
    top: 50%;
    right: -58px;
    transform: translateY(-50%);
}

.js-enabled [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.72s ease, transform 0.72s ease;
}

.js-enabled [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes cue {
    0%,
    100% {
        transform: scaleY(0.35);
        transform-origin: top;
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
    }
}

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

    .desktop-nav {
        display: none;
    }

    .hero h1 {
        font-size: 5.4rem;
    }

    .intro-strip,
    .about-section,
    .story-row {
        grid-template-columns: 1fr;
    }

    .story-row {
        min-height: auto;
    }

    .story-media {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .story-thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: none;
        height: auto;
    }

    .story-thumbs img {
        height: auto;
        aspect-ratio: 1;
    }

    .signature-card.span-2,
    .signature-card.wide {
        grid-column: span 8;
    }

    .signature-card.tall,
    .signature-card.square {
        grid-column: span 4;
    }
}

@media (max-width: 820px) {
    .site-header {
        padding: 14px 16px;
    }

    .brand-copy strong {
        max-width: 170px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .brand-copy small {
        display: none;
    }

    .menu-button span {
        display: none;
    }

    .menu-panel {
        padding: 86px 28px 36px;
    }

    .menu-panel a {
        font-size: 2.55rem;
    }

    .hero {
        min-height: 92vh;
    }

    .hero-content {
        width: min(100% - 32px, 1180px);
        min-height: 92vh;
        padding: 120px 0 118px;
    }

    .hero h1 {
        font-size: 3.75rem;
        line-height: 0.94;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-actions {
        display: grid;
        gap: 18px;
    }

    .scroll-cue {
        display: none;
    }

    .hero-controls {
        right: 16px;
        bottom: 20px;
    }

    .intro-strip,
    .portfolio-section,
    .stories-section,
    .about-section,
    .experience-section,
    .contact-section,
    .site-footer {
        width: min(100% - 32px, 1180px);
    }

    .intro-strip {
        padding: 58px 0 52px;
        gap: 28px;
    }

    .intro-strip p,
    .section-kicker p {
        font-size: 2.9rem;
    }

    .intro-stats,
    .experience-section {
        grid-template-columns: 1fr;
    }

    .intro-stats span {
        min-height: 92px;
    }

    .portfolio-section,
    .stories-section,
    .about-section,
    .experience-section {
        padding-top: 74px;
    }

    .section-kicker {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .portfolio-toolbar {
        top: 66px;
        margin-inline: -16px;
        border-inline: 0;
        border-radius: 0;
        padding-inline: 16px;
    }

    .signature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: auto;
        gap: 10px;
    }

    .signature-card.span-2,
    .signature-card.tall,
    .signature-card.wide,
    .signature-card.square {
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: 4 / 5;
    }

    .signature-card.span-2,
    .signature-card.wide {
        grid-column: span 2;
        aspect-ratio: 5 / 4;
    }

    .photo-caption {
        opacity: 1;
        transform: none;
    }

    .story-row {
        gap: 18px;
        padding: 28px 0;
    }

    .story-media {
        aspect-ratio: 4 / 5;
    }

    .story-number {
        margin-bottom: 18px;
        font-size: 4.1rem;
    }

    .story-copy h2,
    .about-copy h2,
    .contact-card h2 {
        font-size: 3.25rem;
    }

    .story-thumbs {
        display: none;
    }

    .about-images {
        min-height: auto;
    }

    .about-main {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
    }

    .about-float {
        display: none;
    }

    .experience-section article {
        min-height: 210px;
        padding: 22px;
    }

    .contact-section {
        min-height: 640px;
        margin-top: 74px;
    }

    .contact-card {
        width: 100%;
        min-height: 640px;
        padding: 34px 24px;
    }

    .site-footer {
        display: grid;
    }

    .site-footer nav {
        justify-content: start;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 520px) {
    .hero h1 {
        font-size: 3.15rem;
    }

    .hero-meta {
        display: grid;
        gap: 8px;
    }

    .hero-meta span:first-child::after {
        width: 42px;
    }

    .intro-strip p,
    .section-kicker p {
        font-size: 2.45rem;
    }

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

    .signature-card.span-2,
    .signature-card.wide {
        grid-column: auto;
        aspect-ratio: 4 / 5;
    }

    .story-copy h2,
    .about-copy h2,
    .contact-card h2 {
        font-size: 2.65rem;
    }
}

.menu-button.as-link {
    text-decoration: none;
}

.menu-button.as-link i {
    display: none;
}

.story-badge {
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 2;
    padding: 9px 12px;
    border: 1px solid var(--line-light);
    border-radius: 999px;
    background: rgba(16, 16, 14, 0.62);
    color: var(--milk);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.story-row.is-360 .story-copy h2::after {
    content: "360";
    display: inline-block;
    margin-left: 12px;
    color: var(--rust);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.9rem;
    vertical-align: top;
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.4fr);
    gap: 34px;
    align-items: start;
    color: var(--ink);
    text-transform: none;
}

.footer-brand a {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2.2rem;
    line-height: 1;
    text-decoration: none;
}

.footer-brand p,
.footer-legal p {
    color: rgba(16, 16, 14, 0.68);
    line-height: 1.7;
}

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

.footer-links section {
    display: grid;
    align-content: start;
    gap: 10px;
    min-height: 180px;
    padding: 18px;
    border: 1px solid var(--line);
    background: var(--milk);
}

.footer-links h2 {
    margin: 0 0 8px;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.footer-links a,
.footer-legal span {
    font-size: 0.9rem;
    font-weight: 800;
}

.footer-legal {
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.gallery-page {
    background: var(--ink);
    color: var(--milk);
}

.gallery-header {
    position: sticky;
}

.gallery-main {
    width: min(1480px, calc(100% - 36px));
    margin: 0 auto;
    padding: 34px 0 42px;
}

.gallery-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    margin-bottom: 18px;
}

.gallery-hero h1 {
    max-width: 840px;
    margin: 8px 0 10px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 3.9rem;
    line-height: 0.95;
}

.gallery-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.55;
}

.back-link {
    display: inline-flex;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.gallery-count {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.gallery-count strong {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2.8rem;
    line-height: 1;
}

.gallery-count span {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.gallery-view-layout {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-height: calc(100vh - 220px);
}

.gallery-rail {
    display: grid;
    gap: 8px;
    grid-template-columns: 104px;
    grid-auto-rows: 104px;
    justify-content: start;
    align-content: start;
    max-height: calc(100vh - 220px);
    overflow: auto;
    padding-right: 4px;
    scrollbar-gutter: stable;
}

.gallery-rail button {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    height: 100%;
    padding: 0;
    aspect-ratio: 1;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: transparent;
    cursor: pointer;
    opacity: 0.56;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.gallery-rail button.is-active,
.gallery-rail button:hover {
    border-color: var(--milk);
    opacity: 1;
}

.gallery-rail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-rail span {
    position: absolute;
    left: 8px;
    bottom: 8px;
    font-size: 0.72rem;
    font-weight: 900;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.gallery-stage {
    min-width: 0;
    margin: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: hidden;
    border-radius: var(--radius);
    background: #050505;
}

.gallery-stage > img {
    width: 100%;
    height: calc(100vh - 280px);
    min-height: 520px;
    object-fit: contain;
    background: #050505;
}

.gallery-stage figcaption {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.gallery-stage h2,
.viewer-info h2 {
    margin: 4px 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.7rem;
    line-height: 1;
}

.gallery-stage p,
.viewer-info p {
    margin: 0;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.45;
    font-size: 0.9rem;
}

.viewer-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.viewer-controls button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: transparent;
    color: var(--milk);
    cursor: pointer;
    font-size: 1.55rem;
}

.viewer-controls span,
.gallery-stage [data-gallery-counter] {
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.78rem;
    font-weight: 900;
}

.viewer-360-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 12px;
    align-items: stretch;
}

.viewer-360-shell,
.viewer-info {
    overflow: hidden;
    border-radius: var(--radius);
    background: #050505;
}

.viewer-360-shell {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
}

.panorama-viewer {
    width: 100%;
    min-height: calc(100vh - 250px);
    background: #050505;
}

.panorama-viewer img {
    width: 100%;
    height: calc(100vh - 250px);
    object-fit: cover;
}

.viewer-360-shell .viewer-controls {
    justify-content: center;
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.viewer-360-strip {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: #050505;
}

.viewer-360-arrow {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: transparent;
    color: var(--milk);
    cursor: pointer;
    font-size: 1.55rem;
}

.viewer-360-thumbs {
    display: flex;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.34) transparent;
}

.viewer-360-thumbs button {
    position: relative;
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    padding: 0;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    opacity: 0.58;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.viewer-360-thumbs button.is-active,
.viewer-360-thumbs button:hover {
    border-color: var(--milk);
    opacity: 1;
}

.viewer-360-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.viewer-360-thumbs span {
    position: absolute;
    left: 7px;
    bottom: 7px;
    color: var(--milk);
    font-size: 0.7rem;
    font-weight: 900;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.viewer-360-counter {
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.viewer-info {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 18px;
}

.photo-data {
    display: grid;
    gap: 8px;
    margin: 4px 0;
}

.photo-data div {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.photo-data dt {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.photo-data dd {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.5;
}

.map-frame {
    min-height: 190px;
    overflow: hidden;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
}

.map-frame iframe {
    width: 100%;
    height: 220px;
    border: 0;
}

@media (max-width: 920px) {
    .site-footer,
    .footer-links,
    .gallery-hero,
    .gallery-view-layout,
    .viewer-360-layout {
        grid-template-columns: 1fr;
    }

    .gallery-main {
        width: min(100% - 28px, 1260px);
        padding-top: 42px;
    }

    .gallery-hero h1 {
        font-size: 3.45rem;
    }

    .gallery-count {
        justify-items: start;
    }

    .gallery-rail {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
        padding: 0 0 8px;
    }

    .gallery-rail button {
        flex: 0 0 clamp(88px, 22vw, 128px);
        height: auto;
    }

    .gallery-stage figcaption {
        display: grid;
    }

    .gallery-stage > img {
        height: auto;
        min-height: 360px;
        max-height: 70vh;
    }

    .panorama-viewer,
    .panorama-viewer img {
        min-height: 520px;
        height: 520px;
    }

    .viewer-360-strip {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
    }

    .viewer-360-counter {
        grid-column: 1 / -1;
        justify-self: center;
    }

    .viewer-info {
        padding: 22px;
    }
}

@media (max-width: 560px) {
    .footer-brand a {
        font-size: 1.75rem;
    }

    .gallery-rail {
        gap: 7px;
    }

    .gallery-rail button {
        flex-basis: clamp(82px, 28vw, 112px);
    }

    .gallery-stage h2,
    .viewer-info h2 {
        font-size: 2rem;
    }

    .panorama-viewer,
    .panorama-viewer img {
        min-height: 420px;
        height: 420px;
    }

    .viewer-360-strip {
        gap: 7px;
        padding: 8px;
    }

    .viewer-360-arrow {
        width: 38px;
        height: 38px;
    }

    .viewer-360-thumbs button {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
    }

    .photo-data div {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

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