/* Unrest: page skin over css/style.css. Colors come from the room:
   the purple statement wall, the magenta shoe corner, the cyan glow of the
   wordmark, and the gray of the prints. */
/* The graffiti wordmark: the show's hand-drawn unRest letterforms, sprayed. --u-h is
   driven by scroll (unrest.js), so the ink and its glow drift through the
   room's colors as the page moves. */
body.unrest {
  --u-h: 322;
  --u-ink: hsl(var(--u-h) 72% 60%);
  --u-glow: hsl(calc(var(--u-h) - 130) 85% 62%);
  --u-haze: hsl(calc(var(--u-h) + 40) 30% 70%);
  --u-purple: #8a2a8c;
  --u-magenta: #e0479a;
  --u-cyan: #5fd8f5;
  --u-gray: #8d9196;
  --link: #e98bc0;
  --link-hover: #fff;
  --accent: #e0479a;
}

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 50; background: #000; color: #fff; padding: .5rem 1rem; }

.site-header nav a.nav-unrest[aria-current="page"] { color: var(--text); }

/* ── hero ── */
.u-hero { position: relative; }
.u-hero-img { overflow: hidden; }
.u-hero-img img { display: block; width: 100%; height: 62vh; max-height: 760px; object-fit: cover; object-position: 50% 45%; }
.u-hero-text { padding-top: 2.2rem; padding-bottom: 1rem; }
.u-sub { font-family: var(--font-head); font-size: var(--t-sub); color: var(--text); margin-top: .6rem; letter-spacing: .02em; }
.u-meta { color: var(--text-dim); font-size: var(--t-small); margin-top: .35rem; }
.u-lede { font-size: var(--t-sub); line-height: 1.5; max-width: 36em; margin-top: 1.4rem; text-wrap: pretty; }
.u-jump { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; margin-top: 1.6rem; font-size: var(--t-small); }
.u-jump a { color: var(--text-dim); border-bottom: 1px solid var(--border); }
.u-jump a:hover { color: var(--text); border-color: var(--u-magenta); }

/* ── sections ── */
.u-sec { padding: 3.2rem 0 1rem; border-top: 1px solid var(--border); margin-top: 2rem; scroll-margin-top: 1rem; }
.u-sec h2 { font-family: var(--font-head); font-size: var(--t-h2); font-weight: 600; margin-bottom: .8rem; }
.u-body { max-width: 40em; font-size: var(--t-lead); line-height: 1.65; margin-bottom: 1.4rem; text-wrap: pretty; }
.u-body.small { font-size: var(--t-small); color: var(--text-dim); margin-top: 1rem; }
.u-note { color: var(--text-dim); font-size: var(--t-small); max-width: 46em; margin-bottom: 1rem; text-wrap: pretty; }

/* ── photos ── */
figure { margin: 0; }
figure img { display: block; width: 100%; height: auto; background: #111; }
figure.wide { margin-bottom: 1rem; }
figcaption { font-size: var(--t-micro); color: var(--text-dim); padding: .35rem 0 0; line-height: 1.4; }
.pgrid { display: grid; gap: .8rem; margin-bottom: 1rem; }
.pgrid.g2 { grid-template-columns: repeat(2, 1fr); }
.pgrid.g3 { grid-template-columns: repeat(3, 1fr); }
.pgrid.g4 { grid-template-columns: repeat(4, 1fr); }
.pgrid img { aspect-ratio: 4 / 3; object-fit: cover; }
.pgrid.walk { margin-top: 1.4rem; }
a.lb { display: block; cursor: zoom-in; }

/* ── room viewer ── */
.u-viewtoggle { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; margin-bottom: .8rem; }
.u-viewtoggle button {
  font: inherit; font-size: var(--t-small); color: var(--text-dim); background: none; border: 0;
  padding: .35rem 1.1rem; border-radius: 999px; cursor: pointer;
}
.u-viewtoggle button.on { background: var(--u-magenta); color: #fff; }
.u-viewer { position: relative; background: #0f0f10; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.u-plan svg { display: block; width: 100%; height: auto; max-height: 80vh; }
.u-plan [data-sec] { cursor: pointer; }
.u-plan [data-sec]:hover { filter: brightness(1.35); }
.u-model { position: relative; }
.u-model canvas { display: block; width: 100%; height: min(72vh, 680px); touch-action: none; cursor: grab; }
.u-model canvas:active { cursor: grabbing; }
.u-tip {
  position: absolute; pointer-events: none; background: rgba(0,0,0,.8); color: #fff;
  font-size: var(--t-micro); padding: .25rem .5rem; border-radius: 3px; display: none; white-space: nowrap;
}
.u-legend { columns: 2; column-gap: 2rem; margin: 1rem 0 0 1.2rem; font-size: var(--t-small); color: var(--text-dim); }
.u-legend li { margin-bottom: .25rem; break-inside: avoid; }

/* ── statement ── */

/* ── labels (mirror the wall labels) ── */
.label { font-size: var(--t-small); line-height: 1.5; color: var(--text-dim); margin: 1rem 0; max-width: 36em; }
.label p { margin: 0; }
.label .lt, .u-app .lt { color: var(--text); font-size: var(--t-body); margin-bottom: .3rem; }
.labels { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 2rem; margin-top: .6rem; }

/* ── video slots ── */
.u-video { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: start; margin: 2rem 0 1rem; }
.u-video-frame { position: relative; background: #070707; border: 1px dashed #333; display: flex; align-items: center; justify-content: center; color: var(--text-faint); font-size: var(--t-small); }
.u-video-frame.wide { aspect-ratio: 16 / 9; }
.u-video-frame.tall { aspect-ratio: 9 / 16; max-width: 320px; }
.u-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── houses ── */
.u-houses { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .7rem 2rem; margin-bottom: 1.6rem; font-size: var(--t-small); }
.u-houses li { display: flex; flex-direction: column; border-left: 2px solid var(--u-gray); padding-left: .7rem; }
.u-houses strong { color: var(--text); font-weight: 400; font-size: var(--t-body); }
.u-houses span { color: var(--text-dim); }

/* ── apps ── */
.u-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem 2.4rem; margin-top: 1.4rem; }
.u-app p { font-size: var(--t-body); line-height: 1.6; text-wrap: pretty; }
.u-app .cr { font-size: var(--t-small); color: var(--text-dim); margin-top: .5rem; }

/* ── sources ── */
.u-sources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.u-sources h3 { font-family: var(--font-head); font-weight: 400; font-size: var(--t-sub); color: var(--u-magenta); margin-bottom: .6rem; }
.u-sources ul { list-style: none; }
.u-sources li { font-size: var(--t-small); line-height: 1.5; margin-bottom: .45rem; color: var(--text); text-wrap: pretty; }

.u-links { list-style: none; font-size: var(--t-body); }
.u-links li { margin-bottom: .4rem; color: var(--text-dim); }
.u-updated { margin-top: 2rem; font-size: var(--t-micro); color: var(--text-faint); }

/* ── lightbox ── */
.u-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.94); z-index: 100; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.u-lightbox[hidden] { display: none; }
.u-lightbox img { max-width: 94vw; max-height: 92vh; }
.u-lightbox button { position: absolute; top: .6rem; right: 1rem; font-size: 2rem; color: #fff; background: none; border: 0; cursor: pointer; }

@media (max-width: 900px) {
  .u-statement, .u-sources { grid-template-columns: 1fr; gap: 1.4rem; }
  .u-family { float: none; margin: 0 0 1rem; }
  .pgrid.g4 { grid-template-columns: repeat(2, 1fr); }
  .u-video { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .site-wrap { padding: 0 1rem; }
  .pgrid.g3 { grid-template-columns: repeat(2, 1fr); }
  .pgrid.walk { grid-template-columns: 1fr; }
  .u-legend { columns: 1; }
  .u-hero-img img { height: 52vh; }
}

.u-poster { display: block; margin-bottom: .8rem; max-width: 260px; }
.u-poster img { display: block; width: 100%; height: auto; }
.pgrid.posters { max-width: 560px; }
.pgrid.posters img { aspect-ratio: 27 / 40; object-fit: cover; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.u-wm { margin: 0 0 .2rem -0.6rem; line-height: 0; }
.u-wm svg { width: min(560px, 82vw); height: auto; overflow: visible; }
.u-wm .wm-haze { fill: var(--u-haze); opacity: .35; transform: translate(6px, 4px); }
.u-wm .wm-glow { fill: var(--u-glow); opacity: .9; }
.u-wm .wm-ink { fill: var(--u-ink); }
.u-sources h3 { color: var(--u-ink); }
.u-viewtoggle button.on { background: var(--u-ink); }

/* ── statements: pull-quote cards that open a full-screen reader ── */
.u-family { float: right; width: min(260px, 40%); margin: 0 0 1rem 2rem; }
.u-statement { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: .6rem; clear: none; }
.u-stmt-card {
  font: inherit; color: var(--text); text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: .8rem; min-height: 12rem;
  background: #121213; border: 1px solid var(--border); border-radius: 6px; padding: 1.3rem 1.3rem 1.1rem;
  transition: border-color .2s, transform .2s;
}
.u-stmt-card:hover, .u-stmt-card:focus-visible { border-color: var(--u-ink); transform: translateY(-2px); outline: none; }
.u-stmt-card .lt { font-size: var(--t-small); color: var(--text-dim); }
.u-stmt-card .q { font-family: var(--font-head); font-size: var(--t-sub); line-height: 1.35; flex: 1; text-wrap: pretty; }
.u-stmt-card .more { font-size: var(--t-small); color: var(--u-ink); }
.u-reader { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0a0a0a; color: var(--text); }
.u-reader::backdrop { background: #000; }
.u-reader-bar { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1.4rem; background: rgba(10,10,10,.92); border-bottom: 1px solid var(--border); }
.u-reader-tabs { display: flex; gap: 1.2rem; }
.u-reader-tabs button, .u-reader-close { font: inherit; background: none; border: 0; color: var(--text-dim); cursor: pointer; padding: .3rem 0; }
.u-reader-tabs button[aria-current="true"] { color: var(--u-ink); border-bottom: 1px solid var(--u-ink); }
.u-reader-close { font-size: 2rem; line-height: 1; color: var(--text); }
.u-reader-body { max-width: 38em; margin: 0 auto; padding: 2.4rem 1.4rem 5rem; }
.u-reader .u-stmt h3 { font-family: var(--font-head); font-weight: 400; font-size: var(--t-h2); color: var(--u-ink); margin-bottom: 1.4rem; }
.u-reader .u-stmt h3 em { color: var(--text); }
.u-reader .u-stmt p { font-size: var(--t-lead); line-height: 1.75; margin-bottom: 1.1rem; text-wrap: pretty; }
@media (max-width: 900px) {
  .u-statement { grid-template-columns: 1fr; }
  .u-stmt-card { min-height: 0; }
  .u-family { float: none; width: min(320px, 100%); margin: 0 0 1rem; }
}
.u-reader .u-stmt h3, .u-sources h3, .u-sec h2 { text-transform: none; letter-spacing: 0; }
.u-stmt-photo { max-width: 320px; margin: 2rem 0 0; }

/* ── section numbers and pull quotes ── */
.u-sec h2 { display: flex; align-items: center; gap: .7rem; }
.u-num {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 2px solid var(--u-ink);
  font-family: var(--font-body); font-size: var(--t-small); color: var(--text);
}
div.u-body { margin-bottom: 1.6rem; }
div.u-body p { margin-bottom: .6rem; }
.u-quote {
  font-family: var(--font-head); font-size: var(--t-sub); line-height: 1.4; color: var(--text);
  border-left: 2px solid var(--u-ink); padding-left: 1rem; margin-bottom: .9rem; max-width: 34em; text-wrap: pretty;
}
.u-quote::before { content: '\201C'; } .u-quote::after { content: '\201D'; }
div.u-body p:not(.u-quote) { color: var(--text-dim); font-size: var(--t-body); }
#statement { border-top: 0; margin-top: 0; padding-top: 2rem; }
.u-apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.2rem 2.4rem; }
.u-app { flex: 0 1 320px; }
.u-app .u-poster { max-width: none; }
.u-statement.u-one { grid-template-columns: minmax(0, 360px); margin-bottom: 1.6rem; }
.u-reader h4 { font-family: var(--font-head); font-weight: 400; font-size: var(--t-sub); color: var(--u-ink); margin: 1.8rem 0 .6rem; text-transform: none; letter-spacing: 0; }
.u-reader .u-src { list-style: none; }
.u-reader .u-src li { font-size: var(--t-body); line-height: 1.55; margin-bottom: .45rem; }
.u-reader .u-src-also { margin-top: 1.8rem; color: var(--text-dim); font-size: var(--t-body); }
.pgrid.houses { gap: 1.4rem .8rem; }
figcaption.hl { display: flex; flex-direction: column; font-size: var(--t-small); line-height: 1.4; padding-top: .45rem; }
figcaption.hl strong { color: var(--text); font-weight: 400; font-size: var(--t-body); }

/* pieces stay silent on the page; their labels show when a photo is opened */
.pgrid figcaption, figure.wide figcaption {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.pgrid figure, figure.wide { position: relative; }
.u-lightbox figure { display: flex; flex-direction: column; align-items: center; max-width: 94vw; }
.u-lightbox img { max-height: 84vh; }
.u-lb-cap { align-self: flex-start; color: var(--text-dim); padding-top: .7rem; max-width: 40em; }
.u-lb-cap strong { color: var(--text); }

/* ── Tools: posters alone on the page; label beside the poster when opened ── */
.u-app > p { display: none; }
.u-app .u-poster { margin: 0; cursor: zoom-in; }
.u-apps { gap: 1.6rem; }
.u-app { flex: 0 1 300px; }
.u-pview { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #070707; color: var(--text); }
.u-pview::backdrop { background: #000; }
.u-pview-inner { display: flex; height: 100%; align-items: center; gap: 3rem; padding: 2.5rem 4rem; }
.u-pview.flip .u-pview-inner { flex-direction: row-reverse; }
.u-pview-img { flex: 1 1 auto; height: 100%; display: flex; align-items: center; justify-content: center; min-width: 0; }
.u-pview-img img { max-height: 100%; max-width: 100%; height: auto; width: auto; display: block; }
.u-pview-text { flex: 0 0 min(30rem, 34%); }
.u-pview-text p { font-size: var(--t-lead); line-height: 1.65; margin-bottom: 1rem; text-wrap: pretty; }
.u-pview-text .lt { font-size: var(--t-sub); }
.u-pview-text .cr { font-size: var(--t-small); color: var(--text-dim); }
.u-pview-close { position: fixed; top: .6rem; right: 1rem; font-size: 2rem; color: #fff; background: none; border: 0; cursor: pointer; z-index: 2; }
.u-pview-nav { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; gap: 1rem; }
.u-pview-nav button { font: inherit; font-size: 1.3rem; color: var(--text-dim); background: none; border: 1px solid var(--border); border-radius: 999px; width: 2.6rem; height: 2.6rem; cursor: pointer; }
.u-pview-nav button:hover { color: var(--text); border-color: var(--u-ink); }
@media (max-width: 760px) {
  /* phone: poster first, full width; the label scrolls below it */
  .u-pview { overflow-y: auto; }
  .u-pview-inner, .u-pview.flip .u-pview-inner { flex-direction: column; height: auto; align-items: stretch; gap: 1.2rem; padding: 3.2rem 1rem 5rem; }
  .u-pview-img { height: auto; }
  .u-pview-img img { max-height: none; width: 100%; }
  .u-pview-text { flex: none; }
  .u-app { flex: 0 1 44%; }
}
/* reader: tabs stacked in a rail on the left (phone keeps them in a row) */
@media (min-width: 900px) {
  .u-reader-bar { border-bottom: 0; background: none; position: fixed; top: 0; left: 0; right: 0; pointer-events: none; }
  .u-reader-bar > * { pointer-events: auto; }
  .u-reader-tabs { flex-direction: column; gap: .5rem; padding-top: 5.5rem; align-items: flex-start; }
}
@media (min-width: 900px) { .u-reader-close { position: fixed; top: .6rem; right: 1rem; } }
@media (max-width: 760px) { .u-pview-nav { position: static; transform: none; justify-content: center; padding: 0 0 2rem; } }
.u-video.tallv { grid-template-columns: minmax(0, 320px) minmax(0, 32em); gap: 2.4rem; }
.u-video.tallv .label { margin-top: 0; }
.u-nogl { padding: 3rem 1.5rem; text-align: center; }
@media (max-width: 900px) { .u-video.tallv { grid-template-columns: 1fr; } .u-video.tallv .u-video-frame { margin: 0 auto; width: 100%; } }
/* portrait screens (tablets too): poster above its label */
@media (orientation: portrait) and (min-width: 761px) {
  .u-pview { overflow-y: auto; }
  .u-pview-inner, .u-pview.flip .u-pview-inner { flex-direction: column; height: auto; align-items: center; gap: 1.6rem; padding: 3.5rem 3rem 6rem; }
  .u-pview-img { height: auto; }
  .u-pview-img img { max-height: 70vh; }
  .u-pview-text { flex: none; max-width: 36em; }
  .u-pview-nav { position: static; transform: none; justify-content: center; padding-bottom: 2rem; }
}
.u-reader button:focus:not(:focus-visible), .u-pview button:focus:not(:focus-visible) { outline: none; }
.u-hero-text { padding-top: 1.6rem; }
.u-hero-text .u-sub { margin-top: 0; }
.u-sec h2 .u-approx { font-family: var(--font-body); font-size: var(--t-small); font-weight: 400; color: var(--text-dim); align-self: flex-start; margin-left: -.5rem; margin-top: .1rem; letter-spacing: .02em; }
