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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Barlow', sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--color-gold) rgba(255, 255, 255, 0.06);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-gold-strong), var(--color-gold));
    border: 2px solid var(--color-bg);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #f0bf59, var(--color-gold-strong));
}

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

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

button,
input,
textarea {
    font: inherit;
}

button {
    border: 0;
    background: none;
}

main {
    position: relative;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.container--narrow {
    width: min(760px, calc(100vw - 48px));
}

.section {
    padding: 104px 0;
}

.section--dark {
    background: var(--color-bg-soft);
}

.section--deep {
    background: #0f0d0a;
}

.section--surface {
    background: var(--color-surface);
}

.section-kicker {
    margin: 0 0 14px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-gold);
}

.section-title {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 4vw, 3.35rem);
    font-weight: 400;
    line-height: 1.06;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}

.section-heading__aside {
    display: grid;
    justify-items: end;
    gap: 14px;
}

.section-note {
    max-width: 360px;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button--solid {
    background: var(--color-gold);
    color: var(--color-bg);
}

.button--solid:hover {
    background: var(--color-gold-strong);
}

.button--ghost {
    border-color: rgba(232, 180, 72, 0.45);
    color: var(--color-text);
}

.button--ghost:hover {
    border-color: var(--color-gold-strong);
    color: var(--color-gold-strong);
}

.button--dark {
    background: var(--color-bg);
    color: var(--color-gold-strong);
}

.button--sm {
    min-height: 42px;
    padding: 0 18px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-gold);
    border-bottom: 1px solid rgba(232, 180, 72, 0.28);
    padding-bottom: 5px;
}

.text-link::after {
    content: '→';
    transition: transform 0.2s ease;
}

.text-link:hover::after {
    transform: translateX(4px);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
