
.status { display: inline-flex; align-items: center; gap: 0.55em; font-size: 15px; font-weight: 500; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2fbf71; }
.status[data-building]::before { background: #f0a73a; }
.view { display: inline-flex; align-items: center; gap: 0.5em; font-size: 16px; font-weight: 600; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.view::after { content: "→"; transition: translate 0.3s var(--out); }
.view:hover::after { translate: 4px 0; }
/* The home is a dark board; its own colours, on the body, so they reach the header and the footer too. */
.page-index { --paper: #0a0a0c; --ink: #f2f1ec; --ink-2: #9b9aa3; --trace: rgb(255 255 255 / 0.24); --spring: cubic-bezier(0.34, 1.56, 0.64, 1); --out: cubic-bezier(0.22, 1, 0.36, 1); background: var(--paper); color: var(--ink); }
.chip-scroll { position: relative; }
/* The board: a fine technical grid with a crosshair every fourth line, like a chip's floor plan. */
.stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden; -webkit-user-select: none; user-select: none; touch-action: pan-y;
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='192'%3E%3Cpath d='M96 90v12M90 96h12' stroke='%23ffffff' stroke-opacity='.16' stroke-width='1'/%3E%3C/svg%3E"),
    linear-gradient(rgb(255 255 255 / 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.026) 1px, transparent 1px);
  background-size: 192px 192px, 48px 48px, 48px 48px;
  background-position: calc(50% - 96px) calc(50% - 96px), center, center;
}
.stage.is-rest { cursor: grab; }
.stage.is-dragging { cursor: grabbing; }
.glow { position: absolute; inset: 0; background: radial-gradient(60% 55% at var(--gx, 50%) 58%, var(--accent, #22222a), transparent 72%); opacity: var(--glow, 0.35); transition: background 0.8s var(--out); pointer-events: none; }
.scene { position: absolute; left: 0; top: 0; width: 0; height: 0; perspective: 2400px; perspective-origin: 0 0; will-change: transform; }
/* The base plate under the stack, with its pins, as on a chip package. */
.substrate { position: absolute; left: calc(var(--S) * -0.6); top: calc(var(--S) * -0.4); width: calc(var(--S) * 1.2); height: calc(var(--S) * 0.8); border-radius: 12px; background: #111115; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); backface-visibility: hidden; }
.substrate::before { content: ""; position: absolute; inset: -16px;
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / 0.2) 0 5px, transparent 5px 15px) center top / calc(100% - 64px) 9px no-repeat,
    repeating-linear-gradient(90deg, rgb(255 255 255 / 0.2) 0 5px, transparent 5px 15px) center bottom / calc(100% - 64px) 9px no-repeat,
    repeating-linear-gradient(0deg, rgb(255 255 255 / 0.2) 0 5px, transparent 5px 15px) left center / 9px calc(100% - 64px) no-repeat,
    repeating-linear-gradient(0deg, rgb(255 255 255 / 0.2) 0 5px, transparent 5px 15px) right center / 9px calc(100% - 64px) no-repeat; }
.substrate::after { content: ""; position: absolute; inset: 7%; border: 1px dashed rgb(255 255 255 / 0.1); border-radius: 8px; }
/* A layer: one project, its real screens in a thin frame, its colour along the edge. */
.layer { position: absolute; left: calc(var(--L) / -2); top: calc(var(--L) * -0.3125); width: var(--L); height: calc(var(--L) * 0.625); backface-visibility: hidden; will-change: transform, opacity, filter; cursor: none; }
.face { position: absolute; inset: 0; overflow: hidden; border-radius: 14px; background: #1b1b20; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.16), 0 40px 80px -30px rgb(0 0 0 / 0.85); transition: box-shadow 0.3s; }
.face::after { content: ""; position: absolute; inset: auto 0 0 0; z-index: 4; height: 8px; background: var(--ground); }
.layer-shot { position: absolute; inset: 0; will-change: transform; }
.layer-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; transform: scale(var(--kb, 1)); transform-origin: 30% 20%; }
.layer-film { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s var(--out); }
.layer.playing .layer-film { opacity: 1; }
.glare { position: absolute; inset: 0; z-index: 3; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgb(255 255 255 / 0.2), transparent 46%); opacity: 0; pointer-events: none; }
/* Corner brackets mark the layer pointed at, like alignment marks on a die. */
.bk { position: absolute; width: 40px; height: 40px; border: 0 solid var(--ink); opacity: 0; transition: opacity 0.3s var(--out), translate 0.4s var(--out); pointer-events: none; }
.bk.a { left: -16px; top: -16px; border-width: 4px 0 0 4px; translate: 10px 10px; }
.bk.b { right: -16px; top: -16px; border-width: 4px 4px 0 0; translate: -10px 10px; }
.bk.c { right: -16px; bottom: -16px; border-width: 0 4px 4px 0; translate: -10px -10px; }
.bk.d { left: -16px; bottom: -16px; border-width: 0 0 4px 4px; translate: 10px -10px; }
.layer.is-hot .bk { opacity: 1; translate: 0 0; }
.layer.is-hot .face { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.5), 0 50px 90px -30px rgb(0 0 0 / 0.9); }
/* Traces from each layer to its label: a straight run, a 45-degree turn, a pad; a signal runs in now and then. */
.traces { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.traces .wire { fill: none; stroke: var(--trace); stroke-width: 1.2; }
.traces .wire.hot { stroke: var(--ink); stroke-width: 1.6; }
.traces .pulse { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 0.05 1.05; opacity: 0; animation: signal 5.2s linear infinite; }
.traces .pulse.hot { animation-duration: 1.5s; }
.traces .via { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; }
.traces .pad { fill: rgb(255 255 255 / 0.5); }
@keyframes signal { 0% { stroke-dashoffset: 0.06; opacity: 1; } 30% { stroke-dashoffset: 1.1; opacity: 1; } 30.5%, 100% { stroke-dashoffset: 1.1; opacity: 0; } }
/* Labels, as on a drawing: number, name, state, and one short line. */
.callout { position: absolute; left: 0; top: 0; width: var(--cw, 268px); display: grid; gap: 6px; will-change: transform, opacity; }
.callout .head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.callout .num, .detail .num, .pos, .chip b, .rail button { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 500; font-variant-numeric: tabular-nums; }
.callout .num { font-size: 15px; color: var(--ink-2); }
.callout .cname { font-size: 19px; font-weight: 650; letter-spacing: -0.015em; }
.callout .status { color: var(--ink-2); }
.callout .cwhat { font-size: 16px; line-height: 1.4; color: #bebdc6; }
.callout.left { text-align: right; justify-items: end; }
.callout.left .head { justify-content: flex-end; }
.callout.is-open .cname { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
.callouts.compact .cwhat { display: none; }
.callouts.compact .callout.is-open .cwhat { display: block; }
.callouts.compact .callout.is-open { z-index: 5; background: var(--paper); box-shadow: 0 0 0 14px var(--paper); }
/* The screen in focus: its words beside it. */
.detail { position: absolute; left: 63%; right: 6%; top: 50%; translate: 0 -50%; display: grid; gap: 20px; justify-items: start; opacity: 0; pointer-events: none; will-change: opacity, transform; }
.detail.is-on { pointer-events: auto; }
.detail .head { display: flex; align-items: baseline; gap: 14px; }
.detail .num { font-size: 16px; color: var(--ink-2); }
.detail .status { color: var(--ink-2); }
.detail .dname { font-size: clamp(44px, 4.6vw, 72px); font-weight: 650; letter-spacing: -0.045em; line-height: 0.95; }
.detail .dwhat { max-width: 24ch; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.3; color: #dedde3; text-wrap: pretty; }
.pager { display: flex; gap: 6px; min-height: 3px; }
.pager i { width: 22px; height: 3px; border-radius: 2px; background: rgb(255 255 255 / 0.2); transition: background 0.3s; }
.pager i.on { background: var(--ink); }
/* The index on the right: where you are, and a way to jump. */
.rail { position: absolute; right: 26px; top: 50%; translate: 0 -50%; display: grid; gap: 4px; opacity: 0; pointer-events: none; }
.rail.is-on { pointer-events: auto; }
.rail button { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 5px 0; border: 0; background: none; color: var(--ink-2); font-size: 15px; line-height: 1; cursor: pointer; transition: color 0.3s; }
.rail button::before { content: ""; width: 0; height: 1.5px; background: currentColor; transition: width 0.45s var(--out); }
.rail button:hover, .rail button.is-current { color: var(--ink); }
.rail button.is-current::before { width: 22px; }
.rail button[hidden] { display: none; }
.rail .rn { position: absolute; right: calc(100% + 12px); top: 50%; translate: 8px -50%; padding: 7px 11px; border-radius: 7px; background: var(--paper); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14); font: 600 15px/1 "Schibsted Grotesk", system-ui, sans-serif; color: var(--ink); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.3s var(--out), translate 0.3s var(--out); }
.rail button:hover .rn, .rail button:focus-visible .rn { opacity: 1; translate: 0 -50%; }
/* The corners: crop marks, the filter, and where you are. */
.mark { position: absolute; width: 16px; height: 16px; border: 0 solid rgb(255 255 255 / 0.32); pointer-events: none; }
.mark.tl { left: 14px; top: 14px; border-width: 1px 0 0 1px; } .mark.tr { right: 14px; top: 14px; border-width: 1px 1px 0 0; }
.mark.bl { left: 14px; bottom: 14px; border-width: 0 0 1px 1px; } .mark.br { right: 14px; bottom: 14px; border-width: 0 1px 1px 0; }
.hud-bl { position: absolute; left: 40px; bottom: 30px; display: flex; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 15px; border: 1px solid rgb(255 255 255 / 0.16); border-radius: 999px; background: rgb(10 10 12 / 0.6); color: var(--ink-2); font: 500 15px/1 "Schibsted Grotesk", system-ui, sans-serif; cursor: pointer; transition: color 0.25s, background 0.25s, border-color 0.25s, transform 0.2s var(--out); }
.chip:hover { color: var(--ink); border-color: rgb(255 255 255 / 0.4); }
.chip:active { transform: scale(0.97); }
.chip b { font-size: 15px; font-weight: 500; opacity: 0.7; }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.hud-br { position: absolute; right: 40px; bottom: 34px; display: flex; align-items: center; gap: 18px; color: var(--ink-2); font-size: 15px; pointer-events: none; }
.pos { color: var(--ink); font-size: 15px; }
.hint { display: inline-flex; align-items: center; gap: 10px; transition: opacity 0.4s; }
.hint::after { content: ""; width: 1.5px; height: 22px; background: linear-gradient(var(--ink-2), transparent); transform-origin: 50% 0; animation: hint 2s var(--out) infinite; }
@keyframes hint { 0% { transform: scaleY(0); opacity: 1; } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
/* The pointer over a screen becomes a small label. */
.vcursor { position: fixed; left: 0; top: 0; z-index: 200; display: grid; place-items: center; height: 56px; min-width: 56px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 650 15px/1 "Schibsted Grotesk", system-ui, sans-serif; pointer-events: none; opacity: 0; scale: 0.4; transition: opacity 0.2s, scale 0.35s var(--spring); }
.vcursor.on { opacity: 1; scale: 1; }
@media (max-width: 800px) {
  .callout .cwhat { display: none; }
  .callout .cname { font-size: 17px; }
  .callout .head { gap: 8px; }
  .callout .status { flex-basis: 100%; margin-left: 27px; }
  .detail { left: 20px; right: 20px; top: auto; bottom: 92px; translate: none; gap: 12px; }
  .detail .dname { font-size: 40px; }
  .detail .dwhat { font-size: 19px; max-width: none; }
  .rail, .hud-br .pos, .vcursor { display: none; }
  .hud-bl { left: 20px; bottom: 22px; gap: 6px; }
  .chip { min-height: 38px; padding: 0 12px; }
  .hud-br { right: 20px; bottom: 32px; }
  .mark { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .traces .pulse { display: none; }
  .hint::after { animation: none; }
}

/* ---------- Round 10: every screen in its own layer, so none cuts through another ---------- */
.scene { --L: 640px; --S: 410px; }
.slot { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.slot .layer, .slot .substrate { will-change: transform, opacity; }
/* The product view: the screen becomes a window, with a quiet title bar. */
.chrome { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: calc(var(--L) * 0.05); display: flex; align-items: center; gap: calc(var(--L) * 0.009); padding: 0 calc(var(--L) * 0.02); border-radius: 14px 14px 0 0; background: #222227; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12); transform-origin: 50% 100%; transform: scaleY(var(--chrome, 0)); opacity: var(--chrome, 0); pointer-events: none; }
.chrome i { width: calc(var(--L) * 0.012); aspect-ratio: 1; border-radius: 50%; background: #45454d; }
.chrome span { position: absolute; left: 50%; translate: -50% 0; font: 500 15px/1 "Schibsted Grotesk", system-ui, sans-serif; color: #9d9ca6; white-space: nowrap; }
.face { border-radius: calc(14px * (1 - var(--chrome, 0))) calc(14px * (1 - var(--chrome, 0))) 14px 14px; }
/* The words arrive line by line. */
.detail.swap > * { animation: line-in 0.7s var(--out) both; }
.detail.swap > :nth-child(2) { animation-delay: 0.06s; }
.detail.swap > :nth-child(3) { animation-delay: 0.12s; }
.detail.swap > :nth-child(4) { animation-delay: 0.18s; }
.detail.swap > :nth-child(5) { animation-delay: 0.24s; }
@keyframes line-in { from { opacity: 0; transform: translateY(16px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(-10% -10% -20% -10%); } }
@media (prefers-reduced-motion: reduce) { .detail.swap > * { animation: none; } }

/* ---------- Round 11: heavier motion ---------- */
/* The board's grid lives on its own layer, so it can travel with the camera. */
.stage { background-image: none; }
.board-grid {
  position: absolute; inset: -240px; pointer-events: none; will-change: transform;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='192'%3E%3Cpath d='M96 90v12M90 96h12' stroke='%23ffffff' stroke-opacity='.16' stroke-width='1'/%3E%3C/svg%3E"),
    linear-gradient(rgb(255 255 255 / 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.026) 1px, transparent 1px);
  background-size: 192px 192px, 48px 48px, 48px 48px;
  background-position: center;
}
/* Each project's colour floods the board from its screen as the screen lands. */
/* Its own stacking context, so the washes stay under the screens and the controls. */
.washes { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hud-bl { isolation: isolate; }
.wash { position: absolute; inset: 0; background: radial-gradient(110% 85% at var(--wx, 50%) var(--wy, 50%), color-mix(in oklab, var(--c) 30%, #0a0a0c), color-mix(in oklab, var(--c) 9%, #0a0a0c) 72%); visibility: hidden; }
/* A line of light passes over a screen as it lands, like a display coming on. */
.scan { position: absolute; left: 0; right: 0; top: 0; z-index: 3; height: 26%; background: linear-gradient(rgb(255 255 255 / 0), rgb(255 255 255 / 0.2) 50%, rgb(255 255 255 / 0)); opacity: 0; pointer-events: none; will-change: transform, opacity; }
/* Darkening is a shade over the screen, not a filter, so it is cheap to move. */
.shade { position: absolute; inset: 0; z-index: 6; border-radius: 14px; background: #050507; opacity: 0; pointer-events: none; will-change: opacity; }
.face { transition: box-shadow 0.3s, filter 0.5s var(--out); }
.layer.soft .face { filter: blur(1.6px); }
.layer { cursor: none; }
/* The name rises letter by letter; the number ticks over; the status dot pings once. */
.detail.swap > .dname { animation: none; }
.dname .w { display: inline-block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; vertical-align: top; white-space: nowrap; }
.dname .ch { display: inline-block; }
.detail.swap .dname .ch { animation: ch-in 0.9s var(--out) both; animation-delay: calc(var(--d) * 26ms + 40ms); }
@keyframes ch-in { from { transform: translateY(110%) rotate(6deg); } to { transform: none; } }
.num { display: inline-block; overflow: hidden; vertical-align: bottom; }
.num .tick { display: inline-block; }
.detail.swap .num .tick { animation: tick-in 0.7s var(--out) both; }
@keyframes tick-in { from { transform: translateY(100%); } to { transform: none; } }
.detail .status::before { box-shadow: 0 0 0 0 rgb(47 191 113 / 0); }
.detail .status[data-building]::before { box-shadow: 0 0 0 0 rgb(240 167 58 / 0); }
.detail.swap .status::before { animation: dot-ping 1.3s ease-out 0.45s both; }
.detail.swap .status[data-building]::before { animation-name: dot-ping-amber; }
@keyframes dot-ping { from { box-shadow: 0 0 0 0 rgb(47 191 113 / 0.7); } to { box-shadow: 0 0 0 12px rgb(47 191 113 / 0); } }
@keyframes dot-ping-amber { from { box-shadow: 0 0 0 0 rgb(240 167 58 / 0.7); } to { box-shadow: 0 0 0 12px rgb(240 167 58 / 0); } }
/* The filter: one pill slides to the choice. */
.hud-bl .pill { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 999px; background: var(--ink); pointer-events: none; transition: transform 0.6s var(--spring), width 0.6s var(--spring); }
.chip { position: relative; z-index: 1; transition: color 0.35s, border-color 0.35s, transform 0.2s var(--out); }
.chip.is-on { background: transparent; border-color: transparent; color: var(--paper); }
@media (prefers-reduced-motion: reduce) {
  .detail.swap .dname .ch, .detail.swap .num .tick, .detail.swap .status::before { animation: none; }
  .hud-bl .pill { transition: none; }
}
/* The plate's pins run out from the middle as the page opens. */
.substrate::before { clip-path: inset(0 50%); transition: clip-path 1.1s var(--out) 0.1s; }
.substrate.is-on::before { clip-path: inset(-30px); }
@media (prefers-reduced-motion: reduce) { .substrate::before { clip-path: none; transition: none; } }

/* ---------- Round 12: slideshows, swipes, and motion beyond the opening ---------- */
.layer-shot { will-change: transform, clip-path; }
/* The pager fills as each screen plays; pressing a bar shows that screen. */
.pager { gap: 8px; pointer-events: auto; }
.pager button { display: grid; place-items: center; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.pager i { position: relative; overflow: hidden; width: 34px; height: 3px; border-radius: 2px; background: rgb(255 255 255 / 0.2); }
.pager i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--fill, 0)); }
.pager i.on { background: rgb(255 255 255 / 0.28); }
/* A live project's dot breathes. */
.callout .status:not([data-building])::before, .detail .status:not([data-building])::before { animation: live 2.6s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgb(47 191 113 / 0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgb(47 191 113 / 0); } }
/* Magnetic chips settle back softly. */
.chip { transition: color 0.35s, border-color 0.35s, transform 0.2s var(--out), translate 0.4s var(--out); }
/* The position ticks over. */
.pos.ticked { animation: tick-in 0.6s var(--out) both; }
@media (prefers-reduced-motion: reduce) {
  .callout .status::before, .detail .status::before, .pos.ticked { animation: none; }
}
.layer-shot img { -webkit-user-drag: none; user-select: none; }

/* ---------- Round 14: the chip, bolder ---------- */
.scene { perspective: 2000px; }
.slot.board { z-index: 0; }
.slot.lidslot { z-index: 400; }
/* The board: traces running out from under the chip into the dark, data moving along them. */
.pcb { position: absolute; pointer-events: none; -webkit-mask-image: radial-gradient(closest-side, #000 52%, transparent 100%); mask-image: radial-gradient(closest-side, #000 52%, transparent 100%); will-change: opacity; }
.pcb svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pcb .tr { fill: none; stroke: color-mix(in oklab, var(--pc, #cfe0ff) 22%, rgb(255 255 255 / 0.1)); stroke-width: 2.4; stroke-linejoin: round; transition: stroke 0.8s; }
.pcb .pk { fill: none; stroke: var(--pc, #cfe0ff); stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 0.035 0.965; animation: flow var(--dur) linear var(--delay) infinite; opacity: 0.85; transition: stroke 0.8s; }
.pcb .part { fill: #17171c; stroke: rgb(255 255 255 / 0.16); stroke-width: 1.5; }
.pcb.boot .tr { stroke-dasharray: 1; animation: draw 1.3s var(--out) both; animation-delay: calc(var(--i) * 5ms); }
.pcb.boot .pk { animation: flow var(--dur) linear calc(var(--delay) + 1.2s) infinite; }
@keyframes flow { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
/* The lid: the chip as it arrives, before it opens. */
.lid { position: absolute; left: calc(var(--S) * -0.54); top: calc(var(--S) * -0.355); width: calc(var(--S) * 1.08); height: calc(var(--S) * 0.71); border-radius: 18px; background: linear-gradient(135deg, #3a3a42 0%, #1f1f25 42%, #2c2c33 70%, #18181d 100%); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.18), inset 0 2px 0 rgb(255 255 255 / 0.12), 0 30px 60px -20px rgb(0 0 0 / 0.8); display: grid; place-content: center; justify-items: center; gap: 10px; backface-visibility: hidden; will-change: transform, opacity; }
.lid-mark { font: 650 calc(var(--S) * 0.075)/1 "Schibsted Grotesk", system-ui, sans-serif; letter-spacing: 0.22em; color: rgb(255 255 255 / 0.78); }
.lid-sub { font: 500 calc(var(--S) * 0.04)/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: 0.3em; color: rgb(255 255 255 / 0.4); }
.lid-dot { position: absolute; left: 7%; top: 11%; width: calc(var(--S) * 0.03); aspect-ratio: 1; border-radius: 50%; background: rgb(255 255 255 / 0.25); }
/* Each layer lit along its edges in its project's colour while it sits in the stack. */
.layer.neon .face { box-shadow: 0 0 0 1.5px var(--edge), 0 0 38px -4px var(--edge), 0 40px 80px -30px rgb(0 0 0 / 0.85); }
.layer .face { transition: box-shadow 0.6s var(--out), filter 0.5s var(--out); }
/* Bolder signals on the label traces. */
.traces .wire { stroke-width: 1.6; }
.traces .pulse { stroke-width: 3; animation-duration: 2.6s; }
@keyframes signal { 0% { stroke-dashoffset: 0.06; opacity: 1; } 45% { stroke-dashoffset: 1.1; opacity: 1; } 45.5%, 100% { stroke-dashoffset: 1.1; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pcb .pk, .pcb.boot .tr { animation: none; } }
/* Words and controls stay readable over the board's traces. */
.callout, .detail, .hud-br, .rail { text-shadow: 0 0 14px #09090b, 0 0 6px #09090b, 0 0 2px #09090b; }
.chip { background: rgb(10 10 12 / 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.chip.is-on { background: transparent; }

/* ---------- Round 15: quicker, and a pointer label that keeps out of the way ---------- */
.vcursor { height: 36px; min-width: 0; padding: 0 14px; font-size: 15px; scale: 0.6; transform-origin: 0 0; transition: opacity 0.15s, scale 0.25s var(--spring); }
.vcursor.on { scale: 1; }
/* The real pointer stays visible over the screens, so it is always clear where you are. */
.layer, .stage.is-rest { cursor: pointer; }
.stage.is-dragging { cursor: grabbing; }

/* ---------- Few words at a time: a label's pitch is cut to about two lines in the page; beside a screen, three lines ---------- */
.detail .dwhat { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* The layers' edges stay a fine line of light. */
.layer.neon .face { box-shadow: 0 0 0 1px color-mix(in srgb, var(--edge) 80%, transparent), 0 0 26px -6px color-mix(in srgb, var(--edge) 70%, transparent), 0 40px 80px -30px rgb(0 0 0 / 0.85); }

/* A layer with no screen of its own shows its name, and its number when it is temporary work. */
.layer-blank { display: grid; align-content: center; justify-items: start; gap: calc(var(--L) * 0.012); padding: 0 8%; background: radial-gradient(120% 90% at 20% 20%, color-mix(in oklab, var(--ground) 55%, #0a0a0c), #0a0a0c); color: #f2f1ec; }
.lb-name { font-size: calc(var(--L) * 0.075); font-weight: 650; letter-spacing: -0.04em; line-height: 1; }
.lb-figure { font: 500 calc(var(--L) * 0.12)/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: -0.04em; color: var(--edge); }
.lb-figure i { font-style: normal; color: #9b9aa3; }
.lb-label { font-size: calc(var(--L) * 0.03); color: #bebdc6; }
/* Held still from the corner: every movement that runs by itself stops. */
.hud-br .motion-toggle { pointer-events: auto; padding: 8px 0; border: 0; background: none; color: var(--ink-2); font: 600 15px/1 "Schibsted Grotesk", system-ui, sans-serif; cursor: pointer; }
.hud-br .motion-toggle:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
.stage.is-paused .pcb .pk, .stage.is-paused .traces .pulse, .stage.is-paused .status::before, .stage.is-paused .hint::after { animation-play-state: paused; }

/* ---------- The site around the chip ---------- */
/* The header floats over the board; his name is the page's heading. */
.chip-bar { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 24px 40px; pointer-events: none; align-items: center; }
.chip-bar h1 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.chip-bar a { pointer-events: auto; }
.chip-bar nav a { font-weight: 500; }
.chip-bar::before { content: ""; position: absolute; inset: 0 0 -18px 0; z-index: -1; background: linear-gradient(var(--paper) 40%, rgb(10 10 12 / 0)); }
.callouts { margin: 0; padding: 0; list-style: none; }
.cthumb { display: none; }
.page-index .site-foot { border-top-color: rgb(255 255 255 / 0.12); }
/* Without the script, the projects are a plain list, each with its first picture. */
html:not(.chip-on) .chip-scroll .stage { position: static; height: auto; overflow: visible; }
html:not(.chip-on) .scene, html:not(.chip-on) .washes, html:not(.chip-on) .glow, html:not(.chip-on) .traces, html:not(.chip-on) .rail, html:not(.chip-on) .detail, html:not(.chip-on) .mark, html:not(.chip-on) .hud-bl, html:not(.chip-on) .hud-br, html:not(.chip-on) .board-grid { display: none; }
html:not(.chip-on) .chip-bar { position: static; pointer-events: auto; }
html:not(.chip-on) .callouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 40px 32px; padding: 24px 40px 96px; }
html:not(.chip-on) .callout { position: static; width: auto; transform: none; opacity: 1; }
html:not(.chip-on) .cthumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; margin-bottom: 10px; background: #19191d; }
html:not(.chip-on) .cthumb img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
@media (max-width: 800px) {
  .chip-bar { padding: 16px 20px; }
  html:not(.chip-on) .callouts { padding: 16px 20px 64px; }
}
