:root {
    color-scheme: light;
    --ink: #162a24;
    --forest: #112a22;
    --muted: #475a51;
    --accent: #d3f889;
    --line: #c9d4cb;
    --paper: #edf2eb;
    --shell: 79rem;
    --gutter: clamp(1rem, 5.25vw, 5.5rem);
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: #fff;
    font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #4f7529; outline-offset: 4px; }
.shell { width: min(calc(100% - 2 * var(--gutter)), var(--shell)); margin-inline: auto; }
.skip {
    position: absolute;
    z-index: 5;
    top: 1rem;
    left: var(--gutter);
    padding: .75rem 1rem;
    background: var(--accent);
    color: var(--ink);
    transform: translateY(-220%);
}
.skip:focus { transform: translateY(0); }
:root:lang(zh-Hans) {
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
}
:lang(zh-Hans) :is(h1, h2, h3) { line-height: 1.18; letter-spacing: -.022em; }

.header { background: #fff; }
.header-inner { min-height: 5.1rem; display: flex; align-items: center; gap: 1.4rem; }
.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: .65rem;
    font-size: .86rem;
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: .05em;
    text-decoration: none;
}
.brand img { width: 2.75rem; height: auto; }
.brand small { display: block; margin-top: .25rem; color: #416637; font-size: .7rem; letter-spacing: .16em; }
.nav { display: flex; align-items: center; gap: clamp(.75rem, 2.9vw, 3rem); margin-inline: auto; }
.nav a, .languages a { font-size: .92rem; line-height: 1.25; font-weight: 650; text-decoration: none; }
.nav a { padding-block: .72rem; }
.nav a:hover, .nav [aria-current] { text-decoration: underline; text-underline-offset: .35em; }
.languages { display: inline-flex; border: 1px solid var(--line); padding: .16rem; white-space: nowrap; }
.languages a { display: grid; place-items: center; min-width: 2.2rem; min-height: 2.5rem; padding-inline: .4rem; }
.languages [aria-current] { background: var(--forest); color: #fff; }
.languages a:hover { text-decoration: underline; text-underline-offset: .24em; }

.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: clamp(35rem, 50vw, 45rem);
    background: var(--forest);
    color: #fff;
}
.hero-photo, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo {
    z-index: -2;
    object-fit: cover;
    object-position: 57% 55%;
}
.hero::after {
    content: "";
    z-index: -1;
    background: linear-gradient(90deg, #0c221beF 0%, #11271fda 30%, #11271f64 66%, #11271f05),
                linear-gradient(0deg, #0c221bc4, transparent 28%);
}
.hero-content { align-self: center; padding-block: clamp(4rem, 7vw, 7rem) clamp(5rem, 8vw, 7.5rem); }
.location {
    width: fit-content;
    padding-block-start: .78rem;
    border-top: 2px solid var(--accent);
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-size: .81rem;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}
h1 { font-size: clamp(2.7rem, 6.1vw, 6.25rem); line-height: .99; font-weight: 730; letter-spacing: -.064em; }
.hero h1 span { display: block; }
.intro { margin-top: 1.6rem; max-width: 31rem; color: #f0f5ee; font-size: clamp(1.02rem, 1.52vw, 1.23rem); line-height: 1.58; }
.hero-credit { position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); display: flex; justify-content: flex-end; }
.hero-credit a { display: inline-flex; align-items: center; gap: .65rem; padding: .55rem .72rem; background: #112a22d9; font-size: .84rem; font-weight: 650; text-decoration: none; }
.hero-credit a:hover { text-decoration: underline; }
.hero a:focus-visible, .contact a:focus-visible, .footer a:focus-visible { outline-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.9rem; }
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    min-height: 3.1rem;
    padding: .7rem 1rem;
    border: 1px solid transparent;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: background-color .18s, color .18s, border-color .18s;
}
.button-green { background: var(--accent); color: var(--ink); }
.button-green:hover { background: #e6ffaa; }
.button-outline { border-color: #c0cec4; }
.button-outline:hover { background: var(--forest); }
.button-light { border-color: #8ba095; background: transparent; }
.button-light:hover { background: var(--forest); color: #fff; }
.section { padding-block: clamp(3.3rem, 6.5vw, 6.6rem); scroll-margin-top: 1rem; }
h2 { font-size: clamp(2.1rem, 4.1vw, 4.15rem); line-height: 1.03; font-weight: 730; letter-spacing: -.058em; }
h3 { font-size: clamp(1.32rem, 2.11vw, 1.75rem); line-height: 1.15; letter-spacing: -.033em; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.45rem; }
.section-heading .button { flex-shrink: 0; }
.section-heading p, .page-lead { max-width: 48rem; margin-top: 1.15rem; color: var(--muted); font-size: clamp(1.03rem, 1.65vw, 1.22rem); line-height: 1.6; }

.projects { background: var(--paper); }
.project-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(.9rem, 2vw, 1.65rem); margin-top: clamp(1.7rem, 3.8vw, 3.15rem); }
.project { min-width: 0; border: 1px solid var(--line); background: #fff; }
.project-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.project-link:is(:hover,:focus-visible) h3 { text-decoration: underline; text-underline-offset: .19em; }
.project-link:is(:hover,:focus-visible) .project-arrow { background: var(--accent); border-color: var(--accent); }
.project-image { overflow: hidden; background: #d2ddd4; }
.project img { aspect-ratio: 1.52; object-fit: cover; transition: transform .25s ease-out; }
.project-link:hover img { transform: scale(1.035); }
.project-copy { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(.95rem, 2.1vw, 1.65rem); }
.project-meta { margin-bottom: .68rem; color: var(--muted); font-size: .81rem; font-weight: 650; line-height: 1.4; }
.project-copy h3 { margin-bottom: 1.25rem; }
.project-arrow { margin-top: auto; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border: 1px solid var(--line); }
.project-filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.75rem; }
.project-filters button {
    min-height: 2.7rem;
    padding: .48rem .82rem;
    border: 1px solid #97ab9f;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: .9rem;
    font-weight: 650;
    cursor: pointer;
}
.project-filters [aria-pressed="true"] { border-color: var(--forest); background: var(--forest); color: #fff; }
.project-filters button:hover { border-color: var(--forest); text-decoration: underline; text-underline-offset: .18em; }

.service-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.45rem; margin-top: clamp(2rem, 4.5vw, 3.5rem); }
.service { position: relative; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.service::before { content: ""; position: absolute; width: 2.8rem; height: .22rem; background: #638d41; top: -.12rem; left: 0; }
.service p { margin-top: .7rem; color: var(--muted); line-height: 1.62; }
.home-about { border-top: 1px solid var(--line); background: #f6f8f3; }

.contact { background: var(--forest); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1.21fr 1fr; gap: clamp(2rem, 6vw, 6.5rem); }
.contact-grid > div p { max-width: 26rem; margin-top: 1.25rem; color: #e0eae3; font-size: 1.12rem; line-height: 1.57; }
.contact address { font-style: normal; min-width: 0; }
.contact-address { padding-block: .85rem; border-bottom: 1px solid #789286; }
.contact-address:first-child { border-top: 1px solid #789286; }
.contact-address span { display: block; margin-bottom: .4rem; color: #e0eae3; font-size: .9rem; }
.contact-address a { font-size: clamp(1rem, 1.7vw, 1.23rem); font-weight: 650; overflow-wrap: anywhere; text-underline-offset: .22em; }
.contact-address a:hover { color: var(--accent); }
.contact address > .button { margin-top: 1.2rem; }
.footer { background: #0b1f19; color: #edf4ef; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1.4rem; padding-block: 1.65rem; font-size: .87rem; }
.footer-inner span:first-child { font-weight: 720; }
.footer a { text-underline-offset: .24em; }

.more-link, .crumb { display: inline-block; font-weight: 650; text-underline-offset: .28em; }
.more-link { margin-top: 2rem; }
.crumb { color: var(--muted); margin-bottom: 1.65rem; }
.inside { padding-block: clamp(2.6rem, 6vw, 5.75rem); }
.inside h1 { max-width: 20ch; font-size: clamp(2.65rem, 5.35vw, 5.45rem); line-height: 1.06; overflow-wrap: break-word; }
.about-grid, .case-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(2rem,6vw,6rem); margin-top: 2.35rem; }
.about-grid h2, .case-gallery h2 { font-size: clamp(1.65rem,3vw,2.65rem); }
.profile-text p, .case-summary p { max-width: 56ch; font-size: 1.15rem; line-height: 1.65; }
.profile-text > * + * { margin-top: 1.3rem; }
.about-grid table { border-collapse: collapse; width: 100%; margin-top: 1.5rem; }
.about-grid th, .about-grid td { padding: .75rem .25rem; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
.about-grid th { font-size: .95rem; }
.about-grid td, .about-grid thead th:last-child { text-align: right; }
.case-summary dl { margin: 0; }
.case-summary dl div { display: grid; grid-template-columns: minmax(5rem,1fr) 2fr; gap: .8rem; padding-block: .7rem; border-top: 1px solid var(--line); }
.case-summary dt { color: var(--muted); }
.case-summary dd { margin: 0; font-weight: 650; }
.case-gallery { margin-top: clamp(1.45rem, 4vw, 3.1rem); }
.gallery-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1.2rem; margin-bottom: .85rem; }
.gallery-header h2 { font-size: clamp(1.25rem, 2.35vw, 1.9rem); }
.gallery-controls { display: flex; align-items: center; gap: .65rem; }
.gallery-button {
    display: grid;
    place-items: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    border: 1px solid #8ba095;
    border-radius: 0;
    background: #fff;
    color: var(--ink);
    font: inherit;
    cursor: pointer;
}
.gallery-button span { font-size: 1.7rem; line-height: 1; }
.gallery-button:hover { background: var(--forest); color: #fff; }
.gallery-count { color: var(--muted); text-align: center; font-size: .92rem; font-variant-numeric: tabular-nums; }
.photo-strip {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
}
.photo-strip.gallery-interactive { scrollbar-width: none; }
.photo-strip.gallery-interactive::-webkit-scrollbar { display: none; }
.photo-strip:focus-visible { outline: 3px solid #4f7529; outline-offset: 4px; }
.photo-strip figure { min-width: 0; margin: 0; scroll-snap-align: start; }
.photo-strip figcaption { padding-top: .7rem; color: var(--muted); line-height: 1.45; }
.gallery-picture {
    display: block;
    aspect-ratio: 2.05;
    max-height: 69vh;
    background: var(--forest);
    cursor: zoom-in;
}
.gallery-picture:focus-visible { outline-offset: -4px; outline-color: var(--accent); }
.gallery-picture img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 800px) {
    .header-inner { flex-wrap: wrap; justify-content: space-between; gap: .5rem .7rem; padding-top: .65rem; }
    .brand img { width: 2.3rem; }
    .nav { order: 2; justify-content: space-between; width: 100%; margin: 0; border-top: 1px solid var(--line); }
    .hero { min-height: 32rem; }
    .hero h1 { font-size: clamp(2.5rem, 8.6vw, 4.75rem); }
    .hero::after { background: linear-gradient(90deg, #0c221beD, #11271f89), linear-gradient(0deg, #0c221bbc, transparent 50%); }
    .project-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .contact-grid, .about-grid, .case-summary { grid-template-columns: 1fr; gap: 1.75rem; }
}
@media (max-width: 535px) {
    .brand { gap: .45rem; font-size: .76rem; }
    .nav { gap: .35rem; }
    .nav a { font-size: .84rem; }
    .section-heading { flex-direction: column; align-items: flex-start; }
    .project-list, .service-list { grid-template-columns: 1fr; }
    .project img { aspect-ratio: 1.66; }
    .service-list { gap: 1.75rem; }
    .gallery-picture { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0s !important; }
}

.arrow {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: .7rem;
    height: .7rem;
    border-top: 1.5px solid;
    border-right: 1.5px solid;
}
.arrow::after {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    width: .92rem;
    border-top: 1.5px solid;
    transform: rotate(-45deg);
    transform-origin: right center;
}

.project-controls { margin-top: 1.8rem; }
.project-controls label { display: block; margin-bottom: .45rem; font-weight: 670; }
.project-controls input {
    width: min(100%, 28rem);
    min-height: 2.9rem;
    padding: .6rem .8rem;
    border: 1px solid #97ab9f;
    border-radius: 0;
    background: #fff;
    color: var(--ink);
    font: inherit;
}
.project-controls input:focus-visible { outline: 3px solid #4f7529; outline-offset: 3px; }
.project-controls .project-filters { margin-top: .85rem; }
.project-results, .project-empty { margin-top: 1rem; color: var(--muted); }
.project-text-only { min-height: 12rem; border-top: 3px solid #8ca580; }
