:root {
    --bg: #efe6d8;
    --bg-soft: #f7f1e7;
    --surface: rgba(255, 250, 243, 0.72);
    --surface-strong: rgba(255, 255, 255, 0.84);
    --ink: #1f1b18;
    --muted: #6f6357;
    --muted-strong: #4c433c;
    --line: rgba(31, 27, 24, 0.12);
    --line-strong: rgba(31, 27, 24, 0.22);
    --accent: #b8653d;
    --accent-deep: #7e3f24;
    --olive: #506253;
    --shadow: 0 30px 80px rgba(71, 43, 25, 0.08);
    --radius-xl: 36px;
    --radius-lg: 28px;
    --radius-md: 22px;
    --radius-sm: 18px;
    --max-width: 1180px;
    --header-height: 88px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: "Avenir Next", "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
    background:
        radial-gradient(circle at 0% 0%, rgba(184, 101, 61, 0.16), transparent 28%),
        radial-gradient(circle at 100% 12%, rgba(80, 98, 83, 0.14), transparent 24%),
        linear-gradient(180deg, #f6efe2 0%, #efe6d8 38%, #f6f1e7 100%);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(31, 27, 24, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 27, 24, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 85%);
    opacity: 0.35;
}

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

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

button {
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid rgba(184, 101, 61, 0.65);
    outline-offset: 3px;
}

::selection {
    background: rgba(184, 101, 61, 0.2);
}

.surface {
    background: linear-gradient(180deg, var(--surface-strong), var(--surface));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 1rem 1.5rem 0;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(247, 241, 231, 0.84);
    box-shadow: 0 18px 40px rgba(71, 43, 25, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: box-shadow 220ms ease, transform 220ms ease, background 220ms ease;
}

.site-header.is-scrolled .header-inner {
    transform: translateY(4px);
    box-shadow: 0 24px 56px rgba(71, 43, 25, 0.1);
    background: rgba(248, 243, 236, 0.94);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--ink), #372f29);
    color: #fff8ef;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.brand-copy {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.brand-copy strong {
    font-size: 0.98rem;
    font-weight: 700;
    white-space: nowrap;
}

.brand-copy span {
    color: var(--muted);
    font-size: 0.82rem;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-link,
.lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    color: var(--muted);
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.nav-link:hover,
.nav-link.active,
.lang-switch:hover {
    color: var(--ink);
    background: rgba(31, 27, 24, 0.06);
}

.lang-switch {
    border: 1px solid var(--line);
    color: var(--muted-strong);
    font-weight: 700;
}

.page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem 5rem;
}

.section-anchor {
    scroll-margin-top: calc(var(--header-height) + 32px);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 2rem;
    align-items: start;
    padding: 4.5rem 0 2.5rem;
}

.eyebrow,
.panel-kicker,
.proof-tag,
.metric-label,
.case-label {
    color: var(--accent-deep);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.proof-story h3,
.case-body h3,
.contact-card h2,
.hero-panel-copy h2,
.metric-number {
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.hero-copy h1 {
    max-width: 9.5ch;
    margin: 0.5rem 0 1.25rem;
    font-size: clamp(3.6rem, 7vw, 6.6rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.hero-lede {
    max-width: 60ch;
    margin: 0;
    color: var(--muted-strong);
    font-size: 1.18rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.9rem 1.3rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 180ms var(--ease), box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--ink), #40372f);
    color: #fff8ef;
    box-shadow: 0 20px 40px rgba(31, 27, 24, 0.14);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.55);
    border-color: var(--line);
    color: var(--ink);
}

.hero-panel {
    padding: 1rem;
    border-radius: var(--radius-xl);
}

.hero-portrait {
    overflow: hidden;
    border-radius: calc(var(--radius-xl) - 10px);
    aspect-ratio: 4 / 5;
    background: #d8c8b6;
}

.hero-portrait img {
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.hero-panel-copy {
    padding: 1.3rem 1rem 0.6rem;
}

.hero-panel-copy h2 {
    margin: 0.35rem 0 0;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.panel-divider {
    width: 100%;
    height: 1px;
    margin: 1.3rem 0;
    background: var(--line);
}

.condensed-list {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.condensed-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.condensed-list span {
    color: var(--muted);
}

.condensed-list strong {
    font-size: 1rem;
}

.panel-note {
    margin: 1.3rem 0 0;
    color: var(--muted-strong);
}

.metrics,
.work,
.gallery,
.contact {
    padding-top: 4.75rem;
}

.section-heading {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1.6rem;
}

.section-heading h2 {
    max-width: 11ch;
    margin: 0;
    font-size: clamp(2.25rem, 4.5vw, 3.9rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.metric-card {
    min-height: 190px;
    padding: 1.4rem;
    border-radius: var(--radius-lg);
    display: grid;
    align-content: start;
    gap: 0.7rem;
}

.metric-number {
    margin: 0;
    font-size: clamp(2.2rem, 3.5vw, 3.4rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.metric-copy {
    margin: 0;
    color: var(--muted-strong);
}

.proof-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 1rem;
    margin-top: 1rem;
}

.proof-story {
    padding: 1.6rem;
    border-radius: var(--radius-lg);
}

.proof-story h3 {
    margin: 0.5rem 0 0.8rem;
    font-size: clamp(1.9rem, 3.2vw, 2.8rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.proof-story p:last-child {
    margin: 0;
    color: var(--muted-strong);
    font-size: 1.04rem;
}

.logo-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.8rem;
}

.logo-cloud span {
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.5);
    color: var(--muted-strong);
    font-size: 0.94rem;
    font-weight: 600;
}

.case-stack {
    display: grid;
    gap: 1rem;
}

.case-study {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 1.6rem;
    padding: 1.7rem;
    border-radius: var(--radius-xl);
}

.case-meta {
    display: grid;
    align-content: start;
    gap: 0.35rem;
}

.case-index {
    margin: 0;
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: 2.5rem;
    line-height: 0.9;
    letter-spacing: -0.05em;
    color: var(--accent-deep);
}

.case-label {
    color: var(--muted);
}

.case-body h3 {
    margin: 0 0 0.7rem;
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.case-body p {
    max-width: 62ch;
    margin: 0;
    color: var(--muted-strong);
    font-size: 1.06rem;
}

.case-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
}

.case-points li {
    padding: 0.95rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.5);
    color: var(--muted-strong);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    padding: 0;
    border-radius: var(--radius-lg);
}

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

.gallery-item figcaption {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
    font-size: 0.92rem;
}

.gallery-item strong {
    color: var(--ink);
    font-weight: 700;
}

.feature {
    grid-column: span 7;
}

.feature img {
    aspect-ratio: 5 / 4;
}

.tall {
    grid-column: span 5;
}

.tall img {
    aspect-ratio: 4 / 5;
}

.square {
    grid-column: span 4;
}

.square img {
    aspect-ratio: 1 / 1;
}

.wide {
    grid-column: span 8;
}

.wide img {
    aspect-ratio: 16 / 9;
}

.compact {
    grid-column: span 4;
}

.compact img {
    aspect-ratio: 4 / 3;
}

.contact-card {
    padding: 2rem;
    border-radius: calc(var(--radius-xl) + 4px);
    display: grid;
    gap: 1.4rem;
}

.contact-card h2 {
    max-width: 15ch;
    margin: 0.45rem 0 0;
    font-size: clamp(2.35rem, 4.8vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.contact-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 1.5rem;
}

.contact-columns p {
    max-width: 58ch;
    margin: 0;
    color: var(--muted-strong);
    font-size: 1.06rem;
}

.contact-actions {
    display: grid;
    justify-items: end;
    gap: 0.9rem;
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.7rem;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.45);
    color: var(--muted-strong);
}

.contact-links a:hover {
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 520ms var(--ease),
        transform 520ms var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
}

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

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

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

@media (max-width: 980px) {
    .header-inner {
        align-items: flex-start;
        flex-wrap: wrap;
        border-radius: 30px;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .primary-nav {
        width: calc(100% - 72px);
        overflow-x: auto;
        padding-bottom: 0.1rem;
        scrollbar-width: none;
    }

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

    .hero {
        grid-template-columns: 1fr;
        padding-top: 3rem;
    }

    .hero-copy h1 {
        max-width: 11ch;
    }

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

    .contact-actions {
        justify-items: start;
    }

    .contact-buttons {
        justify-content: flex-start;
    }

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

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

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

    .tall,
    .compact {
        grid-column: span 3;
    }

    .square {
        grid-column: span 3;
    }
}

@media (max-width: 720px) {
    .site-header {
        padding: 0.85rem 1rem 0;
    }

    .page {
        padding: 1.5rem 1rem 4rem;
    }

    .brand-copy span {
        display: none;
    }

    .hero-copy h1 {
        max-width: none;
        font-size: clamp(3rem, 16vw, 4.6rem);
    }

    .section-heading h2,
    .contact-card h2 {
        max-width: none;
    }

    .metrics-grid,
    .case-points,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .case-study {
        grid-template-columns: 1fr;
    }

    .case-meta {
        gap: 0.2rem;
    }

    .feature,
    .tall,
    .square,
    .wide,
    .compact {
        grid-column: auto;
    }

    .gallery-item img,
    .feature img,
    .tall img,
    .square img,
    .wide img,
    .compact img {
        aspect-ratio: 4 / 3;
    }

    .gallery-item figcaption {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

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

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

html[lang="zh"] body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}

html[lang="zh"] .brand-copy strong,
html[lang="zh"] .brand-copy span,
html[lang="zh"] .hero-lede,
html[lang="zh"] .metric-copy,
html[lang="zh"] .proof-story p:last-child,
html[lang="zh"] .case-body p,
html[lang="zh"] .contact-columns p,
html[lang="zh"] .panel-note,
html[lang="zh"] .condensed-list span,
html[lang="zh"] .logo-cloud span {
    line-height: 1.8;
}

html[lang="zh"] .eyebrow,
html[lang="zh"] .panel-kicker,
html[lang="zh"] .proof-tag,
html[lang="zh"] .metric-label,
html[lang="zh"] .case-label {
    letter-spacing: 0.08em;
    text-transform: none;
}

html[lang="zh"] .hero-copy h1 {
    letter-spacing: -0.03em;
}

html[lang="zh"] .brand-mark {
    font-size: 0.84rem;
    letter-spacing: 0.04em;
}
