@font-face {
  font-family: "Highway Gothic";
  src: url("/fonts/HWYGOTH.TTF") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Highway Gothic Condensed";
  src: url("/fonts/HWYGCOND.TTF") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #000000;
  --fg: #ffffff;
  --grain-opacity: 0.03;        /* content.json meta.grain overrides both of these */
  --grain-opacity-black: 0.03;
  --grain-blend: screen;
  /* the tile is nearly flat grey (128 ±9), so at any opacity it only hazes the black.
     Contrast turns that into speckle; the slight darken keeps black black. */
  --grain-filter: brightness(0.9) contrast(8);
  --constants-opacity: 0.06;
  --display-face: "Highway Gothic", "Arial Narrow", sans-serif;
  --sub-face: "Helvetica Neue", Arial, sans-serif; /* Satoshi Light not supplied — see note */
}
:root[data-shell="white"] {
  --bg: #ffffff;
  --fg: #000000;
  --grain-opacity: 0.04;
  --grain-blend: overlay;
  --constants-opacity: 0.04;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sub-face);
  letter-spacing: 0.1em;
  overflow-x: hidden;
}
h1, h2, .display {
  font-family: var(--display-face);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}
img { max-width: 100%; display: block; }
button, input, select {
  font-family: inherit;
  letter-spacing: inherit;
}
a { color: inherit; }

[hidden] { display: none !important; }

#app { min-height: 100vh; position: relative; }

/* ---------- shell toggle ---------- */
/* glass: nearly clear, with a bright curved highlight top-left and a soft shade bottom-right, so it reads as a bubble, not an outlined box */
:root {
  --glass-fill: linear-gradient(150deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.02) 55%, rgba(255, 255, 255, 0.06));
  --glass-edge: inset 1.5px 2.5px 5px -2px rgba(255, 255, 255, 0.55), inset -1.5px -2px 5px -3px rgba(255, 255, 255, 0.28), inset 0 0 0 0.5px rgba(255, 255, 255, 0.06), 0 10px 28px -10px rgba(0, 0, 0, 0.5);
}
[data-shell="white"] {
  --glass-fill: linear-gradient(150deg, rgba(0, 0, 0, 0.07), rgba(0, 0, 0, 0.01) 55%, rgba(0, 0, 0, 0.04));
  --glass-edge: inset 1.5px 2.5px 5px -2px rgba(255, 255, 255, 0.9), inset -1.5px -2px 5px -3px rgba(0, 0, 0, 0.18), inset 0 0 0 0.5px rgba(0, 0, 0, 0.05), 0 10px 28px -10px rgba(0, 0, 0, 0.25);
}
.shell-toggle, .index-link {
  position: fixed; top: 16px; z-index: 50;
  background: var(--glass-fill); border: 0; border-radius: 999px;
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: var(--glass-edge);
  color: var(--fg); padding: 8px 16px; font-size: 11px;
  cursor: pointer; opacity: 0.85; text-decoration: none; transition: background-color 200ms ease, opacity 200ms ease;
}
.shell-toggle { right: 16px; }
.index-link { left: 66px; }
.shell-toggle:hover, .index-link:hover { opacity: 1; }

/* ---------- home mark — the atom is the wordmark and the way home ---------- */
.home-mark {
  position: fixed; top: 12px; left: 16px; z-index: 50;
  display: block; width: 36px; height: 36px;
}
.home-mark img { width: 100%; height: 100%; object-fit: contain; }
/* the mark is black ink: white on the black shell, and on record pages,
   which repaint to a dark palette whichever shell is set */
:root:not([data-shell="white"]) .home-mark img,
body:has(#screen-record) .home-mark img { filter: invert(1); }

/* ---------- ENTRY ----------
   Always black regardless of shell — this screen is where the black works hardest.
   Covers stack dead centre, shuffle fast, then break apart into a grid. */
#screen-entry {
  background: #000000; color: #ffffff;
  min-height: 100vh; height: 100vh;
  display: grid; grid-template-rows: 1fr auto;
  position: relative; overflow: hidden;
}

.stage { position: relative; width: 100%; height: 100%; }

.cover {
  position: absolute; left: 50%; top: 50%;
  margin: 0; padding: 0; opacity: 0;
  transform: translate(-50%, -50%);
  cursor: pointer;
}
/* during the shuffle only the lit cover shows, and it cuts — no fade,
   or the flicker turns to mush */
.cover.is-lit { opacity: 1; }

/* plain block with a definite height — NOT display:grid with place-items:center,
   which content-sizes the grid item and makes the child's height:100% circular,
   letting tall posters overflow the cell. */
.cover-art { width: 42vh; height: 42vh; }
/* <picture> is the grid item, so it needs the box height too — otherwise the
   img's height:100% resolves against an auto-height wrapper and tall artwork
   overflows the cell. */
.cover-art picture { display: block; width: 100%; height: 100%; }
.cover-art img { width: 100%; height: 100%; object-fit: contain; }

/* settled state: every cover visible, sized down, in its grid slot */
.stage.is-spread .cover {
  opacity: 1;
  transform: translate(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, 0px)));
  transition: transform 820ms cubic-bezier(0.16, 0.84, 0.36, 1), opacity 380ms ease;
}
.stage.is-spread .cover-art {
  width: 21vh; height: 21vh;
  transition: width 820ms cubic-bezier(0.16, 0.84, 0.36, 1),
              height 820ms cubic-bezier(0.16, 0.84, 0.36, 1);
}
.stage.is-spread .cover:hover .cover-art,
.stage.is-spread .cover:focus-visible .cover-art { opacity: 0.82; }

/* type only after everything has stopped moving, and only on the one you're on */
.cover figcaption {
  position: absolute; left: 50%; top: calc(50% + 12vh);
  transform: translateX(-50%);
  white-space: nowrap; pointer-events: none;
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0; transition: opacity 220ms ease;
}
.stage.is-settled .cover:hover figcaption,
.stage.is-settled .cover:focus-visible figcaption { opacity: 0.75; }

/* marginalia — three destinations in the negative space around the grid.
   Micro-type at deck-label scale, no boxes. Same rule as the titles: hidden
   until everything has stopped moving. Extents mirror SPREAD_VH / GAP_VH. */
.stage {
  --cover: 21vh;                                  /* SPREAD_VH */
  --cell: 26vh;                                   /* SPREAD_VH + GAP_VH */
  --ext-x: calc(var(--cell) + var(--cover) / 2);  /* grid half-width */
  --ext-y: calc(var(--cell) / 2 + var(--cover) / 2); /* grid half-height */
}
.margin {
  position: absolute; left: 50%; top: 50%;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-size: 9.5px; letter-spacing: 0.16em; line-height: 1; white-space: nowrap;
  color: inherit; text-decoration: none;
  opacity: 0; visibility: hidden;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}
/* the mark sits above its label and stays small — a cover is ~160px, this is 34px,
   so the six covers keep the screen */
.margin-icon img { width: 34px; height: 34px; object-fit: contain; display: block; }
.stage.is-settled .margin {
  opacity: 0.62; visibility: visible;
  transition: opacity 220ms ease, visibility 0s;
}
.stage.is-settled a.margin:hover,
.stage.is-settled a.margin:focus-visible { opacity: 1; }
/* high left, off the top row */
.margin-playlist { transform: translate(calc(-100% - var(--ext-x) - 3vh), calc(-1 * var(--ext-y))); }
/* right, low, beside the bottom row */
.margin-studio   { transform: translate(calc(var(--ext-x) + 3vh), calc(var(--ext-y) * 0.3)); }
/* under the grid, off-centre */
.margin-poster   { transform: translate(calc(-1 * var(--cover) / 2), calc(var(--ext-y) + 7vh)); }

/* deck — fixed bottom band carrying identity and nav, so the centre stays clear */
.deck {
  display: grid;
  grid-template-columns: 1.7fr 1.1fr 1fr auto;
  align-items: center;
  margin: 0 24px 16px; padding: 0 20px;
  min-height: 84px;
  /* frosted glass: a light blur and tint over whatever drifts behind, and a barely-there edge */
  border-radius: 16px;
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: var(--glass-edge);
}
.deck-cell {
  padding: 16px 20px; height: 100%;
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  border-left: 1px solid color-mix(in srgb, var(--fg) 8%, transparent);
  font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase;
}
.deck-cell:first-child { border-left: none; padding-left: 0; }
.deck-brand .wordmark { font-size: 30px; letter-spacing: -0.01em; }
.deck-tagline {
  font-size: 9px; letter-spacing: 0.16em; opacity: 0.45; text-transform: lowercase;
}
.deck-nav a, .deck-social a { text-decoration: none; opacity: 0.62; width: fit-content; }
.deck-nav a:hover, .deck-social a:hover { opacity: 1; }
.deck-place span { opacity: 0.45; }
.deck-mark { padding: 16px 26px; }
.deck-mark img {
  width: 34px; height: 34px; filter: invert(1); opacity: 0.85;
  animation: mark-spin 18s linear infinite;
}
@keyframes mark-spin { to { transform: rotate(360deg); } }

/* the pointer is the mark */
@media (hover: hover) and (pointer: fine) {
  #screen-entry, #screen-entry * { cursor: none; }
  .cursor-mark {
    position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none;
    width: 28px; height: 28px; margin: -14px 0 0 -14px;
    background: url("/assets/marks/atom-mark-800.webp") center / contain no-repeat;
    filter: invert(1); opacity: 0.9;
  }
}
.cursor-mark { display: none; }
@media (hover: hover) and (pointer: fine) { .cursor-mark { display: block; } }

@media (max-width: 820px) {
  .deck { grid-template-columns: 1fr 1fr; column-gap: 20px; min-height: 0; }
  .deck-cell { border-left: none; padding: 12px 0; }
  .deck-mark, .deck-place { display: none; }
  .cover-art { width: 54vw; height: 54vw; }
  .stage.is-spread .cover-art { width: 26vw; height: 26vw; }
  /* no room at the sides on a narrow screen — the marginalia go above and below */
  .stage { --cover: 26vw; --ext-x: min(calc(var(--cell) + var(--cover) / 2), 46vw); }
  .margin-playlist { transform: translate(calc(-1 * var(--ext-x)), calc(-1 * var(--ext-y) - 5vh)); }
  .margin-studio   { transform: translate(calc(var(--ext-x) - 100%), calc(var(--ext-y) + 9vh)); }
  .margin-poster   { transform: translate(calc(-1 * var(--ext-x)), calc(var(--ext-y) + 5vh)); }
}

@media (prefers-reduced-motion: reduce) {
  .stage.is-spread .cover,
  .stage.is-spread .cover-art { transition: none; }
  .deck-mark img { animation: none; }
  .margin, .stage.is-settled .margin { transition: none; }
}

/* ---------- CRATE ---------- */
#screen-crate { padding: 100px 5vw 60px; min-height: 100vh; }
.crate-row {
  display: flex; gap: -20px; overflow-x: auto; padding: 60px 0;
  perspective: 1400px;
  scrollbar-width: none;
}
.crate-row::-webkit-scrollbar { display: none; }
/* P1 is static by spec (22_BUILD §11) — no hover-peek motion yet, that's P2.
   Sleeves sit in a fixed three-quarter lean; title/badges are always legible,
   not gated behind a hover a reader might not find. */
.sleeve {
  flex: 0 0 auto; width: 220px; height: 220px; margin-right: -70px;
  border: 1px solid color-mix(in srgb, var(--fg) 25%, transparent);
  background-size: cover; background-position: center;
  position: relative; cursor: pointer;
  transform: rotateY(6deg) scale(0.97);
}
.sleeve:last-child { margin-right: 0; }
.sleeve:hover, .sleeve:focus-visible { opacity: 0.85; }
.sleeve .peek {
  position: absolute; left: 0; right: -70px; bottom: -44px;
  font-size: 11px;
}
.sleeve .sticker {
  position: absolute; top: 8px; left: 8px; font-size: 8px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--fg);
  padding: 3px 6px; text-transform: uppercase; letter-spacing: 0.05em;
}
.crate-hint {
  text-align: center; font-size: 11px; opacity: 0.5; margin-top: 8px;
}
.view-density { position: fixed; bottom: 16px; right: 16px; z-index: 40; font-size: 11px; opacity: 0.6; }

/* ---------- RECORD ---------- */
#screen-record { min-height: 100vh; padding: 90px 6vw 80px; }
.record-header { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.record-header h1 { font-size: clamp(28px, 5vw, 56px); }
.record-badges { display: flex; gap: 8px; flex-wrap: wrap; font-size: 10px; }
.record-badges span {
  border: 1px solid var(--fg); padding: 3px 8px; text-transform: uppercase; opacity: 0.75;
}
.record-line { font-family: var(--sub-face); font-weight: 300; margin: 20px 0 60px; max-width: 640px; font-size: 15px; opacity: 0.9; }

.block { margin: 40px 0; }
/* the work sits smaller, so a hero or a full image is seen whole on one screen, on a phone or a desktop */
.block-hero, .block-full { display: flex; justify-content: center; }
.block-hero picture, .block-full picture { display: block; max-width: 100%; }
.block-hero img, .block-full img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(84vh, 84svh, 900px); object-fit: contain; }
.block-grid, .block-pair { max-width: 980px; margin-left: auto; margin-right: auto; }
.block-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.block-pair { display: grid; gap: 10px; }
.block-pair.ratio-70-30 { grid-template-columns: 70fr 30fr; }
.block-pair.ratio-60-40 { grid-template-columns: 60fr 40fr; }

.block-text { font-size: 13px; letter-spacing: 0.08em; opacity: 0.6; text-transform: uppercase; }

.record-footer { display: flex; justify-content: space-between; margin-top: 80px; font-size: 12px; }
.record-footer a { text-decoration: none; letter-spacing: 0.1em; }

@media (max-width: 640px) {
  .block-pair.ratio-70-30, .block-pair.ratio-60-40 { grid-template-columns: 1fr; }
}

/* ---------- INDEX ---------- */
#screen-index { min-height: 100vh; padding: 100px 8vw; }
#screen-index h1 { font-size: 22px; margin-bottom: 48px; opacity: 0.6; }
.index-list { list-style: none; margin: 0; padding: 0; }
.index-list li {
  border-top: 1px solid color-mix(in srgb, var(--fg) 20%, transparent);
  padding: 20px 0; display: flex; justify-content: space-between; align-items: baseline;
  cursor: pointer; gap: 16px; flex-wrap: wrap;
}
.index-list li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--fg) 20%, transparent); }
.index-list .title { font-family: var(--display-face); font-size: clamp(20px, 3vw, 36px); letter-spacing: -0.01em; }
.index-list .badges { font-size: 10px; opacity: 0.6; text-transform: uppercase; }
.index-list .line { font-size: 12px; opacity: 0.5; font-weight: 300; max-width: 420px; }

/* ---------- ABOUT ---------- */
#screen-about { min-height: 100vh; padding: 120px 8vw; max-width: 620px; margin: 0 auto; }
#screen-about pre {
  white-space: pre-wrap; font-family: var(--sub-face); font-weight: 300;
  font-size: 14px; line-height: 1.9; letter-spacing: 0.04em;
}

/* ---------- CONTACT ---------- */
#screen-contact { min-height: 100vh; padding: 120px 8vw; max-width: 520px; margin: 0 auto; }
#screen-contact h1 { font-size: 28px; margin-bottom: 40px; }
.field { margin-bottom: 24px; }
.field label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.6; margin-bottom: 8px; }
.field input {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--fg);
  color: var(--fg); padding: 8px 0; font-size: 14px;
}
.field input:focus { outline: none; border-bottom-width: 2px; }
.send-btn {
  background: var(--glass-fill); color: var(--fg); border: none; padding: 14px 36px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: var(--glass-edge);
  font-size: 12px; letter-spacing: 0.15em; cursor: pointer; margin-top: 16px;
  transition: background-color 200ms ease;
}
.send-btn:hover { filter: brightness(1.3); }

/* a faint drifting haze behind the glass on the quiet screens, so the blur has something to catch */
#screen-contact { position: relative; isolation: isolate; }
#screen-contact::before {
  content: ""; position: fixed; inset: -10vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vmax 38vmax at 25% 30%, color-mix(in srgb, var(--fg) 13%, transparent), transparent 70%),
    radial-gradient(34vmax 34vmax at 78% 72%, color-mix(in srgb, var(--fg) 9%, transparent), transparent 70%);
  filter: blur(24px);
  animation: haze-drift 26s ease-in-out infinite alternate;
}
@keyframes haze-drift { to { transform: translate(4vmax, -3vmax) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { #screen-contact::before { animation: none; } }

/* ---------- PLAYLIST (list for now — the swipe gallery waits on disc covers) ---------- */
#screen-playlist { min-height: 100vh; padding: 120px 8vw; max-width: 760px; margin: 0 auto; }
#screen-playlist h1 { font-size: 28px; margin-bottom: 40px; }
/* the title is Lino's hand, not type — white ink, so it flips on the white shell */
.playlist-title { margin: 0 0 44px; }
.playlist-title img { width: min(400px, 78%); height: auto; }
:root[data-shell="white"] .playlist-title img { filter: invert(1); }
.playlist-list { list-style: none; margin: 0; padding: 0; }
.playlist-list a {
  display: flex; align-items: baseline; column-gap: 24px; row-gap: 4px;
  padding: 12px 0; text-decoration: none; color: inherit;
  border-top: 1px solid color-mix(in srgb, var(--fg) 14%, transparent);
}
.playlist-list li:last-child a { border-bottom: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); }
.playlist-list .disc { font-size: 10px; letter-spacing: 0.16em; opacity: 0.45; min-width: 2ch; }
/* the disc itself, small — the row is still a list, not a gallery */
.playlist-list .disc-art { flex: 0 0 56px; align-self: center; }
.playlist-list .disc-art img { width: 56px; height: 56px; object-fit: contain; }
.playlist-list a:hover .disc-art img,
.playlist-list a:focus-visible .disc-art img { opacity: 0.85; }
.playlist-list .name { font-size: clamp(18px, 2.4vw, 26px); letter-spacing: -0.01em; }
/* one line per row — the two long lecture titles would otherwise wrap and
   leave the list ragged */
.playlist-list .title {
  font-size: 11px; font-weight: 300; letter-spacing: 0.06em; opacity: 0.5;
  flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.playlist-list a:hover .title, .playlist-list a:focus-visible .title { opacity: 1; }

/* ---------- constants (fixed, non-scrolling wordmark) ---------- */
.constants {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  display: flex; align-items: center;
  font-family: var(--display-face); font-size: 22vw; white-space: nowrap;
  color: var(--fg); opacity: var(--constants-opacity);
  left: -6vw;
}

/* ---------- focus visibility (accessibility, §10) ---------- */
a:focus-visible, button:focus-visible, .sleeve:focus-visible, li:focus-visible {
  outline: 2px solid var(--fg); outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .sleeve { transition: none; }
}

/* ---------- GRAIN (22_BUILD §6) ---------- */
/* Still tile, position jitters per frame; the texture never scrolls.
   screen on black, overlay on white. Reduced motion holds a still frame. */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: url("/assets/grain.webp") repeat;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
  filter: var(--grain-filter);
}
/* The entry and the gate are black whatever the shell, so grain follows the surface,
   not the shell — otherwise overlay at 4% over black reads as no grain at all. */
body:has(#screen-entry) .grain,
body:has(.gate) .grain {
  --grain-opacity: var(--grain-opacity-black);
  --grain-blend: screen;
}

/* ---------- GATE — first-visit load-in ----------
   The 3D mark and one line of micro-type, nothing else. Under the grain (z 90)
   so the texture still covers it, over everything else. */
.gate {
  position: fixed; inset: 0; z-index: 89;
  background: #000000; color: #ffffff;
}
.gate.is-ready { cursor: pointer; }
.gate-mark { position: absolute; inset: 0; display: grid; place-items: center; }
.gate-mark img { width: 58vmin; height: 58vmin; object-fit: contain; filter: invert(1); }
.gate-mark canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* clear of the mark at any point in its tumble */
.gate-enter {
  position: absolute; left: 50%; top: calc(50% + 32vmin + 3vh);
  transform: translateX(-50%);
  background: none; border: 0; padding: 6px 10px; margin: 0;
  color: inherit; cursor: inherit; white-space: nowrap;
  font-family: var(--sub-face); font-size: 9px; letter-spacing: 0.26em; text-transform: lowercase;
  opacity: 0; transition: opacity 400ms ease;
}
.gate.is-ready .gate-enter { opacity: 0.7; }
.gate-enter:focus-visible { outline: 1px solid #ffffff; outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  .gate-enter { transition: none; }
}

/* ---------- the closing band ----------
   Every screen used to stop dead. LET'S BALL closes it in Lino's hand — the
   terminal statement, per 00_CONSTITUTION §2 — and the bracketed link is the
   control, so the line is never the label. */
.outro {
  margin: 110px 0 0;
  padding: 44px 0 10px;
  border-top: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.outro-art {
  width: clamp(150px, 20vw, 230px); height: auto; display: block;
  opacity: 0.92;
}
/* black ink: flip it on the black shell, and on record pages, which stay dark
   whichever shell is set */
:root:not([data-shell="white"]) .outro-art,
body:has(#screen-record) .outro-art { filter: invert(1); }
.outro-line {
  margin: 14px 0 0; font-size: 11px; letter-spacing: 0.12em; opacity: 0.5;
}
.outro-cta {
  font-size: 11px; letter-spacing: 0.15em; text-decoration: none; color: var(--fg);
  border: 1px solid var(--fg); padding: 10px 18px; opacity: 0.75; white-space: nowrap;
}
.outro-cta:hover, .outro-cta:focus-visible { opacity: 1; }

@media (max-width: 640px) {
  .outro { margin-top: 70px; gap: 20px; }
  .outro-art { width: 150px; }
}

/* ---------- INTRO — the poster that builds itself ----------
   A centred 3:4 poster in a dark room, between "tap to enter" and the shuffle.
   Layers are shown one at a time by the timeline in content.json; this only
   stacks them and keeps them still. Under the grain (z 90), over everything else. */
.intro {
  position: fixed; inset: 0; z-index: 89;
  background: #000000; color: #ffffff;
  display: grid; place-items: center;
}
/* tall enough to hold a laptop, but never wider than 90% of the screen */
.intro-poster { position: relative; height: min(86vh, 120vw); aspect-ratio: 3 / 4; }
.intro-layer { position: absolute; inset: 0; visibility: hidden; }
.intro-layer img { display: block; width: 100%; height: 100%; }
.intro-skip {
  position: absolute; right: 24px; bottom: 22px;
  font-family: var(--sub-face); font-size: 9px; letter-spacing: 0.26em; text-transform: lowercase;
  opacity: 0.4;
}
/* the poster is pale, and screen can't darken it — overlay grains the paper and
   leaves the black around it black */
body:has(.intro) .grain { --grain-blend: overlay; --grain-opacity: 0.06; }

/* ---------- PITCH LINK (/p/<token>/) ----------
   Built for 390px portrait, one thumb, about ninety seconds, then widened.
   Always the black shell. Three parts: the load-in (existing), the CD, the deck. */
html.is-pitch #app { display: none; }
html.pitch-lock, html.pitch-lock body { overflow: hidden; }
html.is-pitch .grain { --grain-opacity: var(--grain-opacity-black); --grain-blend: screen; }

/* -- the CD, with their name above it -- */
.pitch-cd { position: fixed; inset: 0; z-index: 60; background: #000000; color: #ffffff; transition: background-color 700ms ease; }
.pitch-stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.pitch-disc {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: min(56vw, 34vh, 340px);
  transform: translate(-50%, -50%);
  background: none; border: 0; padding: 0; cursor: pointer; color: inherit;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), opacity 700ms ease;
  -webkit-tap-highlight-color: transparent;
}
.pitch-disc picture, .pitch-disc img { display: block; width: 100%; height: auto; }
.pitch-disc:focus-visible { outline: 1px solid #ffffff; outline-offset: 10px; }
.pitch-name, .pitch-name-img { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(50% + min(28vw, 17vh, 170px) + 24px); margin: 0; }
.pitch-name { width: max-content; max-width: 86vw; text-align: center; font-size: clamp(34px, 9vw, 64px); line-height: 1; }
.pitch-name-img { width: min(74vw, 460px); height: auto; }
/* a label, not a button: only the CD answers a tap */
.pitch-open {
  position: absolute; left: 50%; z-index: 1; transform: translateX(-50%);
  top: calc(50% + min(28vw, 17vh, 170px) + 18px);
  font-family: var(--sub-face); font-size: 11px; letter-spacing: 0.26em; text-transform: lowercase;
  opacity: 0.7; pointer-events: none;
}
/* their CD as the load-in: bigger, and it pops up */
.pitch-cd.is-first .pitch-disc { width: min(80vw, 54vh, 540px); }
.pitch-cd.is-first .pitch-open { top: calc(50% + min(40vw, 27vh, 270px) + 18px); }
.pitch-cd.is-pop .pitch-disc { transform: translate(-50%, -50%) scale(0.55); opacity: 0; }
.pitch-cd.is-pop .pitch-open { opacity: 0; }
.pitch-cd.is-opening { background-color: transparent; pointer-events: none; }
.pitch-cd.is-opening .pitch-disc { transform: translate(-50%, -50%) scale(8); opacity: 0; }
.pitch-cd.is-opening .pitch-open, .pitch-cd.is-opening .pitch-name, .pitch-cd.is-opening .pitch-name-img { opacity: 0; transition: opacity 400ms ease; }

/* -- the work that fits them, before the CD -- */
.pwork { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; overflow-y: auto; padding: 9vh 24px 6vh; background: #000000; color: #ffffff; font-family: var(--sub-face); transition: opacity 320ms ease; }
.pwork.is-leaving { opacity: 0; pointer-events: none; }
.pwork > * { width: 100%; max-width: 920px; margin-left: auto; margin-right: auto; }
.pwork-h { margin: 0; font-size: clamp(36px, 10vw, 72px); line-height: 0.96; }
.pwork-s { margin: 12px auto 0; font-size: 16px; opacity: 0.6; }
.pwork-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: clamp(24px, 6vh, 48px) auto; padding: 0; list-style: none; }
.pwork-list[data-n="2"] { gap: 20px; grid-template-columns: repeat(2, 1fr); }
.pwork-list.is-strip { display: flex; gap: 14px; overflow-x: auto; align-items: flex-start; scrollbar-width: none; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.pwork-list.is-strip::-webkit-scrollbar { display: none; }
.pwork-list.is-strip li { flex: 0 0 min(70vw, 280px); scroll-snap-align: start; }
.pwork-piece { max-width: 860px; margin: 0 auto; }
.pwork-cap { margin: 14px 0 0; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; }
.pwork-piece picture, .pwork-piece img { display: block; width: 100%; height: auto; }
@media (max-width: 599px) {
  .pwork-list[data-n="3"]:not(.is-strip), .pwork-list[data-n="4"]:not(.is-strip) { grid-template-columns: repeat(2, 1fr); }
  .pwork-list[data-n="3"]:not(.is-strip) li:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 8px); }
}
.pwork-card { width: 100%; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent; }
.pwork-card picture, .pwork-card img { display: block; width: 100%; height: auto; }
.pwork-card:hover { opacity: 0.85; }
.pwork-card:focus-visible { outline: 1px solid #ffffff; outline-offset: 6px; }
.pwork-t { display: block; margin-top: 10px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; }
.pwork-go { margin: auto auto 0; align-self: flex-start; padding: 18px 28px; border: 0; border-radius: 0; background: #ffffff; color: #000000; cursor: pointer; font-family: var(--display-face); font-size: clamp(22px, 5.6vw, 32px); text-transform: uppercase; }
.pwork-go:focus-visible { outline: 1px solid #ffffff; outline-offset: 5px; }
.pwork-view { position: fixed; inset: 0; z-index: 70; overflow-y: auto; padding: 9vh 24px 12vh; background: #000000; color: #ffffff; animation: pfade 260ms ease; }
.pwork-view > * { max-width: 980px; margin-left: auto; margin-right: auto; }
.pwork-vh { margin: 0 auto 4vh; font-size: clamp(34px, 9vw, 64px); line-height: 0.98; }
.pwork-view .block { margin: 22px auto; }
.pwork-x { position: fixed; top: 14px; right: 16px; z-index: 71; max-width: none !important; padding: 11px 16px; border: 0; border-radius: 0; background: #ffffff; color: #000000; cursor: pointer; font: 11px/1 var(--sub-face); letter-spacing: 0.2em; text-transform: uppercase; }

/* -- the pitch: one idea per screen -- */
.pscroll { position: fixed; inset: 0; z-index: 50; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; background: #000000; color: #ffffff; font-family: var(--sub-face); letter-spacing: 0.02em; line-height: 1.5; }
.pscroll::-webkit-scrollbar { display: none; }
.pwork.is-flow { position: relative; inset: auto; z-index: auto; min-height: 100vh; min-height: 100svh; overflow: visible; }
.pwork-down { margin-top: auto; text-align: center; font-size: 11px; letter-spacing: 0.26em; text-transform: lowercase; opacity: 0.7; }
.pslide-s { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.pslide-s > .pitch-sec { width: 100%; margin: auto; padding: 8vh 24px 56px; }
.pscroll-n { position: fixed; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 2; font-size: 10px; letter-spacing: 0.26em; opacity: 0.5; pointer-events: none; }
.pslides { position: fixed; inset: 0; z-index: 1; background: #000000; color: #ffffff; font-family: var(--sub-face); letter-spacing: 0.02em; line-height: 1.5; opacity: 0; transition: opacity 700ms ease 150ms; }
.pslides.is-in { opacity: 1; }
.pslide { display: none; position: absolute; inset: 0 0 calc(80px + env(safe-area-inset-bottom)) 0; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.pslide::-webkit-scrollbar { display: none; }
.pslide.is-on { display: flex; animation: pfade 320ms ease; }
@keyframes pfade { from { opacity: 0; } to { opacity: 1; } }
.pslide > .pitch-sec { width: 100%; margin: auto; padding: 8vh 24px 40px; }
.pnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #000000; }
.pnav-b { width: 64px; height: 64px; border: 0; background: none; color: #ffffff; cursor: pointer; font-size: 28px; -webkit-tap-highlight-color: transparent; }
.pnav-b:disabled { opacity: 0.18; cursor: default; }
.pnav-b:focus-visible { outline: 1px solid #ffffff; outline-offset: -8px; }
.pnav-n { font-size: 10px; letter-spacing: 0.26em; opacity: 0.5; }

.pitch-sec { max-width: 620px; margin: 0 auto; }
.pitch-idx { display: block; margin-bottom: 22px; font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; opacity: 0.5; }
.pitch-h { font-size: clamp(38px, 11vw, 72px); line-height: 0.96; margin: 0 0 24px; }
.pitch-h3 { font-size: 24px; margin: 0 0 10px; opacity: 0.85; }
.pitch-p { max-width: 30em; margin: 0 0 18px; font-size: clamp(20px, 5.4vw, 26px); line-height: 1.4; }
.pitch-figure { font-size: clamp(84px, 28vw, 170px); line-height: 0.9; margin: 4px 0 22px; }
.pitch-figure.is-long { font-size: clamp(52px, 15vw, 120px); }
.pitch-quote { margin: 0 0 8px; font-family: var(--display-face); text-transform: uppercase; letter-spacing: -0.01em; font-size: clamp(30px, 8.4vw, 52px); line-height: 1.04; }
.pitch-quote + .pitch-p { margin-top: 18px; }
.pitch-note { max-width: 34em; margin: 0 0 22px; font-size: 14px; opacity: 0.6; }
.pitch-items { list-style: none; margin: 6px 0 0; padding: 0; }
.pitch-items li { font-family: var(--display-face); text-transform: uppercase; letter-spacing: -0.01em; font-size: clamp(30px, 8.6vw, 52px); line-height: 1.12; }
.pitch-items li.is-dim { opacity: 0.28; }
.pitch-list { list-style: none; margin: 8px 0 0; padding: 0; }
.pitch-list li { max-width: 28em; margin: 0 0 18px; font-size: clamp(19px, 5vw, 24px); line-height: 1.4; }
.pitch-cols { display: grid; gap: 32px; margin-top: 6px; }
.pitch-col ul { list-style: none; margin: 0; padding: 0; font-size: clamp(20px, 5.2vw, 26px); line-height: 1.35; }
.pitch-col li { padding: 7px 0; }
.pitch-rows { margin: 6px 0 0; }
.pitch-rows div { display: flex; gap: 22px; padding: 14px 0; }
.pitch-rows dt { flex: 0 0 3.2em; font-family: var(--display-face); text-transform: uppercase; font-size: 30px; line-height: 1.1; }
.pitch-rows.is-wide dt { flex: 0 0 min(34%, 7em); font-size: clamp(20px, 5.4vw, 26px); }
.pitch-rows dd { margin: 0; font-size: clamp(22px, 5.6vw, 28px); align-self: center; }

/* a worked example: stacked steps, an amount each, no connecting lines */
.pitch-ledger { margin: 14px 0 0; }
.pitch-led { padding: 0 0 38px; }
.pitch-led:last-child { padding-bottom: 0; }
.pitch-led-tag { display: block; margin-bottom: 8px; font-size: 11px; letter-spacing: 0.26em; opacity: 0.55; }
.pitch-led-amt { font-size: clamp(48px, 15vw, 80px); line-height: 0.92; margin: 0 0 8px; }
.pitch-led p:not(.pitch-led-amt):not(.pitch-meter-end) { max-width: 28em; margin: 0; font-size: clamp(19px, 5vw, 24px); line-height: 1.4; }
.pitch-meter { margin-top: 22px; max-width: 30em; }
.pitch-meter-lab { display: block; margin-bottom: 10px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.6; }
.pitch-track { position: relative; height: 18px; background: rgba(255, 255, 255, 0.14); }
.pitch-fill { position: absolute; inset: 0 auto 0 0; width: 100%; background: #ffffff; transition: width 1600ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.pitch-fill.is-armed { width: 0; }
.pitch-track::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(100% / var(--n) - 3px), #000000 calc(100% / var(--n) - 3px), #000000 calc(100% / var(--n))); }
.pitch-steps { display: flex; margin-top: 8px; font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; opacity: 0.5; }
.pitch-steps span { flex: 1; }
.pitch-meter-end { margin: 14px 0 0; font-size: 28px; line-height: 1; }
.pitch-ledger + .pitch-note { margin-top: 32px; font-size: 18px; opacity: 0.85; }

.pitch-scroll { margin-top: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pitch-scroll:focus-visible { outline: 1px solid #ffffff; outline-offset: 4px; }
.pitch-table { width: 100%; border-collapse: collapse; font-size: 17px; }
.pitch-table th, .pitch-table td { padding: 15px 14px 15px 0; text-align: left; vertical-align: top; font-weight: 400; }
.pitch-table thead th { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.5; }
.pitch-table td:nth-child(2) { font-size: 14px; opacity: 0.7; }
.pitch-table .pitch-r { padding-right: 0; text-align: right; font-family: var(--display-face); font-size: 24px; white-space: nowrap; }
.pitch-table thead .pitch-r { font-family: var(--sub-face); font-size: 11px; }
.pitch-total th, .pitch-total td { padding-top: 30px; }
.pitch-total th { font-weight: 700; font-size: 19px; }
.pitch-total .pitch-r { font-size: 36px; }
/* on a phone each row stacks: step and fee on one line, what you get under it, so no number is ever clipped */
@media (max-width: 699px) {
  .pitch-table thead { display: none; }
  .pitch-table, .pitch-table tbody { display: block; width: 100%; }
  .pitch-table tr { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: baseline; padding: 18px 0; }
  .pitch-table th, .pitch-table td { padding: 0; }
  .pitch-table th[scope="row"] { grid-column: 1; grid-row: 1; }
  .pitch-table .pitch-r { grid-column: 2; grid-row: 1; }
  .pitch-table th[scope="row"] { font-size: 20px; }
  .pitch-table .pitch-r { font-size: 32px; }
  .pitch-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; margin-top: 8px; font-size: 16px; line-height: 1.4; opacity: 0.75; }
  .pitch-total th[scope="row"] { font-size: 22px; }
  .pitch-total .pitch-r { font-size: 46px; }
  .pitch-total { padding-top: 28px; }
  .pitch-total th, .pitch-total td { padding-top: 0; }
}

.pitch-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 26px 0 0; font-size: 18px; }
.pitch-email { user-select: all; -webkit-user-select: all; }
.pitch-copy { padding: 11px 16px; border: 0; border-radius: 0; background: #ffffff; color: #000000; cursor: pointer; font: 11px/1 var(--sub-face); letter-spacing: 0.2em; text-transform: uppercase; }
.pitch-copy:focus-visible { outline: 1px solid #ffffff; outline-offset: 4px; }
.pitch-atom { position: absolute; left: 50%; top: 50%; z-index: -1; transform: translate(-50%, -50%); width: 130vmin; aspect-ratio: 1; margin: 0; opacity: 0.12; pointer-events: none; }
.pitch-atom img { display: block; width: 100%; height: 100%; object-fit: contain; filter: invert(1); }
.pitch-atom canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pitch-sign { font-size: clamp(48px, 15vw, 104px); line-height: 0.9; margin: 44px 0 0; }

.pitch-board { column-count: 2; column-gap: 12px; margin-top: 8px; }
.pitch-board figure { margin: 0 0 14px; break-inside: avoid; }
.pitch-board img, .pitch-board video, .pitch-ph { display: block; width: 100%; height: auto; background: #151515; }
.pitch-board.is-zoom { column-count: 3; column-gap: 10px; }
.pitch-board.is-zoom img { cursor: zoom-in; }
.pitch-board.is-zoom img:focus-visible { outline: 1px solid #ffffff; outline-offset: 3px; }
.pitch-board figcaption { margin-top: 6px; font-size: 9px; letter-spacing: 0.26em; opacity: 0.45; }
/* a gap in the copy: loud on purpose, and the link script won't publish while one is left */
.pitch-todo { margin: 14px 0 0; padding: 10px 12px; border: 1px dashed rgba(232, 182, 76, 0.7); color: #e8b64c; font-size: 11px; letter-spacing: 0.1em; line-height: 1.5; }

/* -- a link that no longer works -- */
.pitch-off { position: fixed; inset: 0; z-index: 60; background: #000000; color: #ffffff; display: grid; place-items: center; padding: 24px; text-align: center; }
.pitch-off p { margin: 0; font-size: clamp(26px, 7vw, 44px); line-height: 1.05; max-width: 14em; }

@media (min-width: 900px) {
  .pslide > .pitch-sec { max-width: 780px; }
  .pitch-cols { grid-template-columns: 1fr 1fr; gap: 48px; }
  .pitch-board { column-count: 3; column-gap: 14px; }
  .pwork-list { gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .pitch-cd, .pitch-disc, .pslides, .pwork, .pitch-fill { transition: none; }
  .pslide.is-on, .pwork-view { animation: none; }
}

.contact-direct { display: flex; gap: 28px; margin: -16px 0 36px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.contact-direct a { color: var(--fg); text-decoration: none; opacity: 0.7; }
.contact-direct a:hover { opacity: 1; }

/* home: small glass pills, top right */
.home-pills { position: fixed; top: 16px; right: 16px; z-index: 50; display: flex; gap: 10px; }
.home-pill {
  padding: 8px 16px; border-radius: 999px; font-size: 11px; letter-spacing: 0.12em; text-decoration: none; color: var(--fg);
  background: var(--glass-fill); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: var(--glass-edge); opacity: 0.85; transition: opacity 200ms ease;
}
.home-pill:hover { opacity: 1; }

/* ---------- home feed: one CD at a time ---------- */
#screen-feed {
  position: fixed; inset: 0; background: #000000; color: #ffffff;
  /* always the black shell: the glass stays light-on-dark whatever the visitor chose */
  --fg: #ffffff; --bg: #000000;
  --glass-fill: linear-gradient(150deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.02) 55%, rgba(255, 255, 255, 0.06));
  --glass-edge: inset 1.5px 2.5px 5px -2px rgba(255, 255, 255, 0.55), inset -1.5px -2px 5px -3px rgba(255, 255, 255, 0.28), inset 0 0 0 0.5px rgba(255, 255, 255, 0.06), 0 10px 28px -10px rgba(0, 0, 0, 0.5);
}
.feed {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  scroll-snap-type: y mandatory; scrollbar-width: none; outline: none;
}
.feed::-webkit-scrollbar { display: none; }
.feed-item {
  position: relative; box-sizing: border-box; height: 100vh; height: 100svh;
  scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 64px 24px 150px;
}
.feed-cd { width: min(80vw, 44svh, 520px); aspect-ratio: 1; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.feed-cd picture, .feed-cd img { display: block; width: 100%; height: 100%; object-fit: contain; }
.feed-t { margin: 22px 0 0; font-size: clamp(26px, 7vw, 44px); line-height: 1; }
.feed-line { margin: 10px 0 0; max-width: 34ch; font-size: 15px; opacity: 0.65; }
.feed-n { margin: 14px 0 0; font-size: 10px; letter-spacing: 0.26em; opacity: 0.5; }
.feed-hint { position: absolute; left: 0; right: 0; bottom: 168px; margin: 0; font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; opacity: 0.55; transition: opacity 300ms ease; }
.feed.is-moved .feed-item:first-child .feed-hint { opacity: 0; }
.feed-deck { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; }
/* the contact sheet: a glass panel and a solid bar, as in the reference */
.feed-end { justify-content: flex-end; align-items: stretch; padding: 0 0 138px; text-align: left; }
.feed-end::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60vmax 40vmax at 30% 25%, rgba(255, 255, 255, 0.14), transparent 70%), radial-gradient(50vmax 40vmax at 80% 70%, rgba(255, 255, 255, 0.08), transparent 70%);
  filter: blur(24px);
}
.sheet {
  margin: 0 16px; padding: 28px 20px 22px; border-radius: 22px 22px 0 0;
  background: var(--glass-fill); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: var(--glass-edge);
}
.sheet-t { margin: 0; font-size: clamp(34px, 9vw, 56px); line-height: 0.95; }
.sheet-p { margin: 12px 0 0; font-size: 18px; line-height: 1.35; max-width: 30ch; }
.sheet-rule { height: 1px; margin: 22px 0; background: rgba(255, 255, 255, 0.22); }
.sheet-k { font-size: 12px; letter-spacing: 0.2em; margin-bottom: 12px; }
.sheet-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 9px 16px; border-radius: 8px; font-size: 12px; letter-spacing: 0.16em; text-decoration: none; color: #000000; background: #ffffff; }
.chip:hover { opacity: 0.85; }
.sheet-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.sheet-foot span { padding: 3px 7px; background: #ffffff; color: #000000; }
.sheet-foot a { color: #ffffff; text-decoration: none; white-space: nowrap; }
.sheet-bar {
  display: flex; justify-content: space-between; align-items: center; margin: 0 16px; padding: 20px;
  border-radius: 0 0 14px 14px; background: #ffffff; color: #000000; text-decoration: none; font-size: 16px; letter-spacing: 0.12em;
}
@media (prefers-reduced-motion: reduce) { .feed { scroll-behavior: auto; } }

/* the position rail: a tick per CD and one for contact, the current one stretched */
.feed-rail {
  position: fixed; right: 8px; top: 50%; z-index: 6; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; padding: 8px 2px; border-radius: 999px;
  background: var(--glass-fill); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: var(--glass-edge);
}
.rail-dot { display: grid; place-items: center; width: 24px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rail-dot::before { content: ""; width: 3px; height: 9px; border-radius: 2px; background: rgba(255, 255, 255, 0.35); transition: height 220ms ease, background-color 220ms ease; }
.rail-dot.is-end::before { width: 6px; height: 6px; border-radius: 50%; }
.rail-dot.is-on::before { height: 22px; background: #ffffff; }
.rail-dot.is-end.is-on::before { height: 6px; }
.rail-dot.is-end.is-on { filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8)); }

/* the shuffle that opens the feed */
.feed-shuffle { position: fixed; inset: 0; z-index: 60; background: #000000; cursor: pointer; transition: opacity 300ms ease; }
.feed-shuffle.is-out { opacity: 0; pointer-events: none; }
.shuffle-cd { position: absolute; opacity: 0; }
.shuffle-cd.is-lit { opacity: 1; }
.shuffle-cd picture, .shuffle-cd img { display: block; width: 100%; height: 100%; object-fit: contain; }

.record-cat { flex: 0 0 100%; order: 1; margin: -4px 0 2px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.6; }
.record-header h1 { order: 0; }
.record-badges { order: 2; }

/* project pages are always pure black, so the glass is the dark-shell glass whichever shell is set */
html:has(#screen-record) {
  --glass-fill: linear-gradient(150deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.02) 55%, rgba(255, 255, 255, 0.06));
  --glass-edge: inset 1.5px 2.5px 5px -2px rgba(255, 255, 255, 0.55), inset -1.5px -2px 5px -3px rgba(255, 255, 255, 0.28), inset 0 0 0 0.5px rgba(255, 255, 255, 0.06), 0 10px 28px -10px rgba(0, 0, 0, 0.5);
}

/* headlines rise out of a mask; the intro's words light up one after another */
.rise { display: block; overflow: hidden; padding-bottom: 0.08em; }
.rise-in { display: block; transform: translateY(115%); transition: transform 640ms cubic-bezier(0.22, 1, 0.36, 1); }
.is-in .rise-in, .rise-in.is-in { transform: none; }
.record-header h1.is-in .rise-in { transform: none; }
.feed-intro-big { margin: 0; max-width: 100%; font-size: clamp(10px, 3vw, 13px); line-height: 1.5; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--sub-face); white-space: nowrap; }
.feed-intro-big .w { opacity: 0.2; transition: opacity 420ms ease calc(var(--i) * 80ms + 300ms); }
.feed-item.is-in .feed-intro-big .w { opacity: 1; }
.feed-open .feed-hint { bottom: 168px; }
@media (prefers-reduced-motion: reduce) {
  .rise-in { transform: none; transition: none; }
  .feed-intro-big .w { opacity: 1; transition: none; }
}

/* the chrome disc on the intro screen: a CSS disc until the 3D one is running */
.feed-open { gap: 10px; }
.feed-chrome { position: relative; width: min(84vw, 42svh, 360px); aspect-ratio: 1; flex: none; }
.feed-chrome::before { content: ""; position: absolute; inset: 6%; background: url("/assets/marks/atom-mark-800.webp") center / contain no-repeat; filter: invert(1); opacity: 0.85; }
.feed-chrome.is-live::before { display: none; }

/* colour on the feed: black stays on top, the disc's colour is about a tenth of the screen, with grain */
.feed-item { isolation: isolate; }
.feed-wash, .feed-glow { pointer-events: none; }
.feed-wash { position: absolute; inset: 0; z-index: -1; opacity: 0; }
.feed-wash::after, .feed-glow::after { content: ""; position: absolute; inset: 0; background: url("/assets/grain.webp") 0 0 / 220px; opacity: 0.07; }
.wash-a .feed-wash { opacity: 1; background: linear-gradient(90deg, color-mix(in srgb, var(--disc) 34%, transparent) 0%, color-mix(in srgb, var(--disc) 10%, transparent) 26%, transparent 52%); }
.wash-b .feed-wash { opacity: 1; background: radial-gradient(78vmin 78vmin at 50% 36%, color-mix(in srgb, var(--disc) 46%, transparent), transparent 72%); }
.feed-glow { position: absolute; inset: -120px; z-index: 0; display: none; filter: blur(64px); opacity: 0.12; }
.feed-grain { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: url("/assets/grain.webp") 0 0 / 170px; opacity: 0.011; }
.feed-end::before { display: none; }
.wash-c .feed-glow {
  display: block;
  --cm: color-mix(in srgb, var(--cb, #000) calc(var(--t, 0) * 1%), var(--ca, #000));
  background: linear-gradient(96deg,
    color-mix(in srgb, var(--cm) 82%, transparent) 0%,
    color-mix(in srgb, var(--cm) 68%, transparent) 16%,
    color-mix(in srgb, color-mix(in srgb, var(--cm) 62%, #000) 62%, transparent) 32%,
    color-mix(in srgb, color-mix(in srgb, var(--cm) 42%, #000) 44%, transparent) 50%,
    color-mix(in srgb, color-mix(in srgb, var(--cm) 30%, #000) 22%, transparent) 68%,
    color-mix(in srgb, color-mix(in srgb, var(--cm) 30%, #000) 7%, transparent) 84%,
    transparent 100%);
}
.wash-c .feed { background: transparent; }
.feed { z-index: 1; }

/* ---------- the tape: bottom cassette-player navigation ---------- */
.tape { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 0 20px calc(14px + env(safe-area-inset-bottom)); color: var(--fg); }
.tape-reel { position: relative; flex: none; width: 14px; height: 14px; border: 1px solid currentColor; border-radius: 50%; opacity: 0.75; animation: reel 9s linear infinite; }
.tape-reel i { position: absolute; left: 50%; top: 1px; width: 1px; height: 4px; margin-left: -0.5px; background: currentColor; }
@keyframes reel { to { transform: rotate(360deg); } }
.tape-brand { color: inherit; text-decoration: none; font-size: 16px; letter-spacing: 0.06em; line-height: 1; white-space: nowrap; }
.tape-line { flex: 1; height: 1px; background: currentColor; opacity: 0.3; }
.tape-eject { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tape-c { height: 84px; padding-top: 22px; background: linear-gradient(to top, color-mix(in srgb, var(--bg) 82%, transparent) 0%, color-mix(in srgb, var(--bg) 60%, transparent) 55%, transparent 100%); }
.tape-b { padding-bottom: calc(10px + env(safe-area-inset-bottom)); justify-content: center; }
.tape-shell { position: relative; width: min(100%, 420px); padding: 10px 10px 8px; border: 1px solid color-mix(in srgb, var(--fg) 45%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--bg) 62%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tape-win { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border: 1px solid color-mix(in srgb, var(--fg) 30%, transparent); border-radius: 4px; }
.tape-shell { display: flex; align-items: center; gap: 10px; }
.tape-shell .tape-win { flex: 1; }
.tape-b .tape-eject { width: 40px; height: 40px; border: 1px solid color-mix(in srgb, var(--fg) 45%, transparent); border-radius: 50%; }
.tape-pop { position: absolute; left: 20px; right: 20px; bottom: calc(100% + 6px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; pointer-events: none; }
.tape-b .tape-pop { left: 0; right: 0; max-width: 420px; margin: 0 auto; bottom: calc(100% + 8px); padding: 0 10px; }
.tape-cas { position: relative; display: block; height: 96px; border: 1px solid color-mix(in srgb, var(--fg) 55%, transparent); border-radius: 6px; background: var(--bg); color: inherit; text-decoration: none; opacity: 0; transform: translateY(40px); transition: opacity 240ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1); }
.tape.is-open .tape-pop { pointer-events: auto; }
.tape.is-open .tape-cas { opacity: 1; transform: none; }
.tape.is-open .tape-cas:nth-child(2) { transition-delay: 70ms; }
.tape.is-open .tape-cas:nth-child(3) { transition-delay: 140ms; }
.cas-win { position: absolute; left: 8px; right: 8px; top: 8px; height: 26px; display: flex; align-items: center; justify-content: space-around; border: 1px solid color-mix(in srgb, var(--fg) 35%, transparent); border-radius: 3px; }
.cas-win i { width: 12px; height: 12px; border: 1px solid currentColor; border-radius: 50%; opacity: 0.7; }
.cas-t { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 14px; letter-spacing: 0.06em; }
.tape-cas:hover, .tape-cas:focus-visible { border-color: var(--fg); }
.tape-dim { position: fixed; inset: 0; z-index: 39; background: rgba(0, 0, 0, 0.6); opacity: 0; pointer-events: none; transition: opacity 240ms ease; }
.tape-dim.is-open { opacity: 1; pointer-events: auto; }
#app { padding-bottom: 80px; }
body:has(#screen-feed) #app { padding-bottom: 0; }
.feed-item { padding-bottom: 96px; }
.feed-end { padding-bottom: 76px; }
.feed-hint { bottom: 96px; }
.feed-open .feed-hint { bottom: 104px; }
.refill { display: inline-block; margin: 10px 0 0; padding: 2px 7px; border: 1px solid currentColor; font-size: 10px; letter-spacing: 0.16em; opacity: 0.7; }
#screen-story { padding: 90px 6vw 40px; max-width: 760px; margin: 0 auto; }
.story-line { list-style: none; margin: 40px 0 0; padding: 0; border-left: 1px solid color-mix(in srgb, var(--fg) 25%, transparent); }
.story-line li { position: relative; display: flex; gap: 18px; padding: 0 0 34px 24px; }
.story-line li::before { content: ""; position: absolute; left: -4px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--fg); }
.story-n { font-size: 11px; letter-spacing: 0.2em; opacity: 0.5; padding-top: 6px; }
.story-line h2 { margin: 0; font-size: 22px; }
@media (prefers-reduced-motion: reduce) { .tape-reel { animation: none; } .tape-cas { transition: none; } }

/* test: soft glow orbiting the atom (?bg=atom). Radial blobs, so no filter and no cost on a phone. */
.atom-bg { position: absolute; inset: 0; z-index: 0; display: none; overflow: hidden; pointer-events: none;
  --cm: color-mix(in srgb, var(--cb, #000) calc(var(--t, 0) * 1%), var(--ca, #000));
  --tint: color-mix(in srgb, var(--cm) 38%, #cfcfcf);
  transform: translateY(calc(var(--p, 0) * -5vh)) rotate(calc(var(--p, 0) * 12deg)); transition: transform 700ms ease-out; }
.wash-atom .atom-bg { display: block; }
.wash-atom .feed-glow { display: none; }
.orbit { position: absolute; left: 50%; top: 46%; width: 0; height: 0; transform: rotate(var(--a)); }
.blob { position: absolute; left: -36vmax; top: -36vmax; width: 72vmax; height: 72vmax; border-radius: 50%; mix-blend-mode: screen; opacity: 0.5;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tint) 70%, transparent) 0%, color-mix(in srgb, var(--tint) 32%, transparent) 38%, color-mix(in srgb, var(--tint) 10%, transparent) 66%, transparent 100%);
  animation: orb 26s ease-in-out infinite; will-change: transform; }
.blob.b2 { animation-delay: -13s; opacity: 0.38; }
.orbit:nth-child(2) .blob { animation-duration: 31s; }
.orbit:nth-child(3) .blob { animation-duration: 37s; }
@keyframes orb {
  0% { transform: translate(30vmin, 0) scale(1); }
  25% { transform: translate(0, 13vmin) scale(1.18); }
  50% { transform: translate(-30vmin, 0) scale(0.92); }
  75% { transform: translate(0, -13vmin) scale(1.12); }
  100% { transform: translate(30vmin, 0) scale(1); }
}
.nucleus { position: absolute; left: 50%; top: 46%; width: 70vmin; height: 70vmin; margin: -35vmin 0 0 -35vmin; border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tint) 28%, transparent), transparent 100%); }
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } .atom-bg { transition: none; } }


/* the bar drops into place after enter, like Pentagram's pill */
.tape { transition: transform 1100ms cubic-bezier(0.22, 1, 0.36, 1); transform-origin: 50% 100%; }
.tape.tape-intro { transform: translateY(-40svh) scale(1.18); }
@media (prefers-reduced-motion: reduce) { .tape { transition: none; } }

/* enter tests: ?enter=1 fly-through, ?enter=3 spin, flash and cut */
@property --r { syntax: "<length>"; inherits: false; initial-value: 0px; }
.gate { --r: 0px; }
.gate-chrome { width: min(84vw, 42svh, 360px); }
.gate-count { position: absolute; left: 0; right: 0; bottom: 22%; margin: 0; text-align: center; font-size: 12px; letter-spacing: 0.3em; opacity: 0.6; transition: opacity 300ms ease; }
.gate.is-ready .gate-count { opacity: 0; }
.gate.is-going .gate-enter, .gate.is-going .gate-count { opacity: 0; transition: opacity 200ms ease; }
.gate.is-flying { background: transparent; }
.fly-backdrop { position: absolute; inset: 0; background: #000000; display: none; }
.gate .gate-full { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.gate .gate-full::before { display: none; }
.enter-flash { position: fixed; inset: 0; z-index: 200; background: #ffffff; opacity: 0; pointer-events: none; transition: opacity 180ms ease-out; }
.enter-flash.is-on { opacity: 1; }

/* ---------- the footer: a Moonbase-style strip with hairlines ---------- */
.tape.foot { display: block; padding: 0 12px calc(10px + env(safe-area-inset-bottom)); gap: 0; height: auto; background: linear-gradient(to top, color-mix(in srgb, var(--bg) 85%, transparent), transparent); }
.foot-row { display: grid; grid-template-columns: 1.9fr 1.1fr 0.55fr 1fr 0.7fr; min-height: 78px; border-top: 1px solid color-mix(in srgb, var(--fg) 45%, transparent); }
.foot-row > * { display: flex; align-items: center; padding: 12px 16px; border-left: 1px solid color-mix(in srgb, var(--fg) 30%, transparent); }
.foot-row > :first-child { border-left: 0; padding-left: 4px; }
.foot-brand { color: inherit; text-decoration: none; font-size: clamp(24px, 3.6vw, 40px); letter-spacing: 0.02em; line-height: 1; white-space: nowrap; }
.foot-links, .foot-soc { flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; font-size: 10.5px; letter-spacing: 0.18em; }
.foot-row a { color: inherit; text-decoration: none; opacity: 0.85; }
.foot-row a:hover { opacity: 1; }
.foot-mark { justify-content: center; }
.foot-atom { width: 30px; height: 30px; filter: invert(1); animation: mark-spin 18s linear infinite; }
[data-shell="white"] .foot-atom { filter: none; }
html:has(#screen-record) .foot-atom { filter: invert(1); }
.foot-menu { width: auto; height: auto; display: flex; justify-content: center; border: 0; border-left: 1px solid color-mix(in srgb, var(--fg) 30%, transparent); background: none; color: inherit; cursor: pointer; font: inherit; font-size: 10.5px; letter-spacing: 0.2em; }
.tape.foot.is-open .foot-menu { background: var(--fg); color: var(--bg); }
.tape.foot .tape-pop { left: 12px; right: 12px; bottom: calc(100% + 8px); }
@media (max-width: 719px) {
  .foot-row { grid-template-columns: 1.6fr 0.5fr 0.9fr; min-height: 0; }
  .foot-links { display: none; }
  .foot-brand { order: 1; font-size: 26px; padding: 14px 4px; }
  .foot-mark { order: 2; padding: 0 10px; }
  .foot-menu { order: 3; }
  .foot-soc { order: 4; grid-column: 1 / -1; flex-direction: row; justify-content: space-between; gap: 14px; padding: 8px 4px; border-left: 0; border-top: 1px solid color-mix(in srgb, var(--fg) 20%, transparent); font-size: 9.5px; }
}
/* the sun and moon: top right, on every page */
.theme-toggle { position: fixed; top: 12px; right: 12px; z-index: 50; width: 46px; height: 46px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; }
.theme-toggle img { width: 30px; height: 30px; object-fit: contain; filter: invert(1); transition: transform 300ms ease; }
.theme-toggle:hover img { transform: rotate(14deg) scale(1.08); }
[data-shell="white"] .theme-toggle img { filter: none; }
html:has(#screen-record) .theme-toggle img { filter: invert(1); }
.home-pills { right: 66px; }
/* the budget chips on the contact form */
.budget { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt { position: relative; margin: 0; cursor: pointer; }
.field .chip-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; border: 0; pointer-events: none; }
.chip-opt span { display: inline-block; padding: 9px 14px; border: 1px solid color-mix(in srgb, var(--fg) 40%, transparent); font-size: 11px; letter-spacing: 0.14em; opacity: 1; }
.chip-opt input:checked + span { background: var(--fg); color: var(--bg); }
.chip-opt input:focus-visible + span { outline: 1px solid var(--fg); outline-offset: 3px; }

/* ---------- my story: a sideways track ---------- */
#screen-story { padding: 74px 0 0; min-height: 100vh; overflow: hidden; }
.story-h { margin: 0 6vw; font-size: clamp(26px, 5vw, 44px); line-height: 1; }
.story-track { display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 26px 11vw 20px; margin-top: 8px; height: calc(100svh - 74px - 44px - 150px); min-height: 330px; outline: none; -webkit-overflow-scrolling: touch; }
.story-track::-webkit-scrollbar { display: none; }
.story-card { position: relative; flex: 0 0 min(78vw, 420px); scroll-snap-align: center; scroll-snap-stop: always; box-sizing: border-box; padding: 18px 18px 16px; border: 1px solid color-mix(in srgb, var(--fg) 45%, transparent); display: flex; flex-direction: column; gap: 10px; overflow-y: auto; scrollbar-width: none; opacity: 0; transform: translateY(34px) scale(0.96); transition: opacity 520ms ease, transform 620ms cubic-bezier(0.22, 1, 0.36, 1), border-color 300ms ease; }
.story-card::-webkit-scrollbar { display: none; }
.story-track.is-in .story-card { opacity: 0.42; transform: none; }
.story-track.is-in .story-card.is-on { opacity: 1; border-color: var(--fg); }
.story-n { font-size: 34px; line-height: 1; }
.story-t { margin: 0; font-size: 15px; letter-spacing: 0.14em; }
.story-p { margin: 0; font-size: 14px; line-height: 1.5; opacity: 0.85; }
.story-slots { display: grid; gap: 10px; margin-top: auto; padding-top: 8px; }
.story-slot { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; opacity: 0; transform: translateY(18px) scale(0.97); transition: opacity 500ms ease 160ms, transform 600ms cubic-bezier(0.22, 1, 0.36, 1) 160ms; }
.story-card.is-on .story-slot { opacity: 1; transform: none; }
.story-slot img, .story-slot iframe { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.story-slot.is-empty { border: 1px dashed color-mix(in srgb, var(--fg) 40%, transparent); display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; }
.story-slot figcaption { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.55; padding: 0 8px; }
.story-play { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.story-play-i { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border: 1px solid #ffffff; border-radius: 50%; }
.story-play-i::after { content: ""; position: absolute; left: 19px; top: 14px; border-left: 14px solid #ffffff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.story-prog { position: fixed; left: 6vw; right: 6vw; bottom: 118px; z-index: 5; }
.story-bar { height: 1px; background: color-mix(in srgb, var(--fg) 30%, transparent); position: relative; }
.story-bar i { position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--fg); transition: width 200ms ease; }
.story-marks { display: flex; justify-content: space-between; gap: 6px; margin-top: 8px; }
.story-marks button { padding: 4px 0; border: 0; background: none; color: inherit; font: inherit; font-size: 8.5px; letter-spacing: 0.14em; opacity: 0.45; cursor: pointer; white-space: nowrap; }
.story-marks button.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .story-card, .story-slot { transition: none; transform: none; } }
body:has(#screen-story) #app { padding-bottom: 0; }

/* inside a project that has discs: a neat grid, two across on a phone, four on a computer */
.subdiscs { list-style: none; margin: 34px 0 10px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
@media (min-width: 900px) { .subdiscs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; max-width: 1100px; margin-left: auto; margin-right: auto; } }
.subdisc { display: flex; flex-direction: column; align-items: center; gap: 10px; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.subdisc picture, .subdisc img { display: block; width: 100%; height: auto; transition: transform 300ms ease; }
.subdisc:hover img { transform: scale(1.04); }
.subdisc-t { font-size: 15px; letter-spacing: 0.12em; text-align: center; }
.subdisc .refill { margin: 0; }

/* the site is black only for now: no sun and moon, and project pages have no footer strip */
.theme-toggle { display: none !important; }
html:has(#screen-record) .tape.foot, html:has(#screen-record) .tape-dim { display: none !important; }
body:has(#screen-record) #app { padding-bottom: 40px; }
/* my story: easy sideways swiping. The track only moves sideways, it snaps loosely, and the cards do not scroll inside themselves. */
.story-track { scroll-snap-type: x proximity; touch-action: pan-x; }
.story-card { scroll-snap-stop: normal; overflow: hidden; touch-action: pan-x; }
.story-n { font-size: 28px; }
.story-t { font-size: 14px; }
.story-p { font-size: clamp(12px, 1.9svh, 14px); line-height: 1.45; }
.story-slots { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; gap: 8px; }
.story-slot { aspect-ratio: auto; flex: 1 1 0; min-height: 54px; max-height: 120px; }
.story-card { gap: 8px; padding: 16px 16px 14px; }
.story-slot { min-height: 40px; }
@media (max-height: 740px) { .story-p { font-size: 12px; line-height: 1.4; } .story-slot { min-height: 30px; } .story-n { font-size: 24px; } }

/* corners: atom top left (home), LET'S BALL top right (contact, glass, no fill) */
.home-pills, .deck { display: none !important; }
.corner-ball { position: fixed; top: 16px; right: 16px; z-index: 50; padding: 10px 18px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--glass-fill); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: var(--glass-edge); color: var(--fg); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-decoration: none; white-space: nowrap; }
.corner-ball:hover { opacity: 0.85; }
.home-mark { width: 44px; height: 44px; top: 10px; left: 12px; }
.index-link { left: 66px; min-height: 44px; display: inline-flex; align-items: center; }
.tape.tape-intro { transform: none !important; transition: none !important; }

/* the flash of all the work on the first home screen */
.reel { position: relative; width: min(78vw, 360px); height: min(46svh, 440px); flex: none; }
.reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: none; }
.reel img.is-on { display: block; }
.feed-open { cursor: pointer; gap: 18px; }
.feed-open .feed-hint { position: static; margin: 4px 0 0; }
.foot-row { grid-template-columns: 2.4fr 0.55fr 1fr 0.7fr; }
@media (max-width: 719px) { .foot-row { grid-template-columns: 1.6fr 0.5fr 0.9fr; } }

/* ---------- footer navigation and the Let's Ball panel ---------- */
:root { --foot-h: 136px; }
.navbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; color: #fff; background: rgba(8, 8, 8, 0.55); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); border-top: 1px solid rgba(255, 255, 255, 0.3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "row row" "brand atom" "soc legal"; align-items: center; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .navbar { background: rgba(8, 8, 8, 0.94); } }
.fn-row { grid-area: row; display: grid; grid-template-columns: repeat(3, 1fr); }
.fn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; padding: 7px 4px; color: inherit; text-decoration: none; border-left: 1px solid rgba(255, 255, 255, 0.2); opacity: 0.8; transition: opacity 160ms ease, background-color 160ms ease; -webkit-tap-highlight-color: transparent; }
.fn:first-child { border-left: 0; }
.fn-ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fn-ic path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.fn-t { font-size: 12px; letter-spacing: 0.14em; }
.fn.is-here { opacity: 1; background: rgba(255, 255, 255, 0.12); }
@media (hover: hover) { .fn:hover { opacity: 1; } .fn:hover .fn-ic path { animation: fn-draw 700ms ease forwards; } }
.fn:focus-visible, .fn-soc a:focus-visible, .fn-wm:focus-visible, .fn-atom:focus-visible { outline: 2px solid #fff; outline-offset: -3px; opacity: 1; }
.fn:active { transform: scale(0.97); }
@keyframes fn-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.fn-brand { grid-area: brand; display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; border-top: 1px solid rgba(255, 255, 255, 0.2); min-width: 0; }
.fn-wm { color: inherit; text-decoration: none; font-size: 22px; letter-spacing: 0.04em; line-height: 1; white-space: nowrap; }
.fn-lines { flex: 1; min-width: 16px; height: 10px; border-top: 1px solid rgba(255, 255, 255, 0.5); border-bottom: 1px solid rgba(255, 255, 255, 0.5); background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px 9px) center / 100% 3px no-repeat; }
.fn-atom { grid-area: atom; display: flex; align-items: center; justify-content: center; width: 50px; min-height: 44px; border-top: 1px solid rgba(255, 255, 255, 0.2); align-self: stretch; }
.navbar .foot-atom { width: 28px; height: 28px; filter: invert(1); }
.fn-soc { grid-area: soc; display: flex; gap: 6px 18px; padding: 0 14px; font-size: 12px; letter-spacing: 0.12em; }
.fn-soc a { color: inherit; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; opacity: 0.9; }
.fn-soc a:hover { opacity: 1; }
.fn-legal { grid-area: legal; font-size: 12px; color: #c4c4c4; padding: 0 14px; text-align: right; white-space: nowrap; }
@media (min-width: 720px) {
  .navbar { grid-template-columns: 1.9fr 2.2fr 1.3fr 0.5fr; grid-template-areas: "brand row soc atom" "legal legal legal legal"; }
  .fn-row { border-left: 1px solid rgba(255, 255, 255, 0.2); }
  .fn { flex-direction: row; gap: 10px; min-height: 64px; }
  .fn-brand { border-top: 0; padding: 10px 14px; }
  .fn-wm { font-size: 26px; }
  .fn-soc { flex-direction: column; gap: 0; border-left: 1px solid rgba(255, 255, 255, 0.2); padding: 6px 16px; }
  .fn-atom { border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.2); width: auto; }
  .fn-legal { text-align: center; padding: 4px 14px 6px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
}
body:has(.navbar) #app { padding-bottom: var(--foot-h); }
.feed-item { padding-bottom: calc(var(--foot-h) + 10px); }
.feed-hint, .feed-open .feed-hint { bottom: calc(var(--foot-h) + 10px); }
.feed-open .feed-hint { position: static; }
.feed-end { padding-bottom: calc(var(--foot-h) + 10px); }
#cp-wrap .cp-dim { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, 0.62); opacity: 0; transition: opacity 260ms ease; }
.cp { position: fixed; left: 0; right: 0; bottom: var(--foot-h); z-index: 58; max-width: 560px; margin: 0 auto; max-height: calc(100dvh - var(--foot-h) - 64px); overflow-y: auto; overscroll-behavior: contain; background: #111; color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); border-bottom: 0; border-radius: 18px 18px 0 0; padding: 16px 20px 18px; transform: translateY(110%); transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1); }
#cp-wrap.is-open .cp-dim { opacity: 1; }
#cp-wrap.is-open .cp { transform: none; }
.cp-head { display: flex; align-items: center; justify-content: space-between; }
.cp-head h2 { margin: 0; font-size: 24px; letter-spacing: 0.05em; outline: none; }
.cp-x { width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.cp-sub { margin: 4px 0 12px; font-size: 14px; color: #d0d0d0; }
.cp-field { margin-bottom: 14px; }
.cp-field label, .cp-label { display: block; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #d0d0d0; margin-bottom: 6px; }
.cp-field input:not([type="radio"]) { width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 12px; font-size: 16px; color: #fff; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 8px; }
.cp-field input:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.cp .chip-opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 12px; letter-spacing: 0.08em; }
.cp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cp-send { width: 100%; min-height: 48px; margin-top: 4px; border: 0; border-radius: 99px; background: #fff; color: #000; font-size: 14px; letter-spacing: 0.16em; cursor: pointer; }
.cp-send:disabled { opacity: 0.6; }
.cp-note { margin: 12px 0 0; font-size: 14px; color: #fff; }
@media (prefers-reduced-motion: reduce) { .cp, #cp-wrap .cp-dim, .fn { transition: none; } .fn:hover .fn-ic path { animation: none; } }

/* footer layout fix: copyright lives inside the social row */
.navbar { grid-template-columns: 1fr 52px; grid-template-areas: "row row" "brand atom" "soc soc"; }
.fn-brand { min-height: 44px; }
.fn-atom { min-height: 44px; }
.fn-soc { align-items: center; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.fn-legal { margin-left: auto; padding: 0; border: 0; }
@media (min-width: 720px) {
  .navbar { grid-template-columns: 1.9fr 2.2fr 1.3fr 0.5fr; grid-template-areas: "brand row soc atom"; }
  .fn-soc { flex-direction: column; align-items: flex-start; justify-content: center; border-top: 0; }
  .fn-legal { margin: 2px 0 0; font-size: 12px; }
}
.cp .chip-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; border: 0; pointer-events: none; }
.cp .chip-opt span { border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 99px; }
.cp .chip-opt input:checked + span { background: #fff; color: #000; }
.cp .chip-opt input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.cp .budget { display: flex; flex-wrap: wrap; gap: 8px; }
/* footer: names only, no icons, no line pattern */
.fn-t { font-size: 14px; letter-spacing: 0.16em; }
.fn { min-height: 48px; }
.fn-brand { justify-content: flex-start; }
.fn-t { font-size: 13px; letter-spacing: 0.12em; white-space: nowrap; }
/* footer v3: two names, wordmark and copyright, atom. Instagram and Email live in the Let's Ball panel. */
.navbar { grid-template-columns: 1fr 52px; grid-template-areas: "row row" "brand atom"; }
.fn-row { grid-template-columns: repeat(2, 1fr); }
.fn-brand { gap: 12px; }
.fn-legal { margin-left: 0; color: #c4c4c4; font-size: 12px; }
.cp-alt { display: flex; gap: 10px; margin-top: 14px; }
.cp-alt a { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 99px; color: #fff; text-decoration: none; font-size: 12px; letter-spacing: 0.14em; }
@media (min-width: 720px) {
  .navbar { grid-template-columns: 1.9fr 2.2fr 0.5fr; grid-template-areas: "brand row atom"; }
  .fn-legal { margin: 0; }
}

/* ---------- home: the hook, then all six CDs on one page ---------- */
.feed-open { gap: 18px; padding-bottom: calc(var(--foot-h) + 10px); cursor: pointer; }
.hook { margin: 0; max-width: 92%; font-size: clamp(30px, 9.5vw, 76px); line-height: 1.05; letter-spacing: 0.02em; }
.hk-word { display: inline-block; white-space: nowrap; }
.hk-c { opacity: 0; }
.feed-item.is-in .hk-c { opacity: 1; transition: opacity 0s linear calc(var(--i) * 55ms + 250ms); }
.feed-open .feed-intro-big { font-size: clamp(12px, 3.4vw, 15px); opacity: 1; }
.feed-open .feed-intro-big .w { opacity: 0; transition: opacity 420ms ease calc(var(--i) * 90ms + 1700ms); }
.feed-open.is-in .feed-intro-big .w { opacity: 1; }
.feed-open .feed-hint { position: static; margin: 6px 0 0; font-size: 12px; opacity: 0; transition: opacity 500ms ease 2400ms; }
.feed-open.is-in .feed-hint { opacity: 0.75; }
.feed.is-moved .feed-item:first-child .feed-hint { opacity: 0; }
.feed-grid { padding: 60px 14px calc(var(--foot-h) + 6px); cursor: default; }
.cdg { list-style: none; margin: 0 auto; padding: 0; width: min(100%, 520px); height: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 4px 14px; }
.cdg-i { container-type: size; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; }
.cdg-cd { flex: none; width: min(100cqw, calc(100cqh - 44px)); aspect-ratio: 1; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 320ms ease; will-change: transform; }
.cdg-cd picture, .cdg-cd img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cdg-cd:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 50%; }
.cdg-i.is-lit .cdg-cd { transform: translateY(-6px) scale(1.14); filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.65)); }
.cdg-t { flex: none; height: 44px; display: flex; align-items: flex-start; justify-content: center; padding-top: 6px; box-sizing: border-box; text-align: center; font-size: clamp(13px, 3.6vw, 18px); line-height: 1.05; opacity: 0.9; transition: opacity 200ms ease; }
.cdg-i.is-lit .cdg-t { opacity: 1; }
.feed-glow { transition: opacity 450ms ease; }
#screen-feed.is-hot .feed-glow { opacity: 0.2; }
@media (min-width: 900px) {
  .cdg { width: min(100%, 1100px); grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
  .cdg-t { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hk-c, .feed-open .feed-intro-big .w, .feed-open .feed-hint { opacity: 1; transition: none; }
  .cdg-cd { transition: none; }
}
/* the earlier, cleaner contact look: haze gradient behind frosted glass, underline fields, glass send button */
.cp { background: radial-gradient(70% 55% at 20% 15%, rgba(255, 255, 255, 0.17), transparent 70%), radial-gradient(60% 50% at 88% 88%, rgba(255, 255, 255, 0.11), transparent 70%), rgba(12, 12, 12, 0.7); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); border: 0; box-shadow: inset 1.5px 2.5px 5px -2px rgba(255, 255, 255, 0.5), inset 0 0 0 0.5px rgba(255, 255, 255, 0.1), 0 -12px 40px -12px rgba(0, 0, 0, 0.6); }
.cp-field input:not([type="radio"]) { background: transparent; border: 0; border-bottom: 1px solid #fff; border-radius: 0; padding: 8px 0; }
.cp-field input:focus-visible { outline: none; border-bottom-width: 2px; }
.cp-send { width: auto; min-width: 180px; padding: 0 36px; background: linear-gradient(150deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 55%, rgba(255, 255, 255, 0.08)); color: #fff; box-shadow: inset 1.5px 2.5px 5px -2px rgba(255, 255, 255, 0.55), inset -1.5px -2px 5px -3px rgba(255, 255, 255, 0.28), inset 0 0 0 0.5px rgba(255, 255, 255, 0.08); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); letter-spacing: 0.18em; }
.cp-send:hover { filter: brightness(1.3); }
/* the confirmation pop-up after a message is sent */
.sent-pop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(0, 0, 0, 0.72); opacity: 0; transition: opacity 240ms ease; padding: 24px; }
.sent-pop.is-open { opacity: 1; }
.sent-card { width: min(340px, 100%); text-align: center; padding: 28px 24px 24px; border-radius: 20px; background: radial-gradient(80% 60% at 30% 10%, rgba(255, 255, 255, 0.18), transparent 70%), rgba(14, 14, 14, 0.9); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); box-shadow: inset 1.5px 2.5px 5px -2px rgba(255, 255, 255, 0.5), inset 0 0 0 0.5px rgba(255, 255, 255, 0.12); color: #fff; transform: translateY(14px) scale(0.97); transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.sent-pop.is-open .sent-card { transform: none; }
.sent-card h2 { margin: 0 0 10px; font-size: 34px; letter-spacing: 0.08em; }
.sent-card p { margin: 0 0 20px; font-size: 16px; line-height: 1.5; }
.sent-ok { min-height: 48px; min-width: 120px; padding: 0 32px; border: 0; border-radius: 99px; background: #fff; color: #000; font-size: 14px; letter-spacing: 0.16em; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .sent-pop, .sent-card { transition: none; } }
@media (max-width: 899px) { .feed-rail { display: none; } }

/* ---------- CDs smaller, SELECTED WORK on top, work tag beside each name, spinning CD preview ---------- */
.feed-grid { flex-direction: column; justify-content: flex-start; gap: 10px; }
.cdg-h { flex: none; width: min(100%, 520px); margin: 0 auto; border-top: 1px solid rgba(255, 255, 255, 0.45); padding-top: 8px; text-align: left; font-size: 13px; letter-spacing: 0.22em; }
.cdg { flex: 1 1 auto; min-height: 0; height: auto; }
.cdg-cd { width: calc(min(100cqw, calc(100cqh - 52px)) * 0.75); }
.cdg-t { height: 52px; flex-direction: column; align-items: center; justify-content: flex-start; gap: 5px; padding-top: 8px; }
.cdg-n { font-size: clamp(13px, 3.6vw, 17px); line-height: 1.05; }
.cdg-tag { display: inline-block; padding: 2px 9px; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 99px; font-size: 11px; letter-spacing: 0.14em; line-height: 1.5; opacity: 0.85; white-space: nowrap; }
@media (min-width: 900px) {
  .cdg-h { width: min(100%, 1100px); }
  .cdg-t { height: 40px; flex-direction: row; justify-content: center; align-items: flex-start; gap: 12px; padding-top: 10px; }
  .cdg-n { font-size: 20px; }
  .cdg-cd { width: calc(min(100cqw, calc(100cqh - 44px)) * 0.75); }
}
.feed-open { position: relative; }
.cdprev { position: absolute; left: 0; right: 0; top: 50%; display: flex; justify-content: center; gap: 6px; transform: translateY(-50%); opacity: 0; pointer-events: none; }
.sp { display: block; width: clamp(38px, 11vw, 70px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; animation: cd-spin calc(1.4s + var(--n) * 0.18s) linear infinite; }
.sp img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.42); }
@keyframes cd-spin { to { transform: rotate(360deg); } }
@keyframes cd-prev { 0% { opacity: 0; transform: translateY(-50%) scale(0.9); } 14% { opacity: 1; transform: translateY(-50%) scale(1); } 78% { opacity: 1; transform: translateY(-50%) scale(1); } 100% { opacity: 0; transform: translateY(-50%) scale(1.12); } }
.feed-item.is-in .cdprev { animation: cd-prev 2s ease forwards; }
.feed-item.is-in .hk-c { transition: opacity 0s linear calc(var(--i) * 55ms + 2100ms); }
.feed-open .feed-intro-big .w { transition: opacity 420ms ease calc(var(--i) * 90ms + 3500ms); }
.feed-open .feed-hint { transition: opacity 500ms ease 4400ms; }
@media (prefers-reduced-motion: reduce) { .cdprev { display: none; } .sp { animation: none; } .feed-item.is-in .hk-c { transition: none; } }
.feed-grid { padding-top: 74px; }
/* the SLC clip plays inside the atom's loop during the fly-through */
.fly-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; background: #000; }
.gate.is-flying .gate-enter, .gate.is-going .gate-enter { opacity: 0 !important; transition: opacity 150ms ease; }
/* v4: SELECTED WORK is a quiet vertical label with no rule; the CD preview is a quick flash across the screen */
.feed-grid { padding-top: 66px; }
.cdg-h { position: absolute; left: 4px; top: 50%; width: auto; margin: 0; padding: 0; border: 0; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; font-size: 11px; letter-spacing: 0.32em; color: #fff; opacity: 0.55; pointer-events: none; }
@media (min-width: 900px) { .cdg-h { left: 24px; width: auto; } }
.cdprev { opacity: 1; animation: none !important; transform: translateY(-50%); gap: 8px; }
.sp { opacity: 0; animation: none; }
.feed-item.is-in .sp { animation: cd-flash 360ms ease both, cd-spin 0.9s linear infinite; animation-delay: calc(var(--n) * 85ms), 0s; }
@keyframes cd-flash { 0% { opacity: 0; translate: -26px 0; scale: 0.8; } 35% { opacity: 1; translate: 0 0; scale: 1; } 70% { opacity: 1; translate: 8px 0; scale: 1; } 100% { opacity: 0; translate: 30px 0; scale: 0.9; } }
.feed-item.is-in .hk-c { transition: opacity 0s linear calc(var(--i) * 40ms + 950ms); }
.feed-open .feed-intro-big .w { transition: opacity 360ms ease calc(var(--i) * 70ms + 1950ms); }
.feed-open .feed-hint { transition: opacity 400ms ease 2700ms; }
@media (prefers-reduced-motion: reduce) { .sp { animation: none !important; opacity: 0 !important; } }
/* v5: the table. The grid lies back in perspective, the CD you point at lifts, the rest dim (the corner bracket was removed 2026-11-11) */
.feed-grid { perspective: 1000px; perspective-origin: 50% 18%; }
.cdg { transform: rotateX(15deg); transform-origin: 50% 100%; }
.cdg-i { transition: opacity 280ms ease; }
.cdg:has(.is-lit) .cdg-i:not(.is-lit) { opacity: 0.5; }
.cdg-cd { position: relative; }
.cdg-i.is-lit .cdg-cd { transform: translateY(-8px) scale(1.12); }
@media (prefers-reduced-motion: reduce) { .cdg { transform: none; } .cdg-i { transition: none; } }
/* v6: no CD flash before the hook; the only thing on the tap-to-enter screen is the chrome atom */
.cdprev { display: none; }
.feed-item.is-in .hk-c { transition: opacity 0s linear calc(var(--i) * 45ms + 250ms); }
.feed-open .feed-intro-big .w { transition: opacity 380ms ease calc(var(--i) * 80ms + 1450ms); }
.feed-open .feed-hint { transition: opacity 400ms ease 2100ms; }
.gate-chrome::before { display: none !important; }
/* ---------- project pages, Fisk spacing: one centred column, equal-width tiles, 8 px between ---------- */
#screen-record { padding-left: 14px; padding-right: 14px; }
.rec-col { max-width: 720px; margin: 0 auto; }
.row { display: grid; gap: 8px; margin: 8px 0; }
.row.r1 { grid-template-columns: minmax(0, 1fr); }
.row.r2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 12px; }
.tile-p { display: block; width: 100%; aspect-ratio: var(--ar, 1); max-height: min(76svh, 820px); }
.tile-p img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tile.is-hero .tile-p { max-height: min(86svh, 900px); }
.row.r2 .tile-p { max-height: min(56svh, 600px); }
.rec-col .block-text { margin: 20px 0; }
/* v2: the trimmed work fills each tile evenly; tall pieces are capped by height, centred on the same line */
.tile-p { position: relative; overflow: hidden; container-type: inline-size; margin: 0 auto; width: min(100%, calc(min(76svh, 820px) * var(--ar))); max-height: none; aspect-ratio: var(--ar); }
.tile.is-hero .tile-p { width: min(100%, calc(min(86svh, 900px) * var(--ar))); max-height: none; }
.row.r2 .tile-p { width: min(100%, calc(min(56svh, 600px) * var(--ar))); max-height: none; }
.tile-p img { position: absolute; max-width: none; height: auto; width: calc(100cqw / var(--bw)); left: calc(-100cqw * var(--bx) / var(--bw)); top: calc(-100cqw * var(--by) * var(--ir) / var(--bw)); object-fit: fill; }

/* 3D CD prototype: one shared canvas over the grid, the flat picture steps aside while the 3D one is up */
.cd3d-canvas { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 40; display: none; }
.cd3d-on .cdg-i.is-lit .cdg-cd { transform: none; filter: none; }
.cd3d-on .cdg-i.is-3d .cdg-cd picture { opacity: 0; }
#screen-feed.is-hot .feed-glow { opacity: 0.18; }
/* v7: the first screen is a round fisheye lens playing the LOCO montage, with the small line under it */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.lens { display: block; flex: none; width: min(78vw, 46svh, 440px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: #000; }
.feed-open .feed-intro-big .w { transition: opacity 380ms ease calc(var(--i) * 80ms + 500ms); }
.feed-open .feed-hint { transition: opacity 400ms ease 1200ms; }

/* v8: the reel sits in an uneven glass blob; on tap-to-enter it already plays inside the atom's loop */
.gblob { position: relative; flex: none; width: min(84vw, 50svh, 480px); aspect-ratio: 1; }
.gblob .lens { position: absolute; left: 9%; top: 9%; width: 82%; height: 82%; }
.blob-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gblob.is-live .lens { opacity: 0; }
.feed-open .feed-intro-big { font-family: var(--display-face); font-size: clamp(20px, 6vw, 30px); letter-spacing: 0.06em; }
.gate .fly-backdrop { display: block; }
.gate .fly-video { left: 50%; top: 50%; right: auto; bottom: auto; width: max(100vw, 100vh); height: max(100vw, 100vh); transform: translate(-50%, -50%); object-fit: cover; opacity: 1; background: #000; }

/* 2026-11-11 WORK wall: every piece, no words, colour order. 2 columns on a phone, 5 on a computer. */
#screen-crate.wall-page { padding: 64px 8px calc(var(--foot-h, 0px) + 24px); min-height: 100svh; }
.wall { display: flex; align-items: flex-start; gap: 6px; max-width: 1500px; margin: 0 auto; }
.wall-c { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.wall-t { display: block; }
.wall .tile { display: block; padding: 0; }
.wall .tile-p { width: 100%; max-height: none; margin: 0; }
@media (min-width: 700px) { #screen-crate.wall-page { padding-left: 16px; padding-right: 16px; } .wall, .wall-c { gap: 8px; } }

/* 2026-11-11 calmer CD lift: slow and heavy, no corner marks. The 3D lift is timed in cd3dMake; this is the flat fallback. */
.cdg-cd { transition-duration: 700ms; transition-timing-function: cubic-bezier(0.3, 0, 0.2, 1); }
@media (prefers-reduced-motion: reduce) { .cdg-cd { transition: none; } }

/* 2026-11-11 project pages explain the work: two or three sentences, easy to read */
.record-line { line-height: 1.55; max-width: 560px; }

/* 2026-11-12 moving words: press, letters, slide, landing. Driven by mountWords. Off under Reduce Motion, because .mw is never set then. */
@keyframes pr-in { to { scale: var(--ps, 0.94); filter: brightness(0.82); } }
@keyframes pr-out { 0% { scale: var(--ps, 0.94); filter: brightness(0.82); } 55% { scale: var(--po, 1.02); filter: none; } 100% { scale: 1; filter: none; } }
.mw .pr-in { animation: pr-in 140ms ease-out forwards; }
.mw .pr-out { animation: pr-out 420ms cubic-bezier(0.3, 0, 0.2, 1); }
.mw .pr-inl { display: inline-block; }
.mw .fn:active { transform: none; }
.ls-w { display: inline-block; white-space: nowrap; }
.ls-c { display: inline-block; transition: translate 900ms cubic-bezier(0.4, 0, 0.2, 1), opacity 900ms ease; }
.ls-off .ls-c { translate: var(--o, 0px) 0; opacity: 0.3; transition: none; }
.mw :is(.feed-intro-big, .record-header h1, .story-h, .sheet-t) { translate: 0 calc(var(--sl, 0px) + var(--ld, 0px)); }
.mw :is(.feed-hint, .cdg-h, .cdg-t, .sheet-p, .sheet-k, .sheet-chips, .sheet-foot) { translate: 0 var(--ld, 0px); }

/* 2026-11-12 new look, step 1: the opening asks WANT TO BALL?, and the reel fills the first home screen edge to edge (the glass blob comes back with ?blob=1) */
.gate-enter { font-family: var(--display-face); font-size: clamp(18px, 5vw, 26px); letter-spacing: 0.14em; text-transform: uppercase; }
.gate.is-ready .gate-enter { opacity: 0.92; }
.reel-full { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #000; }
.reel-full .lens { position: absolute; left: 50%; top: 50%; width: max(100vw, 100svh); height: max(100vw, 100svh); max-width: none; aspect-ratio: auto; border-radius: 0; object-fit: cover; transform: translate(-50%, -50%); }
.reel-full::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.7) 100%); }
.feed-open.is-full { justify-content: flex-end; }
/* 2026-11-12 Lino's handwritten STRUGGLE IS ART mark, large across the reel. It fades in slowly when the screen is in view and trails the scroll like the other big titles. */
.scrawl { position: absolute; left: 50%; top: 50%; width: min(88vw, 640px); height: auto; margin: 0; transform: translate(-50%, -50%) rotate(-3deg); opacity: 0; transition: opacity 1100ms cubic-bezier(0.3, 0, 0.2, 1) 500ms; pointer-events: none; }
.feed-open.is-in .scrawl { opacity: 1; }
.mw .scrawl { translate: 0 calc(var(--sl, 0px) + var(--ld, 0px)); }
.reel-full::after { background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 24%, rgba(0, 0, 0, 0.2) 58%, rgba(0, 0, 0, 0.72) 100%); }
@media (prefers-reduced-motion: reduce) { .scrawl { opacity: 1; transition: none; } }

/* 2026-11-12 new look, step 2: the reel stays pinned and the work lifts over it. The edge is soft: a band of blur that fades to black rides on top of the work,
   so the bottom of the reel melts into it, at rest and all the way up. The colour glow of a lit CD now lives inside the work screen (it used to sit behind everything). */
.feed-open.is-full:not(.is-clone) { position: sticky; top: 0; z-index: 0; }
.feed-open.is-full ~ .feed-item { z-index: 1; }
.feed-open.is-full ~ .feed-grid, .feed-open.is-full ~ .feed-end { background: #000; }
.glow-box { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sheet-blur { display: none; }
.feed-open.is-full ~ .feed-grid .sheet-blur {
  display: block; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 220px; pointer-events: none;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 62%); mask-image: linear-gradient(to bottom, transparent 0%, #000 62%);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 50%, #000 100%);
}
.feed-open.is-full .feed-hint { margin-bottom: 112px; }
/* a pinned screen cannot be a resting point itself, so an unseen marker at the very top holds the first stop */
.feed-open.is-full:not(.is-clone) { scroll-snap-align: none; }
.snap-0 { position: absolute; left: 0; top: 0; width: 1px; height: 100vh; height: 100svh; pointer-events: none; scroll-snap-align: start; scroll-snap-stop: always; }

/* 2026-11-12 one page with pop ups: WORK, MY STORY and every project open as a layer over home.
   A sheet from the bottom on a phone (home peeks above it), a side panel on a computer (home stays beside it). A project opened from the wall stacks on the wall. */
.pop { position: fixed; inset: 0; z-index: 49; pointer-events: none; }
.pop-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); opacity: 0; transition: opacity 600ms ease; pointer-events: auto; }
.pop-sheet { position: absolute; left: 0; right: 0; top: 72px; bottom: 0; display: flex; flex-direction: column; background: #0b0b0c; color: #ffffff; border-radius: 18px 18px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.16); transform: translateY(104%); transition: transform 760ms cubic-bezier(0.3, 0, 0.2, 1); pointer-events: auto; will-change: transform; }
.pop.is-stacked .pop-sheet { top: 102px; background: #111113; }
.pop.is-open .pop-dim { opacity: 1; }
.pop.is-open .pop-sheet { transform: none; }
.pop-bar { position: relative; flex: none; height: 44px; display: flex; align-items: center; justify-content: center; touch-action: none; cursor: grab; }
.pop-grab { width: 36px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.35); }
.pop-x { position: absolute; right: 6px; top: 0; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: #ffffff; cursor: pointer; font-family: var(--sub-face); font-size: 11px; letter-spacing: 0.18em; }
.pop-x span { font-size: 20px; line-height: 1; }
.pop-x:focus-visible { outline: 1px solid #ffffff; outline-offset: -4px; }
.pop-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; outline: none; padding-bottom: calc(var(--foot-h, 0px) + 24px); }
.pop-body::-webkit-scrollbar { display: none; }
.pop .home-mark, .pop .index-link { display: none; }
.pop-body #screen-record { min-height: 0; padding: 10px 20px 30px; }
.pop-body #screen-crate.wall-page { min-height: 0; padding: 4px 8px 20px; }
.pop-body #screen-story { min-height: 0; padding-top: 6px; }
.pop-body .story-track { height: calc(100svh - 72px - 44px - 60px - 150px); }
@media (min-width: 900px) {
  .pop-dim { background: rgba(0, 0, 0, 0.42); }
  .pop-sheet { left: auto; top: 0; width: min(62vw, 1040px); border-radius: 0; border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.16); transform: translateX(104%); }
  .pop.is-stacked .pop-sheet { top: 0; width: min(56vw, 940px); }
  .pop-bar { height: 76px; justify-content: flex-start; cursor: default; }
  .pop-grab { display: none; }
  .pop-x { position: static; margin-left: 12px; }
  .pop-body #screen-record { padding: 0 32px 40px; }
  .pop-body #screen-crate.wall-page { padding: 0 16px 24px; }
  .pop-body .story-track { height: calc(100svh - 76px - 60px - 150px); }
}
@media (prefers-reduced-motion: reduce) { .pop-dim, .pop-sheet { transition: none; } }

/* 2026-11-12, later the same day: Lino wants the pop ups "way more pop up style, not taking up the entire screen".
   Phone: a small window in the middle, about half the screen, home visible all round. Computer: a floating card on the right like Motto, with space above, below and beside it. */
.pop-dim { background: rgba(0, 0, 0, 0.45); }
.pop-sheet {
  left: 14px; right: 14px; top: 50%; bottom: auto; height: min(60svh, 560px); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 16px; background: rgba(14, 14, 16, 0.86);
  -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2);
  transform: translateY(calc(-50% + 30px)) scale(0.965); opacity: 0;
  transition: transform 620ms cubic-bezier(0.3, 0, 0.2, 1), opacity 420ms ease;
}
.pop.is-open .pop-sheet { transform: translateY(-50%); opacity: 1; }
.pop.is-stacked .pop-sheet { top: calc(50% + 18px); background: rgba(24, 24, 27, 0.94); }
.pop-story .pop-sheet { height: min(78svh, 680px); }
.pop-body { padding-bottom: 20px; }
.pop-body .story-track { height: calc(min(78svh, 680px) - 44px - 46px - 150px); min-height: 0; }
@media (min-width: 900px) {
  .pop-dim { background: rgba(0, 0, 0, 0.3); }
  .pop-sheet, .pop-story .pop-sheet { left: auto; right: 20px; top: 76px; bottom: 20px; height: auto; width: min(52vw, 880px); border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.18); transform: translateX(44px) scale(0.985); }
  .pop.is-open .pop-sheet { transform: none; }
  .pop.is-stacked .pop-sheet { top: 94px; right: 38px; width: min(52vw, 880px); }
  .pop-bar { height: 48px; }
  .pop-body .story-track { height: calc(100svh - 96px - 48px - 60px - 150px); min-height: 0; }
}

/* 2026-11-12 project sequences: every piece is the same width, two across. Before, a piece alone in a row was twice the size of the ones beside it,
   and a tall piece in a pair was squeezed narrower than its neighbour. Only a banner (1.6 times wider than tall, or more) takes a whole row. */
.row.r2 .tile-p { width: 100%; }
.row.r2.is-odd { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.row.r2.is-odd .tile { width: calc(50% - 4px); box-sizing: border-box; }
/* on a phone two across made each piece tiny inside the pop up window, so there it is one across, still all the same width */
@media (max-width: 699px) {
  .row.r2 { grid-template-columns: minmax(0, 1fr); }
  .row.r2.is-odd .tile { width: 100%; }
}

/* 2026-11-12, later: WANT TO BALL? "a lot smaller and cleaner type" (Lino). Back to the small quiet face. */
.gate-enter { font-family: var(--sub-face); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; }
.gate.is-ready .gate-enter { opacity: 0.85; }
/* 2026-11-14 home, after one reference followed closely: research.mouthwash.studio. Pure black, one typeface (Inter: Black for the big
   line, normal for everything else), a small frosted bar, and a scroll of full screens: STRUGGLE IS ART with the reel over part of it,
   one sentence per screen with one piece moving behind it, a screen where seven pieces pop up round a line, the work flowing in a strip,
   and only the atom at the foot. Measurements follow theirs: bar 35 px high, 8 px corners, 13 px caps; sentences 16 px caps (13 on a phone). */
#screen-x { position: fixed; inset: 0; overflow: hidden; background: #000000; color: #ffffff; font-family: "Inter", "Helvetica Neue", Arial, sans-serif; --fg: #ffffff; --bg: #000000; }
body:has(#screen-x) #app { padding-bottom: 0; }
body:has(#screen-x) .navbar, body:has(#screen-x) .corner-ball { display: none; }
.x-bar { position: absolute; left: 14px; right: 14px; top: 14px; z-index: 45; height: 40px; display: flex; align-items: stretch; overflow: hidden; border-radius: 8px; background: rgba(71, 71, 71, 0.5); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.x-bar a { flex: 1; display: flex; align-items: center; justify-content: center; color: rgb(219, 219, 219); text-decoration: none; font-size: 13px; font-weight: 400; letter-spacing: 0.01em; text-transform: uppercase; }
.x-bar a:focus-visible { outline: 1px solid #ffffff; outline-offset: -4px; }
.x-bar .x-bar-home { flex: 0 0 40px; border-radius: 8px; background: #f1efe8; }
.x-bar-home img { display: block; width: 19px; height: 19px; }
.x-flow { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scroll-snap-type: y proximity; scrollbar-width: none; outline: none; }
.x-flow::-webkit-scrollbar { display: none; }
.x-sec { position: relative; box-sizing: border-box; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 0 22px; scroll-snap-align: start; }
.x-line { position: relative; z-index: 3; margin: 0; max-width: 30ch; text-align: center; font-size: 13px; font-weight: 400; line-height: 1.14; letter-spacing: 0.01em; text-transform: uppercase; mix-blend-mode: difference; opacity: 0; transition: opacity 1200ms ease 250ms; }
.x-line a { color: inherit; }
.x-sec.is-in .x-line { opacity: 1; }
/* the opening: the line in heavy type, the reel sitting over part of it */
.x-hero { justify-content: flex-start; padding: 0; }
.x-big { margin: 0; padding-left: 12px; font-family: "Inter", "Helvetica Neue", Arial, sans-serif; font-size: clamp(54px, 18.4vw, 320px); font-weight: 900; line-height: 0.84; letter-spacing: -0.045em; white-space: nowrap; text-transform: uppercase; }
.x-reel { position: absolute; left: 34vw; top: 50%; z-index: 2; width: 58vw; transform: translateY(-42%); animation: x-swell 11s ease-in-out infinite; }
.x-reel video { display: block; width: 100%; aspect-ratio: 1; border-radius: 0; object-fit: cover; background: #000000; pointer-events: none; }
/* one piece behind each sentence, each moving a different way */
.x-obj { position: absolute; z-index: 1; width: 44vw; }
.x-obj .tile, .x-pp .tile, .x-tile .tile { display: block; padding: 0; }
.x-obj .tile-p, .x-pp .tile-p { width: 100%; max-height: none; margin: 0; }
.x-obj img, .x-pp img, .x-tile img { pointer-events: none; -webkit-user-drag: none; }
.x-say[data-k="0"] .x-obj { left: 46vw; top: 24svh; animation: x-turn 15s ease-in-out infinite; }
.x-say[data-k="1"] .x-obj { left: 7vw; top: 40svh; animation: x-float 9s ease-in-out infinite; }
.x-say[data-k="2"] .x-obj { left: 42vw; top: 46svh; width: 40vw; animation: x-tilt 13s ease-in-out infinite; }
.x-say[data-k="3"] .x-obj { left: 10vw; top: 20svh; animation: x-turn 17s ease-in-out infinite reverse; }
@keyframes x-turn { 0%, 100% { transform: perspective(900px) rotateY(-26deg); } 50% { transform: perspective(900px) rotateY(26deg); } }
@keyframes x-float { 50% { translate: 0 -26px; rotate: 2.5deg; } }
@keyframes x-tilt { 0%, 100% { transform: perspective(900px) rotateX(15deg) rotateZ(-3deg); } 50% { transform: perspective(900px) rotateX(-11deg) rotateZ(3deg); } }
@keyframes x-swell { 50% { scale: 1.04; } }
/* seven pieces pop up round one line, one of them running off the edge */
.x-pp { position: absolute; z-index: 1; display: block; opacity: 0; scale: 0.72; transition: opacity 900ms ease, scale 1200ms cubic-bezier(0.3, 0, 0.2, 1); }
.x-pop.is-in .x-pp { opacity: 1; scale: 1; }
.x-pp:nth-of-type(1) { left: -7vw; top: 13svh; width: 30vw; transition-delay: 150ms; }
.x-pp:nth-of-type(2) { left: 40vw; top: 9svh; width: 20vw; transition-delay: 450ms; }
.x-pp:nth-of-type(3) { left: 72vw; top: 19svh; width: 25vw; transition-delay: 250ms; }
.x-pp:nth-of-type(4) { left: 5vw; top: 37svh; width: 17vw; transition-delay: 800ms; }
.x-pp:nth-of-type(5) { left: 9vw; top: 62svh; width: 22vw; transition-delay: 600ms; }
.x-pp:nth-of-type(6) { left: 39vw; top: 65svh; width: 30vw; transition-delay: 350ms; }
.x-pp:nth-of-type(7) { left: 76vw; top: 59svh; width: 19vw; transition-delay: 950ms; }
/* the work flowing sideways, and the atom alone at the foot */
.x-arch { flex-direction: column; align-items: stretch; padding: 0; }
.x-arch .x-line { align-self: flex-start; margin: 0 0 18px 14px; text-align: left; mix-blend-mode: normal; }
.x-strip { overflow: hidden; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; }
.x-track { display: flex; gap: 10px; width: max-content; padding-left: 10px; will-change: transform; }
.x-cell { flex: none; width: 108px; }
.x-tile { position: relative; display: block; overflow: hidden; width: 108px; height: 142px; background: #111111; }
.x-tile .tile { height: 100%; }
.x-tile .tile-p { position: absolute; left: 50%; top: 50%; width: calc(100% * max(1, var(--ar, 0.76) / 0.76)); max-height: none; margin: 0; transform: translate(-50%, -50%); }
.x-code { display: block; margin-top: 8px; font-size: 11px; letter-spacing: 0.02em; text-transform: uppercase; color: #9a9a9a; }
.x-end { position: absolute; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); width: 22px; height: 22px; transform: translateX(-50%); filter: invert(1); }
.x-grain { position: absolute; inset: -80px; z-index: 30; pointer-events: none; background: url("/assets/grain.webp") 0 0 / 220px; opacity: 0.06; animation: x-grain 0.8s steps(1) infinite; }
@keyframes x-grain { 0% { transform: translate(0, 0); } 17% { transform: translate(-22px, 14px); } 34% { transform: translate(18px, -30px); } 51% { transform: translate(-36px, -12px); } 68% { transform: translate(30px, 26px); } 85% { transform: translate(-10px, 38px); } }
@media (min-width: 900px) {
  .x-bar { left: 20px; right: auto; top: 20px; width: 291px; height: 35px; }
  .x-bar .x-bar-home { flex-basis: 35px; }
  .x-bar-home img { width: 17px; height: 17px; }
  .x-line { font-size: 16px; line-height: 1.1; max-width: 46ch; }
  .x-big { padding-left: 2vw; font-size: 17.5vw; }
  .x-reel { left: 40vw; width: 27vw; }
  .x-obj { width: 17vw; }
  .x-say[data-k="0"] .x-obj { left: 56vw; top: 20svh; }
  .x-say[data-k="1"] .x-obj { left: 26vw; top: 30svh; }
  .x-say[data-k="2"] .x-obj { left: 52vw; top: 34svh; width: 15vw; }
  .x-say[data-k="3"] .x-obj { left: 30vw; top: 16svh; }
  .x-pp:nth-of-type(1) { left: -3vw; top: 14svh; width: 17vw; }
  .x-pp:nth-of-type(2) { left: 34vw; top: 7svh; width: 11vw; }
  .x-pp:nth-of-type(3) { left: 74vw; top: 12svh; width: 15vw; }
  .x-pp:nth-of-type(4) { left: 16vw; top: 44svh; width: 9vw; }
  .x-pp:nth-of-type(5) { left: 8vw; top: 66svh; width: 12vw; }
  .x-pp:nth-of-type(6) { left: 46vw; top: 62svh; width: 16vw; }
  .x-pp:nth-of-type(7) { left: 82vw; top: 56svh; width: 10vw; }
  .x-arch .x-line { margin-left: 20px; }
}
@media (prefers-reduced-motion: reduce) { .x-reel, .x-obj, .x-grain { animation: none !important; } .x-line, .x-pp { transition: none; } }

/* a project, inside its pop up card: one plain title, the tags as tiny rows, and the lead piece running off the card's edge. One typeface (Inter since 2026-11-14). */
.pop-body .record-header { display: block; margin: 4px 0 0; }
.pop-body .record-header h1 { font-family: "Inter", "Helvetica Neue", Arial, sans-serif; font-weight: 900; font-size: clamp(26px, 7.4vw, 40px); line-height: 0.95; letter-spacing: -0.03em; }
.pop-body .record-cat, .pop-body .record-badges span { font-family: "Inter", "Helvetica Neue", Arial, sans-serif; font-size: 12px; font-weight: 400; letter-spacing: 0.01em; text-transform: uppercase; }
.pop-body .record-cat { margin: 14px 0 0; padding: 7px 0 6px; border-top: 1px solid rgba(241, 239, 232, 0.26); border-bottom: 1px solid rgba(241, 239, 232, 0.26); opacity: 1; }
.pop-body .record-badges { display: block; margin: 0; }
.pop-body .record-badges span { display: block; padding: 7px 0 6px; border: 0; border-bottom: 1px solid rgba(241, 239, 232, 0.26); border-radius: 0; background: none; }
.pop-body .record-header:not(:has(.record-cat)) .record-badges { margin-top: 14px; border-top: 1px solid rgba(241, 239, 232, 0.26); }
.pop-body .record-line { margin: 14px 0 44px; max-width: 34ch; font-size: 13px; line-height: 1.5; opacity: 0.8; }
.pop-body .rec-col > .row:first-of-type { width: 132%; }

/* 2026-11-14, later: Lino's notes on the new home. "A lot more subtle": a smaller bar that no longer spans the phone, a slightly smaller reel,
   a soft shadow behind the sentences so they read over the work (in place of the inverting blend), and after the strip a last screen that
   goes straight to contact: LET'S BALL, three tiny links (MY STORY is here, not in the bar) and the atom. The grain stays. */
.x-bar { right: auto; height: 32px; }
.x-bar a { flex: none; padding: 0 13px; font-size: 11px; }
.x-bar .x-bar-home { flex: 0 0 32px; padding: 0; }
.x-bar-home img { width: 15px; height: 15px; }
.x-reel { left: 42vw; width: 47vw; }
.x-line { mix-blend-mode: normal; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 12px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.75); }
.x-contact { flex-direction: column; gap: 14px; }
.x-contact .x-ball { color: inherit; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.x-tiny { margin: 0; display: flex; gap: 6px; }
.x-tiny a { min-height: 44px; padding: 0 10px; display: inline-flex; align-items: center; color: #9a9a9a; text-decoration: none; font-size: 11px; letter-spacing: 0.02em; text-transform: uppercase; }
.x-tiny a:focus-visible, .x-contact .x-ball:focus-visible { outline: 1px solid #ffffff; outline-offset: -4px; }
@media (min-width: 900px) {
  .x-bar { width: auto; height: 30px; }
  .x-bar .x-bar-home { flex-basis: 30px; }
  .x-reel { left: 43vw; width: 21vw; }
}

/* 2026-11-14, later still: his note on the sentence shadow. Calmer and wider, no tight dark edge on the letters,
   and set a little below the words so they sit above the piece with some depth. */
/* Thin letters make a very faint shadow once it is blurred wide, so each soft layer is laid down twice to keep the words readable over a white piece. */
.x-line { text-shadow: 0 5px 9px rgba(0, 0, 0, 0.75), 0 5px 9px rgba(0, 0, 0, 0.75), 0 7px 16px rgba(0, 0, 0, 0.7), 0 7px 16px rgba(0, 0, 0, 0.7), 0 12px 34px rgba(0, 0, 0, 0.6), 0 12px 34px rgba(0, 0, 0, 0.6), 0 18px 60px rgba(0, 0, 0, 0.5); }

/* 2026-11-14, afternoon: his picks from the opening preview (option 2) and the glass study.
   The title is bigger: each line runs edge to edge, so IS ART is far larger than STRUGGLE. Nothing is cut.
   --u keeps the block inside a short, wide window. */
.x-big { --u: min(1vw, 2.2svh); padding: 0 3.2vw; font-size: calc(18.45 * var(--u)); }
.x-big span { display: block; width: max-content; }
.x-big span + span { font-size: calc(29.75 * var(--u)); }
.x-reel { left: 44vw; transform: translateY(-34%); }
/* the small list, low down */
.x-does { position: absolute; left: 14px; bottom: 16px; z-index: 3; margin: 0; padding: 0; list-style: none; font-size: 10px; line-height: 1.45; letter-spacing: 0.02em; text-transform: uppercase; color: #9a9a9a; }
/* the bar as glass: a clear pill, a bright thin rim, a wide soft shadow, the work showing through as it passes under */
.x-bar { overflow: visible; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05) 55%, rgba(255, 255, 255, 0.1));
  -webkit-backdrop-filter: blur(9px) saturate(1.7) brightness(1.12); backdrop-filter: blur(9px) saturate(1.7) brightness(1.12);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.55), inset 0 -1px 0.5px rgba(255, 255, 255, 0.18), inset 0 0 0 0.5px rgba(255, 255, 255, 0.14), inset 0 8px 14px -8px rgba(255, 255, 255, 0.22), 0 14px 34px rgba(0, 0, 0, 0.5), 0 3px 8px rgba(0, 0, 0, 0.3); }
.x-bar a { color: #ffffff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45); border-radius: 999px; }
.x-bar .x-bar-home { background: none; border-radius: 50%; }
.x-bar-home img { filter: invert(1); }
@media (min-width: 900px) {
  .x-big { padding: 0 2vw; font-size: calc(18.9 * var(--u)); }
  .x-big span + span { font-size: calc(30.5 * var(--u)); }
  .x-reel { left: 43vw; transform: translateY(-38%); }
  .x-does { left: 20px; bottom: 20px; font-size: 11px; }
}

/* 2026-11-14, about 15:00: the glass bar is back at 32 px high with 11 px type. He tried it smaller and asked for "a bit bigger". */
.x-bar { height: 32px; }
.x-bar a { padding: 0 13px; font-size: 11px; }
.x-bar .x-bar-home { flex-basis: 32px; }
.x-bar-home img { width: 15px; height: 15px; }

/* 2026-11-14, about 15:25: LET'S BALL ran out past the end of the glass bar in his browser (Safari).
   The bar took its width from its words, and that width could go stale when Inter arrived after the stand in font.
   Each link now has a fixed width in em, so the pill is the same size whichever font has loaded. */
.x-bar { width: auto; }
.x-bar a { flex: none; padding: 0; justify-content: center; white-space: nowrap; }
.x-bar a:nth-child(2) { width: 5.6em; }
.x-bar a:nth-child(3) { width: 8.6em; margin-right: 2px; }
.x-bar .x-bar-home { width: 32px; }
#screen-x { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
