/* ============================================================
   One Point Diagnostic — Base (reset, typography, layout, a11y)
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink-2);
    background: var(--bg);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { text-wrap: pretty; }

img, svg, canvas { display: block; max-width: 100%; }

a { color: var(--navy-600); text-decoration: none; }

button {
    font: inherit;
    cursor: pointer;
    border: 0;
    background: none;
}

:focus-visible {
    outline: 3px solid var(--gold-500);
    outline-offset: 2px;
    border-radius: 4px;
}

::selection { background: var(--navy-100); }

.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
}

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--soft { background: var(--bg-soft); }

/* Section header pattern (eyebrow + title + sub) */
.section-head { max-width: 640px; margin-inline: auto; text-align: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head .eyebrow { margin-bottom: .9rem; }
.section-head p { color: var(--ink-3); margin-top: .75rem; font-size: 1.06rem; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .38rem 1rem;
    border-radius: var(--r-full);
    background: var(--gold-50);
    color: var(--gold-700);
    border: 1px solid var(--gold-100);
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Scroll reveal — hidden ONLY when JS is running (html.js),
   so content is never invisible without/before JS. */
html.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

html.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    html.js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -48px;
    left: 12px;
    z-index: 100;
    padding: .6rem 1rem;
    background: var(--navy-900);
    color: #fff;
    border-radius: var(--r-sm);
    transition: top .2s var(--ease);
}

.skip-link:focus { top: 12px; }
