:root {
    color-scheme: light;
    --ink: #151716;
    --muted-ink: #5d6763;
    --paper: #f7f6f1;
    --surface: #ffffff;
    --line: #ddd8cd;
    --accent: #d53a2f;
    --accent-dark: #9f261e;
    --teal: #0f5b62;
    --gold: #c59b45;
    --shadow: 0 20px 60px rgba(28, 32, 30, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
            Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
}

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

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

.site-header {
    position: fixed;
    z-index: 30;
    top: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 28px;
    min-height: 74px;
    padding: 14px clamp(18px, 4vw, 54px);
    color: #fff;
    transition:
            background 180ms ease,
            box-shadow 180ms ease,
            color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
    color: var(--ink);
    background: rgba(247, 246, 241, 0.94);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(16px);
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 2px solid currentColor;
    font-weight: 800;
    letter-spacing: 0;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 17px;
    line-height: 1.1;
}

.brand small {
    color: currentColor;
    font-size: 11px;
    opacity: 0.78;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 28px;
    font-size: 15px;
}

.nav a {
    padding: 10px 0;
    opacity: 0.9;
}

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

.header-tools {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.lang-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    color: inherit;
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.site-header.is-scrolled .lang-toggle,
.site-header.is-open .lang-toggle {
    border-color: var(--ink);
}

.header-action,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid currentColor;
    padding: 0 20px;
    font-weight: 700;
    white-space: nowrap;
}

.header-action {
    border-color: rgba(255, 255, 255, 0.65);
}

.site-header.is-scrolled .header-action,
.site-header.is-open .header-action {
    border-color: var(--ink);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid currentColor;
    color: inherit;
    background: transparent;
}

.menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
}

.hero {
    position: relative;
    min-height: 92svh;
    display: grid;
    align-items: end;
    overflow: hidden;
    background: #1a1d1c;
}

.hero-media {
    position: absolute;
    inset: 0;
    background-image: url("https://images.unsplash.com/photo-1517457373958-b7bdd4587205?auto=format&fit=crop&w=2200&q=86");
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
            linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.34) 54%, rgba(0, 0, 0, 0.16)),
            linear-gradient(0deg, rgba(0, 0, 0, 0.48), transparent 48%);
}

.hero-content {
    position: relative;
    width: min(980px, 100%);
    padding: 140px clamp(20px, 6vw, 72px) 42px;
    color: #fff;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #f0b94e;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    max-width: 930px;
    margin: 0;
    font-size: clamp(40px, 8vw, 88px);
    line-height: 1.04;
    letter-spacing: 0;
}

h2 {
    margin: 0;
    font-size: clamp(28px, 4.2vw, 52px);
    line-height: 1.12;
    letter-spacing: 0;
}

h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.25;
}

.hero-copy {
    max-width: 700px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 21px);
}

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

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

.button.primary:hover {
    border-color: var(--accent-dark);
    background: var(--accent-dark);
}

.button.ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.64);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    width: min(780px, 100%);
    margin: 58px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(8px);
}

.hero-stats div {
    padding: 20px 22px;
    border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-stats div:last-child {
    border-right: 0;
}

.hero-stats dt {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.hero-stats dd {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.78);
}

.section,
.section-band {
    padding: clamp(72px, 9vw, 120px) clamp(20px, 5vw, 64px);
}

.section-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
    gap: clamp(32px, 7vw, 90px);
    align-items: start;
}

.intro p:last-child,
.equipment-layout p,
.contact-layout p {
    margin: 0;
    color: var(--muted-ink);
    font-size: 18px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 34px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
}

.service-card {
    display: grid;
    grid-template-rows: auto 1fr;
    background: var(--surface);
    box-shadow: 0 12px 36px rgba(32, 35, 34, 0.08);
}

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

.service-card div {
    display: grid;
    align-content: start;
    padding: 24px;
}

.service-card p,
.solution-list p {
    margin: 0;
    color: var(--muted-ink);
}

.muted {
    background: #ece8dd;
}

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

.solution-list article {
    min-height: 260px;
    padding: 28px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.4);
}

.solution-list span {
    display: block;
    margin-bottom: 58px;
    color: var(--teal);
    font-weight: 800;
}

.feature-strip {
    min-height: 360px;
    display: grid;
    place-items: center;
    padding: 64px 20px;
    color: #fff;
    text-align: center;
    background:
            linear-gradient(rgba(10, 18, 19, 0.72), rgba(10, 18, 19, 0.72)),
            url("https://images.unsplash.com/photo-1560439514-4e9645039924?auto=format&fit=crop&w=1800&q=84") center/cover;
}

.feature-strip p {
    margin: 0 0 10px;
    color: #f3c861;
    font-weight: 800;
    text-transform: uppercase;
}

.feature-strip h2 {
    max-width: 920px;
}

.work-block + .work-block {
    margin-top: clamp(44px, 7vw, 76px);
}

.work-subheading {
    margin-bottom: 18px;
}

.work-subheading h3 {
    font-size: clamp(22px, 3vw, 32px);
}

.gallery {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    grid-auto-rows: 230px;
    gap: 14px;
}

.gallery-item {
    position: relative;
    min-width: 0;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #1a1d1c;
}

.gallery-item img,
.media-placeholder {
    width: 100%;
    height: 100%;
}

.gallery-item img {
    object-fit: cover;
    transition: transform 220ms ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.media-placeholder {
    display: grid;
    place-items: center;
    min-height: 220px;
    padding: 24px;
    color: rgba(255, 255, 255, 0.84);
    background: linear-gradient(135deg, #0f5b62, #151716);
    font-weight: 800;
    text-align: center;
}

.gallery-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    gap: 4px;
    padding: 22px;
    color: #fff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.gallery-item span {
    color: #f3c861;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.gallery-item strong {
    font-size: 20px;
    line-height: 1.2;
}

.gallery-item button,
.case-card button,
.blog-card button {
    justify-self: start;
    border: 1px solid currentColor;
    margin-top: 14px;
    padding: 9px 13px;
    color: inherit;
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.case-card button,
.blog-card button {
    color: var(--teal);
}

.gallery-item:first-child {
    grid-row: span 2;
}

.gallery-item:nth-child(4) {
    grid-column: span 2;
}

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

.case-card {
    min-height: 230px;
    padding: 26px;
    border-top: 4px solid var(--teal);
    background: var(--surface);
    box-shadow: 0 12px 36px rgba(32, 35, 34, 0.08);
}

.case-card > img {
    width: calc(100% + 52px);
    max-width: none;
    height: 180px;
    margin: -26px -26px 22px;
    object-fit: cover;
}

.case-card p {
    margin: 0 0 30px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.case-card h4 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.25;
}

.case-card span {
    display: block;
    color: var(--muted-ink);
}

.logo-wall {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.logo-tile {
    display: grid;
    place-items: center;
    min-height: 112px;
    padding: 18px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: #6c6b66;
    background: rgba(255, 255, 255, 0.64);
    font-weight: 800;
    text-align: center;
}

.logo-tile img {
    max-width: 150px;
    max-height: 58px;
    object-fit: contain;
}

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

.blog-card {
    display: grid;
    grid-template-columns: 0.42fr 0.58fr;
    min-height: 260px;
    background: var(--surface);
    box-shadow: 0 12px 36px rgba(32, 35, 34, 0.08);
}

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

.blog-card div {
    display: grid;
    align-content: center;
    padding: 26px;
}

.blog-card p {
    margin: 0 0 18px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.blog-card h3 {
    margin: 0 0 12px;
}

.blog-card span {
    color: var(--muted-ink);
}

.has-modal {
    overflow: hidden;
}

.detail-modal {
    position: fixed;
    z-index: 80;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.detail-modal[hidden] {
    display: none;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}

.detail-dialog {
    position: relative;
    width: min(860px, 100%);
    max-height: min(760px, calc(100svh - 48px));
    overflow: auto;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.detail-close {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    color: #fff;
    background: rgba(0, 0, 0, 0.32);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.detail-dialog > img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

.detail-dialog > img[hidden] {
    display: none;
}

.detail-body {
    padding: clamp(24px, 4vw, 42px);
}

.detail-body > p {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.detail-body h2 {
    margin-bottom: 18px;
}

.detail-body div p {
    margin: 0 0 12px;
    color: var(--muted-ink);
}

.equipment-layout,
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.8fr);
    gap: clamp(32px, 8vw, 92px);
    align-items: start;
}

.equipment-catalog {
    display: grid;
    gap: 10px;
}

.equipment-group {
    border: 1px solid var(--line);
    background: var(--surface);
}

.equipment-group summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    min-height: 66px;
    padding: 0 22px;
    cursor: pointer;
    font-size: 19px;
    font-weight: 800;
    list-style: none;
}

.equipment-group summary::-webkit-details-marker {
    display: none;
}

.equipment-group summary small {
    display: grid;
    place-items: center;
    min-width: 32px;
    height: 32px;
    color: #fff;
    background: var(--teal);
    font-size: 13px;
}

.equipment-group[open] summary {
    border-bottom: 1px solid var(--line);
}

.equipment-group ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 22px;
    margin: 0;
    padding: 20px 22px 22px 40px;
    color: var(--muted-ink);
    font-weight: 700;
}

.contact-section {
    background: var(--teal);
    color: #fff;
}

.contact-section .eyebrow {
    color: #f3c861;
}

.contact-layout p {
    color: rgba(255, 255, 255, 0.78);
}

.contact-details {
    display: grid;
    gap: 10px;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

.contact-details address {
    display: grid;
    gap: 8px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-style: normal;
    font-weight: 600;
}

.contact-form {
    display: grid;
    gap: 16px;
    padding: clamp(22px, 4vw, 34px);
    color: var(--ink);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.contact-form label {
    display: grid;
    gap: 7px;
    font-size: 14px;
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #cfc9be;
    border-radius: 0;
    padding: 13px 14px;
    color: var(--ink);
    background: #fbfaf7;
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(213, 58, 47, 0.26);
    border-color: var(--accent);
}

.contact-form button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.field-hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.form-status {
    min-height: 24px;
    margin: 0;
    color: var(--muted-ink);
    font-size: 14px;
    font-weight: 700;
}

.form-status.is-success {
    color: #0f6d3d;
}

.form-status.is-error {
    color: var(--accent-dark);
}

.site-footer {
    padding: 28px clamp(20px, 5vw, 64px);
    color: rgba(255, 255, 255, 0.76);
    background: #101312;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-inner p {
    margin: 0;
}

.footer-inner div {
    display: flex;
    gap: 18px;
}

@media (max-width: 1120px) {
    .site-header {
        grid-template-columns: auto 1fr auto auto;
        gap: 10px;
    }

    .nav,
    .header-action {
        display: none;
    }

    .header-tools {
        justify-self: end;
    }

    .menu-button {
        display: inline-block;
    }

    .site-header.is-open .nav {
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        display: grid;
        justify-content: stretch;
        gap: 0;
        padding: 8px 20px 20px;
        background: rgba(247, 246, 241, 0.98);
    }

    .site-header.is-open .nav a {
        padding: 15px 0;
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 900px) {
    .hero {
        min-height: 88svh;
    }

    .hero-content {
        padding-top: 118px;
    }

    .split,
    .equipment-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

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

    .gallery {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 190px;
    }

    .gallery-item:first-child,
    .gallery-item:nth-child(4) {
        grid-column: auto;
        grid-row: auto;
    }

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

    .equipment-group ul {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 620px) {
    .site-header {
        min-height: 66px;
        padding: 11px 16px;
    }

    .brand small {
        display: none;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .lang-toggle,
    .menu-button {
        width: 40px;
        height: 40px;
    }

    .site-header.is-open .nav {
        top: 66px;
    }

    h1 {
        font-size: 38px;
    }

    .hero-copy {
        font-size: 16px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-stats div {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    }

    .hero-stats div:last-child {
        border-bottom: 0;
    }

    .section-heading {
        display: block;
    }

    .service-grid,
    .solution-list,
    .gallery {
        grid-template-columns: 1fr;
    }

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

    .blog-card img {
        min-height: 190px;
    }

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

    .solution-list article {
        min-height: 0;
    }

    .solution-list span {
        margin-bottom: 24px;
    }

    .footer-inner,
    .footer-inner div {
        align-items: flex-start;
        flex-direction: column;
    }
}
