:root {
  --ink: #f5f2ed;
  --muted: #b9b5b0;
  --night: #0b0b0c;
  --panel: #151516;
  --red: #f02029;
  --red-deep: #a8070e;
  --focus: #ffffff;
  --radius: 2px;
  --page: clamp(1.25rem, 4vw, 4.5rem);
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
  --pulse: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--night);
  font-family: "Arial Narrow", "Liberation Sans Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

a,
button {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--night);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 5.5rem;
  padding-inline: var(--page);
  background: linear-gradient(to bottom, rgb(0 0 0 / 72%), transparent);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 44px;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
}

.wordmark > span:first-child {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  color: var(--night);
  background: var(--red);
  transform: skewX(-9deg);
}

.wordmark__name,
.site-header nav,
.edition,
.eyebrow,
.section-index,
.hero__cue,
.accelerator,
.pulse__status,
footer {
  letter-spacing: 0.12em;
}

.site-header nav {
  display: flex;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.site-header nav a {
  display: grid;
  min-height: 44px;
  place-items: center;
  text-underline-offset: 0.45rem;
  text-decoration-thickness: 1px;
}

.edition {
  justify-self: end;
  color: var(--muted);
  font-size: 0.875rem;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #0d0d0f;
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  z-index: -2;
  object-fit: cover;
  object-position: 54% center;
  scale: 1.015;
  transition: scale 1.2s var(--ease), filter 0.8s var(--ease);
}

.hero__shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(7 7 8 / 82%) 0%, rgb(7 7 8 / 32%) 48%, transparent 76%),
    linear-gradient(0deg, rgb(7 7 8 / 72%) 0%, transparent 38%);
}

.hero__copy {
  position: absolute;
  top: 50%;
  left: var(--page);
  translate: 0 -43%;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--red);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(4rem, 10.7vw, 10rem);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

h1 span {
  display: block;
}

h1 span:last-child {
  margin-left: clamp(1.5rem, 8vw, 9rem);
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}

.hero__cue {
  position: absolute;
  bottom: 2rem;
  left: var(--page);
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.hero__cue span {
  color: var(--red);
  font-size: 1.25rem;
}

.hero__note {
  position: absolute;
  right: var(--page);
  bottom: 2.75rem;
  max-width: 17rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: right;
}

.manifesto {
  display: grid;
  grid-template-columns: 0.35fr 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  padding: clamp(6rem, 12vw, 11rem) var(--page);
  background: var(--ink);
  color: var(--night);
}

.manifesto .eyebrow {
  color: var(--red-deep);
}

.section-index {
  color: var(--red-deep);
  font-size: 1rem;
  font-weight: 700;
}

h2 {
  max-width: 11ch;
  margin-bottom: 0;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.manifesto__text {
  align-self: end;
  max-width: 37rem;
  font-size: 1.25rem;
}

.manifesto__text p:last-child {
  margin-bottom: 0;
  color: #585451;
}

.pulse {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(20rem, 1.15fr);
  min-height: 46rem;
  overflow: hidden;
  background: var(--panel);
}

.pulse__copy {
  align-self: center;
  padding: clamp(5rem, 10vw, 9rem) var(--page);
}

.pulse__copy > p:not(.eyebrow, .pulse__status) {
  max-width: 31rem;
  margin: 2rem 0;
  color: var(--muted);
  font-size: 1.25rem;
}

.accelerator,
.back-to-top {
  min-height: 48px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.accelerator {
  padding: 0.9rem 1.35rem;
  color: var(--night);
  background: var(--red);
  transition: background 180ms var(--ease), transform 180ms var(--ease);
  touch-action: none;
}

.accelerator:hover {
  background: #ff3038;
}

.accelerator:active,
.accelerator.is-active {
  transform: translateY(2px);
  color: var(--ink);
  background: var(--red-deep);
}

.pulse__status {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.gauge {
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(40vw, 35rem);
  aspect-ratio: 1;
}

.gauge__arc {
  position: absolute;
  inset: 8%;
  border: clamp(0.75rem, 1.5vw, 1.5rem) solid #2a2a2b;
  border-right-color: var(--red);
  border-bottom-color: var(--red);
  border-radius: 50%;
  rotate: 45deg;
  transform: rotate(calc(var(--pulse) * 6deg));
  transition: transform 100ms linear;
}

.gauge__needle {
  position: absolute;
  z-index: 2;
  top: calc(50% - 3px);
  left: 50%;
  width: 39%;
  height: 6px;
  border-radius: var(--radius);
  background: var(--red);
  transform: rotate(calc(-140deg + var(--pulse) * 2.8deg));
  transform-origin: left center;
  transition: transform 100ms linear;
}

.gauge__hub {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 1.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  translate: -50% -50%;
}

.gauge > strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #202021;
  font-size: clamp(9rem, 20vw, 19rem);
  line-height: 1;
}

.gauge__label {
  position: absolute;
  bottom: 0;
  color: var(--muted);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
}

.gauge__label--start {
  left: 8%;
}

.gauge__label--end {
  right: 8%;
}

.finish {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 38rem;
  padding: clamp(6rem, 11vw, 10rem) var(--page);
  overflow: hidden;
  background: var(--red);
}

.finish .eyebrow {
  color: var(--night);
}

.finish__ghost {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  color: transparent;
  font-size: clamp(7rem, 24vw, 23rem);
  font-weight: 700;
  line-height: 0.7;
  letter-spacing: -0.07em;
  -webkit-text-stroke: 1px rgb(11 11 12 / 28%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.finish > div,
.back-to-top {
  position: relative;
  z-index: 1;
}

.finish h2 {
  max-width: 13ch;
}

.back-to-top {
  padding: 0.9rem 1.2rem;
  color: var(--ink);
  background: var(--night);
}

.back-to-top span {
  margin-left: 0.75rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem var(--page);
  color: var(--muted);
  background: var(--night);
  font-size: 0.875rem;
}

footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .edition {
    font-size: 0.75rem;
  }

  .wordmark__name {
    display: none;
  }

  .hero__image {
    object-position: 61% center;
  }

  .hero__shade {
    background:
      linear-gradient(90deg, rgb(7 7 8 / 74%) 0%, transparent 85%),
      linear-gradient(0deg, rgb(7 7 8 / 84%) 0%, transparent 58%);
  }

  .hero__copy {
    top: 39%;
  }

  h1 {
    font-size: clamp(4rem, 20vw, 6.5rem);
  }

  h1 span:last-child {
    margin-top: 0.35rem;
    margin-left: 0;
    font-size: 0.68em;
    line-height: 0.9;
  }

  .hero__note {
    display: none;
  }

  .manifesto {
    grid-template-columns: 2rem 1fr;
  }

  .manifesto__text {
    grid-column: 2;
    font-size: 1rem;
  }

  .pulse {
    grid-template-columns: 1fr;
  }

  .gauge {
    width: min(84vw, 31rem);
    margin: 0 auto 6rem;
  }

  .finish {
    align-items: start;
    flex-direction: column;
    justify-content: flex-end;
    gap: 3rem;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
