:root {
    --ink: #1e2428;
    --muted: #5d666b;
    --paper: #f4f1ea;
    --concrete: #dfddd6;
    --steel: #303940;
    --steel-2: #4a555c;
    --signal: #e3a923;
    --signal-dark: #9a6d0c;
    --blue: #0b4f8a;
    --blue-dark: #06345d;
    --blue-soft: rgba(11, 79, 138, 0.12);
    --white: #fffdf8;
    --line: rgba(30, 36, 40, 0.14);
    --shadow: 0 24px 70px rgba(30, 36, 40, 0.16);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(227, 169, 35, 0.08), transparent 28rem),
        repeating-linear-gradient(90deg, rgba(30, 36, 40, 0.025) 0 1px, transparent 1px 78px),
        var(--paper);
    font-family: Aptos, Candara, "Segoe UI", sans-serif;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.32;
    background-image:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.8), transparent 18rem),
        radial-gradient(circle at 90% 5%, rgba(48, 57, 64, 0.1), transparent 22rem);
    z-index: -1;
}

body.is-loading {
    cursor: progress;
}

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

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 74px;
    padding: 14px clamp(18px, 4vw, 56px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.54);
    background: rgba(244, 241, 234, 0.88);
    backdrop-filter: blur(18px);
    animation: headerDrop 620ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    font-family: Bahnschrift, "DIN Condensed", Aptos, sans-serif;
    font-size: clamp(1rem, 2vw, 1.18rem);
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: uppercase;
}

.brand-logo {
    width: 58px;
    height: 46px;
    object-fit: contain;
    padding: 3px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(30, 36, 40, 0.1);
    border-radius: 6px;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.brand:hover .brand-logo,
.brand:focus-visible .brand-logo {
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 10px 24px rgba(30, 36, 40, 0.14);
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--steel);
    border-radius: 6px;
    box-shadow: inset 0 -5px 0 rgba(227, 169, 35, 0.55);
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 18px;
    color: var(--muted);
    font-size: 0.94rem;
}

.main-nav a {
    position: relative;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    background: var(--signal);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--ink);
    border-color: var(--signal);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hero {
    width: min(1180px, calc(100% - 36px));
    min-height: calc(100vh - 74px);
    margin: 0 auto;
    padding: clamp(34px, 7vw, 82px) 0 42px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
}

.hero-copy {
    min-width: 0;
    padding-top: 18px;
}

.hero-load {
    animation: heroRise 850ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}

.hero-load-late {
    animation-delay: 260ms;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--signal-dark);
    font-family: Bahnschrift, "DIN Condensed", Aptos, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: Bahnschrift, "DIN Condensed", Aptos, sans-serif;
    letter-spacing: 0;
    line-height: 0.98;
}

h1 {
    max-width: 820px;
    font-size: clamp(3rem, 6.4vw, 5.7rem);
    text-transform: uppercase;
}

h2 {
    font-size: clamp(2rem, 4.4vw, 4.2rem);
    text-transform: uppercase;
}

h3 {
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    text-transform: uppercase;
}

.lead {
    max-width: 640px;
    margin: 24px 0 0;
    color: var(--steel-2);
    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

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

.button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: Bahnschrift, Aptos, sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), #1268ad);
    box-shadow: 0 14px 34px rgba(11, 79, 138, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    box-shadow: 0 18px 42px rgba(11, 79, 138, 0.36);
}

.button-secondary {
    color: var(--ink);
    background: rgba(255, 253, 248, 0.56);
    border-color: var(--line);
}

.hero-visual {
    position: relative;
    min-width: 0;
    min-height: 440px;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    isolation: isolate;
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 44%, rgba(30, 36, 40, 0.36)),
        linear-gradient(120deg, rgba(227, 169, 35, 0.24), transparent 38%);
    z-index: 1;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: -35%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.34) 48%, transparent 62%);
    transform: translateX(-68%) rotate(4deg);
    animation: siteSweep 1300ms cubic-bezier(0.22, 1, 0.36, 1) 760ms both;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    min-height: 440px;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    width: 142px;
    padding: 18px;
    color: var(--white);
    background: rgba(30, 36, 40, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    animation: badgePop 680ms cubic-bezier(0.16, 1, 0.3, 1) 900ms both;
}

.hero-badge strong {
    display: block;
    font-family: Bahnschrift, Aptos, sans-serif;
    font-size: 3.5rem;
    line-height: 0.86;
}

.hero-badge span {
    display: block;
    margin-top: 8px;
    color: rgba(255, 253, 248, 0.76);
    font-size: 0.82rem;
    text-transform: uppercase;
}

.section {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(58px, 9vw, 108px) 0;
}

.section-tight {
    padding-top: 0;
    padding-bottom: 28px;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
    border: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.66);
}

.metric-row div {
    min-width: 0;
    padding: 24px;
    border-right: 1px solid var(--line);
}

.metric-row div:last-child {
    border-right: 0;
}

.metric-row strong,
.metric-row span {
    display: block;
}

.metric-row strong {
    font-family: Bahnschrift, Aptos, sans-serif;
    font-size: 1.18rem;
    text-transform: uppercase;
}

.metric-row span {
    margin-top: 6px;
    color: var(--muted);
    overflow-wrap: break-word;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 34px;
}

.section-heading p:last-child {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.06rem;
}

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

.project-overview {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.project-image {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--steel);
}

.project-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, transparent 48%, rgba(30, 36, 40, 0.28)),
        linear-gradient(135deg, rgba(11, 79, 138, 0.2), transparent 44%);
}

.project-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.project-copy {
    min-width: 0;
}

.project-copy p:last-of-type {
    max-width: 660px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 1.06rem;
}

.project-points {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-points span {
    padding: 10px 12px;
    color: var(--blue-dark);
    background: var(--blue-soft);
    border: 1px solid rgba(11, 79, 138, 0.18);
    border-radius: 6px;
    font-family: Bahnschrift, Aptos, sans-serif;
    font-size: 0.86rem;
    font-weight: 800;
    text-transform: uppercase;
    overflow-wrap: break-word;
}

.service-card {
    min-height: 304px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 253, 248, 0.72);
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(227, 169, 35, 0.58);
    background: var(--white);
    box-shadow: 0 18px 46px rgba(30, 36, 40, 0.12);
}

.service-card > span {
    color: var(--signal-dark);
    font-family: Bahnschrift, Aptos, sans-serif;
    font-weight: 800;
}

.service-card p {
    margin: 28px 0 0;
    color: var(--muted);
}

.work-band {
    width: 100%;
    max-width: none;
    padding-left: max(18px, calc((100vw - 1180px) / 2));
    padding-right: max(18px, calc((100vw - 1180px) / 2));
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
    gap: clamp(28px, 5vw, 70px);
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(227, 169, 35, 0.16), transparent 40%),
        var(--steel);
}

.work-copy p:last-child {
    margin-top: 22px;
    color: rgba(255, 253, 248, 0.72);
}

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

.process-list div {
    min-height: 178px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.process-list div:hover {
    transform: translateY(-4px);
    border-color: rgba(227, 169, 35, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.process-list span {
    color: var(--signal);
    font-family: Bahnschrift, Aptos, sans-serif;
    font-weight: 800;
}

.process-list strong {
    display: block;
    margin-top: 18px;
    font-family: Bahnschrift, Aptos, sans-serif;
    font-size: 1.28rem;
    text-transform: uppercase;
}

.process-list p {
    margin: 8px 0 0;
    color: rgba(255, 253, 248, 0.72);
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(360px, 1fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
}

.contact-intro {
    position: sticky;
    min-width: 0;
    top: 112px;
}

.contact-intro > p {
    color: var(--muted);
}

.contact-facts {
    margin-top: 28px;
    border-top: 1px solid var(--line);
}

.contact-facts p {
    margin: 0;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.contact-facts strong {
    display: block;
    font-family: Bahnschrift, Aptos, sans-serif;
    text-transform: uppercase;
}

.contact-form {
    min-width: 0;
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 253, 248, 0.82);
    box-shadow: var(--shadow);
}

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

label {
    display: block;
    margin-bottom: 16px;
}

label > span {
    display: block;
    margin-bottom: 7px;
    color: var(--steel);
    font-family: Bahnschrift, Aptos, sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(30, 36, 40, 0.2);
    border-radius: 6px;
    padding: 13px 14px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.86);
    font: inherit;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(227, 169, 35, 0.32);
    border-color: var(--signal-dark);
}

.privacy-check {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: var(--muted);
    font-size: 0.94rem;
}

.privacy-check input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

.privacy-check span {
    margin: 0;
    color: var(--muted);
    font-family: inherit;
    font-size: inherit;
    font-weight: 400;
    text-transform: none;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-submit {
    width: 100%;
}

.notice {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: var(--radius);
}

.notice ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.notice.success {
    color: #173720;
    background: #d9ecd7;
    border: 1px solid #a4d1a0;
}

.notice.error {
    color: #55200f;
    background: #f4ddd3;
    border: 1px solid #e1a48d;
}

.site-footer {
    padding: clamp(36px, 7vw, 70px) max(18px, calc((100vw - 1180px) / 2));
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: clamp(24px, 5vw, 64px);
    color: rgba(255, 253, 248, 0.76);
    background: #171c20;
}

.site-footer h2 {
    margin-bottom: 18px;
    color: var(--white);
    font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.site-footer p {
    margin: 0 0 14px;
}

@media (max-width: 980px) {
    .hero,
    .work-band,
    .project-overview,
    .contact-section,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

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

    .metric-row div:nth-child(2) {
        border-right: 0;
    }

    .metric-row div:nth-child(3) {
        grid-column: 1 / -1;
        border-top: 1px solid var(--line);
    }

    .contact-intro {
        position: static;
    }
}

@media (max-width: 700px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .main-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .hero {
        width: calc(100% - 28px);
        max-width: calc(100vw - 28px);
        padding-top: 28px;
        overflow: hidden;
    }

    .hero-copy {
        width: 100%;
        max-width: calc(100vw - 28px);
    }

    h1 {
        font-size: clamp(2.5rem, 11vw, 3.6rem);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-visual,
    .hero-visual img {
        width: 100%;
        max-width: calc(100vw - 28px);
        min-height: 330px;
    }

    .project-overview {
        gap: 22px;
    }

    .project-image {
        order: 1;
    }

    .project-copy {
        order: 2;
        max-width: calc(100vw - 28px);
        overflow: hidden;
    }

    .project-copy p:last-of-type {
        max-width: 31ch;
    }

    .project-image img {
        max-height: 430px;
    }

    .lead {
        width: auto;
        max-width: 30ch;
        overflow-wrap: break-word;
    }

    .hero-badge {
        left: 10px;
        right: auto;
        bottom: 10px;
        width: 112px;
        padding: 13px;
    }

    .hero-badge strong {
        font-size: 2.65rem;
    }

    .hero-badge span {
        font-size: 0.66rem;
    }

    .metric-row,
    .service-grid,
    .process-list,
    .field-grid {
        grid-template-columns: 1fr;
    }

    .metric-row div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 22px 18px;
    }

    .metric-row div:last-child {
        border-bottom: 0;
    }

    .metric-row span {
        max-width: 28ch;
    }

    .section {
        width: calc(100% - 28px);
        max-width: 1180px;
    }

    .work-band,
    .site-footer {
        width: 100%;
    }

    .service-card {
        min-height: 230px;
    }
}

.animations-ready .reveal,
.animations-ready .reveal-card,
.animations-ready .stagger-item {
    opacity: 0;
    transform: translateY(34px);
    transition:
        opacity 720ms cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 720ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.animations-ready .reveal-card {
    transform: translateY(30px) scale(0.985);
}

.animations-ready .stagger-item {
    transform: translateY(22px);
}

.animations-ready .is-visible,
.animations-ready .is-visible .stagger-item,
.animations-ready .reveal-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.animations-ready .is-visible .stagger-item:nth-child(2) {
    transition-delay: 100ms;
}

.animations-ready .is-visible .stagger-item:nth-child(3) {
    transition-delay: 190ms;
}

.animations-ready .reveal-card:nth-child(2) {
    transition-delay: 70ms;
}

.animations-ready .reveal-card:nth-child(3) {
    transition-delay: 130ms;
}

.animations-ready .reveal-card:nth-child(4) {
    transition-delay: 190ms;
}

.animations-ready .reveal-card:nth-child(5) {
    transition-delay: 250ms;
}

.animations-ready .reveal-card:nth-child(6) {
    transition-delay: 310ms;
}

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

@keyframes heroRise {
    from {
        opacity: 1;
        transform: translateY(38px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes siteSweep {
    from {
        transform: translateX(-68%) rotate(4deg);
    }
    to {
        transform: translateX(72%) rotate(4deg);
    }
}

@keyframes badgePop {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

    .animations-ready .reveal,
    .animations-ready .reveal-card,
    .animations-ready .stagger-item {
        opacity: 1;
        transform: none;
    }
}
