/* Specimens of time. Tokens, type scale and grid follow the companion site (CLAUDE.md): 12 columns, 8 px baseline, Plex Sans Light/Regular and Plex Mono only.
   Microtext that carries meaning uses --fg-2 (≈ 7:1 on --bg). --fg-3 (≈ 3.3:1) is decoration only: ghost numerals and ticks. */
:root {
  --bg: #0C0D0F; --panel: #0F1012; --line: #1F2125; --line-2: #2C2F34;
  --fg: #E3E4E6; --fg-2: #989CA3; --fg-3: #60646B; --time: #7C98AE;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gap: 32px; --pad: 48px; --measure: 1440px; --sp: 160px;
  --n: 3; --cg: 48px; --rg: 96px; color-scheme: dark;
}
@media (max-width: 720px) { :root { --gap: 16px; --pad: 16px; --sp: 96px; } }

* { box-sizing: border-box; }
html { background: var(--bg); scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 15px/24px var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--bg); padding: 8px 16px; }
.skip-link:focus { left: var(--pad); }

.wrap { max-width: calc(var(--measure) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.t-label { font: 400 10px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.t-small { font-size: 13px; line-height: 20px; color: var(--fg-2); }
.t-lead { font-size: 18px; line-height: 28px; font-weight: 300; color: var(--fg-2); max-width: 640px; }
.t-h1 { font-size: 64px; line-height: 72px; font-weight: 300; letter-spacing: -.035em; }
.t-h2 { font-size: 40px; line-height: 48px; font-weight: 300; letter-spacing: -.025em; text-wrap: balance; }
@media (max-width: 720px) { .t-h1 { font-size: 36px; line-height: 40px; } .t-h2 { font-size: 28px; line-height: 32px; } .t-lead { font-size: 16px; line-height: 24px; } }
.ghost-id { color: var(--fg-2); }   /* identification is information, not decoration */

/* header: one microtext line */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(12, 13, 15, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; gap: 24px; min-height: 48px; }
.bar-l { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg); }
.bar-l a { text-decoration: none; color: var(--fg-2); } .bar-l a:hover { color: var(--fg); }
.ctl { display: flex; align-items: center; gap: 16px; flex: none; }
.dial { display: flex; align-items: center; gap: 0; }
.dial .dl { margin-right: 8px; }
.dial button { height: 24px; min-width: 32px; padding: 0 8px; background: none; border: 1px solid var(--line-2); border-left-width: 0; cursor: pointer; font: 400 10px/16px var(--mono); letter-spacing: .08em; color: var(--fg-2); }
.dial button:first-of-type { border-left-width: 1px; }
.dial button[aria-pressed="true"] { color: var(--fg); background: var(--line); }
.dial button:hover { color: var(--fg); }
.dp { display: none; }
@media (max-width: 720px) { .dd { display: none; } .dp { display: inline; } }
.jump { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line-2); height: 24px; }
.jump:focus-within { border-color: var(--fg-2); }
.jump input { width: 104px; background: none; border: 0; outline: 0; font: 400 10px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg); }
.jump input::placeholder { color: var(--fg-3); }
.jump input:focus-visible { outline: 0; }
.chip { height: 24px; padding: 0 12px; background: none; border: 1px solid var(--line-2); border-radius: 2px; cursor: pointer; font: 400 10px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); white-space: nowrap; }
.chip:hover { color: var(--fg); }
.chip[aria-pressed="true"], .chip[aria-expanded="true"] { color: var(--fg); border-color: var(--fg-3); background: var(--line); }
@media (max-width: 960px) { .bar-l { display: none; } .bar-in { justify-content: space-between; } .jump input { width: 72px; } .dial .dl { display: none; } }
@media (max-width: 480px) { .jump { display: none; } }

.filters { border-bottom: 1px solid var(--line); background: var(--bg); }
.filters .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; padding-block: 16px; }
.fgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fgroup .fl { margin-right: 8px; min-width: 40px; }
.reset { margin-left: auto; }

/* intro: mostly empty space */
.intro { padding-block: 96px 64px; }
.intro .wrap { display: flex; flex-direction: column; gap: 24px; }
.intro .t-h1 { text-wrap: balance; }
@media (max-width: 720px) { .intro { padding-block: 96px 64px; } }

/* ideas and grid: density step 0..3 → posters per row 3, 4, 6, 12 (phones 2, 3, 4, 6) */
html[data-d="0"] { --n: 3; --cg: 48px; --rg: 96px; }
html[data-d="1"] { --n: 4; --cg: 32px; --rg: 72px; }
html[data-d="2"] { --n: 6; --cg: 24px; --rg: 56px; }
html[data-d="3"] { --n: 12; --cg: 8px; --rg: 32px; }
@media (max-width: 720px) {
  html[data-d="0"] { --n: 2; --cg: 16px; --rg: 48px; } html[data-d="1"] { --n: 3; --cg: 12px; --rg: 40px; }
  html[data-d="2"] { --n: 4; --cg: 8px; --rg: 32px; } html[data-d="3"] { --n: 6; --cg: 8px; --rg: 24px; }
}
.idea { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-bottom: var(--sp); }
.idea-head { grid-column: 1 / 5; align-self: start; position: sticky; top: 72px; display: flex; flex-direction: column; gap: 8px; padding-bottom: 32px; }
.numeral { font: 400 160px/160px var(--mono); letter-spacing: -.06em; color: var(--fg-3); opacity: .45; margin-left: -.04em; user-select: none; }
.idea .grid { grid-column: 5 / 13; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: var(--rg) var(--cg); }
html[data-d="2"] .idea-head, html[data-d="3"] .idea-head { grid-column: 1 / -1; position: static; flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; padding-bottom: 24px; }
html[data-d="2"] .idea .grid, html[data-d="3"] .idea .grid { grid-column: 1 / -1; }
html[data-d="2"] .numeral, html[data-d="3"] .numeral { font-size: 40px; line-height: 48px; }
html[data-d="2"] .idea-head .t-h2, html[data-d="3"] .idea-head .t-h2 { font-size: 24px; line-height: 32px; }
html[data-d="3"] .idea { padding-bottom: 48px; }
html[data-d="2"] .idea { padding-bottom: 96px; }
@media (max-width: 720px) {
  .idea-head, html[data-d] .idea-head { grid-column: 1 / -1; position: static; padding-bottom: 24px; }
  .idea .grid, html[data-d] .idea .grid { grid-column: 1 / -1; }
  .numeral { font-size: 64px; line-height: 64px; }
}

.pc { min-width: 0; }
.p { display: block; text-decoration: none; }
.frame { position: relative; display: block; aspect-ratio: 1680 / 2376; background: var(--panel) center / cover no-repeat; border: 1px solid var(--line); transition: border-color .2s, transform .3s cubic-bezier(.2, .7, .2, 1); }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cap { display: flex; justify-content: space-between; gap: 8px; padding-top: 8px; font: 400 10px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.cap b, .cap i { font-weight: 400; font-style: normal; }
.cap b { color: var(--fg); }
.p:hover .frame { border-color: var(--fg-3); }
.pc.hit .frame { border-color: var(--time); }
html[data-d="3"] .cap i { display: none; }
html[data-d="3"] .cap { padding-top: 4px; }
.none { padding-block: 96px; color: var(--fg-2); display: flex; align-items: center; gap: 16px; }

/* a poster's own page */
.work { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; padding-block: 96px var(--sp); }
.plate { grid-column: 2 / 8; }
.plate img { display: block; width: 100%; height: auto; aspect-ratio: 1680 / 2376; background: var(--panel) center / cover no-repeat; border: 1px solid var(--line); }
.plate a { display: block; }
.label { grid-column: 9 / 13; display: flex; flex-direction: column; gap: 16px; align-self: start; position: sticky; top: 96px; }
.spec { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px 16px; margin-top: 16px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.spec dt { padding-top: 3px; }
.spec dd { font-size: 13px; line-height: 20px; color: var(--fg); }
.spec a { color: var(--fg); text-decoration-color: var(--line-2); text-underline-offset: 3px; } .spec a:hover { text-decoration-color: var(--fg-2); }
.cred { display: flex; flex-direction: column; gap: 8px; }
.cred li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 8px; }
.cred .fig { color: var(--fg); padding-top: 2px; }
.sibs { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.sibs ol { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.sibs a { display: block; border: 1px solid var(--line); } .sibs a[aria-current="page"] { border-color: var(--fg-2); } .sibs a:hover { border-color: var(--fg-3); }
.sibs img { display: block; width: 100%; height: auto; aspect-ratio: 1680 / 2376; background: var(--panel) center / cover no-repeat; }
.pnav { display: flex; gap: 24px; flex: none; }
.pn { display: flex; flex-direction: column; text-decoration: none; min-width: 88px; } .pn:hover .t-label { color: var(--fg); } .pn.next { text-align: right; } .pn.off { visibility: hidden; }
.pn .ghost-id { color: var(--fg-2); }   /* identification is information, not decoration */
@media (max-width: 960px) { .plate { grid-column: 1 / -1; } .label { grid-column: 1 / -1; position: static; } .work { padding-block: 48px var(--sp); } .pn .ghost-id { display: none; } .pn { min-width: 0; } }

/* footer */
.foot { border-top: 1px solid var(--line-2); padding-block: 64px 96px; }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 64px; }
.f-col { grid-column: span 4; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.f-col p { font-size: 13px; line-height: 20px; color: var(--fg-2); max-width: 560px; }
.f-col em { color: var(--fg); font-style: italic; }
.f-col a { color: var(--fg); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.f-sign { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 32px; border-top: 1px solid var(--line); }
.f-by { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; }
.f-by:hover { color: var(--fg); }
.f-logo { display: inline-flex; align-items: center; height: 24px; color: var(--fg); }
.f-logo svg { height: 20px; width: auto; display: block; }
@media (max-width: 960px) { .f-col { grid-column: 1 / -1; } .foot { row-gap: 48px; } }

/* ---- viewing tools, shared by the lightbox and the poster pages ---- */
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.stage { position: relative; }
.chip:disabled { opacity: .35; cursor: default; }
a.chip { display: inline-flex; align-items: center; text-decoration: none; }
.lb-grid { position: absolute; inset: 0; pointer-events: none; }
.gridov { display: block; width: 100%; height: 100%; }
.gridov .bl path { stroke: rgba(124, 152, 174, .16); stroke-width: 1; shape-rendering: crispEdges; }
.gridov .m { fill: rgba(176, 141, 98, .14); }
.gridov .f { fill: rgba(124, 152, 174, .13); stroke: rgba(124, 152, 174, .55); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lens { position: absolute; z-index: 5; border-radius: 50%; border: 1px solid var(--fg); box-shadow: 0 0 0 1px rgba(0, 0, 0, .7), 0 16px 48px rgba(0, 0, 0, .55); background: var(--panel) no-repeat; pointer-events: none; }
.lens.wait::after { content: "1:1"; position: absolute; inset: 0; display: grid; place-items: center; font: 400 10px/16px var(--mono); letter-spacing: .08em; color: var(--fg-2); }
.loupe-on img { cursor: none; }
.plate img, .lb-img { -webkit-user-drag: none; user-select: none; touch-action: pan-y; }

/* ---- the lightbox ---- */
html.lb-open { overflow: hidden; }
.lb { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--fg); overflow: hidden; }
.lb::backdrop { background: var(--bg); }
.lb[open] { display: flex; flex-direction: column; }
.lb-bar { display: flex; align-items: center; gap: 16px; padding: 8px var(--pad); min-height: 48px; border-bottom: 1px solid var(--line); flex: none; }
.lb-id { flex: 1; min-width: 0; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: flex-end; }
.lb-id { order: 1; } .lb-tools { order: 2; } .lb-bar .x { order: 3; }
.chip.arrow { min-width: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; }
.chip.x { width: 32px; min-width: 32px; padding: 0; display: inline-grid; place-items: center; flex: none; }
.ico { display: block; flex: none; }
.lb-step { display: none; }
.lb-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; }
.lb.nolabel .lb-main { grid-template-columns: minmax(0, 1fr); }
.lb.nolabel .lb-label { display: none; }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 24px; touch-action: pan-y; }
.lb-fig { position: relative; margin: 0; width: min(100%, calc((100dvh - 48px - 48px - 16px) * 1680 / 2376)); aspect-ratio: 1680 / 2376; background: var(--panel) center / cover no-repeat; border: 1px solid var(--line); }
.lb-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lb-label { overflow-y: auto; padding: 32px var(--pad) 48px 0; display: flex; flex-direction: column; gap: 16px; align-self: stretch; }
.lb-label .t-h2 { font-size: 28px; line-height: 32px; }
.lb-more { color: var(--fg-2); text-decoration: none; border-bottom: 1px solid var(--line-2); align-self: flex-start; }
.lb-more:hover { color: var(--fg); border-color: var(--fg-3); }
@media (prefers-reduced-motion: no-preference) {
  .lb[open] .lb-label > * { opacity: 0; transform: translateX(12px); transition: opacity .35s cubic-bezier(.2, .7, .2, 1), transform .35s cubic-bezier(.2, .7, .2, 1); }
  .lb.in .lb-label > * { opacity: 1; transform: none; }
  .lb.in .lb-label > *:nth-child(2) { transition-delay: .04s; } .lb.in .lb-label > *:nth-child(4) { transition-delay: .08s; } .lb.in .lb-label > *:nth-child(5) { transition-delay: .12s; }
  ::view-transition-group(poster) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
  ::view-transition-old(poster), ::view-transition-new(poster) { height: 100%; object-fit: cover; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
}
@media (max-width: 960px) {
  .lb[open] { overflow-y: auto; display: block; }
  .lb-main { display: block; }
  .lb-stage { padding: 16px var(--pad); }
  .lb-fig { width: min(100%, calc((100dvh - 120px) * 1680 / 2376)); margin-inline: auto; }
  .lb-label { padding: 16px var(--pad) 48px; overflow: visible; }
  .lb-bar { position: sticky; top: 0; z-index: 3; background: var(--bg); flex-wrap: wrap; row-gap: 8px; padding-block: 4px 8px; }
  .lb-id { order: 1; flex: 1; align-self: center; }
  .lb-bar .x { order: 2; width: 44px; height: 44px; margin-right: -8px; }          /* the corner: a thumb-sized target pinned top right */
  .lb-tools { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .lb-tools .in-bar { display: none; }
  .lb-stage { display: block; touch-action: pan-y; }
  .lb-step { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 16px; }
  .lb-step .arrow { width: 72px; height: 44px; }
  .lb-count { min-width: 64px; text-align: center; color: var(--fg-2); }
}

/* ================= motion (milestone 4) ================= */

/* the loader: a real flip through the catalogue. The static skeleton is shown only when the head gate has set html.reel-on. */
.reel { display: none; position: fixed; inset: 0; z-index: 100; background: var(--bg); grid-template-rows: auto 1fr auto; padding: 24px var(--pad) 32px; transition: opacity .5s ease; }
html.reel-on { overflow: hidden; }
html.reel-on body > :not(.reel) { visibility: hidden; }
html.reel-on .reel, .reel.run { display: grid; }
.reel.out { opacity: 0; pointer-events: none; }
.reel-mid { display: grid; place-content: center; justify-items: center; gap: 12px; min-height: 0; }
.reel-fig { margin: 0; height: min(58vh, 560px); aspect-ratio: 1680 / 2376; background: var(--panel) center / cover no-repeat; border: 1px solid var(--line-2); transition: opacity .4s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
.reel-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.reel-img:not([src]) { visibility: hidden; }
.reel.out .reel-fig { opacity: 0; transform: scale(.97) translateY(-8px); }
.reel-id { color: var(--fg); min-height: 16px; }
.reel-bot { display: flex; align-items: baseline; gap: 16px; }
.reel-count { font: 400 64px/72px var(--mono); letter-spacing: -.06em; color: var(--fg); min-width: 3ch; }
.reel-line { flex: 1; height: 1px; background: var(--line-2); align-self: center; position: relative; overflow: hidden; }
.reel-line i { position: absolute; inset: 0; background: var(--fg-2); transform: scaleX(0); transform-origin: left; }
@media (max-width: 720px) { .reel-count { font-size: 40px; line-height: 48px; } }

/* header: the idea you are in, and the line drawing in after the loader */
.here { color: var(--fg-2); }
html.dev-on .bar { transition: border-color .6s; }

/* posters developing: the image comes up through film grain. Opacity only, and the noise tile moves only while a poster is on its way in. */
.veil { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: var(--grain, none) 0 0 / 96px 96px; mix-blend-mode: overlay; }
html.dev-on .pc:not(.shown) .frame img { opacity: 0; }
html.dev-on .pc .frame img { transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
html.dev-on .pc:not(.shown) .veil { opacity: 1; }
html.dev-on .pc .veil { transition: opacity .9s ease-out var(--d, 0ms); }
html.dev-on .pc.live:not(.shown) .veil { animation: boil .5s steps(4) infinite; }
@keyframes boil { 0% { background-position: 0 0; } 25% { background-position: -23px 11px; } 50% { background-position: 17px -29px; } 75% { background-position: -9px 31px; } 100% { background-position: 0 0; } }

/* ideas: the numeral rises into place the first time it is reached */
html.dev-on .idea:not(.seen) .numeral { opacity: 0; transform: translateY(16px); }
html.dev-on .idea .numeral { transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
html.dev-on .idea.seen .numeral { opacity: .45; transform: none; }

/* hover (a mouse or the keyboard): registration marks, the poster's own field grid and a 2 px lift. Nothing else on the page changes. */
.frame::before, .frame::after { content: ""; position: absolute; pointer-events: none; opacity: 0; transition: opacity .25s ease; }
.frame::before { inset: -10px; background:
  linear-gradient(var(--fg), var(--fg)) left top 4px / 9px 1px no-repeat, linear-gradient(var(--fg), var(--fg)) left 4px top / 1px 9px no-repeat,
  linear-gradient(var(--fg), var(--fg)) right top 4px / 9px 1px no-repeat, linear-gradient(var(--fg), var(--fg)) right 4px top / 1px 9px no-repeat,
  linear-gradient(var(--fg), var(--fg)) left bottom 4px / 9px 1px no-repeat, linear-gradient(var(--fg), var(--fg)) left 4px bottom / 1px 9px no-repeat,
  linear-gradient(var(--fg), var(--fg)) right bottom 4px / 9px 1px no-repeat, linear-gradient(var(--fg), var(--fg)) right 4px bottom / 1px 9px no-repeat; }
/* the fields: 12 columns of 88 px on a 120 px pitch inside the side margins; rows start at 96 px (route A, 16 rows) or 176 px (route B, 15 rows) */
.frame::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Crect width='88' height='88' fill='%237C98AE'/%3E%3C/svg%3E") 0 0 / 8.5227% 6.3559% repeat; inset: 4.0404% 8.0952% 16.4983% 8.0952%; }
.pc[data-route="B"] .frame::after { background-size: 8.5227% 6.7873%; inset: 7.4074% 8.0952% 18.1818% 8.0952%; }
@media (hover: hover) and (pointer: fine) {
  .p:hover .frame, .p:focus-visible .frame { transform: translateY(-2px); }
  .p:hover .frame::before, .p:focus-visible .frame::before { opacity: .7; }
  .p:hover .frame::after, .p:focus-visible .frame::after { opacity: .2; }
}


/* ================= the index page: edge to edge, and the Mix view (the default) ================= */
body[data-page="index"] { --ipad: 16px; }
@media (min-width: 1280px) { body[data-page="index"] { --ipad: 24px; } }
body[data-page="index"] .wrap { max-width: none; padding-inline: var(--ipad); }

/* the about paragraph, under the catalogue: the label in the first four columns, the text in columns 5 to 10 */
.about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-block: 0 var(--sp); }
.about .t-label { grid-column: 1 / 5; padding-top: 6px; } .about-text { grid-column: 5 / 11; max-width: none; color: var(--fg-2); } .about-text em { color: var(--fg); font-style: italic; }
@media (max-width: 960px) { .about .t-label, .about-text { grid-column: 1 / -1; } .about .t-label { padding-bottom: 16px; } }

/* the two views: the Mix lattice is the default; By idea is the grouped catalogue. Cards move between them; the sections stay empty until the script fills them. */
html:not([data-view="idea"]) #ideas, html:not([data-view="idea"]) .dial, html[data-view="idea"] #mix, html[data-view="idea"] .rail { display: none; }
.views { display: flex; }
.views button { height: 24px; padding: 0 12px; background: none; border: 1px solid var(--line-2); border-left-width: 0; cursor: pointer; font: 400 10px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); white-space: nowrap; }
.views button:first-child { border-left-width: 1px; border-radius: 2px 0 0 2px; } .views button:last-child { border-radius: 0 2px 2px 0; }
.views button[aria-pressed="true"] { color: var(--fg); background: var(--line); } .views button:hover { color: var(--fg); }

/* the rail: ten numerals under the header. Hover or focus lights one idea in the mix; a click holds it. Nothing is hidden or moved. */
.rail { display: flex; align-items: center; gap: 4px; padding-block: 4px; border-top: 1px solid var(--line); min-height: 33px; }
.rail .rl { margin-right: 12px; } .rail .rn { margin-left: 12px; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rb { height: 24px; min-width: 32px; padding: 0 4px; background: none; border: 1px solid transparent; border-radius: 2px; cursor: pointer; font: 400 10px/16px var(--mono); letter-spacing: .08em; color: var(--fg-3); }
.rb:hover, .rb:focus-visible { color: var(--fg); } .rb[aria-pressed="true"] { color: var(--fg); border-color: var(--line-2); background: var(--line); }
@media (max-width: 720px) { .rail .rl { display: none; } .rb { min-width: 0; flex: 1; padding: 0; } .rail .rn { display: none; } .rail { gap: 0; }
  .views button { padding: 0 8px; } }
@media (max-width: 480px) { .ctl { gap: 8px; } }

/* the lattice: poster-shaped cells (1 : √2) on 12 / 8 / 4 columns. A tile of size n spans n columns and n rows, so every size is a whole multiple of the smallest.
   Each row is (cell + gap) × √2 − gap tall: the bottom edges of tiles line up, and the poster is cropped by about 2% at the sides in the smallest tile (0.5% in the biggest). */
.mix { container-type: inline-size; padding-bottom: var(--sp); }
.mixgrid { --cols: 12; --mg: 16px; --cell: calc((100cqw - (var(--cols) - 1) * var(--mg)) / var(--cols)); display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: calc((var(--cell) + var(--mg)) * 1.414286 - var(--mg)); gap: var(--mg); }
.mixgrid .pc { --s: 1; --c: var(--c12); --r: var(--r12); position: relative; grid-column: var(--c) / span var(--s); grid-row: var(--r) / span var(--s); }
.mixgrid .pc[data-t="2"] { --s: 2; } .mixgrid .pc[data-t="3"] { --s: 3; } .mixgrid .pc[data-t="4"] { --s: 4; }
@media (max-width: 960px) { .mixgrid { --cols: 8; } .mixgrid .pc { --c: var(--c8); --r: var(--r8); } }
@media (max-width: 720px) { .mixgrid { --cols: 4; --mg: 8px; } .mixgrid .pc { --c: var(--c4); --r: var(--r4); } .mixgrid .pc[data-t="3"] { --s: 2; } }
.mixgrid .p { position: relative; height: 100%; }
.mixgrid .frame { height: 100%; aspect-ratio: auto; }
/* the label sits on the poster, in the corner: always on the big tiles, on hover and focus for the small ones */
.mixgrid .cap { position: absolute; left: 0; bottom: 0; max-width: 100%; padding: 4px 8px; gap: 12px; background: rgba(12, 13, 15, .88); color: var(--fg); pointer-events: none; }
.mixgrid .cap i, .mixgrid .cap .ti { color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mixgrid .pc[data-t="1"] .cap i, .mixgrid .pc[data-t="2"] .cap i { display: none; }
.mixgrid .pc[data-t="1"] .cap, .mixgrid .pc[data-t="2"] .cap { opacity: 0; transition: opacity .2s; }
.mixgrid .pc:hover .cap, .mixgrid .p:focus-visible .cap, .mixgrid.curating .cap { opacity: 1 !important; }
.ti { display: none; } .mixgrid .pc[data-t="4"] .ti { display: inline; }
.mixgrid .pc.spot .frame { border-color: var(--time); }
.mixgrid[data-spot] .pc:not(.spot) { opacity: .16; transition: opacity .25s ease; }
.mixgrid[data-spot] .pc { transition: opacity .25s ease; }
@media (max-width: 720px) { .mixgrid .pc[data-t="1"] .cap, .mixgrid .pc[data-t="2"] .cap { display: none; } }

/* curate mode (?curate=1): click a poster to change its size, then copy the JSON */
.curate { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 8px var(--ipad, 16px); background: rgba(12, 13, 15, .96); border-top: 1px solid var(--line-2); }
.curate .t-label { color: var(--fg); } .curate .hint { color: var(--fg-2); flex: 1; min-width: 240px; }
.mixgrid.curating .pc { cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .reel { display: none !important; }
  .frame, .frame::before, .frame::after, .pc, .veil, .frame img, .numeral { transition: none !important; animation: none !important; }
  .p:hover .frame, .p:focus-visible .frame { transform: none; }
}
