/* ============================================================
   Base / reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--on-light);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }

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

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -0.015em; }
h1 em, h2 em, h3 em { font-style: italic; }

.serif { font-family: var(--serif); }
.mono {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--step--1);
}

/* Layout helpers */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(5rem, 10vw, 9rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--mono); text-transform: uppercase;
  font-size: var(--step--1); letter-spacing: 0.22em;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); opacity: 0.6; }

/* Accent slash mark (GTE ///) */
.slash { display: inline-block; color: var(--accent-2); font-style: normal; letter-spacing: -0.06em; transform: skewX(-12deg); }

/* Buttons */
.btn {
  --bg: var(--accent); --fg: #fff;
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.85em 1.5em; border-radius: 100px;
  background: var(--bg); color: var(--fg);
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: var(--step--1);
  transition: transform .4s var(--ease), background .3s, color .3s, box-shadow .4s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -14px rgba(194,80,44,0.7); }
.btn--ghost { --bg: transparent; --fg: currentColor; border: 1px solid currentColor; }
/* On a dark surface the ghost fills cream → text must go ink (and vice-versa) */
.btn--ghost:hover { box-shadow: none; background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn--ghost.on-light:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--dark { --bg: var(--ink); --fg: var(--cream); }
.btn--dark:hover { box-shadow: 0 14px 34px -16px rgba(0,0,0,.6); }

/* Reveal animation base (JS adds .is-in) */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

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