:root {
    --paper: #fbfaf8;
    --paper-2: #f5f3ef;
    --ink: #111111;
    --text: #333333;
    --muted: #7a7a7a;
    --line: #ebe6df;
    --line-dark: #2a2a2a;
    --white: #ffffff;
    --blue: #174ea6;
    --red: #c45a2d;
    --green: #0f766e;
    --max: 1220px;
    --radius: 6px;
    --font-sans: "MiSans", "MiSans VF", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.72;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    font-variation-settings: "wght" 400;
}

body::before {
    content: none;
}

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

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
    font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 4px;
}

.screen-reader-text,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    width: auto;
    height: auto;
    clip: auto;
    z-index: 9999;
    top: 16px;
    left: 16px;
    padding: 10px 14px;
    background: var(--ink);
    color: var(--white);
    border-radius: var(--radius);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.06);
    background: rgba(251, 250, 248, 0.9);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    width: min(var(--max), calc(100% - 32px));
    min-height: 70px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 24px;
    margin: 0 auto;
    padding: 12px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

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

.site-brand img {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    object-fit: cover;
    background: var(--white);
}

.site-brand span {
    display: grid;
    gap: 1px;
}

.site-brand strong {
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.15;
}

.site-brand small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
}

.primary-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

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

.primary-nav__list a,
.nav-cta,
.footer-menu a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
    transition: color 180ms ease-out, background-color 180ms ease-out;
}

.primary-nav__list a:hover,
.footer-menu a:hover {
    color: var(--ink);
    background: rgba(17, 17, 17, 0.06);
}

.nav-cta {
    color: var(--white);
    background: var(--ink);
}

.nav-cta:hover {
    color: var(--white);
    background: var(--red);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: transparent;
    cursor: pointer;
}

.nav-toggle span:not(.screen-reader-text) {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
}

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

.hero-section {
    padding: 118px 20px 96px;
}

.hero-grid,
.section__inner,
.footer-grid,
.footer-bottom {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 396px);
    gap: 54px 82px;
    align-items: start;
}

.hero-copy h1,
.page-hero h1 {
    max-width: 760px;
    margin: 22px 0 24px;
    color: var(--ink);
    font-size: clamp(38px, 4.1vw, 56px);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: 0;
}

.hero-copy p,
.page-hero p,
.section-heading p,
.statement-layout p,
.intelligence-section p {
    max-width: 780px;
    color: var(--muted);
    font-size: clamp(17px, 1.45vw, 19px);
    line-height: 1.86;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--red);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: currentColor;
}

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

.hero-scope {
    max-width: 620px;
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    margin-top: 46px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.hero-scope > span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.hero-scope ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.hero-scope li {
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.55;
}

.button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out, transform 180ms ease-out;
}

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

.button--primary {
    color: var(--white);
    background: var(--ink);
}

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

.button--ghost {
    border-color: rgba(17, 17, 17, 0.6);
    color: var(--ink);
    background: transparent;
}

.button--ghost:hover {
    border-color: var(--ink);
    background: rgba(17, 17, 17, 0.06);
}

.hero-brief {
    display: grid;
    align-content: start;
    gap: 46px;
    margin-top: 6px;
    padding: 34px;
    border-radius: var(--radius);
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--line);
}

.hero-brief p {
    margin: 0;
    color: var(--ink);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.62;
}

.hero-brief dl {
    display: grid;
    gap: 0;
    margin: 0;
    border-top: 1px solid var(--line);
}

.hero-brief div {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.hero-brief dt {
    color: var(--red);
    font-weight: 500;
}

.hero-brief dd {
    margin: 0;
    color: var(--muted);
}

.section {
    padding: 112px 0;
}

.statement-band {
    border-block: 1px solid var(--line);
    background: var(--white);
}

.statement-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
    gap: 72px;
    align-items: start;
}

.statement-layout h2,
.section-heading h2,
.intelligence-layout h2,
.process-layout h2,
.final-cta h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(30px, 3.1vw, 44px);
    font-weight: 500;
    line-height: 1.32;
    letter-spacing: 0;
}

.statement-layout .eyebrow + h2,
.section-heading .eyebrow + h2,
.intelligence-layout .eyebrow + h2,
.process-layout .eyebrow + h2,
.final-cta .eyebrow + h2 {
    margin-top: 18px;
}

.statement-layout p {
    margin: 0;
}

.section-heading {
    margin-bottom: 62px;
}

.section-heading--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
    gap: 72px;
    align-items: end;
}

.section-heading--split p {
    margin: 0;
}

.service-directory {
    border-top: 1px solid var(--ink);
}

.service-row a {
    display: grid;
    grid-template-columns: 76px minmax(220px, 0.42fr) minmax(0, 1fr) 92px;
    gap: 28px;
    align-items: baseline;
    padding: 38px 0;
    border-bottom: 1px solid var(--line);
    transition: color 180ms ease-out, border-color 180ms ease-out;
}

.service-row a:hover {
    border-color: var(--ink);
}

.service-row span {
    color: var(--red);
    font-weight: 500;
}

.service-row h3 {
    margin: 0;
    color: var(--ink);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.45;
}

.service-row p {
    margin: 0;
    color: var(--muted);
}

.service-row strong,
.text-link {
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.intelligence-section {
    color: var(--text);
    background: #f3f1ed;
}

.intelligence-section .eyebrow,
.intelligence-section h2 {
    color: var(--ink);
}

.intelligence-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 58px;
}

.intelligence-list {
    display: grid;
    border-top: 1px solid var(--line);
}

.intelligence-list article {
    display: grid;
    grid-template-columns: 54px minmax(180px, 0.5fr) minmax(0, 1fr);
    gap: 22px;
    padding: 38px 0;
    border-bottom: 1px solid var(--line);
}

.intelligence-list span {
    color: var(--red);
    font-weight: 500;
}

.intelligence-list h3 {
    margin: 0;
    color: var(--ink);
    font-size: 22px;
    font-weight: 500;
}

.intelligence-list p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.82;
}

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

.portfolio-grid .product-card:first-child {
    grid-column: span 2;
}

.product-card,
.post-card,
.summary-panel,
.empty-state {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    transition: border-color 180ms ease-out, transform 180ms ease-out;
}

.product-card:hover,
.post-card:hover {
    border-color: rgba(17, 17, 17, 0.2);
    transform: translateY(-1px);
}

.product-card a {
    display: grid;
    min-height: 100%;
}

.product-card__media {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: var(--paper-2);
}

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__media span {
    color: var(--ink);
    font-size: 44px;
    font-weight: 500;
}

.product-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 30px 28px;
}

.product-card h3,
.post-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.36;
}

.product-card p,
.post-card p,
.summary-panel p,
.empty-state p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.82;
}

.product-card strong {
    color: var(--green);
    font-size: 14px;
    font-weight: 500;
}

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

.process-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
    gap: 72px;
    align-items: start;
}

.process-timeline {
    display: grid;
    border-top: 1px solid var(--ink);
}

.process-timeline article {
    display: grid;
    grid-template-columns: 54px minmax(160px, 0.42fr) minmax(0, 1fr);
    gap: 22px;
    padding: 38px 0;
    border-bottom: 1px solid var(--line);
}

.process-timeline span {
    color: var(--red);
    font-weight: 500;
}

.process-timeline h3 {
    margin: 0;
    color: var(--ink);
    font-size: 22px;
    font-weight: 500;
}

.process-timeline p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.82;
}

.final-cta {
    text-align: center;
    border-top: 1px solid var(--line);
    background: var(--white);
}

.final-cta .section__inner {
    max-width: 940px;
}

.final-cta .button {
    margin-top: 30px;
}

.page-hero {
    padding-top: 132px;
    padding-bottom: 84px;
}

.page-hero p + .button {
    margin-top: 32px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(320px, 0.62fr);
    gap: clamp(42px, 6vw, 84px);
    align-items: start;
}

.split-layout > * {
    min-width: 0;
}

.split-layout > :only-child {
    grid-column: 1 / -1;
    max-width: 860px;
}

.service-grid,
.product-grid,
.feature-list,
.process-grid,
.post-list {
    display: grid;
    gap: 22px;
}

.service-grid,
.product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.service-card,
.feature-list article,
.process-grid article {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.service-card a,
.post-card a {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 30px 28px;
}

.feature-list article,
.process-grid article {
    padding: 30px 28px;
}

.service-card__index {
    width: fit-content;
    padding-bottom: 10px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
    color: var(--red);
    font-size: 14px;
    font-weight: 500;
}

.service-card h3,
.feature-list h3,
.process-grid h3 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.36;
}

.service-card p,
.feature-list p,
.process-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.82;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.text-link::after {
    content: "";
    width: 20px;
    height: 2px;
    background: currentColor;
}

.empty-state {
    padding: 36px;
}

.summary-panel {
    padding: clamp(28px, 3vw, 40px);
}

.summary-panel h2 {
    margin: 0 0 18px;
    color: var(--ink);
    font-size: 21px;
    font-weight: 500;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.tag-list span {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    background: var(--white);
    font-size: 14px;
    font-weight: 500;
}

.prose {
    max-width: 860px;
    color: var(--text);
    font-size: 18px;
    line-height: 1.86;
}

.prose > * {
    margin-top: 0;
}

.prose > * + * {
    margin-top: 1.2em;
}

.prose h2,
.prose h3 {
    color: var(--ink);
    line-height: 1.45;
    letter-spacing: 0;
}

.prose h2 {
    margin-top: 52px;
    font-size: 28px;
    font-weight: 500;
}

.prose > h2:first-child,
.prose > h3:first-child {
    margin-top: 0;
}

.prose h2 + * {
    margin-top: 0.75em;
}

.prose li + li {
    margin-top: 8px;
}

.prose a {
    color: var(--red);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.prose img,
.detail-media {
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.lead {
    padding: 18px 20px;
    border: 1px solid rgba(15, 118, 110, 0.28);
    border-radius: var(--radius);
    background: rgba(15, 118, 110, 0.04);
}

.site-footer {
    padding: 76px 0 30px;
    background: var(--ink);
    color: #d1d5db;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 42px;
}

.footer-brand h2,
.footer-grid h2 {
    margin: 0 0 16px;
    color: var(--white);
    font-size: 21px;
    font-weight: 500;
}

.footer-brand p,
.footer-grid li,
.footer-bottom {
    color: #a8b0bd;
}

.footer-grid ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-grid li + li {
    margin-top: 8px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-top: 50px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 14px;
}

.footer-records,
.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.pagination,
.nav-links {
    display: flex;
    gap: 10px;
    margin-top: 28px;
}

.page-numbers {
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    background: var(--white);
}

.page-numbers.current,
.page-numbers:hover {
    color: var(--white);
    background: var(--ink);
}

@media (max-width: 980px) {
    .nav-toggle {
        display: inline-block;
        justify-self: end;
    }

    .primary-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 16px;
        right: 16px;
        display: none;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: rgba(251, 250, 248, 0.98);
    }

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

    .primary-nav__list {
        display: grid;
        gap: 4px;
    }

    .primary-nav__list a,
    .nav-cta {
        justify-content: center;
        width: 100%;
    }

    .hero-grid,
    .split-layout,
    .statement-layout,
    .section-heading--split,
    .intelligence-layout,
    .process-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .service-row a,
    .intelligence-list article,
    .process-timeline article {
        grid-template-columns: 54px 1fr;
    }

    .service-row p,
    .service-row strong,
    .intelligence-list p,
    .process-timeline p {
        grid-column: 2;
    }

    .portfolio-grid,
    .service-grid,
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .site-header {
        top: 0;
        padding: 0 10px;
    }

    .site-header__inner {
        width: min(100% - 20px, var(--max));
        min-height: 64px;
    }

    .site-brand small {
        display: none;
    }

    .hero-section {
        padding-top: 94px;
    }

    .page-hero {
        padding-top: 112px;
        padding-bottom: 72px;
    }

    .hero-grid,
    .section__inner,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 28px, var(--max));
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: clamp(34px, 9vw, 44px);
    }

    .hero-scope {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 36px;
    }

    .hero-scope ul {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .portfolio-grid,
    .portfolio-grid .product-card:first-child,
    .service-grid,
    .product-grid,
    .feature-list,
    .process-grid {
        grid-template-columns: 1fr;
        grid-column: auto;
    }

    .service-row a,
    .intelligence-list article,
    .process-timeline article {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .service-row p,
    .service-row strong,
    .intelligence-list p,
    .process-timeline p {
        grid-column: auto;
    }

    .section {
        padding: 76px 0;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

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