/* ============================================================
   FYP — Sirius Crocodile genesis piece
   Salmon ground. Ink panels. Mono brutalism. One Arial Black moment.
   ============================================================ */

:root {
  --ink:      #222;
  --paper:    #fff;
  --blush:    #F7D9D2;
  --blush-d:  #EDC7BF;        /* slightly cooler salmon for ink-on-salmon dividers */

  /* the page's only sanctioned color — the default-blue link gag */
  --link:     #0000EE;
  --visited:  #551A8B;

  /* one display font for ONE moment — the FYP wordmark.
     everything else is Courier. that's the discipline. */
  --font-display: "Arial Black", Impact, "Helvetica Neue", sans-serif;
  --font-mono:    "Courier New", ui-monospace, Menlo, monospace;

  --b:       2px solid var(--ink);
  --b-thick: 4px solid var(--ink);
  --b-paper: 2px solid var(--paper);

  --void:    14vh;

  /* triptych hinge — overridden per breakpoint; read by script.js for drag */
  --tp-open:   16deg;
  --tp-closed: 132deg;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--blush); }
body {
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--blush);
  overflow-x: clip;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:visited { color: var(--visited); }
a:hover, a:focus-visible {
  background: var(--ink);
  color: var(--paper);
  outline: 2px solid var(--ink);
}
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--link);
  border: var(--b);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 14px;
}
.skip-link:focus { transform: translateY(0); }

/* =========================================================
   HERO — static backdrop washed to near-white,
   triptych and plaque sit above. Bottom fades to salmon.
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding-bottom: clamp(40px, 8vh, 96px);
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* white wash — lifts the backdrop into the page instead of dimming it */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0.85);
  z-index: 1;
  pointer-events: none;
}
/* bottom fade to salmon — kills the hard cut into the next section */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 62%,
    rgba(247, 217, 210, 0.20) 76%,
    rgba(247, 217, 210, 0.65) 90%,
    rgba(247, 217, 210, 0.95) 98%,
    var(--blush) 100%
  );
}

.hero__chrome {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  pointer-events: none;
}
.hero__id {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  background: var(--ink);
  color: var(--paper);
  padding: 6px 9px;
  border: var(--b-paper);
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
/* triptych locator — three cells, middle inverted = "you are here" */
.hero__locator {
  display: inline-flex;
  gap: 2px;
  font-size: 9px;
  letter-spacing: 0.14em;
}
.hero__locator-cell {
  min-width: 18px;
  text-align: center;
  padding: 3px 4px;
  border: 1px solid var(--paper);
  color: var(--paper);
  opacity: 0.55;
}
.hero__locator-cell.is-active {
  background: var(--paper);
  color: var(--ink);
  opacity: 1;
}
.hero__id-text { white-space: nowrap; }
.hero__nav {
  display: flex;
  gap: 4px;
  pointer-events: auto;
}
.hero__nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--paper);
  color: var(--ink);
  border: var(--b);
  padding: 8px 11px;
  min-height: 36px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.hero__nav a:hover,
.hero__nav a:focus-visible {
  background: var(--ink);
  color: var(--paper);
  outline-color: var(--ink);
}

/* =========================================================
   THE TRIPTYCH — 3D hinged altarpiece.
   Wings unfold from a folded state on load.
   Honors the [data-triptych-state] attribute set on <html>
   by the inline head script (avoids FOUC).
   ========================================================= */
.triptych {
  position: relative;
  z-index: 3;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 4vh, 56px);
  padding: clamp(56px, 7vh, 96px) 3vw 0;
}

.triptych__stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 1.4vw, 22px);
  width: 100%;
  max-width: min(96vw, 1320px);
  min-height: clamp(280px, 48vh, 540px);
  perspective: 2400px;
  perspective-origin: 50% 40%;
  transform-style: preserve-3d;
}

/* Each panel — a square, ready to be hinged */
.tp {
  position: relative;
  flex: 0 0 auto;
  width: clamp(168px, 24vw, 360px);
  aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
  transition: transform 1400ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.tp--center {
  width: clamp(212px, 30vw, 440px);
  z-index: 0;
}
.tp--left,
.tp--right {
  z-index: 1;
}

/* OPEN STATE — wings angled slightly forward at the "displayed altarpiece" pose
   (positive for left, negative for right) so close is a continuous forward swing. */
.tp--left  { transform-origin: right center; transform: rotateY(var(--tp-open)); cursor: grab; touch-action: none; }
.tp--right { transform-origin: left center;  transform: rotateY(calc(-1 * var(--tp-open))); cursor: grab; touch-action: none; }

/* CLOSED STATE — wings fold FORWARD over the center (positive Z),
   back faces toward the viewer. 132° so they meet without overlap. */
[data-triptych-state="closed"] .tp--left  { transform: rotateY(var(--tp-closed)); }
[data-triptych-state="closed"] .tp--right { transform: rotateY(calc(-1 * var(--tp-closed))); }

/* During drag, suppress the transition so the wing follows the pointer */
html.is-dragging,
html.is-dragging * { user-select: none; cursor: grabbing !important; }
html.is-dragging .tp { transition: none !important; }

/* FACES — wings have two; center is single-faced */
.tp__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  background: var(--ink);
  border: 2px solid var(--paper);
}
.tp__face--back { transform: rotateY(180deg); }
.tp__face video,
.tp__media video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.tp--center .tp__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--ink);
  border: 2px solid var(--paper);
}

/* Small museum label on the front of each panel */
.tp__label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 2;
}
.tp__label--center {
  bottom: 14px; left: 14px;
  padding: 7px 11px;
  font-size: 11px;
}
.tp__no {
  font-weight: 700;
  padding-right: 8px;
  border-right: 1px solid var(--paper);
}
.tp__name {
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Back-face cover plate — the closed altarpiece face */
.tp__cover {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1px 1fr auto auto 1fr 1px;
  justify-items: center;
  align-items: center;
  padding: 18px;
  background:
    repeating-linear-gradient(45deg,
      transparent 0 16px,
      rgba(255,255,255,0.025) 16px 17px),
    var(--ink);
  color: var(--paper);
  text-align: center;
}
.tp__cover-rule {
  width: 70%;
  height: 1px;
  background: var(--paper);
  opacity: 0.55;
}
.tp__cover-no {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(54px, 9vw, 124px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--paper);
  grid-row: 3;
}
.tp__cover-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(11px, 1.35vw, 15px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 6px;
  grid-row: 4;
}
.tp__cover-tag {
  position: absolute;
  bottom: 18px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* =========================================================
   PLAQUE — the museum label below the triptych
   ========================================================= */
.triptych__plaque {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  max-width: 680px;
  padding: 0 3vw;
}
.triptych__wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(52px, 7.5vw, 120px);
  line-height: 0.82;
  letter-spacing: -0.05em;
  margin: 0;
  color: var(--ink);
}
.triptych__title {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.2vw, 15px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: -4px 0 0;
  color: var(--ink);
}
.triptych__title em {
  font-style: italic;
  opacity: 0.78;
  text-transform: none;
  letter-spacing: 0.02em;
}
.triptych__title span { opacity: 0.4; margin: 0 4px; }
.triptych__predella {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.05vw, 14px);
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin: 0;
  max-width: 56ch;
  color: var(--ink);
  opacity: 0.86;
}
.triptych__predella em { font-style: italic; }
.triptych__predella span { opacity: 0.4; margin: 0 4px; }
.triptych__facts {
  list-style: none;
  padding: 14px 24px 0;
  margin: 6px 0 0;
  border-top: 1px solid var(--ink);
  display: grid;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

/* =========================================================
   MAIN — salmon page, ink panels
   ========================================================= */
main {
  position: relative;
  z-index: 2;
  padding: 0 4vw 4vh;
  background: var(--blush);
}

/* =========================================================
   RAFFLE — ink panel, white type, mono brutalist
   ========================================================= */
.raffle {
  margin: var(--void) 0 0;
  background: var(--ink);
  color: var(--paper);
  padding: 44px 36px 36px;
  box-shadow: 14px 14px 0 var(--ink);
}
.raffle__h {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
  color: var(--paper);
  max-width: 22ch;
}
.raffle__bigword {
  display: inline-block;
  background: var(--paper);
  color: var(--ink);
  padding: 0 10px;
}
.raffle__steps {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  font-family: var(--font-mono);
  font-size: 15px;
  border: 2px solid var(--paper);
}
.raffle__steps li {
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--paper);
  align-items: baseline;
}
.raffle__steps li:last-child { border-bottom: 0; }
.raffle__steps b {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--paper);
}
.raffle__steps b::after {
  content: " //";
  opacity: 0.5;
}
.raffle__steps a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.raffle__steps a:hover,
.raffle__steps a:focus-visible {
  background: var(--paper);
  color: var(--ink);
  outline-color: var(--paper);
}

/* 3D print contact sheet */
.prints {
  margin: 0 0 32px;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 14px);
}
.prints__cell {
  aspect-ratio: 1 / 1;
  margin: 0;
  min-width: 0;
  background: #111;
  border: 2px solid var(--paper);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.prints__cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.prints__label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--paper);
  background: var(--ink);
  padding: 4px 7px;
  border: 1px solid var(--paper);
  margin: 0;
  pointer-events: none;
}
.prints__cap {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
  margin: 6px 0 0;
}

.raffle__fineprint {
  font-family: var(--font-mono);
  font-size: 13px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85);
}

/* =========================================================
   CENTERPIECE — full-width ink panel for panel ii
   ========================================================= */
.centerpiece { margin: var(--void) 0 0; }
.centerpiece__h {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--ink);
  max-width: 22ch;
}
.centerpiece__sub {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  margin: 0 0 26px;
  max-width: 56ch;
  color: var(--ink);
}
.oneone--center { max-width: none; }

/* =========================================================
   COMPANIONS — two ink panels on salmon
   ========================================================= */
.companions { margin: var(--void) 0 0; }
.companions__h {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--ink);
  max-width: 22ch;
}
.companions__sub {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  margin: 0 0 26px;
  max-width: 56ch;
  color: var(--ink);
}
.companions__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.oneone {
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 14px 14px 0 var(--ink);
}
.oneone__media {
  aspect-ratio: 1 / 1;
  border-bottom: 2px solid var(--paper);
  overflow: hidden;
  background: var(--ink);
}
.oneone__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* mirrors the triptych panel labels — keeps the deep-dive cards visually unified */
.oneone__top {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 18px;
  padding: 14px 0 10px;
  border-bottom: 1px solid var(--paper);
  color: var(--paper);
}
.oneone__top b { font-weight: 700; }
.oneone__title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0;
  padding: 14px 18px 4px;
  color: var(--paper);
}
/* predella on the wings — italic Courier as caption mode */
.oneone__predella {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  margin: 0;
  padding: 0 18px 14px;
  color: var(--paper);
  opacity: 0.86;
}
.oneone__predella em { font-style: italic; }
.oneone__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
  padding: 0 18px 18px;
  color: var(--paper);
}
.oneone__meta a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.oneone__meta a:hover, .oneone__meta a:focus-visible {
  background: var(--paper);
  color: var(--ink);
  outline-color: var(--paper);
}

/* =========================================================
   LINKS — salmon ground, ink-bordered list, mono headline
   ========================================================= */
.links { margin: var(--void) 0 0; }
.links__h {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 52px);
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  color: var(--ink);
}
.links__list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  background: var(--ink);
  box-shadow: 14px 14px 0 var(--ink);
}
.links__list li { border-bottom: 1px solid var(--paper); }
.links__list li:last-child { border-bottom: 0; }
.links__list a {
  display: block;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.02em;
  background: var(--ink);
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.links__list a:hover,
.links__list a:focus-visible {
  background: var(--paper);
  color: var(--ink);
  outline-color: var(--paper);
}
.links__note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  margin: 0;
  max-width: 64ch;
  color: var(--ink);
}

/* =========================================================
   FOOTER
   ========================================================= */
.foot {
  position: relative;
  z-index: 2;
  margin-top: var(--void);
  padding: 18px 4vw 96px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-top: var(--b);
  background: var(--blush);
}
.foot p { margin: 0; }

/* =========================================================
   PERSISTENT TOGGLES — motion, fold
   ========================================================= */
.motion-toggle,
.fold-toggle {
  position: fixed;
  right: 12px;
  z-index: 6;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 12px;
  min-height: 44px;
  background: var(--paper);
  color: var(--ink);
  border: var(--b);
  cursor: pointer;
}
.motion-toggle { bottom: 12px; }
.fold-toggle  { bottom: 64px; }

.motion-toggle__off { display: none; }
.motion-toggle[aria-pressed="true"] .motion-toggle__on { display: none; }
.motion-toggle[aria-pressed="true"] .motion-toggle__off { display: inline; }
.motion-toggle:hover { background: var(--ink); color: var(--paper); }

/* fold-toggle: aria-pressed=true means triptych is open → label reads "fold" */
.fold-toggle__b { display: none; }
.fold-toggle[aria-pressed="false"] .fold-toggle__a { display: none; }
.fold-toggle[aria-pressed="false"] .fold-toggle__b { display: inline; }
.fold-toggle:hover { background: var(--ink); color: var(--paper); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* tablet — slight overlap, still the horizontal altarpiece */
@media (max-width: 900px) and (min-width: 821px) {
  :root {
    --tp-open:   12deg;
    --tp-closed: 128deg;
  }

  .hero { padding-top: 56px; }
  .triptych { padding-top: clamp(20px, 5vh, 56px); gap: clamp(20px, 4vh, 48px); }
  .triptych__stage {
    gap: 0;
    min-height: clamp(200px, 38vh, 320px);
    max-width: min(100%, 760px);
  }
  .tp { width: clamp(140px, 22vw, 220px); }
  .tp--center { width: clamp(180px, 32vw, 300px); z-index: 2; }
  .tp--left  { margin-right: clamp(-24px, -4vw, -10px); z-index: 1; }
  .tp--right { margin-left:  clamp(-24px, -4vw, -10px); z-index: 1; }
  .tp__label { font-size: 9.5px; padding: 4px 7px; gap: 6px; }
  .tp__label--center { font-size: 10px; padding: 5px 9px; }
}

@media (max-width: 900px) {
  .companions__pair { grid-template-columns: 1fr; }
  .prints { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prints__cell:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
  .raffle { padding: 32px 26px; box-shadow: 8px 8px 0 var(--ink); }
  .oneone,
  .oneone--center { box-shadow: 8px 8px 0 var(--ink); }
  .links__list { box-shadow: 8px 8px 0 var(--ink); }
}

/*
  Mobile — vertical altarpiece (≤820px).
  Center panel hero-sized on top; wings sit on the predella below.
  Never squeeze three panels into one row on a phone.
*/
@media (max-width: 820px) {
  :root {
    --tp-open:   11deg;
    --tp-closed: 126deg;
  }

  body { font-size: 14px; }

  .hero {
    min-height: 0;
    padding-top: 0;
    padding-bottom: clamp(32px, 6vh, 64px);
  }
  .hero__chrome {
    position: relative;
    padding: 12px 16px 0;
    flex-wrap: wrap;
    gap: 10px;
  }
  .hero__id { font-size: 10px; padding: 5px 8px; }
  .hero__locator-cell { min-width: 16px; font-size: 8px; padding: 2px 3px; }
  .hero__nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }
  .hero__nav a {
    font-size: 11px;
    padding: 7px 10px;
    min-height: 36px;
  }

  .triptych {
    padding: clamp(8px, 2vh, 24px) 5vw 0;
    gap: clamp(24px, 5vh, 40px);
  }
  .triptych__stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "center center"
      "left right";
    align-items: center;
    justify-items: center;
    row-gap: clamp(18px, 4vw, 28px);
    column-gap: clamp(12px, 3vw, 20px);
    width: min(100%, 400px);
    max-width: 100%;
    min-height: 0;
    perspective: 1600px;
    perspective-origin: 50% 26%;
  }
  .triptych__stage::after {
    content: "";
    grid-area: center;
    align-self: end;
    justify-self: center;
    width: min(68%, 240px);
    height: 1px;
    background: var(--ink);
    opacity: 0.2;
    transform: translateY(calc(50% + clamp(8px, 2vw, 14px)));
    pointer-events: none;
  }

  .tp { margin: 0; }
  .tp--center {
    grid-area: center;
    width: min(92vw, 360px);
    z-index: 2;
  }
  .tp--left {
    grid-area: left;
    width: min(44vw, 188px);
    justify-self: end;
    z-index: 1;
  }
  .tp--right {
    grid-area: right;
    width: min(44vw, 188px);
    justify-self: start;
    z-index: 1;
  }

  .tp__label { font-size: 9.5px; padding: 4px 8px; gap: 6px; bottom: 8px; left: 8px; }
  .tp__label--center { font-size: 10.5px; padding: 6px 10px; bottom: 12px; left: 12px; }
  .tp__cover-no { font-size: clamp(44px, 12vw, 88px); }
  .tp__cover-name { font-size: 10px; letter-spacing: 0.16em; }
  .tp__cover-tag { font-size: 8.5px; bottom: 10px; }

  .triptych__plaque { gap: 18px; padding: 0 2vw; }
  .triptych__wordmark { font-size: clamp(56px, 20vw, 104px); }
  .triptych__title { font-size: 11.5px; letter-spacing: 0.1em; line-height: 1.45; }
  .triptych__predella { font-size: 12px; line-height: 1.55; }
  .triptych__facts {
    font-size: 10.5px;
    padding: 16px 16px 0;
    gap: 6px;
    line-height: 1.5;
  }

  .motion-toggle,
  .fold-toggle { right: 8px; font-size: 10px; padding: 8px 10px; min-height: 40px; }
  .fold-toggle { bottom: 56px; }
  .motion-toggle { bottom: 8px; }

  .raffle { padding: 26px 18px; box-shadow: 6px 6px 0 var(--ink); }
  .raffle__steps li { grid-template-columns: 50px 1fr; padding: 12px 14px; }
  .prints { grid-template-columns: minmax(0, 1fr); }
  .prints__cell:nth-child(3) { grid-column: auto; aspect-ratio: 1 / 1; }
  .oneone,
  .oneone--center { box-shadow: 6px 6px 0 var(--ink); }
  .links__list { box-shadow: 6px 6px 0 var(--ink); }
}

/* short landscape phones — scroll the altarpiece instead of crushing it */
@media (max-width: 820px) and (orientation: landscape) and (max-height: 460px) {
  .triptych__stage {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: clamp(12px, 3vh, 20px);
    width: 100%;
    max-width: none;
    min-height: 0;
    padding: 0 5vw;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .triptych__stage::-webkit-scrollbar { display: none; }
  .triptych__stage::after { content: none; }

  .tp {
    flex: 0 0 auto;
    width: clamp(150px, 38vh, 220px);
    scroll-snap-align: center;
  }
  .tp--center {
    width: clamp(180px, 46vh, 260px);
    order: 0;
  }
  .tp--left  { order: -1; }
  .tp--right { order: 1; }
}

/* =========================================================
   REDUCED MOTION + manual toggle
   Disable the unfold animation; swap videos for poster stills.
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .tp { transition: none !important; }
  .tp video { display: none; }
  .tp--left .tp__face--front {
    background: var(--ink) url("./public/media/fyp-1-poster.jpg") center/cover no-repeat;
  }
  .tp--center .tp__media {
    background: var(--ink) url("./public/media/fyp-poster.jpg") center/cover no-repeat;
  }
  .tp--right .tp__face--front {
    background: var(--ink) url("./public/media/fyp-2-poster.jpg") center/cover no-repeat;
  }
  .oneone video { display: none; }
  .oneone--center .oneone__media {
    background: var(--ink) url("./public/media/fyp-poster.jpg") center/cover no-repeat;
  }
  .companions__pair .oneone:nth-of-type(1) .oneone__media {
    background: var(--ink) url("./public/media/fyp-1-poster.jpg") center/cover no-repeat;
  }
  .companions__pair .oneone:nth-of-type(2) .oneone__media {
    background: var(--ink) url("./public/media/fyp-2-poster.jpg") center/cover no-repeat;
  }
}

body[data-motion="off"] .tp { transition: none !important; }
body[data-motion="off"] .tp video { display: none; }
body[data-motion="off"] .tp--left .tp__face--front {
  background: var(--ink) url("./public/media/fyp-1-poster.jpg") center/cover no-repeat;
}
body[data-motion="off"] .tp--center .tp__media {
  background: var(--ink) url("./public/media/fyp-poster.jpg") center/cover no-repeat;
}
body[data-motion="off"] .tp--right .tp__face--front {
  background: var(--ink) url("./public/media/fyp-2-poster.jpg") center/cover no-repeat;
}
body[data-motion="off"] .oneone video { display: none; }
body[data-motion="off"] .oneone--center .oneone__media {
  background: var(--ink) url("./public/media/fyp-poster.jpg") center/cover no-repeat;
}
body[data-motion="off"] .companions__pair .oneone:nth-of-type(1) .oneone__media {
  background: var(--ink) url("./public/media/fyp-1-poster.jpg") center/cover no-repeat;
}
body[data-motion="off"] .companions__pair .oneone:nth-of-type(2) .oneone__media {
  background: var(--ink) url("./public/media/fyp-2-poster.jpg") center/cover no-repeat;
}

/* =========================================================
   PRINT — flatten the 3D, ink-on-paper
   ========================================================= */
@media print {
  .motion-toggle, .fold-toggle, .hero__chrome, .hero__bg,
  .hero::before, .hero::after { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
  .hero {
    min-height: 0;
    background: #fff;
    padding: 0;
    page-break-after: always;
  }
  .triptych { padding: 0; gap: 16px; }
  .triptych__stage {
    perspective: none;
    transform-style: flat;
    min-height: 0;
    gap: 8px;
  }
  .tp,
  .tp--left, .tp--right { transform: none !important; }
  .tp__face--back { display: none; }
  .tp__face, .tp--center .tp__media {
    background: #fff;
    border-color: #000;
  }
  .tp__label { background: #fff; color: #000; border-color: #000; }
  .tp__no { border-right-color: #000; }
  .triptych__wordmark,
  .triptych__title,
  .triptych__predella,
  .triptych__facts { color: #000; }
  .triptych__title em,
  .triptych__predella { opacity: 1; }
  .triptych__facts { border-top-color: #000; }

  .raffle, .oneone, .links__list { box-shadow: none; }
  .raffle { background: #fff; color: #000; border: 2px solid #000; }
  .raffle__bigword { background: #000; color: #fff; }
  .raffle__steps { border-color: #000; }
  .raffle__steps li { border-bottom-color: #000; }
  .raffle__fineprint { color: #000; border-top-color: #000; }
  .prints__cap { color: #000; }
  .oneone { background: #fff; color: #000; border: 2px solid #000; }
  .oneone__title, .oneone__meta, .oneone__top, .oneone__predella { color: #000; }
  .oneone__top { border-bottom-color: #000; }
  .oneone__media { border-bottom-color: #000; }
  .companions__sub,
  .centerpiece__sub { color: #000; }
}
