:root {
  color-scheme: light;
  --red: #f40d3f;
  --ink: #160000;
  --paper: #fbf6f1;
}

@property --knob-position {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background: var(--red);
  color: var(--ink);
  font-family: "Instrument Sans", Arial, sans-serif;
}

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

.hero {
  --surface: var(--red);
  --foreground: var(--ink);
  --knob-position: 50%;
  position: relative;
  min-height: 100svh;
  padding: 26px clamp(24px, 4vw, 68px) 40px;
  overflow-x: clip;
  overflow-y: visible;
  background: var(--surface);
  color: var(--foreground);
  transition: background-color 400ms ease, color 400ms ease;
}

.hero[data-level="9"] {
  color-scheme: dark;
  --surface: var(--ink);
  --foreground: var(--red);
}

.hero[data-level="9"] .track { background: rgb(244 13 63 / 22%); }
.hero[data-level="9"] .track-fill { background: var(--red); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.wordmark { font-weight: 600; }

nav { display: flex; gap: clamp(20px, 3vw, 48px); }

nav a { position: relative; outline-offset: 7px; }

nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

nav a:hover::after, nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero-stage {
  position: relative;
  min-height: calc(100svh - 92px);
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 160px;
  align-items: center;
}

.slider-shell {
  position: sticky;
  top: calc((100svh - min(58vh, 520px)) / 2);
  grid-column: 1;
  align-self: start;
  width: 160px;
  height: min(58vh, 520px);
  margin-top: max(24px, calc((100svh - 92px - min(58vh, 520px)) / 2));
}

.slider {
  position: absolute;
  inset: 32px 40px;
  cursor: grab;
  touch-action: none;
  outline: none;
}

.slider:active { cursor: grabbing; }

.slider:focus-visible .knob {
  box-shadow: 0 4px 16px rgb(22 0 0 / 24%), 0 0 0 7px rgb(251 246 241 / 42%);
}

.track {
  position: absolute;
  inset: 0 auto 0 28px;
  width: 4px;
  border-radius: 999px;
  background: rgb(22 0 0 / 22%);
  overflow: hidden;
}

.track-fill {
  position: absolute;
  inset: var(--knob-position) 0 0;
  border-radius: inherit;
  background: var(--ink);
}

.knob {
  position: absolute;
  top: var(--knob-position);
  left: 30px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 4px 16px rgb(22 0 0 / 24%);
  transform: translate(-50%, -50%);
  transition: top 140ms ease, left 140ms ease, box-shadow 180ms ease;
}

.slider:hover .knob {
  box-shadow: 0 4px 16px rgb(22 0 0 / 24%), 0 0 0 7px rgb(251 246 241 / 34%);
}

.hero:not(.has-interacted) .knob { animation: nudge-vertical 700ms ease-in-out 3; }

.drag-tag {
  position: absolute;
  top: var(--knob-position);
  left: 56px;
  padding: 5px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transform: translateY(-50%);
  animation: nudge-vertical-tag 700ms ease-in-out 3;
  transition: opacity 160ms ease, visibility 160ms ease;
}

.has-interacted .drag-tag { opacity: 0; visibility: hidden; }

@keyframes nudge-vertical {
  0%, 100% { transform: translate(-50%, -50%); }
  30% { transform: translate(-50%, calc(-50% - 8px)); }
  70% { transform: translate(-50%, calc(-50% + 8px)); }
}

@keyframes nudge-vertical-tag {
  0%, 100% { transform: translateY(-50%); }
  30% { transform: translateY(calc(-50% - 8px)); }
  70% { transform: translateY(calc(-50% + 8px)); }
}

.slider-label {
  position: absolute;
  left: 0;
  width: 144px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.slider-label--more { top: 0; }
.slider-label--less { bottom: 0; }

.bio-wrap {
  position: relative;
  grid-column: 2;
  width: min(100%, 980px);
  margin: auto;
  padding: 92px 0 100px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.level-count { margin-left: 12px; opacity: .55; }

.bio-copy {
  margin: 0 auto;
  max-width: 930px;
  font-size: clamp(26px, 2.5vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.04em;
  text-transform: var(--bio-case, none);
  text-wrap: pretty;
}

.bio-paragraph { display: block; margin: 0 0 .78em; }
.bio-paragraph:last-child { margin-bottom: 0; }
.bio-copy a { text-decoration: underline; text-decoration-thickness: .055em; text-underline-offset: .12em; }
.bio-copy a:hover, .bio-copy a:focus-visible { text-decoration-thickness: .1em; }

.extras { position: static; text-align: center; }

.sticker {
  position: absolute;
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  animation: sticker-in 250ms cubic-bezier(.2,.9,.3,1.3) both;
}

.sticker--top {
  top: 22px;
  right: 7%;
  padding: 11px 15px;
  border: 2px solid currentColor;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  line-height: 1.05;
  transform: rotate(6deg);
}

.sticker--round {
  top: auto;
  right: -85px;
  bottom: 15%;
  width: 104px;
  height: 104px;
  padding: 15px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  line-height: 1.05;
  transform: rotate(-8deg);
}

.sticker--danger {
  background: var(--ink);
  color: var(--red);
}

.sticker--acquired {
  box-shadow: inset 0 0 0 3px var(--red);
}

.sticker--stamp {
  top: 16px;
  right: 4%;
  padding: 12px 16px 10px;
  border: 3px solid currentColor;
  color: var(--red);
  font-size: 15px;
  transform: rotate(-7deg);
}

@keyframes sticker-in {
  from { opacity: 0; scale: .6; }
  to { opacity: 1; scale: 1; }
}

.banner {
  position: absolute;
  z-index: 3;
  display: inline-block;
  padding: 9px 16px 8px;
  border: 2px solid currentColor;
  background: var(--ink);
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  animation: banner-in 250ms cubic-bezier(.2,.9,.3,1.2) both;
}

.banner--topline {
  top: 24px;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
}

.banner--side-left {
  top: 50%;
  left: -82px;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.banner--side-right {
  top: 50%;
  right: -82px;
  transform: translate(50%, -50%) rotate(90deg);
}

.banner--corner {
  right: -34px;
  bottom: -38px;
  transform: rotate(-5deg);
  background: var(--paper);
  color: var(--ink);
}

.hero[data-level="9"] .banner:not(.banner--corner) {
  background: var(--red);
  color: var(--ink);
}

@keyframes banner-in {
  from { opacity: 0; scale: .7; }
  to { opacity: 1; scale: 1; }
}

.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 34px;
  padding: 12px 18px;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: currentColor;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.hero-action:hover, .hero-action:focus-visible {
  background: var(--foreground);
  color: var(--surface);
  outline: none;
}

.hero-action--shake { animation: shake 480ms ease-in-out infinite; }

@keyframes shake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-2deg) translateX(-2px); }
  75% { transform: rotate(2deg) translateX(2px); }
}

.ticker {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  padding: 9px 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--red);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
  white-space: nowrap;
  text-transform: uppercase;
}

.ticker.is-visible { display: flex; }

.ticker__line {
  min-width: max-content;
  padding-left: 28px;
  animation: ticker-roll 16s linear infinite;
}

.hero[data-level="9"] .ticker {
  background: var(--red);
  color: var(--ink);
}

@keyframes ticker-roll { to { transform: translateX(-50%); } }

@media (max-width: 767px) {
  .hero { padding: 20px 20px 110px; }
  .site-header { align-items: flex-start; }
  nav { flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; max-width: 235px; }
  nav a { font-size: 14px; }
  nav a:last-child { width: 100%; text-align: right; }
  .hero-stage {
    min-height: calc(100svh - 84px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .bio-wrap { width: 100%; padding: 68px 0 24px; }
  .bio-copy { font-size: clamp(24px, 5.6vw, 30px); line-height: 1.16; }
  .slider-shell { position: fixed; z-index: 20; top: auto; right: 0; bottom: 0; left: 0; width: 100%; height: 94px; margin: 0; padding: 0 20px; background: var(--surface); }
  .slider { inset: 10px 40px 38px; }
  .track { inset: 18px 0 auto; width: auto; height: 4px; }
  .track-fill { inset: 0 calc(100% - var(--knob-position)) 0 0; }
  .knob { top: 20px; left: var(--knob-position); }
  .slider:hover .knob, .slider:focus-visible .knob { box-shadow: 0 4px 16px rgb(22 0 0 / 24%), 0 0 0 6px rgb(251 246 241 / 34%); }
  .hero:not(.has-interacted) .knob { animation: nudge-horizontal 700ms ease-in-out 3; }
  .drag-tag { top: 48px; left: var(--knob-position); transform: translateX(-50%); animation: nudge-horizontal-tag 700ms ease-in-out 3; }
  .slider-label { top: 56px; bottom: auto; width: auto; font-size: 14px; }
  .slider-label--less { left: 40px; }
  .slider-label--more { right: 40px; left: auto; }
  .sticker { position: relative; inset: auto; margin: 12px 8px 0; vertical-align: middle; }
  .sticker--round { width: 82px; height: 82px; font-size: 12px; }
  .sticker--stamp { font-size: 12px; }
  .hero-action { margin-top: 24px; min-height: 44px; }
  .banner { font-size: 11px; }
  .banner--topline { position: absolute; top: 10px; right: auto; bottom: auto; left: 50%; margin: 0; transform: translateX(-50%) rotate(-1deg); }
  .banner--side-left,
  .banner--side-right,
  .banner--corner {
    position: relative;
    inset: auto;
    margin: 12px 3px 0;
    transform: rotate(-2deg);
  }
  .banner--side-right { transform: rotate(2deg); }
  .banner--corner { transform: rotate(-3deg); }
  .ticker { bottom: 94px; font-size: 13px; }
}

@keyframes nudge-horizontal {
  0%, 100% { transform: translate(-50%, -50%); }
  30% { transform: translate(calc(-50% - 8px), -50%); }
  70% { transform: translate(calc(-50% + 8px), -50%); }
}

@keyframes nudge-horizontal-tag {
  0%, 100% { transform: translateX(-50%); }
  30% { transform: translateX(calc(-50% - 8px)); }
  70% { transform: translateX(calc(-50% + 8px)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .knob, .drag-tag, .hero-action, .ticker__line, .banner, .sticker { animation: none !important; }
}
