/* A · A signboard whose typography is part of navigation. */
.wayfinding {
  --paper: #e8eddf;
  --ink: #121c19;
  --muted: #3f4b40;
  --line: #a6b1a1;
  --accent: #13433b;
  --focus: #15695b;
}
.way-shell {
  max-width: var(--max);
  padding: clamp(32px, 5vw, 72px) var(--edge) 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  align-items: stretch;
}
.way-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 615px;
  padding: 12px 24px 120px 0;
}
.way-intro h1 {
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.04em;
}
.way-intro p { max-width: 24em; margin-top: 26px; font-size: 1.05rem; color: var(--muted); }
.way-art {
  display: grid;
  width: min(89%, 470px);
  margin-top: auto;
  padding-top: 36px;
  height: 116px;
  grid-template-columns: .70fr .84fr 1fr;
  gap: 0;
}
.way-art i { background: #c5982c; clip-path: polygon(0 0, 71% 0, 100% 50%, 71% 100%, 0 100%, 28% 50%); }
.way-art i:first-child { background: #171f1b; }
.way-art i:nth-child(2) { background: #80967f; margin-left: -16%; }
.way-art i:nth-child(3) { margin-left: -16%; }
.way-intro .way-art { position: absolute; inset: auto auto 30px 0; }
.way-directory {
  align-self: stretch;
  background: #13433b;
  color: #fcfff5;
  padding: clamp(23px, 3vw, 44px);
}
.way-directory h2 { color: #ecf6ee; font-size: 1rem; font-weight: 650; margin: 0 0 18px; }
.way-list { list-style: none; padding: 0; border-top: 1px solid #698c7d; }
.way-list li { border-bottom: 1px solid #698c7d; }
.task-row {
  display: grid;
  grid-template-columns: clamp(46px, 5vw, 78px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(13px, 2.3vw, 34px);
  text-align: left;
  width: 100%;
  min-height: 118px;
  padding: 11px clamp(8px, 1.5vw, 22px);
  border: 0;
  color: inherit;
  background: transparent;
  transition: background-color .2s ease-out, color .2s ease-out;
}
.task-row:hover, .task-row:focus-visible { color: #171f1b; background: #f7d462; }
.task-row:focus-visible { outline: 3px solid #f7d462; outline-offset: 3px; }
.task-copy { display: grid; gap: 3px; }
.task-copy strong { font-size: clamp(1.28rem, 2.5vw, 2.15rem); font-weight: 780; line-height: 1.17; }
.task-copy > span { font-size: clamp(.82rem, 1.2vw, .97rem); color: #d7ecdf; }
.task-row:hover .task-copy > span, .task-row:focus-visible .task-copy > span { color: #2b3825; }
.task-row .arrow { --arrow-length: 1.4rem; }
.route-sign {
  position: relative;
  width: clamp(37px, 4.9vw, 64px);
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 3px;
  color: #f7d462;
}
.task-row:hover .route-sign, .task-row:focus-visible .route-sign { color: #13433b; }
.route-sign i { display: block; background: currentColor; }
.route-1 i:first-child { border-radius: 100% 0 0; }
.route-1 i:nth-child(2) { border-radius: 0 100% 0 0; }
.route-1 i:nth-child(3) { opacity: .42; }
.route-2 i { grid-row: 1 / -1; grid-column: 1 / -1; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.route-2 i:not(:first-child) { display: none; }
.route-3 i:first-child, .route-3 i:nth-child(4) { background: transparent; border: 2px solid currentColor; }
.route-4 i:nth-child(1), .route-4 i:nth-child(2), .route-4 i:nth-child(3) { border-radius: 50%; }
.route-4 i:nth-child(4) { border-radius: 50%; background: transparent; border: 2px solid currentColor; }

/* B · An oversized print spread followed by a real table of contents. */
.folio {
  --paper: #f2edf4;
  --ink: #26182f;
  --muted: #524061;
  --line: #b2a4b8;
  --accent: #3f225d;
  --focus: #5b2ba7;
}
.folio-shell { max-width: var(--max); padding: 0 var(--edge); margin: 0 auto; }
.folio-spread {
  padding: clamp(30px, 4vw, 58px) 0 28px;
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.29fr);
  align-items: center;
  gap: clamp(18px, 3.5vw, 58px);
}
.folio-copy { padding-bottom: 26px; }
.folio-copy h1 {
  font: 400 clamp(2.75rem, 6.25vw, 5.8rem)/1.12 var(--song);
  letter-spacing: -.04em;
  color: #351a47;
}
.folio-copy h1 span { color: #5d3280; }
.folio-copy p { max-width: 22em; margin-top: 20px; font-size: 1.06rem; line-height: 1.8; }
.folio-read {
  min-height: 44px;
  display: inline-flex;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  color: #3f225d;
  font-size: .93rem;
  font-weight: 650;
  border-bottom: 1px solid currentColor;
}
.folio-read:hover { color: #653b85; }
.folio-image img { width: 100%; aspect-ratio: 1.64; object-fit: cover; }
.folio-image figcaption { padding-top: 9px; text-align: right; color: var(--muted); font-size: .85rem; }
.folio-contents {
  display: grid;
  grid-template-columns: minmax(104px, .46fr) 3fr;
  gap: 14px 30px;
  align-items: stretch;
  padding: 18px 0 21px;
  border-block: 1px solid #7f6c8b;
}
.folio-contents h2 { font-size: 1rem; align-self: center; font-weight: 650; }
.folio-contents ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.folio-contents li { border-left: 1px solid var(--line); }
.folio-contents a {
  min-height: 68px;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 4px;
}
.folio-contents strong { font: 400 clamp(1.11rem, 2vw, 1.54rem)/1.3 var(--song); color: #391a53; }
.folio-contents a > span:not(.arrow) { grid-area: 2 / 1 / 3 / -1; font-size: .87rem; color: var(--muted); }
.folio-contents a .arrow { grid-area: 1 / 2; }
.folio-contents a:hover { background: #e7daee; }
.folio-chapters { padding-top: 68px; }
.folio-chapters > h2 { font: 400 2.45rem/1.2 var(--song); padding-bottom: 20px; }
.chapter {
  display: grid;
  grid-template-columns: minmax(140px, .65fr) 1.45fr auto;
  align-items: center;
  gap: 20px 32px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}
.chapter:target { background: #e9deef; }
.chapter-role span { color: var(--muted); font-size: .86rem; }
.chapter h3 { font: 400 1.7rem/1.3 var(--song); }
.chapter h4 { font-size: 1.03rem; margin-bottom: 4px; }
.chapter p { max-width: 34em; font-size: .95rem; }

/* C · Full-bleed stills with a viewer-controlled program rail. */
.screening {
  --paper: #131324;
  --ink: #fff8f3;
  --muted: #d3c8e9;
  --line: #59536f;
  --accent: #f8a78f;
  --on-accent: #241426;
  --focus: #ffd2b5;
  --logo-filter: none;
}
.screening .site-header { background: #131324; }
.screen-window {
  min-height: clamp(32rem, 42vw, 44rem);
  position: relative;
  isolation: isolate;
  background: #17162c;
}
.scene-panel { position: absolute; inset: 0; }
.scene-panel:focus-visible { outline-offset: -4px; z-index: 1; }
.scene-backdrop { width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.scene-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,12,27,.92), rgba(13,12,27,.73) 30%, rgba(13,12,27,.12) 63%, transparent 81%),
    linear-gradient(0deg, rgba(11,10,24,.73), transparent 43%);
  pointer-events: none;
}
.scene-panel.is-new .scene-backdrop { animation: scene-dissolve .30s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes scene-dissolve {
  from { opacity: .36; filter: saturate(.65); }
  to { opacity: 1; filter: saturate(1); }
}
.scene-note {
  position: absolute;
  z-index: 1;
  bottom: clamp(44px, 5.8vw, 90px);
  left: max(var(--edge), calc((100% - var(--max)) / 2 + var(--edge)));
  max-width: calc(100% - var(--edge) * 2);
}
.scene-note h2 { font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 680; }
.scene-note p { margin: 7px 0 18px; font-size: 1.02rem; }
.scene-note .button { min-height: 46px; }
.screen-credit {
  position: absolute;
  right: max(var(--edge), calc((100% - var(--max)) / 2 + var(--edge)));
  bottom: 14px;
  z-index: 1;
  padding: 3px 7px;
  color: #fff8f3;
  background: #20192c;
  font-size: .82rem;
}
.scene-tabs {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--edge);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.scene-tab {
  text-align: left;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 96px;
  gap: clamp(8px, 1.1vw, 18px);
  border: 0;
  border-top: 3px solid #655986;
  padding: 11px clamp(8px, 1.15vw, 18px);
  background: #211b33;
  color: #fff8f3;
}
.scene-tab + .scene-tab { border-left: 1px solid #51475f; }
.scene-tab:hover { background: #30233e; }
.scene-tab[aria-selected="true"] { border-top-color: #f8a78f; background: #382742; }
.scene-tab[aria-selected="true"] strong { color: #ffd0bd; }
.scene-tab img { width: clamp(42px, 6vw, 76px); height: auto; aspect-ratio: 1.52; object-fit: cover; object-position: 64%; }
.scene-tab > span { display: grid; gap: 3px; }
.scene-tab strong { font-size: 1.02rem; line-height: 1.2; }
.scene-tab small { color: #e0d5ed; font-size: .85rem; line-height: 1.25; }

/* D · One material rack, four labelled objects, an in-place detail. */
.shelf {
  --paper: #f4f2ea;
  --ink: #24291f;
  --muted: #4c5547;
  --line: #a9ae9e;
  --accent: #244c38;
  --focus: #25533c;
}
.shelf-shell { max-width: var(--max); margin: 0 auto; padding: 0 var(--edge); }
.shelf-intro {
  display: grid;
  grid-template-columns: minmax(0, 2.14fr) minmax(0, .86fr);
  gap: 18px 36px;
  align-items: end;
  padding-top: clamp(52px, 6.25vw, 92px);
  padding-bottom: clamp(33px, 4.15vw, 58px);
}
.shelf-intro h1 {
  font: 370 clamp(2.65rem, 5.7vw, 5.45rem)/1.1 var(--sans);
  letter-spacing: -.04em;
}
.shelf-intro h1 span { color: #214d37; white-space: nowrap; }
.shelf-intro p { font-size: 1.04rem; line-height: 1.75; color: var(--muted); max-width: 22em; }
.shelf-cap { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding-bottom: 11px; }
.shelf-cap h2 { font-size: .98rem; font-weight: 690; }
.shelf-cap > span { color: var(--muted); font-size: .88rem; }
.shelf-frame {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  list-style: none;
  border: 1px solid #8e9483;
  background: #a9ae9e;
  gap: 1px;
}
.sample {
  display: grid;
  width: 100%;
  height: 100%;
  text-align: left;
  grid-template-rows: auto 1fr;
  padding: 0;
  border: 0;
  background: #efeee6;
}
.sample:focus-visible { position: relative; z-index: 1; outline-offset: 0; }
.sample-photo {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.5;
  background: #ded6c7;
  border-bottom: 5px solid #b5aa92;
}
.sample img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .33s cubic-bezier(.16,1,.3,1);
}
.sample-label {
  width: 100%;
  padding: 16px clamp(12px, 1.8vw, 26px);
  display: grid;
  gap: 5px 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.sample-label strong { font-size: clamp(1.1rem, 2vw, 1.62rem); font-weight: 650; line-height: 1.2; }
.sample-label > span:not(.arrow) { grid-area: 2 / 1 / 3 / -1; color: #444f41; font-size: .92rem; }
.sample-label .arrow { grid-area: 1 / 2; transform: rotate(45deg); }
.sample:hover .sample-label, .sample[aria-expanded="true"] .sample-label { background: #e0eadc; }
.sample:hover img, .sample[aria-expanded="true"] img { transform: scale(1.035); }
.sample[aria-expanded="true"] .arrow { transform: rotate(-45deg); }
.shelf-note {
  padding: 19px clamp(13px, 2.1vw, 30px);
  border: 1px solid var(--line);
  border-top: 0;
  background: #eef1e6;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 26px;
}
.shelf-note h3 { font-size: 1.13rem; margin-bottom: 5px; }
.shelf-note p { font-size: .94rem; color: var(--muted); }

@media (min-width: 721px) and (max-width: 1050px) {
  .way-intro { min-height: 540px; }
  .task-row { min-height: 104px; }
  .folio-copy h1 { font-size: 5.8vw; }
  .folio-contents { grid-template-columns: 1fr; }
  .folio-contents li:first-child { border-left: 0; }
  .scene-tab img { display: none; }
  .shelf-intro { grid-template-columns: 1.65fr 1fr; }
  .shelf-intro h1 { font-size: 5.5vw; }
}

@media (max-width: 720px) {
  .way-shell { grid-template-columns: 1fr; padding-top: 27px; gap: 23px; }
  .way-intro { min-height: 0; padding: 0; }
  .way-intro h1 { font-size: clamp(2.45rem, 9.9vw, 4rem); line-height: 1.07; }
  .way-break, .way-intro .way-art { display: none; }
  .way-intro p { margin-top: 12px; font-size: .94rem; }
  .way-directory { padding: 15px; }
  .way-directory h2 { margin-bottom: 11px; font-size: .92rem; }
  .task-row { min-height: 82px; padding: 9px 5px; grid-template-columns: 37px minmax(0, 1fr) auto; gap: 11px; }
  .task-copy strong { font-size: 1.25rem; }
  .task-copy > span { font-size: .84rem; line-height: 1.38; }
  .task-row .arrow { --arrow-length: 1.03rem; }

  .folio-spread { grid-template-columns: 1fr; padding: 22px 0 17px; gap: 15px; }
  .folio-copy { padding: 0; }
  .folio-copy h1 { font-size: clamp(2.8rem, 11.6vw, 4.6rem); }
  .folio-copy h1 br { display: none; }
  .folio-copy p { margin-top: 9px; font-size: .95rem; line-height: 1.55; max-width: 31em; }
  .folio-read { margin-top: 8px; }
  .folio-image img { aspect-ratio: 1.85; object-position: center 58%; }
  .folio-image figcaption { padding-top: 5px; }
  .folio-contents { grid-template-columns: 1fr; padding-block: 12px; gap: 8px; }
  .folio-contents ol { grid-template-columns: 1fr 1fr; }
  .folio-contents li:nth-child(odd) { border-left: 0; }
  .folio-contents li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .folio-contents a { min-height: 62px; padding: 6px 7px; }
  .folio-contents li:nth-child(odd) a { padding-left: 0; }
  .folio-contents a > span:not(.arrow) { font-size: .82rem; }
  .folio-chapters { padding-top: 35px; }
  .folio-chapters > h2 { font-size: 1.85rem; padding-bottom: 13px; }
  .chapter { grid-template-columns: 1fr; gap: 9px; padding-block: 16px; }
  .chapter .button { justify-self: start; }

  .screen-window { min-height: clamp(27rem, 100vw, 33rem); }
  .scene-backdrop { object-position: 91% 55%; }
  .scene-panel::after {
    background: linear-gradient(0deg, rgba(13,12,27,.97), rgba(13,12,27,.82) 27%, transparent 65%),
      linear-gradient(90deg, rgba(13,12,27,.72), transparent 83%),
      linear-gradient(180deg, rgba(13,12,27,.43), transparent 35%);
  }
  .scene-note { bottom: 43px; }
  .scene-note h2 { font-size: 1.33rem; }
  .scene-note p { margin: 5px 0 13px; font-size: .91rem; }
  .scene-note .button { min-height: 44px; }
  .screen-credit { bottom: 9px; }
  .scene-tabs { grid-template-columns: 1fr 1fr; padding: 0; }
  .scene-tab { min-height: 72px; padding: 8px 12px; }
  .scene-tab img { width: 46px; }
  .scene-tab:nth-child(3) { border-left: 0; }
  .scene-tab strong { font-size: .97rem; }
  .scene-tab small { font-size: .81rem; }

  .shelf-intro { grid-template-columns: 1fr; padding: 30px 0 25px; gap: 9px; }
  .shelf-intro h1 { font-size: clamp(2.15rem, 9.6vw, 4rem); }
  .shelf-intro p { font-size: .93rem; max-width: 29em; }
  .shelf-cap { padding-bottom: 8px; }
  .shelf-frame { grid-template-columns: 1fr 1fr; }
  .sample-photo { border-bottom-width: 3px; }
  .sample-label { padding: 11px 9px; gap: 4px; }
  .sample-label > span:not(.arrow) { font-size: .81rem; }
}
@media (max-width: 360px) {
  .folio-copy h1 { font-size: 10.6vw; }
  .scene-tab { gap: 6px; padding-inline: 9px; }
  .scene-tab img { width: 38px; }
}

.screen-room { position: relative; display: flex; flex-direction: column; }
.screen-room h1 {
  position: absolute;
  z-index: 1;
  top: clamp(38px, 5.5vw, 91px);
  left: max(var(--edge), calc((100% - var(--max)) / 2 + var(--edge)));
  font-size: clamp(3.25rem, 6.3vw, 5.8rem);
  font-weight: 630;
  line-height: 1.1;
  letter-spacing: -.03em;
  max-width: calc(100% - var(--edge) * 2);
}
.screen-window { order: -1; }
.scene-tabs { width: min(100%, var(--max)); }
.shelf-actions { display: flex; align-items: center; gap: 8px; }
@media (max-width: 720px) {
  .screen-room h1 { top: 28px; font-size: clamp(2.36rem, 10.4vw, 4rem); }
}

/* The selected stage exposes the destination directly. */
.scene-note .scene-entry { padding-inline: 23px; font-size: 1.06rem; }
.scene-pending { display: inline-block; padding-block: 10px; color: var(--accent); font-weight: 680; }
.shelf .sample { grid-template-rows: auto 1fr auto; }
.sample-label { grid-template-columns: 1fr; }
.sample-action {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 clamp(12px, 1.8vw, 26px) 16px; padding: 10px 12px;
  font-size: .96rem; font-weight: 680; line-height: 1.4;
  color: #fff; background: #34463a;
}
.shelf-frame li:nth-child(-n+2) .sample-action { background: #1f5038; }
.shelf-frame li:first-child .sample-label strong { color: #154c30; }
a.sample:hover .sample-action, a.sample:focus-visible .sample-action { background: #143a28; }
.shelf-pending { height: 100%; background: #efeee6; }
.shelf-pending[open] summary { height: auto; }
.shelf-pending summary { list-style: none; cursor: pointer; }
.shelf-pending summary::-webkit-details-marker { display: none; }
.pending-action { color: #445147; background: #e1e3d9; }
.shelf-pending p { padding: 0 14px 16px; font-size: .89rem; color: #414b42; }
@media (max-width: 720px) {
  .sample-action { margin: 0 9px 10px; padding: 8px 9px; font-size: .86rem; }
}
