/* ============================================================
   Base / Reset / Layout-Primitives
   ============================================================ */

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

* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 75% -10%, rgba(212,175,55,0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(212,175,55,0.05), transparent 55%),
    var(--black);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, textarea, select, button { font: inherit; color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--gold); color: var(--on-gold); }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--gold-deep), var(--gold));
  border-radius: 99px;
  border: 3px solid var(--black);
}

/* --- Layout helpers --- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--maxw-narrow); }

.section { padding-block: var(--section-y); position: relative; }

.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 2rem; }

.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.8rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

.text-center { text-align: center; }
.muted { color: var(--muted); }
.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: absolute; left: 1rem; top: -100px;
  background: var(--gold); color: var(--on-gold);
  padding: .6rem 1rem; border-radius: 8px; z-index: 2000; font-weight: 600;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 1rem; }

/* Eyebrow / section heads */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--fs-eyebrow); letter-spacing: 0.28em; text-transform: uppercase;
  font-weight: 600; color: var(--gold-2);
}
.eyebrow::before {
  content: ""; width: 30px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.section-head { max-width: 760px; margin-inline: auto; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head .eyebrow::before { background: var(--gold); }
.section-head h2 { font-size: var(--fs-h2); margin-top: .8rem; }
.section-head p { color: var(--muted); margin-top: .9rem; }

.divider-gold {
  height: 1px; border: 0; width: 100%;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
