/* Digital exhibition pages. Builds on /css/site.css: its tokens, header, buttons and type are used as they are. */

/* hero: the live title scene sits where the home page has its illustration */
.exh .hero-bg canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.exh .hero-bg::after { background: linear-gradient(90deg, rgba(14,17,22,.92) 0%, rgba(14,17,22,.62) 38%, rgba(14,17,22,0) 70%); }
.exh .hero-in h1 { max-width: 9ch; }
.exh .hero-in h1 em { font-style: normal; color: var(--orange); display: block; }
.exh .hero .lead { max-width: 28ch; }
.exh .hero-in .eyebrow { margin-top: auto; padding-top: 48px; }
.exh .hero-in h1 { margin-top: 18px; padding-top: 0; }
.altchip { font-family: var(--mono); font-weight: 500; font-size: 14px; letter-spacing: .06em; color: var(--paper); white-space: nowrap; font-variant-numeric: tabular-nums; }
.altchip b { color: var(--orange); font-weight: 500; }

/* scrollytelling: a tall section with a pinned stage; scrolling moves time */
.scrolly { padding: 0; background: #07090D; height: calc(var(--screens, 6) * 100vh); height: calc(var(--screens, 6) * 100svh); }
.pin { position: sticky; top: var(--top-h, 57px); height: calc(100vh - var(--top-h, 57px)); height: calc(100svh - var(--top-h, 57px)); display: grid; place-items: center; overflow: hidden; }
.pin canvas { display: block; }
.hud { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 28px max(16px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: linear-gradient(rgba(7,9,13,0), rgba(7,9,13,.9)); }
.hud button { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; padding: 10px 14px; background: rgba(14,17,22,.7); color: var(--paper); border: 1px solid var(--paper); white-space: nowrap; }
.hud button:hover { background: var(--paper); color: var(--ink); }
.hud .play { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.hud .play:hover { background: var(--paper); border-color: var(--paper); }
.hud .cc[aria-pressed="false"] { border-color: var(--line-dark); color: var(--soft-dark); }
.hud .track { flex: 1; height: 3px; background: rgba(246,247,249,.18); min-width: 40px; }
.hud .track i { display: block; height: 100%; width: 0; background: var(--orange); }
.hud .time { font-family: var(--mono); font-size: 13px; color: var(--soft-dark); font-variant-numeric: tabular-nums; min-width: 92px; text-align: right; }
.hint { position: absolute; left: 50%; top: 22px; z-index: 2; transform: translateX(-50%); font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .14em; color: var(--paper); background: rgba(14,17,22,.78); border: 1px solid var(--line-dark); padding: 9px 14px; white-space: nowrap; transition: opacity .3s; pointer-events: none; }
.hint.off { opacity: 0; }
.hint::after { content: " ↓"; color: var(--orange); }

/* chapter details under each pinned stage: the date leads, as on a museum label */
.exh-details .date { font-family: var(--head); font-weight: 700; font-size: clamp(34px, 5.2vw, 72px); line-height: 1.02; letter-spacing: -.02em; color: var(--orange) !important; }
.exh-details .date + h2 { margin-top: 10px !important; }
.exh-details .logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px; }
.exh-details .logos img { height: 34px; width: auto; max-width: 190px; object-fit: contain; }
figure.photo { margin: 1.4em 0 0; }
figure.photo img { width: 100%; height: auto; max-height: 560px; object-fit: cover; display: block; border: 1px solid var(--line-dark); }
figure.photo figcaption { margin-top: 8px; font-size: 15px; color: var(--soft-dark); }
figure.photo .credit { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: #8892A0; margin-top: 4px; }

.exh-details .alt { font-family: var(--mono); font-weight: 500; font-size: clamp(20px, 2.2vw, 28px); line-height: 1; color: var(--paper) !important; }
.exh-details .alt small { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .14em; color: var(--soft-dark); margin-left: 12px; text-transform: uppercase; }
.exh-cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.prose > * + * { margin-top: 1em; }
.prose .lead { max-width: none; font-size: clamp(21px, 2.2vw, 28px); }
.prose p:not(.lead) { max-width: 64ch; }
.prose a, .facts a, .myths a { text-decoration-color: var(--orange); text-underline-offset: 3px; }
.prose strong { color: var(--paper); font-weight: 600; }
.facts { border-top: 4px solid var(--orange); }
.facts dl > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
.facts dt { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft-dark); padding-top: 3px; }
.facts dd { font-family: var(--mono); font-size: 15px; line-height: 1.45; color: var(--paper); overflow-wrap: anywhere; }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.s-active { color: #7CE0A3; } .s-lost { color: #FF5A4E; } .s-moon { color: #8FD3FF; } .s-returned { color: #FFB347; } .s-planned, .s-unknown { color: var(--soft-dark); }
.callout { padding: 18px 20px; border-left: 4px solid var(--orange); background: #141922; }
.callout b { display: block; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.callout, .callout em { color: var(--soft-dark); font-size: 16px; }
details.sources { margin-top: 18px; }
details.sources summary { cursor: pointer; font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); padding: 8px 0; }
details.sources ol { list-style: decimal; padding-left: 22px; margin-top: 8px; color: var(--soft-dark); font-size: 15px; }
details.sources li { margin-bottom: 8px; overflow-wrap: anywhere; }

/* orbit explorer */
.explorer .box { display: grid; grid-template-columns: minmax(0, 1fr) 320px; border: 1px solid var(--line-dark); background: #141922; }
.explorer canvas { width: 100%; height: 100%; min-height: 440px; display: block; cursor: grab; touch-action: none; background: #07090D; }
.explorer canvas:active { cursor: grabbing; }
.explorer .side { padding: 24px; border-left: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 16px; }
.explorer label.layer { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 16px; line-height: 1.3; cursor: pointer; color: var(--paper); }
.explorer label.layer input { accent-color: var(--orange); margin: 3px 0 0; width: 16px; height: 16px; }
.explorer label.layer small { display: block; font-family: var(--mono); font-size: 12px; color: var(--soft-dark); margin-top: 3px; }
.explorer .zoom { margin-top: auto; }
.explorer .zoom input { width: 100%; accent-color: var(--orange); }
.explorer .zoom p { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft-dark) !important; margin: 6px 0; }

/* status board */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { background: none; color: var(--paper); border: 1px solid var(--line-dark); padding: 8px 14px; font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.boardwrap { overflow-x: auto; }
table.board { width: 100%; border-collapse: collapse; }
table.board th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft-dark); padding: 10px 16px 10px 0; border-bottom: 1px solid var(--soft-light); }
table.board td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line-dark); vertical-align: top; }
table.board td.where { font-family: var(--mono); font-size: 15px; color: var(--soft-dark); white-space: nowrap; }
table.board td.name { font-family: var(--head); font-weight: 700; font-size: clamp(19px, 2vw, 24px); line-height: 1.2; }
table.board td.btc { font-family: var(--mono); font-size: 15px; line-height: 1.45; color: var(--orange); min-width: 12ch; max-width: 26ch; }
table.board td.name small { display: block; font-family: var(--body); font-weight: 400; font-size: 15px; line-height: 1.45; color: var(--soft-dark); margin-top: 6px; max-width: 60ch; }

/* myths */
.myths { display: grid; gap: 10px; }
.myths details { border: 1px solid var(--line-dark); background: #141922; padding: 0 20px; }
.myths summary { cursor: pointer; padding: 18px 0; font-family: var(--head); font-weight: 700; font-size: clamp(18px, 2vw, 23px); line-height: 1.25; list-style: none; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: baseline; }
.myths summary::-webkit-details-marker { display: none; }
.myths summary::before { content: attr(data-tag); font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .12em; color: #FF5A4E; border: 1px solid currentColor; padding: 3px 6px; }
.myths summary::after { content: "+"; font-family: var(--mono); font-size: 22px; color: var(--orange); }
.myths details[open] summary::after { content: "–"; }
.myths details p { padding-bottom: 18px; max-width: 70ch; }
.myths details p b { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .12em; color: #7CE0A3; margin-right: 10px; }

/* exhibitions index */
.exh-list { display: grid; gap: 16px; }
.exh-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 26px 28px; border: 1px solid var(--line-dark); background: #141922; text-decoration: none; }
.exh-card:hover { border-color: var(--orange); }
.exh-card .n { font-family: var(--head); font-weight: 700; font-size: 44px; line-height: 1; color: var(--orange); }
.exh-card h3 + p { margin-top: 8px; }
.exh-note > * + * { margin-top: 10px; }

@media (max-width: 900px) {
  .exh-cols { grid-template-columns: minmax(0, 1fr); }
  .explorer .box { grid-template-columns: minmax(0, 1fr); }
  .explorer .side { border-left: 0; border-top: 1px solid var(--line-dark); }
  .explorer canvas { min-height: 0; aspect-ratio: 1; height: auto; }
  .exh-card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .exh .hero-bg::after { background: linear-gradient(180deg, rgba(14,17,22,1) 0%, rgba(14,17,22,0) 30%); }
  .altchip { order: -1; padding: 12px 0; }
}
@media (max-width: 560px) {
  .hud .time { display: none; }
  .hud button { padding: 9px 11px; font-size: 12px; }
  table.board th:first-child, table.board td.where { display: none; }
}
