:root {
    --page-bg: #0e141b;
    --page-bg-soft: #151d27;
    --surface: rgba(16, 23, 31, 0.76);
    --surface-strong: rgba(18, 28, 38, 0.9);
    --line: rgba(185, 161, 116, 0.24);
    --line-strong: rgba(206, 174, 119, 0.4);
    --text: #edf1f5;
    --text-soft: rgba(237, 241, 245, 0.72);
    --steel: #7f9ab9;
    --steel-bright: #a7bdd5;
    --brass: #cda86a;
    --brass-soft: #f0ddbc;
    --nav-height: 4.75rem;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 18%, rgba(128, 157, 194, 0.2), transparent 36%),
        radial-gradient(circle at 78% 16%, rgba(205, 168, 106, 0.18), transparent 28%),
        linear-gradient(180deg, #0b1118 0%, #0e141b 50%, #111821 100%);
    color: var(--text);
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 3.2rem 3.2rem;
    mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 72%);
}

a {
    color: inherit;
}

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

.site-nav,
.site-footer,
.hero-grid,
.section-shell,
.page-shell {
    width: min(1180px, calc(100% - 2.4rem));
    margin: 0 auto;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
    backdrop-filter: blur(18px);
}

.site-nav::before {
    content: "";
    position: absolute;
    inset: 0 -1.2rem;
    z-index: -1;
    background: linear-gradient(180deg, rgba(7, 10, 15, 0.88), rgba(7, 10, 15, 0.55));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.brand-lockup img {
    width: 2.8rem;
    height: 2.8rem;
    object-fit: contain;
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.35));
}

.site-links {
    display: inline-flex;
    align-items: center;
    gap: 1.35rem;
    flex-wrap: wrap;
}

.site-links a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.96rem;
}

.site-links a:hover,
.site-links a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.stack-links a:hover,
.stack-links a:focus-visible {
    color: var(--brass-soft);
}

.hero-shell {
    min-height: calc(100svh - var(--nav-height));
    display: grid;
    align-items: center;
    overflow: clip;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
    gap: clamp(2rem, 5vw, 4.8rem);
    align-items: center;
    padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 7vw, 5rem);
}

.eyebrow,
.service-label {
    margin: 0 0 0.85rem;
    color: var(--brass-soft);
    font-size: 0.84rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.role-statement h2,
.cta-panel h2,
.page-hero h1 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.hero-copy h1 {
    font-size: clamp(3.4rem, 9vw, 7.2rem);
    max-width: 11ch;
}

.hero-body,
.page-hero-copy p,
.role-statement p,
.cta-panel p,
.service-band p,
.sequence-grid p,
.detail-block p,
.detail-step p,
.detail-block li,
.detail-step li,
.site-footer p {
    color: var(--text-soft);
}

.hero-body {
    font-size: clamp(1.05rem, 1.8vw, 1.28rem);
    max-width: 40rem;
    margin: 1.35rem 0 0;
}

.hero-actions,
.cta-actions,
.stack-links {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    flex-wrap: wrap;
}

.hero-actions {
    margin-top: 1.8rem;
}

.hero-note {
    margin-top: 1rem;
    font-size: 0.96rem;
}

.hero-note a,
.detail-block a,
.detail-step a {
    color: var(--brass-soft);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.2rem;
    padding: 0.8rem 1.25rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

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

.button-primary {
    background: linear-gradient(135deg, var(--brass) 0%, var(--brass-soft) 100%);
    color: #10151b;
    box-shadow: 0 18px 45px rgba(195, 161, 103, 0.24);
}

.button-secondary {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.hero-visual,
.page-hero-mark {
    position: relative;
    isolation: isolate;
}

.hero-visual {
    min-height: clamp(24rem, 54vw, 42rem);
    transform: translate3d(var(--tilt-x, 0), var(--tilt-y, 0), 0);
    transition: transform 220ms ease-out;
}

.hero-rings,
.hero-gridlines {
    position: absolute;
    inset: 8% 10%;
    border-radius: 50%;
}

.hero-rings {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        inset 0 0 0 4rem rgba(255, 255, 255, 0.01),
        0 0 0 5rem rgba(205, 168, 106, 0.04);
}

.hero-gridlines {
    inset: 4%;
    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: 2.8rem 2.8rem;
    mask-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.9), transparent 72%);
}

.hero-mark,
.page-hero-mark img {
    position: absolute;
    inset: 0;
    margin: auto;
    width: min(90%, 38rem);
    object-fit: contain;
    filter:
        drop-shadow(0 35px 90px rgba(0, 0, 0, 0.42))
        drop-shadow(0 0 40px rgba(167, 189, 213, 0.12));
    animation: markFloat 7.5s ease-in-out infinite;
}

.page-hero-mark {
    min-height: 22rem;
}

.hero-caption {
    position: absolute;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(12, 18, 25, 0.72);
    color: var(--brass-soft);
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    backdrop-filter: blur(16px);
}

.hero-caption-top {
    top: 8%;
    left: 4%;
}

.hero-caption-right {
    top: 45%;
    right: 2%;
}

.hero-caption-bottom {
    bottom: 8%;
    left: 10%;
}

.section-shell {
    padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-shell-tight {
    padding-top: 1rem;
}

.section-heading {
    max-width: 42rem;
}

.section-heading h2,
.role-statement h2,
.cta-panel h2,
.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.6rem);
}

.service-band,
.sequence-grid,
.detail-grid,
.policy-layout,
.step-layout,
.cta-panel,
.detail-block,
.detail-step {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(19, 27, 36, 0.82), rgba(14, 20, 27, 0.8));
    box-shadow: var(--shadow);
}

.service-band,
.sequence-grid,
.detail-grid,
.policy-layout,
.step-layout {
    margin-top: 2rem;
    border-radius: 2rem;
    overflow: hidden;
}

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

.service-band article,
.sequence-grid article,
.detail-block,
.detail-step {
    padding: 1.8rem;
}

.service-band article + article,
.sequence-grid article + article {
    border-left: 1px solid var(--line);
}

.service-band h3,
.sequence-grid h3,
.detail-block h2,
.detail-step h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.role-statement,
.cta-panel {
    border-radius: 2rem;
    padding: clamp(1.8rem, 4vw, 3rem);
}

.sequence-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sequence-grid span,
.detail-step span {
    display: inline-flex;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #10151b;
    background: linear-gradient(135deg, var(--brass) 0%, var(--brass-soft) 100%);
    font-weight: 700;
}

.cta-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto;
    align-items: center;
    gap: 1.5rem;
}

.page-shell {
    padding: clamp(2rem, 5vw, 4rem) 0 5rem;
}

.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.8fr);
    gap: 2rem;
    align-items: center;
    padding: 2rem 0 1rem;
}

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

.detail-grid .detail-block + .detail-block {
    border-left: 1px solid var(--line);
}

.policy-layout,
.step-layout {
    display: grid;
    gap: 0;
}

.policy-layout .detail-block + .detail-block,
.step-layout .detail-step + .detail-step {
    border-top: 1px solid var(--line);
}

.stack-links {
    margin-top: 1rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
}

.stack-links a {
    text-decoration: none;
}

.site-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 0 2.6rem;
}

.site-footer p {
    margin: 0.4rem 0 0;
    max-width: 34rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 720ms ease,
        transform 720ms ease;
    transition-delay: var(--delay, 0ms);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes markFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@media (max-width: 980px) {
    .hero-grid,
    .page-hero,
    .cta-panel {
        grid-template-columns: 1fr;
    }

    .service-band,
    .sequence-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .service-band article + article,
    .sequence-grid article + article,
    .detail-grid .detail-block + .detail-block {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .hero-copy h1 {
        max-width: 12ch;
    }

    .hero-visual {
        min-height: 21rem;
    }
}

@media (max-width: 720px) {
    .site-nav,
    .site-footer,
    .hero-grid,
    .section-shell,
    .page-shell {
        width: min(100% - 1.35rem, 100%);
    }

    .site-nav {
        align-items: flex-start;
        flex-direction: column;
        padding-bottom: 1.15rem;
    }

    .site-nav::before {
        inset: 0 -0.7rem;
    }

    .brand-lockup {
        font-size: 0.8rem;
    }

    .hero-copy h1,
    .section-heading h2,
    .role-statement h2,
    .cta-panel h2,
    .page-hero h1 {
        font-size: clamp(2.6rem, 13vw, 4rem);
    }

    .hero-caption {
        position: static;
        display: inline-flex;
        margin: 0.35rem 0.35rem 0 0;
    }

    .hero-visual {
        padding-top: 1rem;
    }

    .hero-visual,
    .page-hero-mark {
        min-height: 18rem;
    }

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

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

    [data-reveal],
    .hero-visual,
    .hero-mark,
    .page-hero-mark img,
    .button {
        animation: none;
        transition: none;
    }
}
