:root {
  --paper: #f2efe7;
  --ink: #141414;
  --quiet: #5f605b;
  --signal: #ff3d19;
  --acid: #d8ff2f;
  --blue: #1f59ff;
  --line: rgba(20, 20, 20, 0.28);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
}
a { color: inherit; }
button, select, input { font: inherit; }

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 50%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(calc(100% - 48px), 1560px);
  min-height: 68px;
  transform: translateX(-50%);
  border-bottom: 1px solid var(--ink);
  font: 700 10px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}
.site-header a { text-decoration: none; }
.site-header p { margin: 0; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  grid-template-rows: 1fr auto;
  width: min(calc(100% - 48px), 1560px);
  min-height: min(860px, 88vh);
  margin: 0 auto;
  padding: 104px 0 42px;
  overflow: hidden;
}
#failure-field {
  position: absolute;
  z-index: 0;
  inset: 68px 0 0;
  width: 100%;
  height: calc(100% - 68px);
  opacity: 0.88;
}
.hero-meta,
.hero h1,
.hero-statement { position: relative; z-index: 1; }
.hero-meta {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  align-self: start;
  padding: 9px 0 0 16px;
  border-left: 1px solid var(--ink);
  font: 700 9px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}
.hero-meta p { margin: 0; }
.hero h1 {
  grid-column: 1 / -1;
  align-self: center;
  margin: 46px 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12rem;
  font-weight: 400;
  line-height: 0.74;
  letter-spacing: 0;
}
.hero h1 span {
  display: inline-block;
  min-width: 0.63em;
  transform-origin: center;
}
.hero h1 span:nth-child(1) { transform: translateY(10px) rotate(-3deg); }
.hero h1 span:nth-child(2) { transform: translateY(-12px) rotate(2deg); color: var(--signal); }
.hero h1 span:nth-child(3) { transform: translateY(18px) scaleY(1.14); }
.hero h1 span:nth-child(4) { transform: translateY(-4px) rotate(-2deg); color: var(--blue); }
.hero h1 span:nth-child(5) { transform: translateY(12px) rotate(3deg); }
.hero-statement {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
  gap: 48px;
  align-items: end;
  border-top: 1px solid var(--ink);
  padding-top: 22px;
}
.hero-statement > p {
  max-width: 570px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
  line-height: 1.05;
}
.hero-statement div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-statement span {
  padding: 7px 9px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}
.hero-statement span:nth-child(2) { background: var(--acid); }
.hero-statement span:nth-child(3) { background: var(--signal); color: #fff; }

.viewer-band {
  display: grid;
  grid-template-columns: minmax(300px, 0.52fr) minmax(600px, 1.48fr);
  gap: clamp(48px, 7vw, 118px);
  padding: clamp(90px, 12vh, 150px) max(24px, calc((100vw - 1560px) / 2));
  background: var(--ink);
  color: var(--paper);
}
.viewer-intro {
  position: sticky;
  top: 34px;
  align-self: start;
}
.section-label {
  display: inline-block;
  margin: 0 0 88px;
  padding: 7px 9px;
  background: var(--acid);
  color: var(--ink);
  font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}
.viewer-intro h2 {
  max-width: 520px;
  margin: 0 0 34px;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.7rem;
  font-weight: 400;
  line-height: 0.97;
  letter-spacing: 0;
}
.viewer-intro > p:last-child {
  max-width: 460px;
  margin: 0;
  color: #bdbdb7;
  font-size: 14px;
  line-height: 1.7;
}
.viewer-workspace { min-width: 0; }
.media-frame {
  position: relative;
  width: min(100%, calc(min(72vh, 760px) * var(--media-aspect-number, 1)));
  margin-inline: auto;
  padding: 9px;
  border: 1px solid rgba(242, 239, 231, 0.72);
  background: #050505;
}
.media-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
  aspect-ratio: var(--media-aspect-ratio, 1 / 1);
  overflow: hidden;
  background: #050505;
}
.media-stage img,
.media-stage video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.media-stage video[hidden],
.media-stage img[hidden] { display: none; }
#media-status {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 8px;
  background: var(--signal);
  color: #fff;
  font: 700 8px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}
.media-stage.is-ready #media-status { background: var(--acid); color: var(--ink); }
.frame-mark {
  position: absolute;
  width: 25px;
  height: 25px;
  pointer-events: none;
}
.frame-mark-a { top: -9px; left: -9px; border-top: 3px solid var(--signal); border-left: 3px solid var(--signal); }
.frame-mark-b { right: -9px; bottom: -9px; border-right: 3px solid var(--blue); border-bottom: 3px solid var(--blue); }

.work-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  padding: 28px 0 30px;
  border-bottom: 1px solid rgba(242, 239, 231, 0.34);
}
.token-position {
  margin: 0 0 10px;
  color: #a4a49f;
  font: 700 9px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}
.work-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.4rem;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
}
.edition-supply {
  flex: 0 0 auto;
  margin: 0;
  padding: 9px 11px;
  background: var(--signal);
  color: #fff;
  font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}
.viewer-controls {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 7px;
  margin-top: 18px;
}
.viewer-controls button,
.selector {
  min-height: 48px;
  border: 1px solid rgba(242, 239, 231, 0.7);
  background: transparent;
  color: var(--paper);
}
.viewer-controls button {
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 0;
  font-size: 22px;
  cursor: pointer;
}
.viewer-controls button:hover,
.viewer-controls button:focus-visible { background: var(--acid); color: var(--ink); }
.selector {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding-left: 14px;
}
.selector span {
  color: #91918c;
  font: 700 8px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}
.selector select {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}
.process-index {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
}
.process-index input {
  width: 100%;
  height: 18px;
  margin: 0;
  appearance: none;
  background: linear-gradient(90deg, var(--signal) var(--range-position, 0%), rgba(242,239,231,0.22) var(--range-position, 0%));
  background-size: 100% 2px;
  background-position: center;
  background-repeat: no-repeat;
}
.process-index input::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  appearance: none;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--acid);
  box-shadow: 0 0 0 1px var(--paper);
}
.process-index input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--acid);
}
.process-index output {
  min-width: 48px;
  color: #a4a49f;
  font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.work-data {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 28px 0 0;
  border-top: 1px solid rgba(242, 239, 231, 0.34);
  border-bottom: 1px solid rgba(242, 239, 231, 0.34);
}
.work-data div { padding: 17px 12px 18px; border-right: 1px solid rgba(242, 239, 231, 0.2); }
.work-data div:first-child { padding-left: 0; }
.work-data div:last-child { border-right: 0; }
.work-data dt {
  margin-bottom: 9px;
  color: #8e8e89;
  font: 700 8px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}
.work-data dd { margin: 0; font-size: 12px; line-height: 1.35; }
.token-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin-top: 28px;
  font: 700 9px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}
.token-links a { padding-bottom: 5px; border-bottom: 1px solid currentColor; text-decoration: none; }
.token-links a:hover,
.token-links a:focus-visible { background: var(--acid); color: var(--ink); }

.manifesto {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 0.38fr) minmax(480px, 1.16fr) minmax(240px, 0.46fr);
  gap: 50px;
  align-items: end;
  min-height: 730px;
  padding: 110px max(24px, calc((100vw - 1560px) / 2));
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
}
.manifesto-number {
  margin: 0;
  color: var(--signal);
  font: 700 8rem/0.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.manifesto blockquote {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.7rem;
  line-height: 0.98;
}
.manifesto > p:last-child { max-width: 260px; margin: 0; font-size: 16px; line-height: 1.55; }
.signal-strip {
  height: 40px;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
  white-space: nowrap;
  font: 700 11px/40px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}
.signal-strip span { display: block; width: max-content; animation: signal-shift 14s linear infinite; }

footer {
  display: flex;
  justify-content: space-between;
  width: min(calc(100% - 48px), 1560px);
  margin: 0 auto;
  padding: 30px 0 40px;
  font: 700 9px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}
footer p { margin: 0; }

@keyframes signal-shift { to { transform: translateX(-32%); } }

@media (max-width: 1080px) {
  .hero h1 { font-size: 9rem; }
  .viewer-band { grid-template-columns: 1fr; }
  .viewer-intro { position: static; }
  .viewer-intro h2 { max-width: 760px; }
  .section-label { margin-bottom: 50px; }
  .manifesto { grid-template-columns: 1fr; min-height: auto; }
  .manifesto-number { font-size: 6rem; }
  .manifesto blockquote { font-size: 5rem; }
}

@media (max-width: 680px) {
  .site-header,
  .hero,
  footer { width: calc(100% - 24px); }
  .site-header { min-height: 60px; }
  .site-header p { max-width: 52vw; text-align: right; }
  .hero { display: flex; flex-direction: column; min-height: 790px; padding-top: 90px; }
  #failure-field { top: 60px; }
  .hero-meta { width: 100%; padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--ink); }
  .hero h1 { margin: auto 0; font-size: 5.3rem; }
  .hero h1 span { min-width: 0.59em; }
  .hero-statement { grid-template-columns: 1fr; gap: 28px; }
  .hero-statement > p { font-size: 1.7rem; }
  .hero-statement div { justify-content: flex-start; }
  .viewer-band { gap: 68px; padding: 82px 12px 100px; }
  .viewer-intro h2 { font-size: 3.4rem; }
  .media-frame { width: 100%; padding: 6px; }
  .work-heading { align-items: start; }
  .work-heading h3 { font-size: 3.2rem; }
  .edition-supply { margin-top: 3px; }
  .selector { grid-template-columns: 1fr; gap: 0; padding: 7px 6px 0 10px; }
  .selector span { padding-left: 4px; }
  .selector select { height: 34px; padding: 0 4px; }
  .work-data { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-data div:nth-child(2) { border-right: 0; }
  .work-data div:nth-child(-n+2) { border-bottom: 1px solid rgba(242, 239, 231, 0.2); }
  .work-data div:nth-child(3) { padding-left: 0; }
  .manifesto { gap: 58px; min-height: 690px; padding: 92px 12px; }
  .manifesto-number { font-size: 4.8rem; }
  .manifesto blockquote { font-size: 3.65rem; }
  footer { flex-direction: column; gap: 7px; }
}

@media (max-width: 370px) {
  .hero h1 { font-size: 4.7rem; }
  .viewer-intro h2 { font-size: 3rem; }
  .manifesto blockquote { font-size: 3.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .signal-strip span { animation: none; }
}
