* {
    box-sizing: border-box;
}

:root {
    --font-body: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    --font-display: Baskerville, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
    --font-ui: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    --text: #eaf7f2;
    --muted: rgba(234, 247, 242, 0.78);
    --surface: rgba(10, 18, 20, 0.86);
    --border: rgba(123, 255, 231, 0.16);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.58;
    background:
        radial-gradient(circle at top left, rgba(123, 255, 231, 0.14), transparent 22%),
        radial-gradient(circle at bottom right, rgba(88, 127, 255, 0.14), transparent 24%),
        linear-gradient(180deg, #091013, #030608);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(123, 255, 231, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(123, 255, 231, 0.045) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 82%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background:
        linear-gradient(180deg, rgba(123, 255, 231, 0.18), transparent 32%),
        repeating-linear-gradient(180deg,
            rgba(123, 255, 231, 0.12) 0 2px,
            transparent 2px 18px);
    transform: translateY(-3%);
    transition: opacity 180ms ease, transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-returning-top::after {
    opacity: 1;
    transform: translateY(-12%);
}

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

.page-header,
.page-main {
    width: min(1160px, calc(100% - 36px));
    margin: 0 auto;
}

.page-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 0;
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 0.62rem 0.95rem;
    border-radius: 999px;
    background: rgba(123, 255, 231, 0.92);
    color: #071012;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.page-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.page-nav a {
    padding: 0.72rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nav-label-mobile {
    display: none;
}

.page-nav a[aria-current="page"] {
    background: rgba(123, 255, 231, 0.16);
}

.page-main {
    display: grid;
    gap: 28px;
    padding: 0 0 42px;
    transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1), filter 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-returning-top .page-main {
    transform: scale(0.992);
    filter: saturate(1.08);
}

.hero-panel,
.service-panel {
    position: relative;
    min-height: calc(100vh - 118px);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 20px;
    align-items: stretch;
    scroll-margin-top: 118px;
}

.hero-copy,
.jump-nav,
.service-panel-copy,
.service-panel-side {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 32px;
    background: var(--surface);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

.eyebrow,
.card-label {
    margin: 0 0 0.8rem;
    font-family: var(--font-ui);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(234, 247, 242, 0.66);
}

h1,
h2 {
    margin: 0 0 0.6em;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.045em;
}

h1 {
    font-size: clamp(4rem, 10vw, 8rem);
}

h1 span {
    display: inline-block;
    max-width: 10ch;
    text-wrap: balance;
}

h2 {
    font-size: clamp(1.8rem, 2.8vw, 3rem);
}

p,
ul {
    margin: 0 0 1em;
    color: var(--muted);
}

ul {
    padding-left: 1.1em;
}

.lead {
    max-width: 34rem;
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
}

.action-row,
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.action-row {
    margin-top: 1.4rem;
}

.hero-panel .hero-copy,
.service-panel-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: rgba(123, 255, 231, 0.92);
    color: #071012;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.button-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid var(--border);
}

.hero-badges span {
    display: inline-flex;
    align-items: center;
    padding: 0.46rem 0.78rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.process-image {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
}

.jump-nav,
.service-panel-side {
    display: grid;
    gap: 12px;
}

.jump-nav {
    align-content: center;
}

.jump-nav a {
    display: block;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.service-panel-side {
    align-content: start;
    justify-content: start;
}

.service-panel-image {
    align-content: center;
}

.service-panel-copy p,
.service-panel-copy ul {
    max-width: 42rem;
}

@media (max-width: 920px) {
    .hero-panel,
    .service-panel {
        grid-template-columns: 1fr;
        min-height: auto;
    }
}

@media (max-width: 720px) {
    .page-header {
        position: static;
        top: auto;
        z-index: auto;
        width: auto;
        margin: 0;
        padding: 0;
        backdrop-filter: none;
    }

    .page-main {
        width: min(100%, calc(100% - 24px));
        padding-top: calc(92px + env(safe-area-inset-top, 0px));
        padding-bottom: calc(136px + env(safe-area-inset-bottom, 0px));
    }

    .brand {
        position: fixed;
        top: calc(env(safe-area-inset-top, 0px) + 10px);
        left: 12px;
        z-index: 31;
        min-width: 72px;
        padding: 0.78rem 0.72rem;
        text-align: center;
    }

    .page-nav {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
        z-index: 30;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: auto;
        gap: 8px;
        padding: 10px;
        border: 1px solid var(--border);
        border-radius: 26px;
        background: rgba(10, 18, 20, 0.92);
        box-shadow:
            0 -16px 36px rgba(0, 0, 0, 0.28),
            0 20px 42px rgba(0, 0, 0, 0.34);
    }

    .page-nav a {
        min-width: 0;
        min-height: 100%;
        padding: 0.78rem 0.45rem;
        text-align: center;
        white-space: normal;
        line-height: 1.1;
        font-size: 0.74rem;
        letter-spacing: 0.04em;
    }

    .nav-label-full {
        display: none;
    }

    .nav-label-mobile {
        display: inline;
    }

    .action-row {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hero-copy,
    .jump-nav,
    .service-panel-copy,
    .service-panel-side {
        padding: 22px;
        border-radius: 24px;
    }
}
