/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}
* {
    margin: 0;
}
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}
html,
body {
    height: 100%;
}
body {
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.55;
    color: var(--steel-200);
    background: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img,
picture,
svg,
video {
    display: block;
    max-width: 100%;
}
img {
    height: auto;
}
button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}
button {
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
}
a {
    color: inherit;
    text-decoration: none;
}
:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.01em;
    color: var(--bone);
    text-wrap: balance;
}
h1 {
    font-size: var(--fs-display);
    font-weight: 800;
    letter-spacing: -0.02em;
}
h2 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
}
h3 {
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    letter-spacing: 0;
}
h4 {
    font-size: 1.125rem;
    letter-spacing: 0;
}

p {
    color: var(--steel-200);
    text-wrap: pretty;
    max-width: 65ch;
}
strong {
    color: var(--bone);
    font-weight: 600;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber);
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--amber);
}

/* ---------- Layout ---------- */
.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}
.container.narrow {
    max-width: var(--container-narrow);
}

section {
    position: relative;
    padding-block: var(--sp-9);
}
@media (max-width: 720px) {
    section {
        padding-block: var(--sp-8);
    }
}

.section-head {
    margin-bottom: var(--sp-7);
}
.section-head h2 {
    margin-top: var(--sp-3);
}
.section-head p {
    margin-top: var(--sp-4);
    color: var(--steel-200);
    font-size: var(--fs-md);
}

/* ---------- Utility ---------- */
.surface {
    background: var(--asphalt);
}
.surface-elevated {
    background: linear-gradient(180deg, var(--steel-900) 0%, var(--asphalt) 100%);
    border: 1px solid var(--steel-700);
    border-radius: var(--radius);
}
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--steel-500), transparent);
    border: 0;
}
.tabular {
    font-variant-numeric: tabular-nums;
}
.mono {
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}
.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reveal base state — JS will animate */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}
.no-motion [data-reveal],
.motion-ready [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
