:root {
  --paper: #FFFFFF;
  --ink: #111111;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Old Standard TT', 'Times New Roman', serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* VHS on-screen lettering: white with a hard black outline */
.vhs {
  font-family: 'VT323', monospace;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  text-shadow: -1px -1px 0 #111, 1px -1px 0 #111, -1px 1px 0 #111, 1px 1px 0 #111, 0 0 3px #111;
}

/* ---------- Cover (home) ---------- */
.cover {
  position: fixed; inset: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #111111; overflow: hidden;
  cursor: pointer; text-decoration: none;
}
.cover img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: filter 0.2s;
}
.cover:hover img { filter: contrast(1.08); }
.cover:focus-visible { outline: 3px solid #FFFFFF; outline-offset: -8px; }
.cover-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  font-size: clamp(24px, 2.4vw, 36px); white-space: nowrap;
  text-shadow: -2px -2px 0 #111, 2px -2px 0 #111, -2px 2px 0 #111, 2px 2px 0 #111, 0 2px 0 #111, 0 -2px 0 #111, 2px 0 0 #111, -2px 0 0 #111;
}
@media (max-width: 760px) {
  .cover { grid-template-columns: minmax(0, 1fr); }
  .cover .extra { display: none; }
}

/* ---------- Work viewer ---------- */
.stage { position: fixed; inset: 0; overflow: hidden; background: var(--paper); }
.copies { position: absolute; inset: 0; }
.copy { position: absolute; display: flex; align-items: center; justify-content: center; }
.copy.is-film { border: 7px solid #111111; }
.copy-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.copy-letter { position: absolute; left: -16px; top: -24px; font-size: 20px; color: #111111; }
.copy-slot { position: absolute; left: 8px; bottom: 4px; font-family: 'VT323', monospace; font-size: 16px; letter-spacing: 0.04em; }
.film-source { position: fixed; left: 0; top: 0; width: 2px; height: 2px; opacity: 0; pointer-events: none; }

.zone { position: absolute; top: 0; width: 50%; height: 100%; z-index: 90; }
.zone-left { left: 0; }
.zone-right { right: 0; }
.zone:focus-visible { outline: 2px solid #111111; outline-offset: -6px; }

.caption-wrap {
  position: absolute; inset: 0; z-index: 100; pointer-events: none;
  display: flex; align-items: center; justify-content: center; padding: 0 16px;
}
.caption-card {
  max-width: 560px; background: var(--paper); padding: 26px 30px 28px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
}
.caption-card .numeral { font-size: 22px; line-height: 1; }
.caption-card h1 {
  margin: 0; font-weight: 400; font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.05; letter-spacing: 0.02em; text-transform: uppercase;
}
.caption-card p {
  margin: 10px 0 0; font-style: italic; font-size: 19px; line-height: 1.35;
  text-align: justify; text-align-last: center; hyphens: auto;
}

.osd { position: absolute; z-index: 110; }
.osd-tl { top: 14px; left: 18px; pointer-events: none; font-size: clamp(26px, 2.6vw, 38px); line-height: 0.95; }
.osd-tr {
  top: 14px; right: 18px; display: flex; flex-direction: column; align-items: flex-end;
  font-size: clamp(26px, 2.6vw, 38px); line-height: 0.95;
}
.osd-tr a { color: #FFFFFF; text-decoration: none; }
.osd-bottom {
  left: 0; right: 0; bottom: 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 8px 24px; padding: 8px 18px 10px; font-size: 26px; line-height: 1;
}
.osd-bottom p { margin: 0; pointer-events: none; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.controls .group { display: flex; align-items: center; gap: 6px; }
.controls button { min-height: 44px; padding: 0 2px; color: #FFFFFF; letter-spacing: inherit; text-shadow: inherit; }
.controls button[aria-pressed="true"] { text-decoration: underline; }

/* ---------- Index wheel ---------- */
.index {
  position: fixed; inset: 0; z-index: 200; background: var(--paper); overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 56px 16px 48px;
}
.index[hidden] { display: none; }
.words { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.word {
  position: absolute; font-family: 'VT323', monospace; color: #FFFFFF;
  text-transform: uppercase; white-space: nowrap; line-height: 1; letter-spacing: 0.04em;
}
.index-close {
  position: absolute; top: 12px; right: 18px; z-index: 2; min-height: 44px; padding: 0 8px;
  background: var(--paper); font-family: 'VT323', monospace; font-size: 28px;
}
.wheel { position: relative; z-index: 1; flex: none; width: min(84vh, 92vw); aspect-ratio: 1 / 1; container-type: inline-size; }
.wheel svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.w-label {
  position: absolute; transform: translate(-50%, -50%) rotate(var(--rot));
  font-family: 'Archivo Narrow', 'Arial Narrow', sans-serif; font-weight: 700;
  text-transform: uppercase; white-space: nowrap; color: #111111;
}
.w-label.on { color: #FFFFFF; }
.w-tag { pointer-events: none; letter-spacing: 0.08em; }
.w-proj { height: 12%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4cqw; }
.w-proj .n { font-size: max(9px, 1.5cqw); letter-spacing: 0.12em; }
.w-proj .t { font-size: max(11px, 2.7cqw); line-height: 1; letter-spacing: 0.04em; }
.w-page {
  width: 18%; height: 8%; display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: max(10px, 2cqw); letter-spacing: 0.1em;
}
.w-page:hover { color: inherit; }
.w-page.on:hover { color: #FFFFFF; }
.fig {
  position: absolute; left: 18px; bottom: 14px; z-index: 2; margin: 0; padding: 2px 8px;
  background: var(--paper); font-style: italic; font-size: 17px;
}
@media (max-width: 760px) {
  .fig { font-size: 14px; right: 18px; }
}

/* ---------- About ---------- */
.about { position: fixed; inset: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 72px 16px 48px; }
.about .caption-card { position: relative; z-index: 1; }
.about .contact { font-style: normal; text-align: center; text-align-last: center; }
.back {
  position: absolute; top: 12px; left: 18px; z-index: 2; display: inline-flex; align-items: center;
  min-height: 44px; font-size: 28px; text-decoration: none;
}
