/* assembl lab · the home's point-cloud stage. Nothing here applies until lab/pc/home.js has a working engine (html.pc-on):
   without WebGL the page is the site-v2 story unchanged. Colours are the point-cloud standard's plum ground and tone ramp. */
.pc-stage, .pc-pause[hidden] { display: none; }
.pc-run { position: relative; }
.pc-on .pc-run { overflow: clip; }                         /* the sticky stage never leaves the opening run */
.pc-on .pc-run ~ * { position: relative; z-index: 1; }
.pc-on .pc-stage { display: block; position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; z-index: 0; pointer-events: none; }
.pc-on .pc-stage canvas { display: block; width: 100%; height: 100%; }
.pc-leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pc-leaders path { fill: none; stroke: rgba(249, 246, 242, .42); stroke-width: 1; stroke-dasharray: 3 4; }
.pc-leaders path.new { stroke: #D9BACB; stroke-dasharray: none; }
.pc-leaders circle { fill: #F9F6F2; } .pc-leaders circle.ring { fill: none; stroke: rgba(249, 246, 242, .5); stroke-width: 1; }
.pc-on .pc-run > section { position: relative; z-index: 1; background: transparent; }
.pc-on .pc-run .hero-glow { display: none; }
.pc-on .pc-stage canvas { opacity: 0; transition: opacity .9s ease; }  /* transparent until the cloud has drawn its first frame */
.pc-live .pc-stage canvas { opacity: 1; }
.pc-leaders circle.pulse { fill: none; stroke: #D9BACB; stroke-width: 1.2; }

/* the hero: Tāmaki Makaurau Auckland as a point cloud, big, on the right; the words keep the left. Without WebGL the still (rendered
   on no ground, so no box edge) fills the same box, and the landmarks and twin sites are lists under the hero. */
.hero-world { position: relative; width: 100%; aspect-ratio: 4 / 3; pointer-events: none; }
.hero-world.hero-art { width: 100%; justify-self: auto; will-change: auto; }
.hero-world img { width: 100%; height: 100%; object-fit: contain; display: block; transition: opacity .9s ease; }
.pc-ready .hero-world img { opacity: 0; }
@media (min-width: 960px) {
  /* most of the hero: from just inside the copy's right edge (only the map's faded western margin runs under the words) to past
     the right edge of the screen */
  .hero-world, .hero-world.hero-art { position: absolute; z-index: 0; top: 96px; bottom: auto; height: calc(100svh - 148px); left: 49%; right: -5vw; width: auto; aspect-ratio: auto; }
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-block: clamp(104px, 13vh, 150px) clamp(48px, 7vh, 96px); }
  .hero-copy { gap: clamp(20px, 2.6vw, 32px); }
}
@media (max-width: 959px) {
  .hero { display: flex; flex-direction: column; }
  .hero-world, .hero-world.hero-art { order: -1; margin-top: 76px; width: 100%; aspect-ratio: 5 / 4; max-height: 62vh; }
  .hero .hero-in { padding-top: 8px; }
}
@media (min-width: 960px) { .hero-copy h1 { width: min-content; } }   /* its box is its words, so the map can come close */
.hero-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; column-gap: 18px; font-size: 14px; line-height: 20px; }
.hero-tags-k { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--v2-fg-2); margin-right: 2px; }
.hero-tags a { display: inline-block; padding: 12px 0; color: var(--v2-fg); text-decoration: none; background: linear-gradient(rgba(249, 246, 242, .28), rgba(249, 246, 242, .28)) 0 calc(100% - 10px) / 100% 1px no-repeat; }
.hero-tags a:hover { background-image: linear-gradient(#D9BACB, #D9BACB); }
.hero-tags a:focus-visible { outline: 2px solid #D9BACB; outline-offset: 3px; border-radius: 4px; }
/* landmarks and twin pins: real DOM text. Without WebGL, two short lists; with the cloud, each is tied to its place by a leader line */
.hero-notes { display: grid; gap: 12px; padding-bottom: clamp(40px, 6vw, 72px); }
.hero-notes-k { margin: 10px 0 0; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--v2-fg-2); }
.pc-on .hero-notes-k { display: none; }
.hero-callouts, .hero-pins { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.hero-callout, .hero-pin { display: grid; gap: 3px; padding: 11px 14px 12px; border-radius: 16px; background: rgba(33, 18, 31, .66); box-shadow: inset 0 0 0 1px rgba(249, 246, 242, .14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 13px; line-height: 1.4; color: rgba(249, 246, 242, .8); align-content: start; }
.hero-callout strong, .hero-pin strong { font-weight: 500; color: #F9F6F2; font-size: 14.5px; }
.hero-pin { box-shadow: inset 0 0 0 1px rgba(217, 186, 203, .5); }
.hero-pin a { color: inherit; text-decoration: none; }
.hero-pin .pin-chip:hover strong, .hero-pin .pin-more:hover { color: #D9BACB; }
.hero-pin a:focus-visible { outline: 2px solid #D9BACB; outline-offset: 3px; border-radius: 6px; }
.hero-pin .pin-card { display: grid; gap: 3px; }
.hero-pin .pin-more { font-size: 13px; color: #F9F6F2; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(217, 186, 203, .6); }
.hero-pin .pin-truth { font-size: 12px; color: rgba(249, 246, 242, .72); }
.hero-credit { margin: 0; max-width: 78ch; font: 500 10.5px/1.6 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .02em; color: var(--v2-fg-2); }
.pc-on .hero-notes { padding: 0; }
.pc-on .hero-callouts, .pc-on .hero-pins { position: fixed; inset: 0; z-index: 5; display: block; pointer-events: none; }
.pc-on .hero-callout, .pc-on .hero-pin { position: absolute; left: 0; top: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
.pc-on .hero-callout { max-width: 200px; padding: 8px 11px 9px; font-size: 12px; line-height: 1.35; gap: 2px; }
.pc-on .hero-callout strong { font-size: 13.5px; }
.pc-on .hero-pin { padding: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.pc-on .hero-pin .pin-chip { padding: 6px 11px 7px; border-radius: 13px; white-space: nowrap; pointer-events: auto; background: rgba(33, 18, 31, .66); box-shadow: inset 0 0 0 1px rgba(217, 186, 203, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pc-on .hero-pin .pin-chip:hover { box-shadow: inset 0 0 0 1px #D9BACB; }
.pc-on .hero-pin strong { font-size: 13px; }
.pc-on .hero-callout.on, .pc-on .hero-pin.on { opacity: 1; visibility: visible; transition: opacity .5s ease; }
.pc-on .hero-callout.compact { padding: 7px 12px 8px; border-radius: 14px; white-space: nowrap; }
.pc-on .hero-callout.compact span { display: none; }
.pc-on .hero-callout.compact strong { font-size: 13.5px; }
@media (min-width: 960px) { .pc-on .hero-credit { position: absolute; z-index: 1; right: 196px; top: calc(100svh - 64px); max-width: min(78ch, 40vw); text-align: right; } }
@media (min-width: 1200px) { .hero-tags { flex-wrap: nowrap; width: max-content; } }
.hero-credit a { color: inherit; text-underline-offset: 3px; }
@media (max-width: 959px) { .pc-on .hero-notes { padding: 0 0 28px; } }
/* twin pins on the map: a numbered chip (a numbered dot on a phone, or where a chip has no room); the truth line shows on hover or
   focus, and always in the key under the map. Without WebGL the pins are the list above, each with its truth line. */
.pin-n, .hero-pin .pin-n { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 999px; background: #D9BACB; color: #21121F; font-size: 11px; font-weight: 600; line-height: 1; }
html:not(.pc-on) .hero-pin .pin-n, .hero-key { display: none; }
.pc-on .hero-pin .pin-chip { display: flex; align-items: center; gap: 7px; padding: 4px 11px 4px 4px; border-radius: 999px; }
.pc-on .hero-pin strong { font-size: 12.5px; }
.pc-on .hero-pin .pin-n { font-size: 11px; color: #21121F; }
/* the card under a chip: any further sim on the same site, then the truth line; shown on hover or focus */
.pc-on .hero-pin .pin-card { position: absolute; left: 0; top: calc(100% + 6px); display: grid; gap: 4px; padding: 6px 10px 7px; border-radius: 10px; white-space: nowrap; font-size: 11.5px; color: #F9F6F2;
  background: rgba(33, 18, 31, .92); box-shadow: inset 0 0 0 1px rgba(217, 186, 203, .4); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; pointer-events: none; }
.pc-on .hero-pin .pin-more { font-size: 12.5px; pointer-events: auto; }
.pc-on .hero-pin .pin-truth { font-size: 11.5px; color: rgba(249, 246, 242, .82); }
.pc-on .hero-pin:hover .pin-card, .pc-on .hero-pin:focus-within .pin-card { opacity: 1; visibility: visible; transition: opacity .2s ease; }
.pc-on .hero-pin:hover, .pc-on .hero-pin:focus-within { z-index: 2; }
.pc-on .hero-pin.focus .pin-chip { box-shadow: inset 0 0 0 1px #D9BACB, 0 0 0 4px rgba(217, 186, 203, .16); }
.pc-on .hero-pin.dot .pin-chip { padding: 3px; }
.pc-on .hero-pin.dot strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* the focused twin's plot: an ivory ring on a plum halo, so it reads on the busiest part of the map; a rose pulse runs out from it */
.pc-leaders path.plot-under { stroke: rgba(33, 18, 31, .78); stroke-dasharray: none; stroke-width: 5; }
.pc-leaders path.plot { stroke: #F9F6F2; stroke-dasharray: none; stroke-width: 1.4; }
.pc-leaders path.pulse { stroke: #F0DCE6; stroke-dasharray: none; stroke-width: 1.6; }
.pc-on .hero-key { display: block; margin: 0; padding: 11px 14px 12px; border-radius: 16px; background: rgba(33, 18, 31, .66); box-shadow: inset 0 0 0 1px rgba(249, 246, 242, .12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero-key-k { margin: 0 0 8px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--v2-fg-2); }
.hero-key ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, max-content); gap: 6px 18px; }
.hero-key .key-and { color: rgba(249, 246, 242, .5); font-weight: 400; padding: 0 1px; }
.hero-key-truth { margin: 8px 0 0; font-size: 12px; line-height: 1.4; color: rgba(249, 246, 242, .72); }
.hero-key li { display: flex; align-items: center; gap: 7px; font-size: 12px; line-height: 1.35; color: rgba(249, 246, 242, .72); white-space: nowrap; }
.hero-key li strong { font-weight: 500; color: #F9F6F2; }
.hero-key li.focus strong { color: #D9BACB; }
@media (min-width: 960px) { .pc-on .hero-key { position: absolute; z-index: 1; left: calc(49% + 20px); top: calc(100svh - 222px); max-width: calc(51% - var(--v2-gutter) - 20px); } }
@media (max-width: 1279px) and (min-width: 960px) { .hero-key ol { grid-template-columns: repeat(2, max-content); } .pc-on .hero-key { top: calc(100svh - 262px); } }
@media (max-width: 959px) { .pc-on .hero-key { padding: 4px 0 24px; } .hero-key ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the doors */
.jump { padding: clamp(72px, 9vw, 128px) 0 clamp(64px, 8vw, 112px); }
.jump .ch-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.jump-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.jump-tile { position: relative; display: grid; height: 100%; text-decoration: none; color: inherit; border-radius: 22px; overflow: hidden;
  background: rgba(33, 18, 31, .55); box-shadow: inset 0 0 0 1px rgba(249, 246, 242, .12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .2s ease, box-shadow .2s ease; }
.jump-tile:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(217, 186, 203, .45); }
.jump-tile:focus-visible { outline: 2px solid #D9BACB; outline-offset: 3px; }
.jump-pic { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #21121F; }
.jump-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jump-copy { display: grid; gap: 6px; padding: 18px 20px 20px; align-content: start; }
.jump-copy strong { font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.jump-copy .row-line { color: var(--v2-fg-2, rgba(249, 246, 242, .72)); font-size: 15px; }
.jump-copy .truth { justify-self: start; margin-top: 4px; }
.jump-tile .row-go { position: absolute; right: 16px; top: 16px; color: #F9F6F2; opacity: .8; }
/* exam season (Nov 2026): the study machines door leads, two columns wide, with three machines as point clouds, each named */
@media (min-width: 640px) { .jump-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .jump-lead { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .jump-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .jump-lead { grid-column: span 2; } }
.jump-lead .jump-pic { aspect-ratio: 12 / 5; }
@media (min-width: 640px) { .jump-lead .jump-pic { aspect-ratio: 33 / 10; } }
.jump-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(249, 246, 242, .1); }
.trio-cell { position: relative; display: block; min-width: 0; overflow: hidden; background: #180B18; }
.jump-trio .trio-cell img { transform: scale(1.14); transition: transform .4s ease; }
.jump-tile:hover .trio-cell img { transform: scale(1.2); }
.trio-k { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; background: linear-gradient(180deg, rgba(24, 11, 24, 0), rgba(24, 11, 24, .88) 70%); font: 500 10.5px/1.3 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: rgba(249, 246, 242, .82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jump-lead .jump-copy strong { font-size: 22px; }
@media (max-width: 639px) { .trio-k { padding: 18px 8px 7px; font-size: 9px; letter-spacing: .04em; } .jump-trio .trio-cell img, .jump-tile:hover .trio-cell img { transform: none; } }

/* the architecture chapter: the hall sits on the left (drawn by the stage), the words on the right, callouts tied to the hall */
.arch { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: clamp(80px, 9vw, 120px) 0; }
.arch-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 64px); align-items: center; min-height: 70vh; }
.arch-slot { min-height: 50vh; }
.arch-copy { display: grid; gap: clamp(18px, 2.4vw, 28px); justify-items: start; }
.arch-copy .lede { max-width: 42ch; }
.arch-copy .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.arch-copy .truth-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-size: 14px; color: var(--v2-fg-2, rgba(249, 246, 242, .72)); }
.arch-callouts { list-style: none; margin: 0; padding: 0; }
.arch-callout { display: grid; gap: 4px; max-width: 270px; padding: 14px 16px; border-radius: 16px; background: rgba(33, 18, 31, .62); box-shadow: inset 0 0 0 1px rgba(249, 246, 242, .14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 14px; line-height: 1.4; color: rgba(249, 246, 242, .82); }
.arch-callout strong { font-weight: 500; color: #F9F6F2; font-size: 15px; }
.pc-on .arch-callout { position: absolute; opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease; }
.pc-on .arch-callout.on { opacity: 1; transform: none; }
.pc-on .arch-callout[data-anchor="ridge"] { left: 2%; top: 2%; }
.pc-on .arch-callout[data-anchor="entry"] { left: 0; bottom: 4%; }
.pc-on .arch-callout[data-anchor="wc"] { left: 34%; bottom: -2%; }
.typing.caret::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: #D9BACB; animation: pc-caret 1s steps(2) infinite; }
@keyframes pc-caret { 50% { opacity: 0; } }
html:not(.pc-on) .arch-callouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; grid-column: 1 / -1; }
html:not(.pc-on) .arch-slot { display: none; }
html:not(.pc-on) .arch-in { grid-template-columns: 1fr; min-height: 0; }

/* pause motion: icon only, bottom right just above the Ask button, while the opening run is on screen */
.pc-on .pc-pause { position: fixed; right: 18px; bottom: 76px; z-index: 30; width: 44px; height: 44px; border-radius: 999px; border: 0; display: grid; place-items: center; cursor: pointer;
  color: #F9F6F2; background: rgba(33, 18, 31, .72); box-shadow: inset 0 0 0 1px rgba(249, 246, 242, .2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pc-on .pc-pause:focus-visible { outline: 2px solid #D9BACB; outline-offset: 3px; }
.pc-on .pc-pause.off-run { opacity: 0; pointer-events: none; }

@media (max-width: 759px) {
  .arch-in { grid-template-columns: 1fr; }
  .arch-slot { min-height: 46vh; order: -1; }
  .pc-on .arch-callout { position: static; opacity: 1; transform: none; max-width: none; margin-top: 10px; }
  .arch-callouts { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .pc-on .arch-callout, .pc-on .hero-callout, .pc-on .hero-pin, .hero-world img, .pc-on .pc-stage canvas { transition: none; } .typing.caret::after { animation: none; } .jump-tile, .jump-trio .trio-cell img { transition: none; } .jump-tile:hover .trio-cell img { transform: scale(1.14); } }

/* the lower chapters on the same plum ground: twin cards and study machines show point-cloud stills of their own models,
   cards are translucent plum with a hairline (as the doors are), and a hairline divides each chapter from the next */
.sheet.pc-lower { background: transparent; }
.sheet.pc-lower > .chapter:first-child { border-radius: 0; }
.pc-lower > .chapter, .close { border-top: 1px solid rgba(249, 246, 242, .1); }
.twins .frame, .pc-lower .frame { background: #21121F; }
.pc-lower .mc a { --v2-fg-2: var(--v2-mauve-on-dark); background: rgba(249, 246, 242, .035); box-shadow: inset 0 0 0 1px var(--v2-line); color: var(--v2-fg); }
.pc-lower .mc a:hover { box-shadow: inset 0 0 0 1px rgba(249, 246, 242, .24), 0 40px 70px -46px rgba(217, 186, 203, .45); }
.pc-lower .mc .frame { background: #21121F; }
.twins .tw-pic img { object-fit: cover; }
.pc-lower .mc .frame img { object-fit: contain; }
.pc-lower .doors .row { --v2-fg-2: var(--v2-mauve-on-dark); background: rgba(249, 246, 242, .035); box-shadow: inset 0 0 0 1px var(--v2-line); }
.pc-lower .doors .row:hover { background: rgba(249, 246, 242, .07); }
.pc-lower .years a:hover { background: rgba(249, 246, 242, .08); }
