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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--color-text);
    background: var(--color-bg);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

button {
    color: inherit;
    font: inherit;
}

img,
svg {
    display: block;
}

img {
    max-width: 100%;
}

svg {
    width: 1.15em;
    height: 1.15em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

::selection {
    color: #ffffff;
    background: var(--color-accent);
}

:focus-visible {
    outline: 3px solid rgba(0, 113, 227, 0.42);
    outline-offset: 4px;
}

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.section {
    padding: var(--section-space) 0;
}

.section-label {
    margin: 0 0 1rem;
    color: var(--color-accent);
    font-size: 0.76rem;
    font-weight: 720;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.section-heading {
    margin-bottom: clamp(3rem, 6vw, 5rem);
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 4rem;
}

.section-heading > div {
    min-width: 0;
}

.section-heading h2,
.about-copy h2,
.journey-heading h2,
.resume-copy h2,
.connect-panel h2 {
    margin: 0;
    font-size: clamp(3rem, 5.6vw, 5.5rem);
    font-weight: 720;
    line-height: 0.98;
    letter-spacing: -0.062em;
    text-wrap: balance;
}

.section-heading > p,
.journey-heading > p {
    max-width: 430px;
    margin: 0 0 0.35rem;
    color: var(--color-muted);
    font-size: 1.02rem;
    line-height: 1.65;
}

.glass-surface,
.glass-control {
    border: 1px solid var(--glass-border);
    background: var(--glass-fill);
    box-shadow: var(--shadow-glass);
}

@supports (backdrop-filter: blur(1px)) {
    .glass-surface,
    .glass-control,
    .primary-nav {
        -webkit-backdrop-filter: blur(24px) saturate(165%);
        backdrop-filter: blur(24px) saturate(165%);
    }
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 2000;
    padding: 0.72rem 1rem;
    color: #ffffff;
    background: var(--color-text);
    border-radius: 12px;
    transform: translateY(-160%);
    transition: transform 180ms ease;
}

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

.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.js .reveal[data-delay="1"] { transition-delay: 90ms; }
.js .reveal[data-delay="2"] { transition-delay: 180ms; }

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