/* ==========================================================================
   Max Solution — a film in six chapters
   black / gold / silver · editorial · museum composition
   ========================================================================== */

:root {
  --black: #070707;
  --black-2: #0b0b0b;
  --panel: #101010;
  --gold: #c8a24b;
  --gold-bright: #e9cd8a;
  --gold-dim: rgba(200, 162, 75, 0.4);
  --silver: #b9bdc6;
  --silver-dim: rgba(185, 189, 198, 0.6);
  --ivory: #f1eee6;
  --line: rgba(241, 238, 230, 0.13);
  --line-gold: rgba(200, 162, 75, 0.35);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --rail: clamp(0rem, 6vw, 5.5rem);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--black); }

em { font-style: italic; color: var(--gold-bright); }

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

/* Film grain — the whole site is shot on stock */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* ==========================================================================
   Top bar — quiet, like a cinema title strip
   ========================================================================== */

.bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem var(--pad);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
}
.bar.is-scrolled {
  background: rgba(7, 7, 7, 0.9);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.bar__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ivory);
  text-decoration: none;
  margin-right: auto;
}
.bar__brand span { color: var(--gold); }
.bar__index {
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--silver-dim);
}
.bar__door {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  text-decoration: none;
  border-bottom: 1px solid var(--line-gold);
  padding-bottom: 3px;
}
.bar__door:hover { color: var(--ivory); border-color: var(--ivory); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--ivory);
  transition: transform 0.3s ease;
}
.nav-toggle.is-open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle.is-open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.chapters-menu[hidden] { display: none; }
.chapters-menu {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(7, 7, 7, 0.97);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
  padding: var(--pad);
}
.chapters-menu a {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 6.5vw, 2.6rem);
  color: var(--ivory);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.9rem;
}
.chapters-menu a i {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--gold);
}
.chapters-menu a:hover { color: var(--gold-bright); }

/* ==========================================================================
   Prologue — the cold open
   ========================================================================== */

.prologue {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem var(--pad) 4rem;
  position: relative;
}
.prologue::after {
  /* a single spotlight from above, like a stage */
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  height: 90vw;
  background: radial-gradient(closest-side, rgba(200, 162, 75, 0.07), transparent 65%);
  pointer-events: none;
}
.prologue__label {
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--silver-dim);
  margin-bottom: 3rem;
}
.prologue__line {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.9rem, 9.5vw, 8.2rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.prologue__line > span { display: block; }
.prologue__twist {
  margin-top: 1.6rem;
  padding-left: clamp(1.5rem, 12vw, 12rem);
  transition-delay: 0.35s;
}
.prologue__cue {
  margin-top: 4.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver-dim);
  transition-delay: 0.7s;
}
.cue-line {
  display: inline-block;
  width: 3rem;
  height: 1px;
  background: var(--gold);
}

/* ==========================================================================
   Chapters — shared architecture
   ========================================================================== */

.chapter {
  position: relative;
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  padding: clamp(5rem, 10vw, 9rem) var(--pad);
  border-top: 1px solid var(--line);
}
.chapter--alt { background: var(--black-2); }

.chapter__rail { position: relative; }
.chapter__rail span {
  position: sticky;
  top: 40vh;
  display: inline-block;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-dim);
  white-space: nowrap;
}

.chapter__body { min-width: 0; }

.chapter__head { margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.chapter__no {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.chapter__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6.5vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.chapter__intro {
  max-width: 34rem;
  color: var(--silver);
  margin-top: 1.6rem;
}
.chapter__closer {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 300;
  line-height: 1.25;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  max-width: 40rem;
}

/* ==========================================================================
   CH.01 — the hours
   ========================================================================== */

.hour {
  display: grid;
  grid-template-columns: minmax(9rem, 0.9fr) 1.1fr 1.6fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2.2rem, 5vw, 3.8rem) 0;
  border-bottom: 1px solid var(--line);
}
.hour:last-of-type { border-bottom: 0; }
.hour--flip { grid-template-columns: minmax(9rem, 0.9fr) 1.6fr 1.1fr; }
.hour--flip .hour__story { order: 3; }
.hour--flip .hour__fig { order: 2; }

.hour__when { display: flex; flex-direction: column; gap: 0.4rem; }
.hour__time {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}
.hour__place {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver-dim);
}
.hour__story p {
  color: var(--silver);
  font-size: 1.08rem;
  max-width: 26rem;
}

.hour__fig {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0.6rem;
}
.hour__fig img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  filter: saturate(0.9);
  transition: filter 0.5s ease;
}
.hour__fig:hover img { filter: saturate(1); }
.hour__fig figcaption {
  padding: 0.7rem 0.3rem 0.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-dim);
}
.hour__fig.is-empty { display: none; }

/* ==========================================================================
   CH.02 — the catalog (exhibition wall)
   ========================================================================== */

.catalog {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.exhibit a {
  display: block;
  text-decoration: none;
  color: var(--ivory);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.exhibit a:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}
.exhibit__mat {
  padding: 0.55rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 15% 0%, rgba(200, 162, 75, 0.16), transparent 55%),
    linear-gradient(160deg, #15130e 0%, #0c0c0c 70%);
}
.exhibit__mat img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  filter: saturate(0.85);
  transition: filter 0.45s ease;
}
.exhibit a:hover .exhibit__mat img { filter: saturate(1); }
.exhibit__plate { padding: 1.05rem 1.15rem 1.2rem; }
.exhibit__no {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.45rem;
}
.exhibit__plate h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.28rem;
  margin-bottom: 0.2rem;
}
.exhibit a:hover .exhibit__plate h3 { color: var(--gold-bright); }
.exhibit__plate p {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-dim);
  margin-bottom: 0.7rem;
}
.exhibit__live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--silver);
}
.exhibit__live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(200, 162, 75, 0.8);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ==========================================================================
   CH.03 — the fifty
   ========================================================================== */

.fifty { overflow: hidden; padding-bottom: 0; }
.fifty__stage {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
.fifty__number {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(9rem, 28vw, 26rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold-dim);
  user-select: none;
}
.fifty__copy p {
  color: var(--silver);
  max-width: 30rem;
  margin-top: 1.6rem;
}
.fifty__verdict {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.2;
}

.ticker {
  border-top: 1px solid var(--line-gold);
  border-bottom: 1px solid var(--line-gold);
  padding: 1.05rem 0;
  background: var(--black-2);
  margin: 0 calc(-1 * var(--pad));
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  animation: ticker 40s linear infinite;
}
.ticker__track span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--silver);
  white-space: nowrap;
}
.ticker__track i {
  font-style: normal;
  font-size: 0.5rem;
  color: var(--gold);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ==========================================================================
   CH.04 — software
   ========================================================================== */

.tally {
  margin-top: 2.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-dim);
}
.tally b {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold-bright);
}
.tally i {
  font-style: normal;
  color: var(--gold-dim);
  margin: 0 0.9rem;
}

.feature {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
}
.feature__mat {
  padding: 0.6rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 15% 0%, rgba(200, 162, 75, 0.16), transparent 55%),
    linear-gradient(160deg, #15130e 0%, #0c0c0c 70%);
}
.feature__mat img {
  width: 100%;
  height: auto;
  filter: saturate(0.9);
  transition: filter 0.5s ease;
}
.feature__mat:hover img { filter: saturate(1); }

.feature__info { min-width: 0; }
.feature__info .exhibit__live { margin-bottom: 1.1rem; }
.feature__info h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
.feature__kind {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1.1rem;
}
.feature__desc {
  color: var(--silver);
  max-width: 30rem;
  margin-bottom: 1.6rem;
}
.feature__facts {
  list-style: none;
  margin-bottom: 2.2rem;
}
.feature__facts li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  color: var(--silver);
  font-size: 0.94rem;
}
.feature__facts li:last-child { border-bottom: 1px solid var(--line); }

.dev-intro { margin-top: clamp(3rem, 6vw, 5rem); }

.dev-list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.dev-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  gap: 1.4rem;
  align-items: baseline;
  padding: clamp(1.5rem, 3vw, 2.1rem) 0.25rem;
  border-bottom: 1px solid var(--line);
}
.dev-row__no {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold);
}
.dev-row__body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}
.dev-row__body p {
  color: var(--silver-dim);
  font-size: 0.92rem;
  max-width: 30rem;
}
.dev-row__status {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-dim);
  white-space: nowrap;
  justify-self: end;
}

.software-cta { margin-top: clamp(2rem, 4vw, 3rem); }

/* ==========================================================================
   CH.05 — the refusals
   ========================================================================== */

.refusals {
  list-style: none;
  display: grid;
  gap: 0;
  counter-reset: refusal;
}
.refusal {
  display: grid;
  grid-template-columns: minmax(6rem, 0.35fr) 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2.2rem, 5vw, 3.5rem) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.refusal:last-child { border-bottom: 0; }
.refusal__no {
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  padding-top: 0.7rem;
}
.refusal h3,
.refusal p { grid-column: 2; }
.refusal h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4.2vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 0.8rem;
}
.refusal p {
  color: var(--silver);
  max-width: 36rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   CH.06 — the instruments
   ========================================================================== */

.instruments {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(2rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
}
.instrument {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1.2rem;
  align-items: baseline;
  padding: 1.5rem 0.25rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, padding-left 0.3s ease;
}
.instrument:hover {
  background: linear-gradient(90deg, rgba(200, 162, 75, 0.06), transparent 70%);
  padding-left: 0.9rem;
}
.instrument span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold);
}
.instrument h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.2;
}
.instrument p {
  grid-column: 2;
  color: var(--silver-dim);
  font-size: 0.92rem;
  margin-top: 0.15rem;
}

.geography {
  margin-top: clamp(4rem, 8vw, 6.5rem);
  border: 1px solid var(--line-gold);
  background: linear-gradient(120deg, rgba(200, 162, 75, 0.06), transparent 60%);
  padding: clamp(1.8rem, 4vw, 3rem);
}
.geography__lede {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 1.6rem;
}
.geography__cities {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.geography__cities li { border-left: 1px solid var(--line-gold); padding-left: 1rem; }
.geography__cities span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.geography__cities i {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-dim);
}

/* ==========================================================================
   Epilogue — the door
   ========================================================================== */

.door {
  padding: clamp(5rem, 10vw, 9rem) var(--pad);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(200, 162, 75, 0.07), transparent 70%),
    var(--black);
}
.door__head { max-width: 46rem; margin-bottom: 3.5rem; }
.door__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  line-height: 1.06;
}
.door__note { color: var(--silver); margin-top: 1.5rem; max-width: 32rem; }

.door__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 56rem;
}
.field { display: flex; flex-direction: column; gap: 0.6rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--silver);
}
.field input,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  padding: 0.7rem 0.1rem;
  outline: none;
  transition: border-color 0.25s ease;
  resize: vertical;
}
.field input:focus,
.field textarea:focus { border-bottom-color: var(--gold); }
.field input::placeholder,
.field textarea::placeholder { color: rgba(185, 189, 198, 0.35); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.7rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--black);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.btn--gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn--big { padding: 1.1rem 2.6rem; font-size: 0.85rem; }
.btn__arrow { transition: transform 0.25s ease; }
.btn:hover .btn__arrow { transform: translateX(5px); }

.door__actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.door__direct {
  color: var(--silver);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line-gold);
  padding-bottom: 2px;
}
.door__direct:hover { color: var(--gold-bright); }

.door__last {
  margin-top: clamp(4rem, 7vw, 6rem);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  color: var(--silver);
}

/* ==========================================================================
   Colophon
   ========================================================================== */

.colophon {
  border-top: 1px solid var(--line);
  padding: 3rem var(--pad) 2rem;
  overflow: hidden;
}
.colophon__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 13vw, 12rem);
  line-height: 0.85;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(200, 162, 75, 0.22);
  user-select: none;
  margin-bottom: 2.5rem;
}
.colophon__row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-dim);
}
.colophon__row a { color: var(--silver); text-decoration: none; }
.colophon__row a:hover { color: var(--gold-bright); }

/* ==========================================================================
   Reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ?static preview mode — screenshots / QA */
html.static { scroll-behavior: auto; }
html.static .prologue { min-height: 0; padding-top: 9rem; }
html.static .reveal { opacity: 1; transform: none; transition: none; }
html.static .ticker__track { animation: none; }
html.static .grain { animation: none; }
html.static .exhibit__live i { animation: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker__track { animation: none; }
  .grain { animation: none; }
  .exhibit__live i { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .catalog { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .bar__index, .bar__door { display: none; }
  .nav-toggle { display: flex; }

  .chapter { grid-template-columns: 1fr; }
  .chapter__rail { display: none; }

  .hour,
  .hour--flip { grid-template-columns: 1fr; gap: 1.2rem; }
  .hour--flip .hour__story { order: 0; }
  .hour--flip .hour__fig { order: 0; }
  .hour__when { flex-direction: row; align-items: baseline; gap: 1rem; }

  .fifty__stage { grid-template-columns: 1fr; gap: 1rem; }

  .instruments { grid-template-columns: 1fr; }
  .geography__cities { grid-template-columns: 1fr 1fr; }

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

  .dev-row { grid-template-columns: 2.2rem 1fr; }
  .dev-row__status { grid-column: 2; justify-self: start; margin-top: 0.4rem; }

  .refusal { grid-template-columns: 1fr; gap: 0.4rem; }
  .refusal__no { padding-top: 0; }

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

@media (max-width: 560px) {
  .catalog { grid-template-columns: 1fr; }
  .geography__cities { grid-template-columns: 1fr; }
  .prologue__twist { padding-left: 1.2rem; }
}
