:root {
  --ink: #0b0b0c;
  --panel: #1a1a1b;
  --paper: #f2efe8;
  --muted: rgba(242, 239, 232, 0.55);
  --line: rgba(242, 239, 232, 0.14);
  --accent: #e8572a;
  --cyan: #3fb8c9;
  --pink: #e0457b;
  --gold: #e7b53c;
  --gutter: clamp(16px, 5vw, 72px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-snap-type: y proximity; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; width: 100%; height: auto; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.02;
}

h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }

.label {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.accent { color: var(--accent); }

/* nav */
nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px var(--gutter);
}
nav a {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color .2s;
}
nav a:hover { color: var(--paper); }

/* every panel fills the window */
.panel {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(80px, 10vh, 112px) 0 clamp(48px, 8vh, 96px);
  scroll-snap-align: start;
}
.panel > .wrap { width: 100%; }

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.hero figure img { max-height: 64vh; object-fit: cover; }
.hero h1 { font-size: clamp(3.4rem, 10vw, 8.5rem); line-height: .9; }
.hero .sub {
  margin-top: 1.5rem;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero .tag {
  margin-top: clamp(40px, 8vh, 96px);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  max-width: 22ch;
}
.hero figure { background: var(--panel); padding: clamp(16px, 2.5vw, 32px); }

/* sections */
section { border-top: 1px solid var(--line); }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.split > div > .label { display: block; margin-bottom: 1.75rem; }
.prose p { margin-top: 1.25rem; max-width: 46ch; color: rgba(242, 239, 232, .82); }
.prose p.lead { color: var(--accent); font-weight: 700; }

.callout {
  background: var(--panel);
  padding: clamp(28px, 4vw, 56px);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}
.callout .label { display: block; margin-bottom: 1.25rem; }

figcaption {
  margin-top: .75rem;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* the rule */
.elements { list-style: none; counter-reset: el; }
.elements li {
  counter-increment: el;
  display: flex;
  gap: 1.5rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.elements li::before {
  content: counter(el, decimal-leading-zero);
  color: var(--muted);
  font-weight: 500;
}
.note { margin-top: 1.75rem; color: var(--accent); font-weight: 700; }

/* the set */
.set-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: clamp(20px, 3vh, 36px); }
.set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vh, 28px) clamp(16px, 2vw, 32px); }
.pair.primary { grid-column: 1 / -1; }
.pair h3 { font-size: .75rem; letter-spacing: .16em; margin-bottom: .6rem; }
.pair .imgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pair figure { margin: 0; }
/* the set panel sizes its photos to whatever height is left in the window */
#the-set { padding: 72px 0 32px; }
#the-set h2 { margin-top: .6rem !important; font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.pair img { height: max(80px, calc((100svh - 360px) * .27)); object-fit: cover; }
/* --ph is the primary photo's height; the wall label is sized from it */
.pair.primary { --ph: max(120px, calc((100svh - 360px) * .46)); }
.pair.primary img { height: var(--ph); }
.pair figcaption { margin-top: .4rem; font-size: .6rem; }
.pair figure:last-child figcaption { color: var(--accent); }

/* the wooden wall in the primary set photo links to the world page */
.wall-link { position: relative; display: block; text-decoration: none; }
/* the wall is ~0.6x the photo height wide and sits just left of centre */
.pair.primary .wall-link .wall-figures {
  position: absolute;
  left: calc(50% - var(--ph) * .043);
  top: 43%;
  width: calc(var(--ph) * .62);
  height: auto;
  object-fit: contain;
  transform: translate(-50%, -50%);
  transition: transform .2s, filter .2s;
}
.wall-link:hover .wall-figures, .wall-link:focus-visible .wall-figures {
  transform: translate(-50%, -50%) scale(1.06);
  filter: drop-shadow(0 0 6px var(--accent));
}

/* format */
.run {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: clamp(40px, 6vh, 64px);
  counter-reset: run;
}
.run li {
  counter-increment: run;
  background: var(--paper);
  color: var(--ink);
  padding: 1.1rem 1.2rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.run li::before {
  content: counter(run, decimal-leading-zero);
  display: block;
  margin-bottom: 1.6rem;
  font-weight: 500;
  opacity: .5;
}
.run li.hot { background: var(--accent); color: var(--paper); }
.format-note { margin-top: clamp(32px, 5vh, 56px); max-width: 70ch; color: rgba(242, 239, 232, .82); }

/* after hours */
.modes { display: grid; gap: 12px; }
.mode {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  background: var(--panel);
  padding: 1.6rem 1.75rem;
  font-size: .95rem;
}
.mode span {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--accent);
  padding-top: .2rem;
}
.mode p { color: rgba(242, 239, 232, .82); }
.modes + .note { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.after-sub { margin-top: 1.25rem; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.1; }

/* who's on */
.cloud {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4em 1.4em;
  margin-top: clamp(40px, 6vh, 72px);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 3.4vw, 2.6rem);
  line-height: 1.15;
}
.cloud li:nth-child(4n+1) { color: var(--accent); }
.cloud li:nth-child(4n+2) { color: var(--cyan); }
.cloud li:nth-child(4n+3) { color: var(--paper); }
.cloud li:nth-child(4n)   { color: var(--pink); }
.cloud li.gold { color: var(--gold); }
.cloud li.dim  { color: var(--muted); }
.cloud li.next { color: var(--accent); }
.closer { margin-top: clamp(40px, 6vh, 72px); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; }

/* the machine */
.machine h2 { color: var(--accent); }
.machine .meta { margin-top: 1.75rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.machine .meta p + p { margin-top: .5rem; }
.machine .box { margin-top: clamp(32px, 5vh, 56px); background: var(--panel); padding: 1.6rem 1.75rem; }
.machine .box .label { color: var(--accent); display: block; margin-bottom: .75rem; }
.parts { list-style: none; }
.parts li { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.parts li:first-child { padding-top: 0; }
.parts .label { display: block; margin-bottom: .4rem; }
.parts p { font-weight: 700; }

/* the world */
.world-title { background: #000; }
.world-title h2 { font-size: clamp(3rem, 9vw, 7.5rem); line-height: .92; }
.world-title .sub {
  margin-top: 1.25rem;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
}
.world-title .meta { margin-top: clamp(48px, 10vh, 120px); }
.world-title .meta p + p { margin-top: 1rem; color: var(--paper); font-weight: 700; }

.shot { background: #000; border: 0; padding: 24px var(--gutter); justify-content: center; }
.shot figure { width: fit-content; max-width: 100%; margin: 0; }
.shot img {
  width: auto;
  max-width: 100%;
  max-height: calc(100svh - 110px);
  margin: 0 auto;
}
.shot figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}
.shot.concept figcaption span:first-child { color: var(--accent); }

.end {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px var(--gutter);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.end a { text-decoration: none; }
.end a:hover { color: var(--paper); }

/* close: split like the last slide, black left, cream right */
.close { padding: 0; align-items: stretch; border: 0; }
.close-split { display: grid; grid-template-columns: 58fr 42fr; width: 100%; }
.close-left, .close-right {
  display: flex;
  flex-direction: column;
  padding: clamp(80px, 14vh, 150px) clamp(24px, 5vw, 80px) clamp(32px, 6vh, 64px);
}
.close-left { background: #080808; }
.close-left h2 { font-size: clamp(2rem, 4.3vw, 5.2rem); line-height: .95; white-space: nowrap; }
.close-left .sub {
  margin-top: .6rem;
  font-size: clamp(.95rem, 1.6vw, 1.35rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
}
.close-right { background: #f4f1e8; color: var(--ink); }
.close-right h2 { font-size: clamp(1.8rem, 3.6vw, 3.4rem); line-height: 1.05; }
.close-right .art {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
}
.close-right .dates {
  margin-bottom: 18%;
  font-size: clamp(.8rem, 1.1vw, .95rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.4;
}
.close-right img { width: auto; height: clamp(220px, 46vh, 520px); }

@media (max-width: 860px) {
  .hero, .split { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(3rem, 16vw, 5rem); }
  .run { grid-template-columns: 1fr 1fr; }
  .set-grid { grid-template-columns: minmax(0, 1fr); }
  .close-split { grid-template-columns: 1fr; }
  .close-left h2 { font-size: 10.5vw; }
  .pair img, .pair.primary img { height: auto; }
  .pair.primary { --ph: calc((100vw - 2 * var(--gutter)) * .348); }
  .pair.primary .imgs { grid-template-columns: minmax(0, 1fr); }
  /* world photos are landscape: on a phone, size each panel to its photo so they don't float in black */
  .shot { min-height: 0; padding: 20px var(--gutter); }
}

@media (max-width: 520px) {
  .end { flex-direction: column; gap: 6px; }
  .mode { grid-template-columns: 1fr; gap: .5rem; }
}
