/* ==========================================================================
   BASE — reset, typography, utilities
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button { font-family: inherit; cursor: pointer; }

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, p, figure { margin: 0; }

svg { display: block; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

@media (max-width: 720px) {
  .container { padding-inline: var(--space-4); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-stretch: condensed;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-accent);
  display: inline-block;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  text-transform: uppercase;
  line-height: 1.02;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  color: var(--color-brand-strong);
}

h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  letter-spacing: 0.01em;
}

/* Smaller display heading for narrower/two-column layouts where the
   default h2 clamp would wrap into too many short lines. */
.display-md {
  font-size: clamp(1.9rem, 3vw, 2.6rem) !important;
  line-height: 1.08 !important;
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-7);
}

.section-head p {
  margin-top: var(--space-4);
  font-size: 1.08rem;
  color: var(--color-ink-muted);
}

.lede {
  font-size: 1.08rem;
  color: var(--color-ink-muted);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -60px;
  background: var(--color-brand-strong);
  color: var(--white);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  top: var(--space-4);
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

section {
  position: relative;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}

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

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

.reveal-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}

.reveal-item:nth-child(2) { transition-delay: 80ms; }
.reveal-item:nth-child(3) { transition-delay: 160ms; }
.reveal-item:nth-child(4) { transition-delay: 240ms; }
.reveal-item:nth-child(5) { transition-delay: 320ms; }
.reveal-item:nth-child(6) { transition-delay: 400ms; }

/* Angular section transitions — a recurring Streetside motif */
.angle-top {
  clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%);
}

.angle-bottom-white {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 90px;
  background: var(--color-bg);
  clip-path: polygon(0 45%, 100% 0, 100% 100%, 0% 100%);
}

@media (max-width: 720px) {
  .angle-bottom-white { height: 48px; }
}
