:root {
    --ink: #14211e;
    --moss: #557164;
    --paper: #f4f2eb;
    --line: rgba(20, 33, 30, 0.16);
    --white: #fff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

button {
    font: inherit;
}

.shell {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.hero {
    position: relative;
    min-height: 760px;
    height: 100svh;
    color: var(--white);
    overflow: hidden;
    background: #273d35;
}

.hero-image,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    object-fit: cover;
    object-position: center 52%;
    animation: hero-breathe 16s ease-out both;
}

.hero-shade {
    background:
        linear-gradient(90deg, rgba(8, 24, 20, 0.72) 0%, rgba(8, 24, 20, 0.25) 52%, rgba(8, 24, 20, 0.1) 100%),
        linear-gradient(0deg, rgba(8, 24, 20, 0.62) 0%, transparent 38%);
}

.nav {
    position: relative;
    z-index: 2;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 650;
    letter-spacing: 0.12em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    font-family: serif;
    font-size: 14px;
}

.nav-links {
    display: flex;
    gap: 36px;
    font-size: 14px;
    letter-spacing: 0.08em;
}

.nav-links a {
    opacity: 0.84;
    transition: opacity 180ms ease;
}

.nav-links a:hover {
    opacity: 1;
}

.hero-copy {
    position: relative;
    z-index: 1;
    padding-top: clamp(105px, 16vh, 180px);
}

.eyebrow,
.section-kicker {
    margin: 0 0 22px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.24em;
}

.hero-copy h1 {
    margin: 0;
    font-family: "Songti SC", "STSong", "SimSun", serif;
    font-size: clamp(54px, 7.4vw, 104px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.hero-note {
    max-width: 470px;
    margin: 32px 0 38px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.8;
}

.hero-action {
    display: inline-flex;
    align-items: center;
    gap: 36px;
    min-width: 178px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    font-size: 14px;
    letter-spacing: 0.08em;
}

.hero-action span {
    transition: transform 180ms ease;
}

.hero-action:hover span {
    transform: translateY(4px);
}

.hero-meta {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 36px;
    left: 0;
    display: flex;
    justify-content: flex-end;
    gap: 32px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    letter-spacing: 0.1em;
}

.intro {
    display: grid;
    grid-template-columns: 90px 1.2fr 1fr;
    gap: 48px;
    align-items: start;
    padding-block: 150px 140px;
    border-bottom: 1px solid var(--line);
}

.section-number {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--moss);
    font-family: Arial, sans-serif;
    font-size: 11px;
}

.section-kicker {
    color: var(--moss);
}

.intro h2,
.gallery-heading h2 {
    margin: 0;
    font-family: "Songti SC", "STSong", "SimSun", serif;
    font-weight: 500;
}

.intro h2 {
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.18;
}

.intro-text {
    margin: 52px 0 0;
    color: #53635d;
    font-size: 16px;
    line-height: 2;
}

.gallery-section {
    padding-block: 120px 150px;
}

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

.gallery-heading h2 {
    font-size: clamp(40px, 5vw, 64px);
}

.gallery-heading > p {
    margin: 0 0 8px;
    color: var(--moss);
    font-size: 13px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-flow: dense;
    gap: 18px;
}

.photo-card {
    position: relative;
    grid-column: span 4;
    height: 380px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 2px;
    background: #d9ddd6;
    color: white;
    cursor: zoom-in;
}

.photo-card.photo-wide {
    grid-column: span 8;
}

.photo-card.photo-tall {
    grid-row: span 2;
    height: 778px;
}

.photo-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 650ms cubic-bezier(.2, .8, .2, 1), filter 450ms ease;
}

.photo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(7, 19, 16, 0.62), transparent 48%);
    transition: opacity 350ms ease;
}

.photo-card:hover img {
    transform: scale(1.035);
}

.photo-card:hover::after {
    opacity: 0.82;
}

.photo-info {
    position: absolute;
    z-index: 1;
    right: 24px;
    bottom: 24px;
    left: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
}

.photo-info b {
    font-family: "Songti SC", "STSong", "SimSun", serif;
    font-size: 25px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.photo-info small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    letter-spacing: 0.08em;
}

.photo-index {
    position: absolute;
    z-index: 1;
    top: 20px;
    right: 20px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 50%;
    font-family: Arial, sans-serif;
    font-size: 10px;
}

.closing {
    min-height: 560px;
    display: grid;
    align-items: center;
    background: #1f352e;
    color: white;
}

.closing-inner {
    padding-block: 90px;
}

.closing .section-kicker {
    color: #9db6aa;
}

.closing blockquote {
    margin: 0 0 56px;
    font-family: "Songti SC", "STSong", "SimSun", serif;
    font-size: clamp(42px, 6vw, 80px);
    font-weight: 400;
    line-height: 1.3;
}

.closing a {
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.54);
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.footer {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #6c7873;
    font-size: 11px;
    letter-spacing: 0.06em;
}

.lightbox {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 38px;
    border: 0;
    background: rgba(8, 18, 15, 0.96);
    color: white;
}

.lightbox::backdrop {
    background: rgba(8, 18, 15, 0.92);
}

.lightbox[open] {
    display: grid;
    grid-template-columns: 64px 1fr 64px;
    align-items: center;
}

.lightbox figure {
    min-width: 0;
    max-width: 1200px;
    margin: auto;
}

.lightbox figure img {
    width: 100%;
    max-height: calc(100vh - 130px);
    display: block;
    object-fit: contain;
}

.lightbox figcaption {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    letter-spacing: 0.08em;
}

.lightbox figcaption b {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.lightbox-close,
.lightbox-arrow {
    border: 0;
    background: transparent;
    color: white;
    cursor: pointer;
}

.lightbox-close {
    position: fixed;
    z-index: 1;
    top: 22px;
    right: 26px;
    font-size: 38px;
    font-weight: 200;
}

.lightbox-arrow {
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    font-size: 19px;
}

@keyframes hero-breathe {
    from { transform: scale(1.05); }
    to { transform: scale(1); }
}

@media (max-width: 900px) {
    .intro {
        grid-template-columns: 60px 1fr;
    }

    .intro-text {
        grid-column: 2;
        margin-top: 0;
    }

    .photo-card,
    .photo-card.photo-wide {
        grid-column: span 6;
    }

    .photo-card.photo-tall {
        height: 620px;
    }
}

@media (max-width: 640px) {
    .shell {
        width: min(100% - 28px, 1180px);
    }

    .hero {
        min-height: 680px;
    }

    .nav {
        height: 72px;
    }

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

    .nav-links a:last-child {
        display: none;
    }

    .hero-copy {
        padding-top: 110px;
    }

    .hero-copy h1 {
        font-size: 51px;
    }

    .hero-note {
        max-width: 300px;
        font-size: 14px;
    }

    .hero-meta {
        justify-content: flex-start;
        gap: 18px;
        bottom: 24px;
    }

    .intro {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-block: 92px;
    }

    .intro-text {
        grid-column: auto;
        margin: 0;
    }

    .gallery-section {
        padding-block: 84px 100px;
    }

    .gallery-heading {
        align-items: flex-start;
    }

    .gallery-heading > p {
        display: none;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .photo-card,
    .photo-card.photo-wide,
    .photo-card.photo-tall {
        grid-column: auto;
        grid-row: auto;
        height: 460px;
    }

    .photo-card:nth-child(3n) {
        height: 320px;
    }

    .photo-info {
        right: 18px;
        bottom: 18px;
        left: 18px;
    }

    .photo-info b {
        font-size: 22px;
    }

    .closing {
        min-height: 480px;
    }

    .footer {
        min-height: 140px;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
    }

    .lightbox {
        padding: 16px;
    }

    .lightbox[open] {
        grid-template-columns: 1fr;
    }

    .lightbox-arrow {
        position: fixed;
        z-index: 1;
        bottom: 20px;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next {
        right: 20px;
    }

    .lightbox figure img {
        max-height: calc(100vh - 155px);
    }
}

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

    .hero-image {
        animation: none;
    }

    .photo-card img {
        transition: none;
    }
}

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