:root {
  --ink: #f6f1ea;
  --ink-dim: rgba(246, 241, 234, 0.64);
  --accent: #ff7a1a;
  --bg: #0b0812;
  --paper-black: #100d16;
  --paper-cream: #f4ecdd;
  --paper-orange: #ff7a1a;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Barlow", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- intro / outro ---------- */

.intro { padding: max(96px, 13vh) max(24px, 6vw) 48px; max-width: 880px; }

.intro__eyebrow, .outro__eyebrow {
  margin: 0 0 10px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.intro__title {
  margin: 0 0 20px;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-weight: 800;
  font-size: clamp(52px, 9vw, 112px);
  line-height: 0.92;
}

.intro__lede {
  margin: 0 0 14px;
  max-width: 54ch;
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 500;
  line-height: 1.55;
}

.intro__what {
  margin: 0 0 18px;
  max-width: 60ch;
  font-size: clamp(13.5px, 1.5vw, 15.5px);
  line-height: 1.6;
  color: var(--ink-dim);
}

.intro__uses { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }

.intro__uses li {
  padding: 7px 14px;
  border: 1px solid rgba(246, 241, 234, 0.2);
  border-radius: 999px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.intro__cue {
  margin: 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.intro__cue span { color: var(--accent); display: inline-block; animation: cue 1.6s ease-in-out infinite; }

@keyframes cue { 0%, 100% { transform: translateY(0); } 55% { transform: translateY(5px); } }

.outro { padding: 72px max(24px, 6vw) 140px; max-width: 880px; }

.outro__title {
  margin: 0 0 16px;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-weight: 800;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.95;
}

.outro__body { margin: 0 0 12px; max-width: 56ch; font-size: clamp(14px, 1.6vw, 16.5px); line-height: 1.6; }
.outro__body--dim { color: var(--ink-dim); }

.outro__cta {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #140b03;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 160ms var(--ease-out), box-shadow 200ms ease;
  box-shadow: 0 8px 30px rgba(255, 122, 26, 0.25);
}

.outro__cta:hover { transform: translateY(-1px); }
.outro__cta:active { transform: scale(0.97); }

.fallback { padding: 20vh 24px; text-align: center; color: var(--ink-dim); }

/* ---------- the wall + pinned stage ---------- */

.pin { height: 560vh; }

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: clip;
}

.wall {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(246, 241, 234, 0.05), transparent 60%),
    linear-gradient(180deg, #17131f, #0b0812);
}

/* posters */
.poster {
  position: absolute;
  inset: clamp(14px, 3.5vh, 34px) clamp(14px, 3.5vw, 44px);
  background: var(--p-bg, var(--paper-black));
  color: var(--p-ink, var(--ink));
  border: 2px solid rgba(16, 13, 22, 0.55);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5);
  display: grid;
  align-content: center;
  padding: clamp(22px, 5vw, 72px);
  will-change: clip-path, transform;
  visibility: hidden;
  overflow: hidden;
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  filter: url(#paper);
  opacity: 0.06;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* giant single-word cut — deliberately too big for the frame */
.poster--giant { align-content: center; justify-items: flex-start; }

.poster--giant .poster__word {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: clamp(110px, 21vw, 320px);
  line-height: 0.82;
  letter-spacing: -0.01em;
  will-change: transform;
}

/* statement cuts */
.poster__line {
  overflow: hidden;
  margin: 0;
}

.poster__line span {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: clamp(38px, 7.2vw, 104px);
  line-height: 1.0;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  will-change: transform, opacity;
}

.poster__line em {
  font-style: normal;
  color: inherit;
  transition: color 160ms ease;
}

.poster__line em.is-hot { color: var(--p-hot, var(--accent)); }

/* the shout cut — centered, colossal */
.poster--shout { justify-items: center; text-align: center; }

.poster--shout .poster__line span {
  font-size: clamp(64px, 13.5vw, 200px);
  line-height: 0.9;
}

/* counter + ticks */
.counter {
  position: absolute;
  right: clamp(22px, 5vw, 56px);
  bottom: clamp(18px, 4vh, 40px);
  margin: 0;
  z-index: 5;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: clamp(12px, 1.5vw, 15px);
  letter-spacing: 0.2em;
  color: var(--ink);
  mix-blend-mode: difference;
  font-variant-numeric: tabular-nums;
}

.ticks {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 4vh, 40px);
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 6px;
  mix-blend-mode: difference;
}

.ticks span {
  width: clamp(12px, 2.4vw, 24px);
  height: 3px;
  background: rgba(246, 241, 234, 0.3);
}

.ticks span.is-on { background: var(--ink); }

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .poster { padding: 20px 18px; }
  .poster--giant .poster__word { font-size: clamp(88px, 30vw, 200px); }
}

/* ---------- reduced motion: the campaign as a static poster stack ---------- */

@media (prefers-reduced-motion: reduce) {
  .intro__cue span { animation: none; }
  .pin { height: auto; }
  .stage { position: static; height: auto; overflow: visible; display: grid; gap: 16px; padding: 24px 0; }
  .wall, .counter, .ticks { display: none; }
  .poster {
    position: relative;
    inset: auto;
    visibility: visible !important;
    clip-path: none !important;
    transform: none !important;
    min-height: 52vh;
    margin: 0 auto;
    width: min(920px, calc(100vw - 40px));
  }
  .poster__line span { transform: none !important; opacity: 1 !important; }
  .poster--giant .poster__word { transform: none !important; }
  .poster__line em { color: var(--p-hot, var(--accent)); }
}
