:root {
    --ink: #131614;
    --muted: #626b64;
    --paper: #f7f5f0;
    --surface: #ffffff;
    --line: #ded8cc;
    --accent: #c9462e;
    --accent-strong: #a92d1d;
    --sage: #2f6f5f;
    --gold: #b58b4c;
    --header-h: 78px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.72;
    letter-spacing: 0;
}

body.nav-open {
    overflow: hidden;
}

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

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

.skip-link {
    position: fixed;
    left: 14px;
    top: 14px;
    z-index: 1000;
    transform: translateY(-140%);
    background: var(--surface);
    color: var(--ink);
    padding: 10px 14px;
    border-radius: 6px;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 900;
    height: var(--header-h);
    color: #fff;
    transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
body:not(.home) .site-header {
    color: var(--ink);
    background: rgba(247, 245, 240, 0.96);
    box-shadow: 0 8px 30px rgba(24, 22, 18, 0.08);
    backdrop-filter: blur(14px);
}

.site-header__inner {
    width: min(var(--max), calc(100% - 44px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand__mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    line-height: 1;
}

.brand__text {
    display: grid;
    line-height: 1.18;
}

.brand__text strong {
    font-size: 18px;
}

.brand__text small {
    margin-top: 3px;
    color: currentColor;
    opacity: 0.72;
    font-size: 12px;
}

.primary-nav {
    margin-left: auto;
}

.primary-nav__list,
.footer-nav__list {
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    font-size: 14px;
    font-weight: 650;
    opacity: 0.88;
    transition: color 160ms ease, opacity 160ms ease;
}

.primary-nav a:hover {
    color: var(--accent);
    opacity: 1;
}

.header-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid currentColor;
    border-radius: 6px;
    font-size: 13px;
}

.header-call strong {
    font-size: 14px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: currentColor;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-main {
    min-height: 70vh;
}

.hero,
.page-hero,
.single-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #1a1b18;
}

.hero::before,
.page-hero::before,
.single-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.hero::after,
.page-hero::after,
.single-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(14, 15, 13, 0.86) 0%, rgba(14, 15, 13, 0.58) 42%, rgba(14, 15, 13, 0.18) 100%);
}

.hero {
    min-height: 86svh;
    display: flex;
    align-items: center;
}

.hero__inner,
.page-hero__inner,
.single-hero__inner {
    position: relative;
    z-index: 1;
    width: min(var(--max), calc(100% - 44px));
    margin: 0 auto;
}

.hero__inner {
    max-width: 760px;
    margin-left: max(22px, calc((100% - var(--max)) / 2));
    padding: 120px 0 78px;
    animation: hero-copy-in 620ms ease both;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.single-hero h1 {
    margin: 0;
    font-weight: 850;
    line-height: 1.04;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 700px;
    font-size: 72px;
}

.hero__lead {
    max-width: 610px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 22px;
    line-height: 1.55;
}

.hero__actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    min-width: 136px;
    padding: 0 22px;
    border-radius: 6px;
    font-weight: 760;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

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

.button--primary {
    background: var(--accent);
    color: #fff;
}

.button--primary:hover {
    background: var(--accent-strong);
}

.button--ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.72);
}

.button--dark {
    color: #fff;
    background: var(--ink);
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 46px;
}

.hero__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

.section {
    width: min(var(--max), calc(100% - 44px));
    margin: 0 auto;
    padding: 92px 0;
}

.section__grid {
    display: grid;
    gap: 56px;
}

.section__grid--intro {
    grid-template-columns: 0.86fr 1.14fr;
    align-items: start;
}

.section h2,
.article-layout h2,
.contact-block h2,
.cta-panel h2 {
    margin: 0;
    font-size: 42px;
    line-height: 1.14;
    letter-spacing: 0;
}

.section-copy h2 {
    max-width: 450px;
}

.intro-text p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.intro-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 36px;
    border-top: 1px solid var(--line);
    padding-top: 26px;
}

.intro-metrics span {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 14px;
}

.intro-metrics strong {
    color: var(--ink);
    font-size: 34px;
    line-height: 1;
}

.media-strip {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 1fr;
    gap: 0;
    padding: 0;
}

.media-strip img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.section-heading {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 24px;
    margin-bottom: 38px;
}

.section-heading .eyebrow {
    grid-column: 1 / -1;
    margin-bottom: -6px;
}

.section-heading h2 {
    max-width: 720px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    color: var(--accent);
    font-weight: 760;
}

.text-link::after {
    content: "→";
    margin-left: 8px;
}

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

.service-card,
.case-card,
.service-feature {
    overflow: hidden;
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 20px 60px rgba(26, 22, 16, 0.08);
}

.service-card img {
    width: 100%;
    aspect-ratio: 1.35;
    object-fit: cover;
}

.service-card div {
    min-height: 190px;
    padding: 24px;
}

.service-card h3,
.case-card h3,
.process-item h3,
.service-feature h2,
.post-row h2,
.contact-note h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.28;
    letter-spacing: 0;
}

.service-card p,
.case-card p,
.process-item p,
.service-feature p,
.post-row p,
.cta-panel p,
.contact-note,
.content-page {
    color: var(--muted);
}

.process-section {
    border-top: 1px solid var(--line);
}

.process-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.process-item {
    min-height: 250px;
    padding: 28px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.process-item span {
    display: block;
    margin-bottom: 48px;
    color: var(--sage);
    font-weight: 850;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.case-card__image {
    display: block;
    overflow: hidden;
}

.case-card img {
    width: 100%;
    aspect-ratio: 1.42;
    object-fit: cover;
    transition: transform 400ms ease;
}

.case-card:hover img {
    transform: scale(1.04);
}

.case-card__body {
    min-height: 230px;
    padding: 22px;
}

.case-card time,
.post-row time,
.single-hero time {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 760;
}

.case-card h3 a:hover,
.post-row h2 a:hover {
    color: var(--accent);
}

.cta-section {
    padding-top: 32px;
}

.cta-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
    padding: 44px;
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 22px 70px rgba(26, 22, 16, 0.08);
}

.cta-panel p {
    max-width: 640px;
    margin: 16px 0 0;
}

.page-hero,
.single-hero {
    min-height: 450px;
    display: flex;
    align-items: end;
}

.page-hero__inner,
.single-hero__inner {
    padding: 148px 0 72px;
}

.page-hero h1,
.single-hero h1 {
    max-width: 850px;
    font-size: 56px;
}

.page-hero p:not(.eyebrow) {
    max-width: 680px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 19px;
}

.article-layout,
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 58px;
    align-items: center;
}

.article-layout__copy p {
    color: var(--muted);
    font-size: 18px;
}

.article-layout__image img {
    width: 100%;
    border-radius: 8px;
    background: var(--surface);
}

.value-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding-top: 0;
}

.value-item {
    padding: 30px;
    border-top: 4px solid var(--sage);
    background: var(--surface);
    border-radius: 8px;
}

.value-item strong {
    display: block;
    margin-bottom: 8px;
    font-size: 24px;
}

.value-item span {
    color: var(--muted);
}

.service-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.service-feature {
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    min-height: 260px;
}

.service-feature img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

.service-feature div {
    padding: 30px;
}

.case-grid--page {
    padding-top: 72px;
}

.post-list {
    display: grid;
    gap: 22px;
}

.post-row {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: center;
    padding: 22px;
    border-radius: 8px;
    background: var(--surface);
}

.post-row img {
    width: 260px;
    height: 172px;
    object-fit: cover;
    border-radius: 6px;
}

.contact-block,
.contact-note {
    padding: 36px;
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 20px 60px rgba(26, 22, 16, 0.07);
}

.contact-block dl {
    display: grid;
    gap: 20px;
    margin: 28px 0 0;
}

.contact-block dl div {
    display: grid;
    gap: 4px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.contact-block dt {
    color: var(--muted);
    font-size: 13px;
}

.contact-block dd {
    margin: 0;
    font-size: 18px;
    font-weight: 720;
}

.contact-note ul {
    margin: 18px 0 0;
    padding-left: 20px;
}

.single-hero::after {
    background: linear-gradient(0deg, rgba(14, 15, 13, 0.88) 0%, rgba(14, 15, 13, 0.2) 100%);
}

.single-content,
.content-page {
    max-width: 840px;
    padding-top: 72px;
    color: #2f332f;
    background: var(--paper);
}

.single-content p,
.content-page p {
    margin: 0 0 22px;
}

.single-content img,
.content-page img {
    border-radius: 8px;
    margin: 28px 0;
}

.navigation.pagination {
    grid-column: 1 / -1;
    margin-top: 20px;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.page-numbers {
    min-width: 38px;
    min-height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
}

.page-numbers.current {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.site-footer {
    color: #fff;
    background: #151712;
}

.site-footer__inner {
    width: min(var(--max), calc(100% - 44px));
    margin: 0 auto;
    padding: 54px 0;
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.8fr;
    gap: 38px;
}

.footer-brand {
    display: flex;
    gap: 14px;
}

.footer-brand p {
    max-width: 360px;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.62);
}

.footer-contact,
.footer-nav__list,
.site-footer .primary-nav__list {
    display: grid;
    gap: 10px;
    align-content: start;
    color: rgba(255, 255, 255, 0.72);
}

.footer-contact a:hover,
.footer-nav a:hover,
.site-footer .primary-nav__list a:hover {
    color: #fff;
}

.site-footer__bottom {
    width: min(var(--max), calc(100% - 44px));
    margin: 0 auto;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.52);
    font-size: 13px;
}

.reveal {
    opacity: 1;
}

.js .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 520ms ease, transform 520ms ease;
}

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

@keyframes hero-copy-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1080px) {
    .header-call {
        display: none;
    }

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

    .process-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-page-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    :root {
        --header-h: 70px;
    }

    .site-header__inner {
        width: min(var(--max), calc(100% - 28px));
    }

    .nav-toggle {
        display: inline-block;
        position: relative;
        z-index: 940;
    }

    .primary-nav {
        position: fixed;
        inset: 0;
        z-index: 920;
        display: none;
        align-items: center;
        justify-content: center;
        background: rgba(247, 245, 240, 0.98);
        color: var(--ink);
    }

    .primary-nav.is-open {
        display: flex;
    }

    .primary-nav__list {
        display: grid;
        gap: 12px;
        text-align: center;
    }

    .primary-nav a {
        justify-content: center;
        min-height: 52px;
        font-size: 24px;
    }

    .brand {
        min-width: 0;
    }

    .brand__text small {
        display: none;
    }

    .hero {
        min-height: 82svh;
    }

    .hero__inner {
        width: min(var(--max), calc(100% - 32px));
        margin: 0 auto;
        padding: 104px 0 52px;
    }

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

    .hero__lead {
        font-size: 18px;
    }

    .hero::after,
    .page-hero::after {
        background: rgba(14, 15, 13, 0.68);
    }

    .section {
        width: min(var(--max), calc(100% - 32px));
        padding: 68px 0;
    }

    .section__grid--intro,
    .article-layout,
    .contact-layout,
    .cta-panel,
    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .section h2,
    .article-layout h2,
    .contact-block h2,
    .cta-panel h2 {
        font-size: 34px;
    }

    .section-heading {
        grid-template-columns: 1fr;
    }

    .intro-metrics,
    .value-band {
        grid-template-columns: 1fr;
    }

    .media-strip {
        grid-template-columns: 1fr;
    }

    .media-strip img {
        height: 260px;
    }

    .service-grid,
    .case-grid,
    .process-list {
        grid-template-columns: 1fr;
    }

    .service-feature {
        grid-template-columns: 1fr;
    }

    .post-row {
        grid-template-columns: 1fr;
    }

    .post-row img {
        width: 100%;
        height: 220px;
    }

    .page-hero h1,
    .single-hero h1 {
        font-size: 40px;
    }
}

@media (max-width: 520px) {
    .brand__mark {
        width: 38px;
        height: 38px;
    }

    .brand__text strong {
        font-size: 16px;
    }

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

    .hero__meta span {
        min-height: 32px;
    }

    .button {
        width: 100%;
    }

    .service-card div,
    .case-card__body,
    .process-item,
    .cta-panel,
    .contact-block,
    .contact-note {
        padding: 24px;
    }

    .page-hero,
    .single-hero {
        min-height: 380px;
    }

    .page-hero__inner,
    .single-hero__inner {
        padding: 118px 0 56px;
    }
}
