:root {
    color-scheme: light;
    --ink: #111316;
    --muted: #5d6268;
    --line: #d8dadd;
    --paper: #ffffff;
    --soft: #f2f3f2;
    --gold: #b88800;
    --gold-dark: #745500;
    --teal: #006b70;
    --green: #2f6f4e;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
}

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

a {
    color: inherit;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    color: #fff;
    background: var(--ink);
    transform: translateY(-150%);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(17, 19, 22, 0.12);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
}

.header-inner,
.section-inner,
.hero-inner {
    width: min(calc(100% - 48px), var(--max-width));
    margin-inline: auto;
}

.header-inner {
    min-height: 76px;
    display: grid;
    grid-template-columns: 190px 1fr auto;
    align-items: center;
    gap: 28px;
}

.brand {
    display: block;
    width: 190px;
}

.brand img {
    width: 100%;
    aspect-ratio: 5 / 1;
    object-fit: cover;
    object-position: center;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.main-nav a,
.text-link,
.contact-mail {
    text-decoration: none;
    font-weight: 650;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.contact-mail:hover,
.contact-mail:focus-visible {
    color: var(--teal);
}

.header-action,
.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid var(--ink);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 750;
    transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.header-action:hover,
.header-action:focus-visible {
    color: #fff;
    background: var(--ink);
}

.hero {
    min-height: calc(82svh - 76px);
    display: grid;
    align-items: center;
    background-image: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.96) 38%, rgba(255,255,255,0.25) 68%, rgba(255,255,255,0) 100%), url("assets/cnc-parts.jpg");
    background-position: center, right center;
    background-repeat: no-repeat;
    background-size: cover, auto 92%;
    overflow: hidden;
}

.hero-inner {
    padding-block: 48px 76px;
}

.eyebrow,
.section-label {
    margin: 0 0 12px;
    color: var(--gold-dark);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 760px;
    margin: 34px 0 0;
    font-size: clamp(2.8rem, 5vw, 4.6rem);
    line-height: 1;
    letter-spacing: 0;
}

.hero-project-line {
    max-width: 820px;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: center;
    gap: 28px;
}

.hero-project-line .eyebrow {
    margin: 0;
}

.hero-support-logos {
    display: flex;
    align-items: center;
    gap: 22px;
}

.hero-support-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-support-logos .fasie-logo {
    width: 150px;
    max-height: 64px;
}

.hero-support-logos .platform-logo {
    width: 112px;
    max-height: 66px;
}

.hero-support-copy {
    max-width: 820px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(17, 19, 22, 0.18);
}

.hero-support-copy strong {
    display: block;
    font-size: 0.96rem;
}

.hero-support-copy p {
    margin: 4px 0 0;
    color: #454a4f;
    font-size: 0.84rem;
    line-height: 1.45;
}

.hero-lead {
    max-width: 700px;
    margin: 28px 0 0;
    font-size: clamp(1.35rem, 2.3vw, 2rem);
    font-weight: 650;
    line-height: 1.25;
}

.hero-title {
    max-width: 670px;
    margin: 22px 0 0;
    color: #34383c;
    font-size: 1.02rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 34px;
}

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

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

.button-primary:hover,
.button-primary:focus-visible {
    background: var(--ink);
    border-color: var(--ink);
}

.intro-layout h2,
.section-heading h2,
.workflow-heading h2,
.audience-layout h2,
.contact-layout h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.project-section,
.product-section,
.workflow-section,
.audience-section,
.contact-section {
    padding-block: 110px;
}

.intro-layout {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 84px;
}

.intro-copy p {
    margin: 0;
    font-size: 1.1rem;
}

.intro-copy p + p {
    margin-top: 22px;
}

.capability-list {
    margin-top: 76px;
    border-top: 1px solid var(--line);
}

.capability {
    display: grid;
    grid-template-columns: 70px minmax(220px, 0.6fr) minmax(0, 1fr);
    gap: 30px;
    align-items: baseline;
    padding-block: 28px;
    border-bottom: 1px solid var(--line);
}

.capability > span {
    color: var(--gold-dark);
    font-weight: 850;
}

.capability h3,
.capability p {
    margin: 0;
}

.capability h3 {
    font-size: 1.3rem;
}

.capability p {
    color: var(--muted);
}

.product-section {
    color: #fff;
    background: #181a1d;
}

.product-section .section-label {
    color: #f0c348;
}

.section-heading > p:last-child {
    max-width: 690px;
    margin: 22px 0 0;
    color: #c8cbd0;
}

.product-gallery {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 24px;
    margin-top: 54px;
}

.product-shot {
    margin: 0;
    overflow: hidden;
    border: 1px solid #3b4046;
    border-radius: 6px;
    background: #101214;
}

.product-shot img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
}

.product-shot figcaption {
    display: grid;
    gap: 4px;
    padding: 18px 20px 22px;
}

.product-shot figcaption span {
    color: #afb5bc;
    font-size: 0.92rem;
}

.workflow-section {
    background: #f5f1e8;
}

.workflow-heading {
    display: grid;
    grid-template-columns: 0.45fr 1.55fr;
    gap: 40px;
    align-items: start;
}

.workflow-heading .section-label {
    padding-top: 10px;
}

.workflow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0;
    margin-top: 68px;
    list-style: none;
    border-top: 1px solid #c9c2b4;
}

.workflow li {
    min-width: 0;
    padding: 28px 24px 0 0;
    border-right: 1px solid #c9c2b4;
}

.workflow li + li {
    padding-left: 24px;
}

.workflow li:last-child {
    border-right: 0;
}

.workflow li > span {
    display: block;
    margin-bottom: 34px;
    color: var(--teal);
    font-size: 2.6rem;
    font-weight: 850;
}

.workflow strong {
    display: block;
    font-size: 1.08rem;
}

.workflow p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.audience-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 84px;
}

.audience-list {
    padding: 0;
    margin: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.audience-list li {
    position: relative;
    padding: 20px 0 20px 34px;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
}

.audience-list li::before {
    position: absolute;
    top: 27px;
    left: 2px;
    width: 10px;
    height: 10px;
    background: var(--green);
    content: "";
}

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

.contact-section .section-label {
    color: #d7f1ef;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 72px;
    align-items: end;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

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

.contact-actions .button-primary:hover,
.contact-actions .button-primary:focus-visible {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
}

.contact-mail {
    color: #fff;
    font-size: 1.2rem;
}

.site-footer {
    padding-block: 30px;
    color: #c7c9cd;
    background: #111316;
    font-size: 0.82rem;
}

.footer-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 30px;
}

.footer-layout p {
    margin: 0;
}

.asset-credit {
    flex-basis: 100%;
    color: #8f949a;
    font-size: 0.72rem;
}

@media (max-width: 980px) {
    .header-inner {
        grid-template-columns: 170px 1fr auto;
        gap: 18px;
    }

    .brand {
        width: 170px;
    }

    .main-nav a:nth-child(2) {
        display: none;
    }

    .hero {
        min-height: 720px;
        background-image: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.93) 52%, rgba(255,255,255,0.25) 100%), url("assets/cnc-parts.jpg");
        background-position: center, right bottom;
        background-size: cover, auto 70%;
    }

    .intro-layout,
    .audience-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .workflow-heading {
        grid-template-columns: 1fr;
        gap: 8px;
    }

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

    .workflow li:nth-child(2) {
        border-right: 0;
    }

    .workflow li:nth-child(n + 3) {
        margin-top: 40px;
        border-top: 1px solid #c9c2b4;
    }

    .product-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 16px;
    }

    .header-inner,
    .section-inner,
    .hero-inner {
        width: min(calc(100% - 32px), var(--max-width));
    }

    .header-inner {
        min-height: 70px;
        grid-template-columns: 150px 1fr;
    }

    .brand {
        width: 150px;
    }

    .main-nav {
        display: none;
    }

    .header-action {
        min-height: 40px;
        justify-self: end;
        padding: 8px 12px;
        font-size: 0.82rem;
    }

    .hero {
        min-height: 670px;
        background-image: linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(255,255,255,0.93) 58%, rgba(255,255,255,0.45) 100%), url("assets/cnc-parts.jpg");
        background-position: center, right bottom;
        background-size: cover, auto 44%;
    }

    .hero-inner {
        align-self: start;
        padding-block: 24px 36px;
    }

    .hero h1 {
        margin-top: 24px;
        font-size: 2.5rem;
        overflow-wrap: anywhere;
    }

    .hero-lead {
        margin-top: 18px;
        font-size: 1.18rem;
    }

    .hero-title {
        margin-top: 14px;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-top: 22px;
    }

    .project-section,
    .product-section,
    .workflow-section,
    .audience-section,
    .contact-section {
        padding-block: 72px;
    }

    .hero-project-line {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero-support-logos {
        gap: 18px;
    }

    .hero-support-logos .fasie-logo {
        width: 130px;
    }

    .hero-support-logos .platform-logo {
        width: 96px;
    }

    .capability {
        grid-template-columns: 42px 1fr;
        gap: 14px;
    }

    .capability p {
        grid-column: 2;
    }

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

    .workflow li,
    .workflow li + li {
        display: grid;
        grid-template-columns: 54px 1fr;
        gap: 16px;
        padding: 22px 0;
        border-right: 0;
        border-bottom: 1px solid #c9c2b4;
    }

    .workflow li:nth-child(n + 3) {
        margin-top: 0;
        border-top: 0;
    }

    .workflow li > span {
        margin: 0;
        font-size: 2rem;
    }

    .footer-layout {
        display: grid;
    }
}

@media (max-width: 500px) {
    .header-inner {
        grid-template-columns: 1fr;
    }

    .header-action {
        display: none;
    }
}

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

    .header-action,
    .button {
        transition: none;
    }
}
