:root {
    --navy: #2a2b5f;
    --navy-deep: #201f54;
    --mint: #79e9c4;
    --mint-strong: #31d397;
    --coral: #f24f70;
    --background: #e9e9e9;
    --surface: #ffffff;
    --text: #282733;
    --muted: #666572;
    --border: #d4d3d7;
    --header-height: 80px;
    /* Global scroll distance for one animation step. Lower values bring scenes closer. */
    --scene-scroll-unit: 85vh;
    --content-width: 1200px;
    --reading-width: 760px;
    --radius: 18px;
    --shadow: 0 18px 55px rgb(31 30 72 / 0.12);
    --motion-ease: cubic-bezier(0.65, 0, 0.35, 1);
    --font-main: "IBM Plex Sans", Arial, sans-serif;
    /* Compatibility alias: former Condensed text now uses embedded IBM Plex Sans. */
    --font-condensed: var(--font-main);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    overflow-x: clip;
    color: var(--text);
    background: var(--background);
    font-family: var(--font-main);
    font-size: 18px;
    line-height: 1.6;
}

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

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:where(a, button):focus-visible {
    outline: 3px solid var(--mint-strong);
    outline-offset: 4px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--navy);
    line-height: 1.1;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.7rem, 7vw, 5.8rem);
}

h2 {
    margin-bottom: 24px;
    font-size: clamp(2rem, 4vw, 4.25rem);
}

p {
    text-wrap: pretty;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10000;
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--navy);
    background: var(--mint);
    font-weight: 700;
    transform: translateY(-160%);
    transition: transform 180ms var(--motion-ease);
}

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

.content-column {
    width: min(var(--reading-width), calc(100% - 40px));
    margin-inline: auto;
}

.eyebrow {
    margin-bottom: 12px;
    color: #14795f;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading--visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.site-footer {
    min-height: 180px;
    display: grid;
    place-items: center;
    padding: 40px 24px;
    color: #fff;
    background: var(--navy-deep);
    text-align: center;
}

.site-footer p {
    margin: 0;
}

.scroll-debug {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 5000;
    padding: 8px 12px;
    border-radius: 8px;
    color: #fff;
    background: rgb(32 31 84 / 0.94);
    font: 600 13px/1.3 var(--font-main);
    box-shadow: var(--shadow);
}

@media (max-width: 760px) {
    :root {
        --header-height: 66px;
        --scene-scroll-unit: 74vh;
    }

    body {
        font-size: 16px;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
