/* ============================================================
   Highlight bands — marquee + inverted statement

   These two exist to break the page's rhythm. Everything else is a
   calm ruled list; without a peak, ten screens of correct typography
   still read as a wall.
   ============================================================ */

/* ── Marquee ──────────────────────────────────────────────── */

.marquee {
  position: relative;
  padding-block: var(--space-4);
  border-block: 1px solid var(--border);
  background: var(--bg-sunken);
  overflow: hidden;
}

.marquee__viewport {
  display: flex;
  width: max-content;
  /* Fade at both ends so the text dissolves rather than being guillotined
     by the viewport edge. */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
  padding: 0 0 0 var(--space-5);
  margin: 0;
  flex: none;
  /* Each track is exactly half the viewport width, so translating by -50%
     lands the duplicate precisely where the original began — seamless. */
  animation: marquee-scroll 46s linear infinite;
}

@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.marquee__item {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex: none;
}

.marquee__text {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.4vw + 0.75rem, 1.75rem);
  font-weight: 300;
  letter-spacing: var(--tracking-tight);
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

.marquee:hover .marquee__text { color: var(--text); }

.marquee__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* A marquee is decoration; it must never be the reason someone cannot read
   the page. Under reduced-motion it stops and wraps into a static list. */
@media (prefers-reduced-motion: reduce) {
  .marquee__viewport {
    width: 100%;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .marquee__track { animation: none; flex-wrap: wrap; padding-left: 0; }
  .marquee__track[aria-hidden="true"] { display: none; }
  .marquee__text { white-space: normal; }
}

/* ── Statement ────────────────────────────────────────────── */

/* True inversion in both themes, for free: --text and --bg already swap with
   the theme, so using them backwards yields a dark band on a light page and a
   light band on a dark one. No extra tokens, and contrast stays at 16.79:1
   either way. */
.statement {
  position: relative;
  background: var(--text);
  color: var(--bg);
  padding-block: clamp(5rem, 11vh, 10rem);
  overflow: hidden;
  isolation: isolate;
}

/* Ruled field again, drawn in the inverted ink so it reads on both themes. */
.statement__field {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(
    to bottom,
    currentColor 0,
    currentColor 1px,
    transparent 1px,
    transparent 4.5rem
  );
  opacity: 0.09;
  -webkit-mask-image: radial-gradient(100% 75% at 50% 50%, #000 30%, transparent 80%);
  mask-image: radial-gradient(100% 75% at 50% 50%, #000 30%, transparent 80%);
}

.statement__kicker { color: inherit; opacity: 0.6; }
.statement__kicker::before { background: currentColor; }

.statement__quote { margin: var(--space-5) 0 0; }

.statement__text {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw + 0.75rem, 4.25rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: var(--tracking-display);
  max-width: 18ch;
}

.statement__line { display: block; }

/* Brass is unusable here: on the inverted band the accent would sit against
   its own theme's background and fail. Italic + the page's own inverted ink
   carries the emphasis instead, and reads more expensive anyway. */
.statement__em {
  font-style: italic;
  position: relative;
  white-space: nowrap;
}

.statement__em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.08em;
  bottom: 0.1em;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}

.statement__foot {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.statement__rule {
  width: clamp(2rem, 6vw, 5rem);
  height: 1px;
  background: currentColor;
  opacity: 0.4;
  flex: none;
}

.statement__cite {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-style: normal;
}

.statement__cite-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 400;
}

.statement__cite-role {
  font-size: var(--text-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  opacity: 0.6;
}
