@font-face {
  font-family: "Artifakt";
  src: url("./assets/fonts/artifakt-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Artifakt";
  src: url("./assets/fonts/artifakt-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Artifakt Display";
  src: url("./assets/fonts/artifakt-black-italic.ttf") format("truetype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #f5f3ec;
  --paper: #0b111a;
  --acid: #d9ff29;
  --coral: #ff745f;
  --muted: rgba(245, 243, 236, 0.58);
  --spread-width: min(94vw, 1400px);
  --shadow: 0 32px 100px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html {
  color: var(--ink);
  background: #050606;
  font-family: "Artifakt", Arial, sans-serif;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 12% 3%, rgba(44, 73, 91, 0.2), transparent 30rem),
    #050606;
}

button, a { color: inherit; font: inherit; }

.toolbar {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 64px;
  padding: 10px 18px;
  background: rgba(5, 6, 6, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.wordmark {
  width: fit-content;
  color: #fff;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.38em;
  line-height: 1;
  text-decoration: none;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

.wordmark span { letter-spacing: 0.3em; }

.mode-switch {
  display: flex;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.mode-switch button {
  padding: 7px 14px;
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 11px;
}

.mode-switch button.is-active { color: #0b0d0c; background: var(--acid); }

.toolbar-end { justify-self: end; display: flex; align-items: center; gap: 12px; }
.download-link { display: none; }
.project-label { color: rgba(255, 255, 255, 0.82); font-size: 11px; letter-spacing: 0.04em; }
.project-label::after { content: "·"; padding-left: 12px; color: rgba(255, 255, 255, 0.32); }
.page-status { margin: 0; color: rgba(255, 255, 255, 0.62); font-size: 11px; font-variant-numeric: tabular-nums; }

.deck {
  display: grid;
  justify-items: center;
  gap: 14vh;
  padding: 126px 0 18vh;
}

.spread {
  position: relative;
  isolation: isolate;
  width: var(--spread-width);
  aspect-ratio: 420 / 297;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
  opacity: 0.2;
  transform: translateY(36px) scale(0.985);
  transition: opacity 700ms ease, transform 850ms cubic-bezier(0.22, 1, 0.36, 1);
}

.spread.is-visible { opacity: 1; transform: none; }
.spread h1, .spread h2, .spread h3, .spread p, .spread blockquote { margin-top: 0; }
.spread-number { position: absolute; z-index: 30; right: 2.1%; bottom: 1.7%; color: rgba(255, 255, 255, 0.45); font-size: clamp(6px, 0.65vw, 10px); letter-spacing: 0.12em; }

.spread--vector { background: #0b1320; }
.vector-spread { display: block; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 420ms ease; }
.spread--vector.is-art-loaded .vector-spread { opacity: 1; }
.vector-loading { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, 0.36); font-size: clamp(8px, 0.9vw, 13px); letter-spacing: 0.12em; text-transform: uppercase; }
.spread--vector.is-art-loaded .vector-loading { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.cover-media, .questions-media {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  transform: scale(1.008);
  animation: atmospheric-push 20s ease-in-out infinite alternate;
}

.cover-media img, .questions-media img { width: 100%; height: 100%; object-fit: cover; }
.cover-media img:first-child, .questions-media img:first-child { object-position: right center; }
.cover-media img:last-child, .questions-media img:last-child { object-position: left center; }
.cover-wash { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), transparent 52%, rgba(0, 0, 0, 0.28)); }
.cover-year { position: absolute; top: 51%; left: 1.2%; margin: 0; font-size: clamp(7px, 1.05vw, 15px); font-weight: 700; letter-spacing: 0.04em; transform: rotate(-90deg) translateX(-50%); transform-origin: left top; }
.cover-copy { position: absolute; left: 22%; right: 22%; bottom: 2.6%; text-align: center; text-shadow: 0 3px 14px rgba(0, 0, 0, 0.9); }
.cover-copy h1, .cover-subtitle {
  margin-bottom: 0;
  font-family: "Artifakt Display", "Artifakt", sans-serif;
  font-style: italic;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.cover-copy h1 { font-size: clamp(24px, 4.25vw, 64px); }
.cover-subtitle { font-size: clamp(17px, 2.7vw, 40px); }
.cover-unit { margin: 3.7% 0 0; font-size: clamp(8px, 1.2vw, 18px); font-weight: 700; }
.spread--cover .spread-number { display: none; }

.unit-background { position: absolute; z-index: -4; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.unit-model {
  position: absolute;
  z-index: -3;
  top: -17%;
  right: -6%;
  width: 70%;
  height: 134%;
  object-fit: cover;
  object-position: center;
  filter: contrast(0.95) brightness(1.1);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.2) 13%, #000 35%);
  animation: model-drift 22s ease-in-out infinite alternate;
}
.unit-fade { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(5, 12, 20, 0.98) 0%, rgba(8, 17, 28, 0.93) 43%, rgba(8, 17, 28, 0.18) 62%, transparent 100%); }
.unit-copy { width: 51%; height: 100%; padding: 2.9% 0 2.6% 3.05%; }
.unit-copy header h2 { margin-bottom: 0; font-family: "Artifakt Display", "Artifakt", sans-serif; font-size: clamp(15px, 2vw, 30px); font-style: italic; line-height: 1; text-transform: uppercase; }
.unit-copy header a { color: rgba(255, 255, 255, 0.62); font-size: clamp(6px, 0.8vw, 12px); text-decoration: none; }
.unit-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 5%; margin-top: 4%; }
.unit-columns section { margin-bottom: 8%; }
.unit-columns h3 { margin-bottom: 4%; font-family: "Artifakt Display", "Artifakt", sans-serif; font-size: clamp(8px, 1.1vw, 16px); font-style: italic; line-height: 1; }
.unit-columns p { margin-bottom: 4%; color: rgba(245, 243, 236, 0.73); font-size: clamp(5px, 0.67vw, 10px); line-height: 1.2; }
.unit-columns strong { color: var(--ink); font-family: "Artifakt Display", "Artifakt", sans-serif; font-style: italic; text-transform: uppercase; }
.critics ul { column-count: 2; column-gap: 6%; margin: 0; padding: 0; color: rgba(245, 243, 236, 0.7); list-style: none; font-size: clamp(5px, 0.64vw, 9px); line-height: 1.25; }
.unit-credit { position: absolute; left: 33%; bottom: 1.4%; margin: 0; color: rgba(255, 255, 255, 0.56); font-size: clamp(4px, 0.51vw, 7px); }

.questions-media { filter: saturate(0.65) contrast(1.1); }
.questions-wash { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(1, 8, 15, 0.08), rgba(5, 14, 29, 0.62)); }
.question-cloud { position: absolute; inset: 0; }
.question-cloud blockquote {
  position: absolute;
  margin: 0;
  padding: 0.22em 0.55em 0.18em;
  max-width: 49%;
  color: #fff;
  background: rgba(5, 15, 39, 0.9);
  font-family: "Artifakt Display", "Artifakt", sans-serif;
  font-size: clamp(9px, 1.5vw, 22px);
  font-style: italic;
  font-weight: 900;
  line-height: 1.05;
  text-wrap: balance;
}
.question-cloud blockquote:nth-child(1) { top: 15%; left: 2%; }
.question-cloud blockquote:nth-child(2) { top: 27%; left: 42%; max-width: 43%; }
.question-cloud blockquote:nth-child(3) { top: 40%; left: 1.5%; max-width: 60%; font-size: clamp(12px, 1.95vw, 29px); }
.question-cloud blockquote:nth-child(4) { top: 53%; left: 35%; max-width: 43%; }
.question-cloud blockquote:nth-child(5) { top: 63%; left: 7%; font-size: clamp(13px, 2.15vw, 32px); text-transform: uppercase; }
.question-cloud blockquote:nth-child(6) { top: 74%; left: 3%; max-width: 58%; }
.question-cloud blockquote:nth-child(7) { top: 85%; left: 41%; max-width: 47%; font-size: clamp(7px, 1.08vw, 16px); }

.timeline-image { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 46%; filter: brightness(0.52) saturate(0.45); animation: model-drift 24s ease-in-out infinite alternate; }
.timeline-wash { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(3, 7, 9, 0.96) 0%, rgba(4, 8, 12, 0.75) 42%, rgba(3, 6, 9, 0.62)); }
.timeline-heading { position: absolute; top: 6%; left: 4%; width: 50%; }
.timeline-heading > p { margin-bottom: 1%; color: var(--acid); font-size: clamp(6px, 0.8vw, 11px); letter-spacing: 0.12em; }
.timeline-heading h2 { margin-bottom: 3%; font-family: "Artifakt Display", "Artifakt", sans-serif; font-size: clamp(26px, 4.3vw, 64px); font-style: italic; line-height: 0.82; letter-spacing: -0.05em; text-transform: uppercase; }
.timeline-heading span { display: block; width: 75%; color: rgba(245, 243, 236, 0.72); font-size: clamp(7px, 0.92vw, 13px); line-height: 1.25; }
.terms { position: absolute; left: 4%; right: 4%; bottom: 8%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%; }
.terms::before { content: ""; position: absolute; top: 8%; left: 2%; right: 2%; border-top: 1px solid rgba(255, 255, 255, 0.43); }
.term { position: relative; padding-top: 9%; }
.term-marker { position: absolute; z-index: 1; top: 0; left: 0; display: grid; place-items: center; width: clamp(18px, 2.4vw, 36px); aspect-ratio: 1; color: #111; background: var(--acid); border-radius: 50%; font-size: clamp(6px, 0.72vw, 10px); font-weight: 700; }
.term:nth-child(2) .term-marker { background: var(--coral); }
.term:nth-child(3) .term-marker { color: #fff; background: #4c4e4b; }
.term-label { margin-bottom: 2%; color: var(--acid); font-size: clamp(7px, 0.92vw, 13px); font-weight: 700; text-transform: uppercase; }
.term:nth-child(2) .term-label { color: var(--coral); }
.term:nth-child(3) .term-label { color: #d0d0ca; }
.term-label span { display: block; margin-top: 1%; color: var(--muted); font-size: 0.72em; font-weight: 400; }
.term h3 { margin-bottom: 5%; font-size: clamp(10px, 1.6vw, 23px); line-height: 1; text-transform: uppercase; }
.term ul { margin: 0; padding: 0; list-style: none; }
.term li { position: relative; padding: 2.5% 0 2.5% 6%; border-top: 1px solid rgba(255, 255, 255, 0.14); color: rgba(245, 243, 236, 0.75); font-size: clamp(6px, 0.72vw, 10px); }
.term li::before { content: "+"; position: absolute; left: 0; color: var(--acid); }

.spread--closing { background: #070807; }
.closing-texture { position: absolute; z-index: -2; inset: 0; background: url("./assets/images/internal-texture.png") center / cover; filter: brightness(0.16) contrast(1.3) grayscale(1); }
.closing-kicker { position: absolute; top: 4%; left: 3%; color: var(--muted); font-size: clamp(6px, 0.76vw, 11px); letter-spacing: 0.13em; text-transform: uppercase; }
.closing-title { position: absolute; top: 45%; left: 0; right: 0; display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; font-family: "Artifakt Display", "Artifakt", sans-serif; font-size: clamp(43px, 7.8vw, 116px); font-style: italic; font-weight: 900; line-height: 0.78; letter-spacing: -0.07em; text-transform: uppercase; transform: translateY(-50%); }
.closing-title span:first-child { justify-self: end; }
.closing-title span:last-child { justify-self: start; color: var(--acid); }
.closing-link { position: absolute; left: 50%; bottom: 6%; display: grid; grid-template-columns: auto auto; font-size: clamp(17px, 2.7vw, 40px); text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; transform: translateX(-50%); white-space: nowrap; }
.closing-link span:last-child { color: var(--acid); }

.present-controls { display: none; }
html[data-mode="present"], html[data-mode="present"] body { overflow: hidden; }
html[data-mode="present"] .toolbar { background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent); border: 0; backdrop-filter: none; }
html[data-mode="present"] .toolbar-end { display: none; }
html[data-mode="present"] .deck { position: fixed; inset: 0; display: block; padding: 0; }
html[data-mode="present"] .spread {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(calc(100vw - 5rem), calc((100vh - 5rem) * 420 / 297));
  max-height: calc(100vh - 5rem);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.94);
  transition: opacity 650ms ease, transform 850ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 650ms ease;
}
html[data-mode="present"] .spread.is-before { transform: translate(-58%, -50%) scale(0.92); filter: blur(12px); }
html[data-mode="present"] .spread.is-after { transform: translate(-42%, -50%) scale(0.92); filter: blur(12px); }
html[data-mode="present"] .spread.is-active { z-index: 2; opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); filter: none; }
html[data-mode="present"] .spread[data-transition="zoom"].is-after { transform: translate(-50%, -50%) scale(1.12); }
html[data-mode="present"] .spread[data-transition="dissolve"] { transition-duration: 1000ms; }
html[data-mode="present"] .spread.is-active .vector-spread { animation: vector-breathe 18s ease-in-out infinite alternate; }
html[data-mode="present"] .present-controls { position: fixed; z-index: 110; left: 50%; bottom: 15px; display: flex; align-items: center; gap: 18px; transform: translateX(-50%); }
.present-controls button { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; background: rgba(8, 8, 7, 0.62); border: 1px solid rgba(255, 255, 255, 0.26); border-radius: 50%; cursor: pointer; backdrop-filter: blur(10px); }
.present-controls p { margin: 0; font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.present-controls .divider { padding: 0 5px; color: rgba(255, 255, 255, 0.38); }

@keyframes atmospheric-push { from { transform: scale(1.008) translate3d(-0.2%, 0, 0); } to { transform: scale(1.045) translate3d(0.5%, -0.35%, 0); } }
@keyframes model-drift { from { transform: scale(1.01) translate3d(-0.6%, 0, 0); } to { transform: scale(1.045) translate3d(0.8%, -0.5%, 0); } }
@keyframes vector-breathe { from { transform: scale(1); } to { transform: scale(1.008); } }

@media (max-width: 680px) {
  :root { --spread-width: 98vw; }
  .toolbar { grid-template-columns: 1fr auto; min-height: 54px; padding: 7px 10px; }
  .project-label { display: none; }
  .mode-switch button { padding: 7px 10px; font-size: 10px; }
  .deck { gap: 8vh; padding-top: 86px; }
  html[data-mode="present"] .spread { width: min(98vw, calc((100vh - 7rem) * 420 / 297)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

@page { size: A3 landscape; margin: 0; }
@media print {
  html, body { width: 420mm; margin: 0; color-adjust: exact; print-color-adjust: exact; background: #fff; }
  .toolbar, .present-controls { display: none !important; }
  .deck { display: block !important; padding: 0 !important; }
  .spread { width: 420mm !important; height: 297mm !important; margin: 0 !important; break-after: page; opacity: 1 !important; transform: none !important; box-shadow: none !important; }
  .motion-media { animation: none !important; }
}
