:root {
    --ink: #102338;
    --ink-soft: #536174;
    --paper: #f5f3ed;
    --white: #ffffff;
    --line: #d9d7cf;
    --coral: #f1543f;
    --aqua: #32b9c8;
    --sun: #f2b94b;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

h1,
h2,
h3,
p,
figure {
    margin: 0;
}

.site-header {
    position: relative;
    z-index: 5;
    background: var(--white);
    border-bottom: 1px solid rgba(16, 35, 56, 0.1);
}

.header-inner {
    width: min(calc(100% - 48px), var(--max-width));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    width: 150px;
}

.brand img {
    height: 34px;
    object-fit: contain;
    object-position: left center;
}

.header-note {
    color: var(--ink-soft);
    font-size: 14px;
    letter-spacing: 0.08em;
}

.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background-color: var(--ink);
    border-bottom: 6px solid var(--coral);
}

.hero::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: 0.36;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to right, black, transparent 78%);
}

.hero-inner {
    position: relative;
    width: min(calc(100% - 48px), var(--max-width));
    min-height: 650px;
    margin: 0 auto;
    padding: 86px 0 78px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.95fr);
    align-items: center;
    gap: 72px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #8fe1e8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.eyebrow::before {
    width: 34px;
    height: 3px;
    content: "";
    background: var(--coral);
}

.eyebrow-dark {
    color: #1e7480;
}

.hero h1 {
    max-width: 640px;
    margin-top: 24px;
    font-size: clamp(44px, 5vw, 68px);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.hero h1 span {
    color: #ffcf70;
}

.hero-lead {
    max-width: 590px;
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 17px;
    line-height: 1.95;
}

.hero-facts {
    margin-top: 48px;
    padding-top: 26px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-facts div {
    display: grid;
    gap: 8px;
}

.hero-facts strong {
    color: #8fe1e8;
    font-size: 12px;
    letter-spacing: 0.14em;
}

.hero-facts span {
    font-size: 15px;
    font-weight: 600;
}

.hero-visual {
    width: 100%;
    min-height: 448px;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(128px, 0.75fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hero-visual figure {
    position: relative;
    overflow: hidden;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: #243852;
}

.hero-visual img {
    height: 100%;
    object-fit: cover;
}

.visual-main {
    grid-row: 1 / 3;
}

.visual-main::after {
    position: absolute;
    inset: 35% 0 0;
    content: "";
    background: linear-gradient(transparent, rgba(5, 15, 28, 0.88));
}

.visual-main figcaption {
    position: absolute;
    right: 22px;
    bottom: 22px;
    left: 22px;
    z-index: 1;
    display: grid;
    gap: 6px;
}

.visual-main figcaption span {
    color: #ffcf70;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.visual-main figcaption strong {
    font-size: 24px;
}

.visual-side-top {
    border-top: 4px solid var(--coral) !important;
}

.visual-side-bottom {
    border-bottom: 4px solid var(--aqua) !important;
}

.projects {
    width: min(calc(100% - 48px), var(--max-width));
    margin: 0 auto;
    padding: 108px 0 118px;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
    align-items: end;
    gap: 60px;
    margin-bottom: 48px;
}

.section-heading h2,
.capabilities h2 {
    margin-top: 16px;
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.section-heading > p {
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.9;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.project-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(16, 35, 56, 0.06);
}

.project-card-wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
}

.project-card figure {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #dfe5e8;
}

.project-card-wide figure {
    aspect-ratio: 16 / 7.2;
}

.project-card figure::after {
    position: absolute;
    inset: 0;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.18);
    pointer-events: none;
}

.project-card img {
    height: 100%;
    object-fit: cover;
    transition: transform 420ms ease;
}

.project-card:hover img {
    transform: scale(1.025);
}

.project-content {
    padding: 30px 32px 34px;
}

.project-card-wide .project-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-meta span {
    padding: 6px 10px;
    color: #1e6670;
    background: #e7f5f6;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.project-content h3 {
    font-size: clamp(22px, 2.3vw, 31px);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.project-content p {
    margin-top: 16px;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.85;
}

.capabilities {
    color: var(--white);
    background: #16364a;
}

.capabilities-inner {
    width: min(calc(100% - 48px), var(--max-width));
    margin: 0 auto;
    padding: 104px 0;
}

.capabilities-intro {
    max-width: 660px;
}

.capability-list {
    margin-top: 54px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.capability-list article {
    padding: 38px 34px 42px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.capability-list article:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.capability-list span {
    color: #ffcf70;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.capability-list h3 {
    margin-top: 18px;
    font-size: 20px;
}

.capability-list p {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 15px;
    line-height: 1.85;
}

.site-footer {
    color: rgba(255, 255, 255, 0.72);
    background: #0b1928;
}

.footer-inner {
    width: min(calc(100% - 48px), var(--max-width));
    min-height: 130px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.footer-brand strong {
    color: var(--white);
    font-size: 16px;
    letter-spacing: 0.12em;
}

.footer-brand p,
.footer-legal p {
    margin-top: 8px;
    font-size: 13px;
}

.footer-legal {
    text-align: right;
}

.footer-legal a {
    display: inline-block;
    margin-top: 6px;
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.46);
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
    color: #ffcf70;
    border-bottom-color: #ffcf70;
}

@media (max-width: 980px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 54px;
        padding-top: 72px;
    }

    .hero-copy {
        max-width: 760px;
        min-width: 0;
    }

    .hero-visual {
        width: 100%;
        max-width: 100%;
        min-height: 430px;
    }

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

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

    .project-card-wide {
        grid-template-columns: 1fr;
    }

    .project-card-wide figure {
        aspect-ratio: 16 / 9;
    }

    .capability-list article {
        padding: 34px 24px 38px;
    }
}

@media (max-width: 720px) {
    .header-inner,
    .hero-inner,
    .projects,
    .capabilities-inner,
    .footer-inner {
        width: min(calc(100% - 32px), var(--max-width));
    }

    .header-inner {
        min-height: 68px;
    }

    .brand {
        width: 132px;
    }

    .header-note {
        font-size: 12px;
    }

    .hero {
        border-bottom-width: 4px;
    }

    .hero-inner {
        min-height: 0;
        padding: 54px 0 58px;
    }

    .hero h1 {
        margin-top: 18px;
        font-size: clamp(34px, 9.5vw, 46px);
        overflow-wrap: anywhere;
    }

    .hero-lead {
        margin-top: 22px;
        font-size: 15px;
        line-height: 1.8;
    }

    .hero-facts {
        margin-top: 34px;
        gap: 12px;
    }

    .hero-facts span {
        font-size: 13px;
    }

    .hero-visual {
        width: 100%;
        max-width: 100%;
        min-height: 330px;
        grid-template-columns: minmax(0, 1.45fr) minmax(96px, 0.75fr);
        gap: 10px;
    }

    .visual-main figcaption {
        right: 14px;
        bottom: 14px;
        left: 14px;
    }

    .visual-main figcaption strong {
        font-size: 18px;
    }

    .projects {
        padding: 72px 0 80px;
    }

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

    .section-heading h2,
    .capabilities h2 {
        font-size: 34px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .project-card-wide {
        grid-column: auto;
    }

    .project-card figure,
    .project-card-wide figure {
        aspect-ratio: 16 / 10;
    }

    .project-content,
    .project-card-wide .project-content {
        padding: 26px 24px 28px;
    }

    .capabilities-inner {
        padding: 74px 0;
    }

    .capability-list {
        margin-top: 38px;
        grid-template-columns: 1fr;
    }

    .capability-list article,
    .capability-list article:last-child {
        border-right: 1px solid rgba(255, 255, 255, 0.18);
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }

    .capability-list article:last-child {
        border-bottom: 0;
    }

    .footer-inner {
        min-height: 154px;
        padding: 30px 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 24px;
    }

    .footer-legal {
        text-align: left;
    }
}

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

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

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