/* ==========================================================
   Base: reset, typography, layout helpers
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hdr-h) + 12px);
  background: var(--black);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  /* Room for the mobile action bar */
  padding-bottom: calc(var(--abar-h) + env(safe-area-inset-bottom));
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

img, svg, video, canvas { 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; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
strong, b { font-weight: 600; }
[hidden] { display: none !important; }

::selection { background: var(--lime); color: var(--black); }

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

/* ---------- Type ---------- */

h1, h2, h3, .display {
  font-family: var(--f-display);
  font-weight: 900;
  line-height: .95;
  letter-spacing: .005em;
  text-transform: uppercase;
  text-wrap: balance;
}
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.05; }
h4 { font-weight: 600; font-size: 1.05rem; }

p { text-wrap: pretty; }
.lead { font-size: var(--fs-lead); color: var(--white); opacity: .86; max-width: 38ch; }
.muted { color: var(--grey); }
.lime { color: var(--lime); }

.label, .eyebrow {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
  line-height: 1.4;
}
.eyebrow { display: inline-flex; align-items: center; gap: .6em; color: var(--lime); }
.eyebrow::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  flex: none;
}

.link {
  display: inline-flex; align-items: center; gap: .45em;
  color: var(--white);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.link:hover { color: var(--lime); border-color: var(--lime); }
.link .icon { width: 1.05em; height: 1.05em; }

.arrow-link {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; color: var(--lime);
  min-height: 48px;
}
.arrow-link .icon { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.arrow-link:hover .icon { transform: translateX(4px); }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); position: relative; }
.section--band { background: var(--charcoal); border-block: 1px solid var(--line); }
.section--tight { padding-block: calc(var(--section) * .6); }

.sec-head { display: grid; gap: 16px; margin-bottom: clamp(24px, 4vw, 48px); max-width: 760px; }
.sec-head p { color: var(--grey); font-size: var(--fs-lead); max-width: 46ch; }
.sec-head--row { max-width: none; }
@media (min-width: 900px) {
  .sec-head--row { grid-template-columns: 1fr auto; align-items: end; }
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--lime); color: var(--black); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.show-sm { display: inline; }
.hide-sm { display: none; }
@media (min-width: 560px) {
  .show-sm { display: none; }
  .hide-sm { display: inline; }
}

/* ---------- Reveal on scroll (only when JS runs; content is visible otherwise) ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.js [data-reveal="left"] { transform: translateX(-56px); }
.js [data-reveal="right"] { transform: translateX(56px); }
.js [data-reveal="zoom"] { transform: scale(.9); }
.js [data-reveal="tilt"] { transform: perspective(1000px) rotateX(14deg) translateY(36px); transform-origin: 50% 100%; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

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