:root {
  --paper: #f5f2ee;
  --paper-strong: #fffcf8;
  --ink: #080808;
  --ink-soft: rgba(8, 8, 8, 0.68);
  --line: rgba(8, 8, 8, 0.14);
  --line-strong: rgba(8, 8, 8, 0.3);
  --inverse: #0a0a0a;
  --inverse-soft: rgba(255, 255, 255, 0.7);
  --section-padding: clamp(1.4rem, 3vw, 2.75rem);
  --content-width: min(100%, 92rem);
  --hero-shift: 0px;
  --ease: 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 70% 24%, rgba(0, 0, 0, 0.06), transparent 24%),
    linear-gradient(180deg, #f8f5f1 0%, #f5f2ee 44%, #f1ede8 100%);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  overflow-x: clip;
}

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

a {
  color: inherit;
}

.page-shell {
  position: relative;
}

.site-nav {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  left: var(--section-padding);
  right: var(--section-padding);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-nav__brand,
.site-nav__link {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.site-nav__brand-mark {
  display: block;
  width: clamp(2.6rem, 3.8vw, 4rem);
}

.site-nav__brand-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  min-width: max-content;
}

.site-nav__link {
  display: inline-block;
  line-height: 1;
  color: var(--ink-soft);
}

.site-nav__link--current {
  color: var(--ink);
}

.hero,
.section {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: var(--section-padding);
  display: grid;
  grid-template-columns: minmax(16rem, 32rem) minmax(20rem, 1fr);
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "copy visual"
    "meta visual";
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
  overflow: clip;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.84) 0%, rgba(255, 255, 255, 0.26) 42%, transparent 64%),
    radial-gradient(circle at 75% 50%, rgba(0, 0, 0, 0.07), transparent 34%);
  z-index: -2;
}

.hero__copy,
.hero__visual,
.hero__meta {
  position: relative;
  z-index: 1;
}

.hero__copy {
  grid-area: copy;
  max-width: 28rem;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--ease),
    transform var(--ease);
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(4.4rem, 14vw, 10.5rem);
  line-height: 0.84;
}

.glitch-stack {
  display: flex;
  flex-direction: column;
}

.glitch-line {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
}

.glitch-line::before,
.glitch-line::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: currentColor;
  opacity: 0.9;
}

.glitch-line--hero::before,
.glitch-line--hero::after {
  opacity: 0.94;
}

.glitch-line::before {
  clip-path: polygon(0 0, 100% 0, 100% 34%, 0 46%);
}

.glitch-line::after {
  clip-path: polygon(0 56%, 100% 48%, 100% 100%, 0 100%);
}

.glitch-line--hero::before {
  transform: translate3d(-0.055em, 0.01em, 0);
  animation: text-glitch-left 7.2s steps(12) infinite;
}

.glitch-line--hero::after {
  transform: translate3d(0.04em, -0.008em, 0);
  opacity: 0.78;
  animation: text-glitch-right 8.4s steps(14) infinite;
}

.glitch-line--section::before {
  transform: translate3d(-0.025em, 0, 0);
  opacity: 0.7;
  animation: text-glitch-left 9.5s steps(16) infinite;
}

.glitch-line--section::after {
  transform: translate3d(0.02em, 0, 0);
  opacity: 0.56;
  animation: text-glitch-right 10.8s steps(18) infinite;
}

.hero__lede,
.section__copy {
  margin: 0;
  font-size: clamp(1rem, 1.45vw, 1.15rem);
  line-height: 1.75;
  color: var(--ink-soft);
}

.hero__lede {
  max-width: 25rem;
  margin-top: 1.4rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero__copy > .hero__actions {
  margin-top: 2.3rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0.95rem 1.45rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.96rem;
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    color 220ms ease,
    border-color 220ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.button--primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-strong);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #1b1b1b;
  border-color: #1b1b1b;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.44);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.72);
}

.hero__visual {
  grid-area: visual;
  justify-self: end;
  width: min(100%, 42rem);
  opacity: 0;
  transform: translate3d(0, 36px, 0) scale(0.96);
  transition:
    opacity 900ms ease,
    transform 900ms cubic-bezier(0.19, 1, 0.22, 1);
}

.hero__visual figcaption {
  margin-top: 0.9rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.artwork {
  position: relative;
  width: 100%;
  max-width: 37rem;
  margin-left: auto;
  transform: translateY(calc(var(--hero-shift) * -0.18));
  will-change: transform;
}

.artwork::before {
  content: "";
  position: absolute;
  inset: -6% -6%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.12), transparent 60%);
  filter: blur(28px);
  z-index: -1;
}

.artwork::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0,
      rgba(255, 255, 255, 0) 7px,
      rgba(0, 0, 0, 0.08) 7px,
      rgba(0, 0, 0, 0.08) 8px
    );
  mix-blend-mode: screen;
  opacity: 0.44;
  animation: scan 10s linear infinite;
}

.artwork img {
  width: 100%;
  object-fit: contain;
}

.artwork__base {
  position: relative;
  z-index: 1;
  filter: contrast(1.08) saturate(0.84);
}

.artwork__slice {
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  opacity: 0.54;
}

.artwork__slice--one {
  clip-path: polygon(0 0, 100% 0, 100% 48%, 0 58%);
  transform: translate3d(-14px, 0, 0);
  animation: glitch-left 8s steps(14) infinite;
}

.artwork__slice--two {
  clip-path: polygon(0 44%, 100% 37%, 100% 100%, 0 100%);
  transform: translate3d(12px, 0, 0);
  animation: glitch-right 11s steps(18) infinite;
}

.hero__meta {
  grid-area: meta;
  max-width: 24rem;
  display: grid;
  gap: 0.55rem;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

.hero__meta p {
  margin: 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) var(--section-padding);
}

.section__heading,
.release__body,
.signal__panel,
.final,
.merch-specs__grid,
.merch-order__layout {
  width: var(--content-width);
  margin: 0 auto;
}

.section__heading {
  display: grid;
  gap: 1rem;
}

.section__heading h2,
.signal h2,
.final h2 {
  font-size: clamp(2.4rem, 6vw, 5.3rem);
  line-height: 0.96;
  max-width: 14ch;
}

.release__body {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 32rem) minmax(16rem, 1fr);
  gap: clamp(2rem, 4vw, 5rem);
  align-items: start;
}

.release__facts {
  display: grid;
}

.release__facts p {
  margin: 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.35rem;
}

.release__facts p:last-child {
  border-bottom: 1px solid var(--line);
}

.release__facts span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.release__facts strong {
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  font-weight: 500;
}

.signal {
  background: var(--inverse);
  color: var(--paper-strong);
  overflow: clip;
}

.signal::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%, rgba(255, 255, 255, 0.03) 100%),
    radial-gradient(circle at 72% 50%, rgba(255, 255, 255, 0.12), transparent 26%);
}

.signal::after {
  content: "";
  position: absolute;
  right: clamp(-8rem, -6vw, -2rem);
  bottom: -6%;
  width: min(48rem, 66vw);
  aspect-ratio: 1;
  background: center / contain no-repeat url("./over_again_art.png");
  opacity: 0.22;
  filter: grayscale(1) contrast(1.15);
  transform: translate3d(0, calc(var(--hero-shift) * -0.05), 0);
}

.signal__panel {
  position: relative;
  z-index: 1;
  min-height: min(72vh, 46rem);
  display: grid;
  align-items: center;
}

.signal__copy {
  max-width: 32rem;
}

.signal .eyebrow,
.signal .section__copy {
  color: var(--inverse-soft);
}

.final {
  display: grid;
  justify-items: start;
  gap: 1rem;
}

.final .section__copy {
  max-width: 30rem;
}

.is-ready .hero__copy,
.is-ready .hero__visual,
.is-ready .hero__meta {
  opacity: 1;
  transform: none;
}

.is-ready .hero__copy {
  transition-delay: 100ms;
}

.is-ready .hero__visual {
  transition-delay: 220ms;
}

.is-ready .hero__meta {
  transition-delay: 380ms;
}

.merch-hero {
  position: relative;
  min-height: 100svh;
  padding: clamp(5.5rem, 9vw, 7.25rem) var(--section-padding) clamp(4rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: minmax(18rem, 30rem) minmax(22rem, 1fr);
  gap: clamp(2.25rem, 4vw, 4.5rem);
  align-items: center;
  overflow: clip;
}

.merch-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.18) 44%, transparent 68%),
    radial-gradient(circle at 72% 36%, rgba(0, 0, 0, 0.06), transparent 24%);
  z-index: -1;
}

.merch-hero__copy {
  width: min(100%, 31rem);
}

.merch-hero__price {
  margin: 0 0 0.75rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.merch-hero__visual {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: end;
}

.merch-product {
  margin: 0;
}

.merch-product--front {
  transform: translateY(2.5rem);
}

.merch-product__frame {
  position: relative;
  background: rgba(255, 255, 255, 0.42);
  min-height: clamp(22rem, 42vw, 34rem);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 2vw, 1.8rem);
  overflow: clip;
}

.merch-product__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(8, 8, 8, 0.06);
  transform: translate(0.8rem, 0.8rem);
}

.merch-product img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-height: 34rem;
  object-fit: contain;
  filter: contrast(1.04);
}

.merch-product figcaption {
  margin-top: 0.9rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.merch-specs__grid,
.merch-order__layout {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 32rem) minmax(20rem, 1fr);
  gap: clamp(2rem, 4vw, 5rem);
  align-items: start;
}

.merch-order {
  background: var(--inverse);
  color: var(--paper-strong);
  padding-block: clamp(3rem, 6vw, 4.75rem);
}

.merch-order .eyebrow,
.merch-order .section__copy {
  color: var(--inverse-soft);
}

.merch-order__layout {
  width: min(100%, 58rem);
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  grid-template-columns: minmax(0, 18rem) minmax(18rem, 26rem);
  gap: clamp(1.5rem, 3vw, 3rem);
}

.merch-order__intro h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  max-width: 8ch;
}

.order-form {
  display: grid;
  gap: 0.9rem;
}

.order-form__field {
  display: grid;
  gap: 0.55rem;
}

.order-form__field span,
.order-form__price,
.order-form__status {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-form input,
.order-form select {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper-strong);
  font: inherit;
}

.order-form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.order-form input:focus,
.order-form select:focus {
  outline: 1px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

.order-form select option {
  color: var(--ink);
}

.order-form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.35rem;
}

.order-form__price {
  margin: 0;
  color: var(--inverse-soft);
}

.order-form .button {
  min-width: 10.5rem;
}

.order-form__status {
  min-height: 1.2rem;
  margin: 0;
  color: var(--inverse-soft);
}

.order-form__status[data-state="success"] {
  color: #d3f9dc;
}

.order-form__status[data-state="error"] {
  color: #ffd3d3;
}

@keyframes glitch-left {
  0%,
  18%,
  100% {
    transform: translate3d(-14px, 0, 0);
  }

  8% {
    transform: translate3d(6px, -4px, 0);
  }

  12% {
    transform: translate3d(-18px, 2px, 0);
  }
}

@keyframes glitch-right {
  0%,
  24%,
  100% {
    transform: translate3d(12px, 0, 0);
  }

  10% {
    transform: translate3d(-4px, 4px, 0);
  }

  14% {
    transform: translate3d(20px, -3px, 0);
  }
}

@keyframes text-glitch-left {
  0%,
  16%,
  100% {
    transform: translate3d(-0.055em, 0.01em, 0);
  }

  6% {
    transform: translate3d(0.018em, -0.015em, 0);
  }

  11% {
    transform: translate3d(-0.08em, 0.02em, 0);
  }
}

@keyframes text-glitch-right {
  0%,
  22%,
  100% {
    transform: translate3d(0.04em, -0.008em, 0);
  }

  8% {
    transform: translate3d(-0.014em, 0.012em, 0);
  }

  14% {
    transform: translate3d(0.07em, -0.02em, 0);
  }
}

@keyframes scan {
  0% {
    transform: translateY(-1.5%);
  }

  100% {
    transform: translateY(1.5%);
  }
}

@media (max-width: 960px) {
  .site-nav {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding-inline: var(--section-padding);
    padding-top: var(--section-padding);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "copy"
      "visual"
      "meta";
    padding-top: 1.25rem;
    padding-bottom: 3.25rem;
  }

  .hero__visual,
  .artwork {
    width: 100%;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
  }

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

  .merch-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 1.25rem;
  }

  .merch-hero__visual,
  .merch-specs__grid,
  .merch-order__layout {
    grid-template-columns: 1fr;
  }

  .merch-product--front {
    transform: none;
  }

  .signal__panel {
    min-height: 32rem;
    padding-right: min(28vw, 10rem);
  }

  .signal::after {
    width: min(34rem, 78vw);
    bottom: -1rem;
  }
}

@media (max-width: 640px) {
  :root {
    --section-padding: 1.25rem;
  }

  .site-nav {
    width: 100%;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    padding-inline: var(--section-padding);
    padding-top: var(--section-padding);
  }

  .site-nav__brand-mark {
    width: 2.7rem;
  }

  .site-nav__links {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    min-width: max-content;
  }

  .site-nav__link {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .section__heading h2,
  .signal h2,
  .final h2 {
    max-width: 100%;
  }

  .signal__panel {
    padding-right: 0;
    padding-bottom: 18rem;
  }

  .signal::after {
    right: 50%;
    bottom: -2rem;
    width: min(22rem, 86vw);
    transform: translateX(50%);
  }

  .merch-hero__visual {
    gap: 1rem;
  }

  .merch-product__frame::after {
    transform: translate(0.45rem, 0.45rem);
  }

  .order-form__footer {
    align-items: stretch;
  }

  .order-form .button {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero__copy,
  .hero__visual,
  .hero__meta {
    opacity: 1;
    transform: none;
  }
}
