/* Kai Levan — island variation.
   The top bar of the kai variation (white, 6px corners, Helvetica Neue bold caps) becomes one floating island.
   Behind it: every work as a 9:16 plate in one column. Mechanics are sourced (see NOTES.md):
   Basile = island at the centre, width morph, − / + levels, stack rule · Parc = plate size, radius, gaps, opacity ·
   Hugo = page structure for Safari's bottom bar, "+" spring · week 07 = unselected .32. */

:root {
  --paper: #fff;
  --ink: #000;
  --off: 0.2;                                     /* Parc ladder */
  --plate-off: 0.32;                              /* week 07 timeline, unselected */
  --r: 6px;                                       /* Kai, round 3: the bar corner */
  --ui: 13px;
  --track: -0.005em;
  --plate-gap: 16px;                              /* Parc, desktop */
  --plate-r: 2.053vw;                             /* Parc portrait card radius */
  --morph: cubic-bezier(0.215, 0.61, 0.355, 1);   /* Basile power3.out (width morph, 300ms) */
  --slide: cubic-bezier(0.645, 0.045, 0.355, 1);  /* Basile power3.inOut (island slide, 520ms; zoom) */
  --spring: cubic-bezier(0.47, 1.63, 0.41, 0.9);  /* Hugo SPRING ("+" and the panel height) */
  --spring-d: 444ms;
  --fade: cubic-bezier(0.76, 0, 0.24, 1);         /* Parc page fade, 400ms */
  --dim: cubic-bezier(0.83, 0, 0.17, 1);          /* Parc small-UI opacity, 150ms */
  --sat: env(safe-area-inset-top, 0px);           /* read by script.js */
  --sab: env(safe-area-inset-bottom, 0px);
}
@media (max-width: 864px) {
  :root {
    --ui: 14px; --spring-d: 666ms;
    --plate-gap: 10px;                            /* Parc phone */
  }
}

/* ---------- reset + Hugo's page structure (film under Safari's bottom bar) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html {
  overflow: hidden;
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--ui);
  line-height: 1;
  letter-spacing: var(--track);
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
}
button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
p, dl, dd, dt, h2, h3, ul, li { margin: 0; padding: 0; font: inherit; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
:focus { outline: none; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; }
.ui { font-weight: 700; text-transform: uppercase; }
.no-anim, .no-anim * { transition: none !important; }

.stage {
  position: absolute;                             /* Hugo #content: part of the page, not pinned */
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  touch-action: none;
}
@media (max-width: 864px) { .stage { height: 110vh; } }   /* Hugo phone */

/* ---------- level 0: the column ---------- */
.list {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: var(--vh, 100vh);                       /* the visible height, so the snap centre = the island centre */
  overflow-y: auto;
  overflow-x: hidden;
  /* no CSS scroll-snap: script.js settles the column itself (week 07 feel), so iOS momentum and our moves never fight */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-y;
  transition: opacity 400ms var(--fade);          /* Parc M1: 400ms power3.inOut */
}
.list::-webkit-scrollbar { display: none; }
.col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--plate-gap);                          /* Parc: 10 phone / 16 desktop */
  padding: var(--vh, 100vh) 0;                    /* room for any line height (1/2 or 2/3) */
}
.plate {
  position: relative;
  flex: 0 0 auto;
  display: block;
  width: var(--plate-w);
  aspect-ratio: 9 / 16;
  /* the plate itself never moves; only its inner face does */
}
.plate-in {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: var(--plate-r);
  overflow: hidden;
  background: #f2f2f2;
  transform: translateZ(0);
}
/* the gap under the island opens with the scroll: --open (0 → 1) is written by script.js every frame */
.plate.is-up .plate-in   { transform: translate3d(0, calc(var(--open, 0) * (var(--plate-gap) - var(--isl-h)) / 2), 0); }
.plate.is-down .plate-in { transform: translate3d(0, calc(var(--open, 0) * (var(--isl-h) - var(--plate-gap)) / 2), 0); }
.plate-in img, .plate-in video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.plate-in video { opacity: 0; transition: opacity 200ms linear; }
.plate-in video.is-playing { opacity: 1; }
body[data-mode="film"] .list, body[data-mode="more"] .list { opacity: 0; pointer-events: none; transition-duration: 300ms; }
body[data-mode="info"] .list, body[data-mode="content"] .list, body[data-mode="legal"] .list { opacity: 0; pointer-events: none; }
body.is-zooming .list { pointer-events: none; }

/* ---------- level 1: the film ---------- */
.film {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100vh;
  width: calc(100vh * 9 / 16);
  margin-left: calc(100vh * 9 / -32);
  overflow: hidden;
  background: #f2f2f2;
  transform-origin: 50% 50%;
  visibility: hidden;
  z-index: 2;
}
@media (max-width: 864px) {
  /* Hugo: the film is 111.5vh, so it runs on under Safari's bottom bar; the sides crop */
  .film { height: 111.5vh; width: calc(111.5vh * 9 / 16); margin-left: calc(111.5vh * 9 / -32); }
}
.film.is-on { visibility: visible; }
.film { transition: opacity 400ms var(--fade); }
.film.is-wiped { opacity: 0; }                    /* Info from the film: the film goes with the page (Parc M1) */
.film video, .film canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.film video { opacity: 0; }
.film video.is-playing { opacity: 1; }
.film.is-swapping { animation: swap 400ms var(--fade); }
@keyframes swap { from { opacity: 0; } to { opacity: 1; } }

.half {
  position: absolute;
  top: 0;
  height: var(--vh, 100vh);
  width: 50%;
  z-index: 3;
  display: none;
}
.half-prev { left: 0; cursor: w-resize; }
.half-next { right: 0; cursor: e-resize; }
body[data-mode="film"] .half, body[data-mode="more"] .half { display: block; }
/* Parc zoom: previous / next only on the film itself, so the text stays free */
body:not([data-zoom="full"]) .half { top: var(--fy); height: var(--fh); width: calc(var(--fw) / 2); }
body:not([data-zoom="full"]) .half-prev { left: var(--fx); }
body:not([data-zoom="full"]) .half-next { left: calc(var(--fx) + var(--fw) / 2); right: auto; }
body:not([data-zoom="full"]) .film { border-radius: var(--plate-r); }   /* keeps the plate's corner (Parc's 2.053vw) */

/* ---------- Parc zoom: the work's text, on the other side of the line ----------
   Parc M3: the text rises in as one sheet (translateY 100vh → 0, 800ms power3.inOut), no fade.
   Parc M4: on close it fades out over 400ms. Type = Parc's case body (13.8/16.1 desktop, 12.6/16.1 phone). */
.desc {
  position: absolute;
  z-index: 2;
  overflow-y: auto;
  overscroll-behavior: contain;   /* at its top / bottom edge the scroll never leaks into the strip behind */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.8px;
  line-height: 16.1px;
  letter-spacing: 0.25px;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(100vh);
  transition: opacity 400ms var(--fade), transform 0s linear 400ms, visibility 0s linear 400ms;
}
@media (max-width: 864px) { .desc { font-size: 12.6px; letter-spacing: 0.316px; } }
.desc::-webkit-scrollbar { display: none; }
.desc.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: opacity 400ms var(--fade), transform 800ms var(--fade) 200ms, visibility 0s;
}
.desc.is-on.is-wiped { opacity: 0; pointer-events: none; }
.desc.is-swapping { animation: swap 400ms var(--fade); }
.desc-idea { font-weight: 700; }
.desc-credits { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 3px; margin-top: 4px; }
.desc-credits dt { font-size: 10px; letter-spacing: 0.251px; font-weight: 500; text-transform: uppercase; opacity: 0.4; }
@media (max-width: 864px) { .desc-credits dt { font-size: 12.6px; letter-spacing: 0.316px; } }
/* round 70 (Kai): on the phone the work's text is the Content page's text block: the lede's type (Tune About type),
   14px between blocks, and the credits as the stats' label/value rows (the same --lab / --body roles, 18px · 6px gaps).
   The question keeps its bold. Edge + measure: placeFilm (placeContent's rule). */
@media (max-width: 864px) {
  .desc { font-size: var(--body); line-height: var(--body-lh); letter-spacing: var(--body-ls); gap: 14px; }
  .desc-credits { column-gap: 18px; row-gap: 6px; margin-top: 0; }
  .desc-credits dt { font-size: var(--lab); letter-spacing: var(--lab-ls); line-height: var(--body-lh); white-space: nowrap; }
  .desc-credits dd { font-size: var(--body); line-height: var(--body-lh); letter-spacing: var(--body-ls); }
}

/* ---------- Info: black on white around the island, which stays in the centre ----------
   Type = Parc's About page in Helvetica Neue: body 13.8/16.1 (+.25px) desktop, 16.5/20.1 (+.315px) phone,
   weight 500; labels 10px / 12.6px caps (+.251 / +.316px), 628 → Helvetica Neue 500 as the Parc spec maps it. */
.page {
  position: absolute;
  inset: 0;
  z-index: 4;
  height: var(--vh, 100vh);
  opacity: 0;
  transition: opacity 400ms var(--fade);          /* Parc M1 in */
  pointer-events: none;
  --info-w: 507.91px;
}
@media (max-width: 864px) { .page { --info-w: calc(100vw - 20px); } }
.page.is-on { opacity: 1; pointer-events: auto; }
.page[hidden] { display: none; }
/* About type (Tune): M = the island's own size (default; Kai found Parc's About size too big next to it),
   S = Parc's case body, L = Parc's About (round 3). Labels follow at Parc's caps label size. */
body[data-atype="s"] :is(.page, .mail, .legal-link) { --body: 12px;   --body-lh: 15px;   --body-ls: 0.2px;   --lab: 9.5px; --lab-ls: 0.25px; }
body[data-atype="m"] :is(.page, .mail, .legal-link) { --body: 13px;   --body-lh: 16.1px; --body-ls: 0.2px;   --lab: 10px;  --lab-ls: 0.251px; }
body[data-atype="l"] :is(.page, .mail, .legal-link) { --body: 13.8px; --body-lh: 16.1px; --body-ls: 0.25px;  --lab: 10px;  --lab-ls: 0.251px; }
@media (max-width: 864px) {
  body[data-atype="s"] :is(.page, .desc, .mail, .legal-link) { --body: 12.6px; --body-lh: 16.1px; --body-ls: 0.25px;  --lab: 10.5px; --lab-ls: 0.3px; }
  body[data-atype="m"] :is(.page, .desc, .mail, .legal-link) { --body: 14px;   --body-lh: 18px;   --body-ls: 0.2px;   --lab: 11px;   --lab-ls: 0.3px; }
  body[data-atype="l"] :is(.page, .desc, .mail, .legal-link) { --body: 16.5px; --body-lh: 20.1px; --body-ls: 0.315px; --lab: 12.6px; --lab-ls: 0.316px; }
}
.info-top, .info-bottom {
  position: absolute;
  left: 50%;
  width: var(--info-w);
  transform: translateX(-50%);
}
.info-top { bottom: calc(50% + var(--isl-h) / 2 + 30px); }          /* Parc: info sits 30px from the text; script.js puts both around the line */
.info-bottom { top: calc(50% + var(--isl-h) / 2 + 30px); }
.bio { font-size: var(--body); line-height: var(--body-lh); letter-spacing: var(--body-ls); font-weight: 500; text-wrap: pretty; }
.info-rows { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; row-gap: 12px; }
.info-rows dt { font-size: var(--lab); letter-spacing: var(--lab-ls); line-height: var(--body-lh); font-weight: 500; text-transform: uppercase; opacity: 0.4; }
.info-rows dt { white-space: nowrap; }
.info-rows dd { font-size: var(--body); line-height: var(--body-lh); letter-spacing: var(--body-ls); font-weight: 500; }
.info-rows a { border-bottom: 1px solid rgba(0, 0, 0, 0.2); }
.info-rows .note { opacity: 0.4; }

/* ---------- the island ---------- */
/* size (Tune): S / M / L. M = Basile's row: 36px phone · 32px desktop */
body[data-size="s"] { --isl-h: 28px; --isl-ui: 12px; }
body[data-size="m"] { --isl-h: 32px; --isl-ui: 13px; }
body[data-size="l"] { --isl-h: 38px; --isl-ui: calc(13px * 16 / 14); }   /* Kai (2026-11-16): the phone's L ratio exactly (wheels 12 : name 14 → 11.14 : 13) */
@media (max-width: 864px) {
  body[data-size="s"] { --isl-h: 32px; --isl-ui: 13px; }
  body[data-size="m"] { --isl-h: 36px; --isl-ui: 14px; }
  body[data-size="l"] { --isl-h: 42px; --isl-ui: 16px; }
}
/* plates (Tune): S / M / L / XL. L = Parc's card (180 phone, 240.375 desktop) */
body[data-plates="xxs"] { --plate-w: 100px; }
body[data-plates="xs"] { --plate-w: 130px; }
body[data-plates="s"] { --plate-w: 160px; }
body[data-plates="m"] { --plate-w: 200px; }
body[data-plates="l"] { --plate-w: 240.375px; }
body[data-plates="xl"] { --plate-w: 300px; }
@media (max-width: 864px) {
  body[data-plates="xxs"] { --plate-w: 22vw; }
  body[data-plates="xs"] { --plate-w: 28vw; }
  body[data-plates="s"] { --plate-w: 34vw; }
  body[data-plates="m"] { --plate-w: 40vw; }
  body[data-plates="l"] { --plate-w: 46.15vw; }
  body[data-plates="xl"] { --plate-w: 56vw; }
}
/* colour (Tune): the page is white, so a white island disappears over it */
body[data-colour="frost"] { --isl-bg: rgba(242, 242, 242, 0.6); --isl-blur: 8px; }   /* Basile frost */
body[data-colour="light"] { --isl-bg: #f4f4f4; --isl-blur: 0px; }                    /* Hugo bar */
body[data-colour="grey"]  { --isl-bg: rgb(220, 220, 220); --isl-blur: 0px; }         /* Hugo section pill */
body[data-colour="white"] { --isl-bg: #f4f4f4; --isl-blur: 0px; }                    /* Hugo's bar colour… */
body[data-colour="white"]:not(.isl-bare)[data-mode="film"] .island,
body[data-colour="white"]:not(.isl-bare)[data-mode="more"] .island { mix-blend-mode: hard-light; }                     /* …and his blend (queries.css: .navbar, nav). White over white, a trace of the film over a film; black type stays black */
@media (prefers-reduced-transparency: reduce) { body[data-colour="frost"] { --isl-bg: rgba(242, 242, 242, 0.95); --isl-blur: 0px; } }

.island {
  position: fixed;
  z-index: 20;
  left: var(--isl-x, 10px);                       /* set by script.js: fixed = the work's name starts at the plates' edge */
  top: var(--isl-top, 50%);                       /* set by script.js: island (+ details) always centred as one block */
  width: var(--isl-w, 240px);
  height: var(--isl-h);
  font-size: var(--isl-ui);
  overflow: hidden;
  border-radius: var(--r);
  transition:
    top 520ms var(--slide),                       /* Basile stack rule: the block re-centres as it grows */
    border-radius 300ms var(--morph),
    left 300ms var(--morph),
    height var(--spring-d) var(--spring),         /* Hugo: the edge reveals the text */
    width 300ms var(--morph),                     /* Basile width morph */
    opacity 500ms var(--fade);
  opacity: 0;
}
body.is-ready .island { opacity: 1; }
/* the island lets every touch through (a drag on it scrolls / moves what's behind); script.js catches only taps
   on its words. The wheel is the one part that takes touches itself, so it can be dragged. */
.island { pointer-events: none; }
.isl-wheel { pointer-events: auto; touch-action: none; cursor: default; }   /* normal cursor on both wheels, no hand (Kai, 2026-11-11) */
body:not(.isl-bare) .wheel-i:not(.is-on) { pointer-events: none; }
body.isl-pointer, body.isl-pointer * { cursor: pointer !important; }
.isl-wheel * { cursor: default; }
body.isl-pointer .isl-wheel, body.isl-pointer .isl-wheel * { cursor: default !important; }
.wheel-list.is-held { transition: none; }
/* idle in the film (2s): the background steps far back, the type only a little. Hugo idle: GLIDE 444ms */
.isl-row > .isl-part > :not(.isl-face) { transition: opacity 444ms cubic-bezier(0.43, 0, 0, 1.01); }
.island.is-dim .isl-surface, .island.is-dim .isl-face { opacity: 0.2; transition: opacity 444ms cubic-bezier(0.43, 0, 0, 1.01); }
.island.is-dim .isl-row > .isl-part > :not(.isl-face) { opacity: 0.7; }
.isl-surface, .isl-face, .isl-more { transition: opacity 400ms var(--fade), border-radius 300ms var(--morph); }
/* inside a work the box gets sharper corners: Hugo's 3px */
body[data-mode="film"], body[data-mode="more"] { --r: 3px; }
body.isl-bare .isl-surface, body.isl-bare .isl-face { opacity: 0; }
body.isl-bare .island { overflow: visible; }      /* the wheel's other word hangs off the line */   /* zoomed out: just the type; the button appears when you enter */   /* the glass goes with the page behind it */
.island.is-open { height: var(--isl-open-h); }
.isl-surface, .isl-face {
  position: absolute;
  inset: 0;
  background: var(--isl-bg);
  -webkit-backdrop-filter: blur(var(--isl-blur));
  backdrop-filter: blur(var(--isl-blur));
  border-radius: var(--r);
  pointer-events: none;
}
.isl-face { display: none; }

.isl-row {
  position: absolute;
  top: 0;
  left: 0;
  height: var(--isl-h);
  display: flex;
  align-items: stretch;
  white-space: nowrap;
}
.isl-part { position: relative; height: 100%; display: flex; align-items: center; }
.isl-part > :not(.isl-face) { position: relative; }
.isl-name { padding: 0 8px 0 12px; font-weight: 700; text-transform: none; letter-spacing: -0.02em; }   /* "kai levan." lowercase, the dot is part of the name */
.isl-title { overflow: hidden; transition: width 300ms var(--morph); }
.isl-title-in { display: flex; align-items: center; justify-content: flex-start; flex: 1 0 auto; min-width: 100%; height: 100%; padding: 0 8px; padding-top: 0.06em; cursor: pointer; opacity: 0.45; transition: opacity 150ms var(--dim); }
body:not([data-mode="list"]) .isl-title-in, .isl-title-in:hover { opacity: 1; }
body[data-mode="list"] .isl-title-in { opacity: 1; }
.isl-plus { width: calc(var(--isl-h) - 2px); justify-content: center; }

/* the wheel: Parc's title list (Work index), cut down to Work / About. Where you are sits on the line at 1,
   the other word hangs off it at the ladder's next step. One pitch = Parc's 16.125 / 10 = 1.6125em;
   the list steps over 400ms power3.inOut (Parc M1), the opacity over 150ms (Parc title). */
.isl-wheel { padding: 0 2px 0 12px; }
body:not([data-wheel="off"]) .isl-name { padding-left: 8px; }
body[data-wheel="off"] .isl-wheel { display: none; }
body[data-wheel="w20"] { --wheel-off: 0.2; }
body[data-wheel="w05"] { --wheel-off: 0.05; }
.wheel { display: block; height: 1em; text-align: left; transform: translateY(var(--fix, 0.03em)); }   /* --fix: measured by script.js so the current word shares the wordmark's baseline */
.wheel-list {
  display: flex;
  flex-direction: column;
  gap: 0.6125em;
  transform: translateY(calc(var(--wi, 0) * -1.6125em));
  transition: transform 400ms var(--fade);
}
.wheel-i { display: block; height: 1em; line-height: 1; opacity: var(--wheel-off, 0.2); transition: opacity 150ms var(--dim); }
.wheel-i.is-on { opacity: 1; }
@media (hover: hover) { .wheel-i:hover { opacity: 1; transition: none; } }
body:not(.isl-bare) .wheel-i:not(.is-on) { opacity: 0; }   /* inside the box only where you are shows */
body[data-form="pills"] .isl-wheel { padding: 0 10px; }

/* wheel type (Tune): Small = Parc's label ratio (UI label 12.6 next to the 16.83 wordmark = .75), so the wheel
   reads as navigation, one step quieter than the name and the work. Same = the island's size. */
body[data-wsize="small"] .wheel { font-size: 0.75em; }
body[data-wsize="small"] .isl-wheel { padding-right: 4px; }

/* ---------- Content: a desk of Quick Look windows (Kai's content-engine frames, light chrome) ---------- */
.canvas { position: absolute; inset: 0; overflow: hidden; }
.content-text { position: absolute; display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 864px) { .content-text { gap: 14px; } .content-text .info-rows { row-gap: 6px; } }
.win {
  position: absolute;
  display: flex;
  flex-direction: column;
  background: #ececec;                            /* content engine LIGHT_CHROME_BG (AppKit windowBackgroundColor) */
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: var(--wr, 14px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16), 0 5px 14px rgba(0, 0, 0, 0.12);   /* QL_SHADOW, softened for a white page */
  touch-action: none;
  cursor: grab;
  transform-origin: 50% 50%;
  transition: opacity 260ms var(--fade), transform 260ms var(--fade);
  will-change: left, top, width;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  letter-spacing: 0;
}
.win.is-dragging { cursor: grabbing; }
/* 2026-11-13 (Kai: the title jumped right when a window was tapped on the phone): the chrome sizes (--bar = title bar
   height, which sets the title's size, padding and gap; --inset; --wr = corner radius) used to snap to the new size while
   the width slid. Registered as lengths, they now slide with the width over the same 520ms. */
@property --bar { syntax: '<length>'; inherits: true; initial-value: 24px; }
@property --inset { syntax: '<length>'; inherits: true; initial-value: 6px; }
@property --wr { syntax: '<length>'; inherits: true; initial-value: 10px; }
.win.is-animating { transition: left 520ms var(--slide), top 520ms var(--slide), width 520ms var(--slide), --bar 520ms var(--slide), --inset 520ms var(--slide), --wr 520ms var(--slide), opacity 260ms var(--fade); }
.win.is-closed { opacity: 0; transform: scale(0.92); pointer-events: none; }
.win.is-flip { transition: transform 520ms var(--slide); will-change: transform; }   /* phone desk swap (FLIP), 2026-11-15 */
/* iOS can paint a playing <video> above its siblings: the cover gets its own layer so it always sits on top */
.win-img img { transform: translateZ(0); will-change: opacity; }
.win-bar { height: var(--bar); flex: 0 0 auto; display: flex; align-items: center; gap: calc(var(--bar) * 0.2); padding: 0 calc(var(--bar) * 0.4); }
.win-btn {
  flex: 0 0 auto;
  width: calc(var(--bar) * 0.56);
  height: calc(var(--bar) * 0.56);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.07);
  color: #7b7b80;                                 /* light glyph ink */
  display: grid;
  place-items: center;
  cursor: pointer;
}
.win-btn svg { width: 72%; height: 72%; display: block; }
@media (hover: hover) { .win-btn:hover { background: rgba(0, 0, 0, 0.13); color: #3c3c3e; } }
.win-title { margin-left: calc(var(--bar) * 0.1); font-size: calc(var(--bar) * 0.42); font-weight: 600; color: #3c3c3e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1; }
.win-img {
  position: relative;
  margin: calc(var(--inset) * -0.5) var(--inset) var(--inset);
  aspect-ratio: 9 / 16;
  border-radius: calc(var(--wr, 14px) - var(--inset));
  overflow: hidden;
  background: #000;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.win-img img, .win-img video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.win-img video { opacity: 0; transition: opacity 200ms linear; }
.win-img video.is-playing { opacity: 1; }
.win-line {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: 8px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em;
  opacity: 0.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
}
/* sound on: a small black dot before the title (the recording dot of the content engine's webcam, in ink) */
.win-title::before { content: ""; display: inline-block; width: 0; height: 6px; margin-right: 0; border-radius: 3px; background: #000; vertical-align: 0.08em; transition: width 150ms var(--dim), margin 150ms var(--dim); }
.win.is-loud .win-title::before { width: 6px; margin-right: 5px; }
.content-hint { font-size: var(--lab); letter-spacing: var(--lab-ls); line-height: 1.4; font-weight: 500; text-transform: uppercase; opacity: 0.4; }
/* ---------- About layouts (Tune → About); positions come from script.js ---------- */
#info .row { display: contents; }               /* default: label | value grid */
/* split + inline: the facts in two columns, each label over its value */
body[data-about="split"] #info .info-rows,
body[data-about="inline"] #info .info-rows { grid-template-columns: 1fr 1fr; column-gap: 14px; row-gap: 14px; }
body[data-about="split"] #info .row,
body[data-about="inline"] #info .row { display: block; }
body[data-about="split"] #info dt,
body[data-about="inline"] #info dt { display: block; margin-bottom: 2px; }
/* inline: the sentence starts on the line, after "kai levan."; the float keeps the first line clear of the × */
.bio-gap { display: none; }
body[data-about="inline"] .bio-gap { display: block; float: right; }
/* labels: the facts as one-line rows in the island's own voice: bold caps, label at .4 */
/* round 57: one grid, the label column as wide as its widest label ("Elsewhere" overflowed the old 6.2em and pushed
   its value 1.5px right), so every value starts at the same x */
body[data-about="labels"] #info .info-rows { display: grid; grid-template-columns: max-content 1fr; column-gap: 12px; row-gap: 8px; align-items: baseline; }
body[data-about="labels"] #info .row { display: contents; }
body[data-about="labels"] #info dt { line-height: 1.35; }
body[data-about="labels"] #info dd { font-size: var(--lab); letter-spacing: var(--lab-ls); line-height: 1.35; font-weight: 700; text-transform: uppercase; }
body[data-about="labels"] #info dd br { display: none; }
body[data-about="labels"] #info dd .v ~ .v::before { content: ", "; }
body[data-about="labels"] #info dd .note::before { content: " · "; }
body[data-about="labels"] #info dd a { border-bottom: 0; }
/* Side layout on a phone: the facts column is narrow, so each label sits above its value */
@media (max-width: 864px) {
  body[data-about="side"] .info-bottom .info-rows { grid-template-columns: 1fr; row-gap: 0; }
  body[data-about="side"] #info .row { display: block; }
  body[data-about="side"] #info dt { display: block; }
  body[data-about="side"] .info-bottom .info-rows dd { margin-bottom: 10px; overflow-wrap: anywhere; }
}

/* the single "+": two bars that turn 45° into an ×, the same component (week 12 COLORS) */
.pm { position: relative; width: 12px; height: 12px; display: block; }
.pm-bar {
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);   /* week 12 .pm-bar */
}
.pm-h { width: 12px; height: 1.5px; transform: translate(-50%, -50%) rotate(0deg); }      /* week 12 is 0.7px; 1.5px matches bold type */
.pm-v { width: 1.5px; height: 12px; transform: translate(-50%, -50%) rotate(0deg); }
.island.is-x .pm-h, .island.is-x .pm-v { transform: translate(-50%, -50%) rotate(45deg); }

/* form (Tune): one bar, or Basile's separate pills with a 4px gap */
body[data-form="pills"] .isl-surface { display: none; }
body[data-form="pills"] .island { overflow: visible; border-radius: 0; }
body[data-form="pills"] .isl-row { gap: 4px; }                     /* Basile pill gap */
body[data-form="pills"] .isl-face { display: block; }
body[data-form="pills"] .isl-name { padding: 0 10px; }
body[data-form="pills"] .isl-title { border-radius: var(--r); }
body[data-form="pills"] .isl-title-in { padding: 0 10px; }
body[data-form="pills"] .isl-more { background: var(--isl-bg); -webkit-backdrop-filter: blur(var(--isl-blur)); backdrop-filter: blur(var(--isl-blur)); border-radius: var(--r); top: calc(var(--isl-h) + 4px); }
body[data-form="pills"] .island:not(.is-open) .isl-more { visibility: hidden; }

/* the work's background: opens BELOW the row, exactly as wide as the island (it never grows sideways) */
.isl-more {
  visibility: hidden;                             /* only while open (the island no longer always clips) */
  transition: opacity 400ms var(--fade), visibility 0s linear var(--spring-d);
  position: absolute;
  left: 0;
  top: var(--isl-h);
  padding: 6px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.3;
  font-size: 13px;
  white-space: normal;
  width: var(--more-w, 320px);
}
.isl-more::before { content: ""; display: block; height: 1px; margin-bottom: 6px; background: currentColor; opacity: 0.15; }
body[data-form="pills"] .isl-more::before { display: none; }
body[data-form="pills"] .isl-more { padding-top: 14px; }
.island.is-open .isl-more { visibility: visible; transition-delay: 0s; }
.more-idea { font-weight: 700; }
.more-credits { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 2px; margin-top: 4px; }
.more-credits dt { opacity: 0.4; font-weight: 700; text-transform: uppercase; }

/* ---------- Tune panel (prototype only) ---------- */
.tune-toggle {
  position: fixed; z-index: 40; right: 10px; top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; padding: 10px 6px; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: rgba(10, 10, 10, 0.88); border-radius: 6px;
}
.tune {
  position: fixed; z-index: 41; right: 44px; top: 50%; transform: translateY(-50%);
  width: 236px; max-width: calc(100vw - 60px); padding: 10px 12px 12px;
  color: #fff; background: rgba(10, 10, 10, 0.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: 8px; font-size: 10px; letter-spacing: 0.02em; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}
.tune[hidden] { display: none; }
/* round 63: the panel always fits the screen (Kai couldn't reach every Text option): it scrolls inside, and a row with
   many values wraps onto a second line instead of squeezing its buttons */
.tune { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
@media (min-width: 865px) { .tune { width: 272px; } }
.seg { flex-wrap: wrap; }
.tune .seg button { flex: 1 0 auto; min-width: 34px; padding: 5px 6px; white-space: nowrap; }
.tune-sub { margin-top: 12px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.6; }
.tune-sub[hidden] { display: none; }
.tune-row[hidden] { display: none; }   /* .tune-row's display: grid overrode the hidden attribute, so desktop rows showed on the phone */
.tune-title { font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.6; margin-bottom: 8px; display: flex; justify-content: space-between; }
.tune-row { display: grid; grid-template-columns: 50px 1fr; align-items: center; gap: 6px; margin-top: 6px; }
.tune-row > span { font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.6; }
/* round 68: the Name slider (desktop) */
.tune-range .range-w { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tune-range input[type="range"] { flex: 1 1 0; width: 0; min-width: 0; accent-color: #fff; height: 16px; margin: 0; }
.tune-range output { flex: 0 0 auto; font-size: 9px; font-variant-numeric: tabular-nums; opacity: 0.8; white-space: nowrap; }
.seg { display: flex; gap: 2px; background: rgba(255, 255, 255, 0.08); border-radius: 5px; padding: 2px; }
.seg button { flex: 1; padding: 5px 0; border-radius: 4px; font-size: 10px; color: rgba(255, 255, 255, 0.6); }
.seg button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.9); color: #000; }
.tune-foot { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.15); display: flex; gap: 6px; }
.tune-foot .tune-save { flex: 2; background: rgba(255, 255, 255, 0.32); }
.tune-foot button { flex: 1; padding: 6px 0; border-radius: 4px; background: rgba(255, 255, 255, 0.16); font-size: 9px; text-transform: uppercase; letter-spacing: 0.05em; }
body.no-ui .tune, body.no-ui .tune-toggle { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .island, .isl-title, .list, .info { transition-duration: 1ms !important; }
}

/* dynamic (Tune → Enter): inside a work the island centres and hugs the name, as before */
body.isl-dynamic .isl-row { left: 50%; transform: translateX(-50%); }
body.isl-dynamic .isl-title-in { justify-content: center; }

/* ---------- Tune → Names: Wheel (Kai, 2026-11-09) ----------
   The plates keep Parc's normal gap; nothing opens between them. Left of the column: the Work / Content / About wheel
   and "kai levan."; right of it: "+" and the works' names as a second wheel, the same build as the first one
   (1em items, 1.6125em pitch, the others at the wheel's .2 / .05), moving with the column, one name per plate. */
.side {
  position: fixed;
  z-index: 20;
  left: var(--side-x, 0px);
  top: var(--side-top, 50%);
  height: var(--isl-h);
  display: none;
  align-items: center;
  font-size: var(--isl-ui);
  white-space: nowrap;
  pointer-events: none;                           /* like the island: drags go through, script.js catches taps */
  opacity: 0;
  transition: opacity 500ms var(--fade);
}
body[data-names="wheel"] .side { display: flex; }
body.is-ready .side { opacity: 1; }
body[data-names="wheel"] .isl-title, body[data-names="wheel"] .isl-plus { display: none; }

.side-face {
  position: absolute; inset: 0;
  background: var(--isl-bg);
  -webkit-backdrop-filter: blur(var(--isl-blur));
  backdrop-filter: blur(var(--isl-blur));
  border-radius: var(--r);
  opacity: 0;
  transition: opacity 400ms var(--fade), border-radius 300ms var(--morph);
}
body:not(.isl-bare) .side-face { opacity: 1; }   /* Zoom = Full: the same white box as the island */
body:not(.isl-bare) .side { padding: 0 8px; }
body[data-colour="white"]:not(.isl-bare)[data-mode="film"] .side { mix-blend-mode: hard-light; }
.side-plus { position: relative; height: 100%; display: flex; align-items: center; padding-right: 16px; }   /* 16 = the island's word spacing (8 + 8) */
.side.is-x .pm-h, .side.is-x .pm-v { transform: translate(-50%, -50%) rotate(45deg); }
.side-plus { display: none; }   /* Kai, 2026-11-09: no + / × in the wheel version; the current name is the button */
.side-names { position: relative; display: block; height: 1em; transform: translateY(var(--fix, 0.03em)); }   /* --fix: same measured baseline as the first wheel */
body[data-wsize="small"] .side-names { font-size: 0.75em; }
.side-list { display: flex; flex-direction: column; gap: 0.6125em; will-change: transform; transform: translate3d(0, var(--side-y, 0px), 0); }
.side-list.is-glide { transition: transform 400ms var(--fade); }   /* Parc M1, in a work */
.side-i { display: block; height: 1em; line-height: 1; opacity: calc(var(--names-off, var(--wheel-off, 0.2)) * var(--k, 0)); transition: opacity 150ms var(--dim); }
.side-i.is-on { opacity: 1; }
/* in a work only its own name shows (the film is above the line); on About / Content none, only the × */
body:not([data-mode="list"]) .side-i:not(.is-on) { opacity: 0; }
body[data-mode="info"] .side-names, body[data-mode="content"] .side-names, body[data-mode="legal"] .side-names { opacity: 0; transition: opacity 400ms var(--fade); }
.side-names { transition: opacity 400ms var(--fade); }
.side.is-dim .side-face { opacity: 0.2; transition: opacity 444ms cubic-bezier(0.43, 0, 0, 1.01); }
.side.is-dim .side-plus, .side.is-dim .side-names { opacity: 0.7; }
body[data-names="wheel"] .plate.is-copy { display: none; }   /* not endless: only the middle copy, first work to last */

/* interactive works (embeds): the live page inside the film, on top of its clip */
.film-embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #fff; opacity: 0; pointer-events: none; transition: opacity 300ms var(--fade); }
body.is-embed .film-embed { opacity: 1; pointer-events: auto; }
body.is-embed .half { display: none; }          /* the page takes its own taps and scrolls */

/* sound (Kai, 2026-11-09): its own button in the window's top-right corner; waves when on, crossed when off */
.win-title { flex: 1 1 auto; min-width: 0; }
.win-sound { margin-left: auto; }
.win-sound .snd-on { display: none; }
.win.is-loud .win-sound .snd-on { display: inline; }
.win.is-loud .win-sound .snd-off { display: none; }
.win.is-loud .win-sound { color: #000; }

/* ---------- round 15 (Kai, 2026-11-09) ---------- */
/* the names wheel fades with the column (300ms out, 400ms in, Parc's page curve), not on its own quick 150ms,
   so on a zoom it reads as part of the strip going and coming back */
body.is-zooming .side-i { transition: opacity 300ms var(--fade); }
body[data-mode="film"]:not(.is-zooming) .side-i { transition: none; }   /* NEXT: the name changes at once */
body[data-mode="list"].is-zooming .side-i { transition-duration: 400ms; }
/* the gap version's next word: under the work's name, one wheel pitch down (1.6125em), same type */
.isl-next {
  position: absolute;
  top: 0;                                         /* script.js puts its baseline on the wheel's second row */
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms var(--fade);          /* the work text's own fade */
}
/* Kai (2026-11-15): NEXT comes and goes exactly with the work's text (it used to wait for the zoom to end) */
body[data-mode="film"]:not([data-zoom="full"]):not(.isl-dynamic):has(#desc.is-on:not(.is-wiped)) .isl-next { opacity: var(--wheel-off, 0.2); }
body.is-grow[data-mode="film"]:not([data-zoom="full"]):not(.isl-dynamic):has(#desc.is-on:not(.is-wiped)) .isl-next { transition: opacity 500ms var(--fade) 450ms; }   /* desktop Grow: the text's delayed fade */
@media (hover: hover) { body[data-mode="film"] .isl-next:hover { opacity: 1; } }
body[data-wsize="small"] .isl-next { font-size: 0.75em; }   /* the wheel's type */
/* a tap on the film goes back to the strip */
.half-prev, .half-next { cursor: zoom-out; }
/* Content: tap = selected, the window scales up with Hugo's spring; no × any more */
.win { transition: opacity 260ms var(--fade), transform var(--spring-d) var(--spring), box-shadow var(--spring-d) var(--fade); }
.win.is-selected { transform: scale(1.06); box-shadow: 0 26px 60px rgba(0, 0, 0, 0.22), 0 8px 18px rgba(0, 0, 0, 0.14); }
.win-close { display: none; }


/* Round 18: one permanent picture surface, independent of the fading strip. */
.film { pointer-events: none; isolation: isolate; will-change: transform; }
body[data-mode="info"] .film:not(.is-thumbnail),
body[data-mode="content"] .film:not(.is-thumbnail),
body[data-mode="legal"] .film:not(.is-thumbnail) { opacity: 0; }

/* Round 19: the live picture participates in native scrolling, just like its neighbours. */
.film.is-thumbnail {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  border-radius: inherit; transform: none; visibility: visible;
  opacity: 1; animation: none;
  transition: none; will-change: auto;
}

/* Content opens on covers; reveal decoded playback only in the selected window. */
.win-img video, .win-img video.is-playing { opacity: 0; transition: none; }
.win.is-selected.is-playing .win-img video { opacity: 1; }
.win-img img { z-index: 1; opacity: 1; transition: opacity 300ms var(--fade); }
.win.is-selected.is-playing .win-img img { opacity: 0; }
.win.is-selected { transform: none; }
/* round 70: the phone desk's cover crossfades on Parc's page fade (400ms), like the desktop pile's hero */
@media (max-width: 864px) {
  .canvas:not(.is-pile) > .win .win-img video { opacity: 1; transition: none; }   /* stays under the cover, both ways */
  .canvas:not(.is-pile) > .win .win-img img { transition: opacity 400ms var(--fade); }
}

/* Leave Work as two matching groups: one strip fade and one names-wheel fade.
   Keep individual names at their strip opacity so they do not also fade on their own. */
body[data-work-view="list"][data-mode="info"] .side-i:not(.is-on),
body[data-work-view="list"][data-mode="content"] .side-i:not(.is-on),
body[data-work-view="list"][data-mode="legal"] .side-i:not(.is-on) {
  opacity: calc(var(--names-off, var(--wheel-off, 0.2)) * var(--k, 0));
  transition: none;
}

/* Round 60: the desktop names wheel = Parc's work-title list (parc.studio about.pGZbJjfN.css,
   .projects-titles-shell .project-title): resting .05, hover .2 (--opacity-20) with transitions off while hovering,
   active 1 (.is-active). Opacity 150ms on --in-out cubic-bezier(.83,0,.17,1) = our 150ms --dim, already the same.
   Phone keeps the Tune's wheel opacity (.2): Parc's hover rule is desktop-only (min-width 769px). */
/* Round 61 (Kai: .05 is too low): resting = the left section wheel's inactive opacity (--wheel-off, .2, with the
   same falloff --k), hover = .5, a clear step that still reads below the current name's 1. Fade unchanged. */
@media (min-width: 865px) {
  body[data-mode="list"] .side-i.is-hover:not(.is-on) { opacity: 0.5; }
  body.is-name-hover .side-i { transition: none; }
  body.is-name-hover { cursor: default; }
}

/* Initial reveal waits for all strip posters and the first video frame. */
.stage { opacity: 0; }
body.is-strip-ready .stage { opacity: 1; }
body:not(.is-strip-ready) .stage, body.is-entering .stage { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .stage { transition-duration: 1ms; } }

/* A visible way back from an open work, alongside tapping the film or wordmark. */
.work-back {
  display: block; position: fixed; z-index: 22;
  top: var(--fy, calc(10px + var(--sat)));
  left: max(6px, calc(var(--fx, 58px) - 52px));
  padding: 0; line-height: 1;
  font-size: var(--isl-ui); letter-spacing: inherit;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 300ms var(--fade), visibility 0s linear 300ms;
}
.work-back::before { content: ''; position: absolute; inset: -14px -6px; }
body[data-wsize="small"] .work-back { font-size: calc(var(--isl-ui) * 0.75); }
body[data-zoom="full"] .work-back {
  top: calc(10px + var(--sat)); left: 10px;
}
body[data-mode="film"] .work-back, body[data-mode="more"] .work-back {
  opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s;
}
body.is-zooming .work-back { pointer-events: none; }

body .work-back.is-closing { opacity: 0; pointer-events: none; }

/* The single work picture must never inherit the thumbnail video fade. */
.film video { transition: none; }

/* Mobile uses the document scrollport, like Parc's Work index. */
@media (max-width: 864px) {
  html.document-scroll, html.document-scroll body {
    height: auto; min-height: 100lvh;
    overflow-x: clip; overflow-y: visible;
    overscroll-behavior: none; overflow-anchor: none;
    scrollbar-width: none;
  }
  html.document-scroll::-webkit-scrollbar { display: none; }
  .document-scroll .stage {
    position: relative; height: auto; min-height: 110lvh;
    overflow: visible; touch-action: auto;
  }
  .document-scroll .list {
    position: relative; top: 0; height: auto;
    overflow: visible; -webkit-overflow-scrolling: auto;
  }
  .document-scroll .col { padding-top: var(--vh, 100vh); }
  .document-scroll .film:not(.is-thumbnail),
  .document-scroll .half, .document-scroll .desc, .document-scroll .page { position: fixed; }
}

/* ---------- Content → Strip (Tune): the content engine's strip-pull, each item a Quick Look window (.win) ----------
   step 70% · width 60% · scale 1 − .15·dist · origin 50% 86% (ParcTxStripPull). Width, position and scale come from
   script.js (winSize + transform); the chrome, radius and shadow are the desk's .win rules. Kept last so it wins. */
.cstrip { position: absolute; left: 0; right: 0; height: var(--cs-h, 500px); display: none; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
body[data-content="strip"] .cstrip { display: block; }
body[data-content="strip"] .canvas { display: none; }
.cstrip.is-dragging, .cstrip.is-dragging .win { cursor: grabbing; }
.cstrip .cs-item { left: 0; top: 0; transform-origin: 50% calc(var(--cs-h, 500px) * 0.86); transition: none; will-change: transform; -webkit-backface-visibility: hidden; backface-visibility: hidden; }   /* its own compositor layer: moving it = transform only */
.cstrip .win-full { display: none; }             /* the desk's ⤢ has no job here (round 56: gone, its space too) */
.cstrip .win-bar { padding-left: var(--inset); } /* so the title starts flush with the video's left edge, like the text below */
.cstrip .win-title { margin-left: 0; }
.cstrip .win-img video { opacity: 1; transition: none; }                         /* always under the cover */
.cstrip .win-img img { z-index: 1; opacity: 1; transition: opacity 400ms var(--fade); }   /* round 56: Parc's page fade, both ways */
.cstrip .win.is-live .win-img img { opacity: 0; }                                /* cover out while the playing video is already underneath */

/* ---------- desktop pass (NOTES round 58) ---------- */
/* Tune → Layout / Gap: script.js moves the column (--col-dx) and opens space after "kai levan." (--name-extra).
   Both are 0 on the phone. */
.col { position: relative; left: var(--col-dx, 0px); }
.isl-name { margin-right: var(--name-extra, 0px); }
/* Plate corners: the phone look, just larger. On the phone the radius is Parc's 2.053vw for every plate size, so
   radius ÷ plate width = 2.053 ÷ the size's vw (XXS 22 · XS 28 · S 34 · M 40 · L 46.15 · XL 56). The desktop plate
   keeps that same ratio for its size, so it is exactly as round as on the phone. The film's end radius is read from
   the plate (filmEndRadius), as on the phone. --plate-r is re-declared on .col so a narrowed column follows. */
@media (min-width: 865px) {
  body[data-plates="xxs"] { --plate-k: 0.09332; }
  body[data-plates="xs"]  { --plate-k: 0.07332; }
  body[data-plates="s"]   { --plate-k: 0.06038; }
  body[data-plates="m"]   { --plate-k: 0.05133; }
  body[data-plates="l"]   { --plate-k: 0.04449; }
  body[data-plates="xl"]  { --plate-k: 0.03666; }
  body, .col { --plate-r: calc(var(--plate-w) * var(--plate-k, 0.04449)); }
}
/* About on desktop (round 58): the two fact arrangements placeInfoDesk() picks per layout */
@media (min-width: 865px) {
  #info .info-bottom.facts-cols .info-rows { display: grid; grid-template-columns: repeat(var(--facts-n, 4), var(--facts-pitch, 200px)); column-gap: 0; row-gap: 14px; }
  #info .info-bottom.facts-cols .row { display: block; padding-right: 15px; }
  #info .info-bottom.facts-cols dt { display: block; margin-bottom: 2px; }
  #info .info-bottom.facts-rows .info-rows { display: grid; grid-template-columns: max-content 1fr; column-gap: 15px; row-gap: 9px; }
  #info .info-bottom.facts-rows .row { display: contents; }
  #info .info-bottom.facts-rows dt { display: block; margin: 0; }
  /* inline: the sentence runs on from "kai levan." along the line, so on desktop the × steps aside (WORK and the
     wordmark still go back); the first line no longer has to stop short of it */
  body[data-about="inline"][data-mode="info"] .isl-plus { opacity: 0; pointer-events: none; }
}

/* ---------- Desktop Open = Grow (round 59) ----------
   The film grows in place towards the left (script.js placeGrow). The text doesn't rise from the bottom of the screen
   (the phone's Parc M3): it appears once the film has grown, a 12px rise + fade, so it reads as placed, not delivered. */
body.is-grow .desc {
  transform: translateY(12px);
  transition: opacity 400ms var(--fade), transform 0s linear 400ms, visibility 0s linear 400ms;
}
body.is-grow .desc.is-on {
  transform: none;
  transition: opacity 500ms var(--fade) 450ms, transform 700ms var(--fade) 450ms, visibility 0s;
}
/* split: the question leaves the column and stands large over "kai levan." (no transform on .desc, so fixed = the screen) */
body.is-grow[data-wtext="split"] .desc, body.is-grow[data-wtext="split"] .desc.is-on { transform: none; }
body.is-grow[data-wtext="split"] .desc-idea {
  position: fixed; left: var(--idea-l); width: var(--idea-w); bottom: var(--idea-b);
  font-size: 27.6px; line-height: 30px; letter-spacing: -0.28px;   /* 2 × Parc's 13.8 body */
}
/* Round 61 right-side variants (script.js placeGrow). rcred: the credits leave the column and sit on the line
   beside the work's name (no transform on .desc, so fixed = the screen). rcols: question large across, then text |
   credits as two sub-columns (gap = Parc's 15px column gap). */
body.is-grow[data-wtext="rcred"] .desc, body.is-grow[data-wtext="rcred"] .desc.is-on { transform: none; }
body.is-grow[data-wtext="rcred"] .desc-credits {
  position: fixed; left: var(--cred-l); top: var(--cred-t); width: var(--cred-w); margin-top: 0;
  align-items: baseline;   /* round 63: label + value share one baseline, the work name's (script.js placeGrow) */
}
body.is-grow[data-wtext="rcols"] .desc { display: grid; grid-template-columns: 1fr 1fr; column-gap: 15px; align-content: start; }
body.is-grow[data-wtext="rcols"] .desc-idea {
  grid-column: 1 / -1; font-size: 27.6px; line-height: 30px; letter-spacing: -0.28px; margin-bottom: 18px;
}
body.is-grow[data-wtext="rcols"] .desc-built { margin-top: 0; }
body.is-grow[data-wtext="rcols"] .desc-credits { margin-top: 0; align-content: start; }
/* ← Back (round 63): beside the film's top-left corner, one word gap left of it, caps on the film's top edge.
   It fades in only once the film has fully grown (is-zooming is cleared at the end of the zoom), and out at the
   start of the zoom-out (.is-closing), as before. */
body.is-grow .work-back {
  bottom: auto; left: auto;
  top: var(--back-t); right: calc(100% - var(--back-r));
}
body.is-zooming .work-back:not(.is-closing) { opacity: 0; visibility: hidden; transition: none; }   /* Kai 2026-11-15: every layout, phone too: Back fades in only once the work is fully open */

/* ---------- Content → Windows on desktop: the loose pile (round 61) ----------
   The video always sits under its cover; the cover crossfades on Parc's page fade (400ms --fade), both ways,
   so the hero fades into playback and the previous hero fades back to its cover over its paused frame. */
.canvas.is-pile > .win .win-img video { opacity: 1; transition: none; }
.canvas.is-pile > .win .win-img img { opacity: 1; transition: opacity 400ms var(--fade); }
.canvas.is-pile > .win.is-selected.is-playing .win-img img { opacity: 0; }

/* ---------- Tracking of the wheels (round 63, Tune → Tracking; phone and desktop separately) ----------
   Tight = today (the inherited --track). Normal / Wide open the section wheel, the names wheel and the work's name
   + NEXT by +.02em / +.05em. "kai levan." (the logo) keeps its own -0.02em. */
body[data-track="normal"] .wheel-i, body[data-track="normal"] .side-i, body[data-track="normal"] .isl-title-in, body[data-track="normal"] .isl-next { letter-spacing: calc(var(--track) + 0.02em); }
body[data-track="wide"] .wheel-i, body[data-track="wide"] .side-i, body[data-track="wide"] .isl-title-in, body[data-track="wide"] .isl-next { letter-spacing: calc(var(--track) + 0.05em); }

/* ---------- 2026-11-13: wheel align + the email on About (Tune → Wheel align / Mail / About mail) ---------- */
body[data-walign="right"] .wheel-i { text-align: right; }
.mail {                                          /* Kai (2026-11-13): About only, plain text (no link), fades in with the page */
  position: fixed; z-index: 25; font-size: var(--body); line-height: var(--body-lh); letter-spacing: var(--body-ls); font-weight: 500;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 400ms var(--fade);
  -webkit-user-select: text; user-select: text;
}
body[data-mode="info"][data-amail="global"] .mail { opacity: 1; pointer-events: auto; }
body[data-mail="tl"] .mail { left: 16px; top: 16px; }
body[data-mail="tr"] .mail { right: 16px; top: 16px; }
body[data-mail="bl"] .mail { left: 16px; top: calc(100svh - 16px); transform: translateY(-100%); }   /* hangs from the top like the legal link */
body[data-mail="br"] .mail { right: 16px; top: calc(100svh - 16px); transform: translateY(-100%); }
@media (max-width: 864px) {                       /* the phone's 10px gutter; the bottom clears the home bar */
  body[data-mail="tl"] .mail { left: 10px; top: calc(10px + env(safe-area-inset-top)); }
  body[data-mail="tr"] .mail { right: 10px; top: calc(10px + env(safe-area-inset-top)); }
  body[data-mail="bl"] .mail { left: 10px; top: calc(100svh - 10px - env(safe-area-inset-bottom)); }
  body[data-mail="br"] .mail { right: 10px; top: calc(100svh - 10px - env(safe-area-inset-bottom)); }
  /* .mail span { display: block; }  one line now (Kai, 2026-11-15): About has the room; was contact.kailevan / @gmail.com */
  body[data-mail="tr"] .mail, body[data-mail="br"] .mail { text-align: right; }
}
.bio-mail { display: none; margin-top: 1em; }
body[data-amail="bio"] .bio-mail { display: block; }
body:is([data-amail="bio"], [data-amail="global"]) #info .row-contact { display: none !important; }
#info .row-contact dd { white-space: nowrap; }   /* the email on one line (Kai, 2026-11-15) */   /* beats each layout's .row display */
/* Kai (2026-11-13): phone About = Split with the mail bottom left. Elsewhere moves under Clients in the right column,
   so the bottom-left corner stays free for the mail. Offer holds the left column; Contact (when shown) goes under it. */
@media (max-width: 864px) {
  body[data-about="split"] #info .info-rows { align-items: start; }
  body[data-about="split"] #info .row-offer { grid-column: 1; grid-row: 1 / span 2; }
  body[data-about="split"] #info .row-clients { grid-column: 2; grid-row: 1; }
  body[data-about="split"] #info .row-elsewhere { grid-column: 2; grid-row: 2; }
  body[data-about="split"] #info .row-contact { grid-column: 1; grid-row: 3; }
}
/* Tune → Mail type (2026-11-13): Caps = the wheel's bold caps (size + tracking copied from the wheel by script.js) */
body[data-mtype="caps"] .mail { font-weight: 700; text-transform: uppercase; }
/* Tune → Inline facts (phone, About = Inline). Stack / Top: Offer left, Clients + Elsewhere right. Rows: label | value. */
@media (max-width: 864px) {
  body[data-about="inline"]:is([data-ifacts="stack"], [data-ifacts="top"]) #info .info-rows { align-items: start; }
  body[data-about="inline"]:is([data-ifacts="stack"], [data-ifacts="top"]) #info .row-offer { grid-column: 1; grid-row: 1 / span 2; }
  body[data-about="inline"]:is([data-ifacts="stack"], [data-ifacts="top"]) #info .row-clients { grid-column: 2; grid-row: 1; }
  body[data-about="inline"]:is([data-ifacts="stack"], [data-ifacts="top"]) #info .row-elsewhere { grid-column: 2; grid-row: 2; }
  body[data-about="inline"]:is([data-ifacts="stack"], [data-ifacts="top"]) #info .row-contact { grid-column: 1; grid-row: 3; }
  body[data-about="inline"][data-ifacts="rows"] #info .info-rows { grid-template-columns: var(--ival, 85px) 1fr; column-gap: 0; row-gap: 9px; align-items: baseline; }
  body[data-about="inline"][data-ifacts="rows"] #info .row { display: contents; }
  body[data-about="inline"][data-ifacts="rows"] #info dt { margin-bottom: 0; }
}

/* ---------- 2026-11-15: legal notice link (Tune → Legal = corner, Legal on = which screens) ---------- */
.legal-link {
  position: fixed; z-index: 25; --lx: 16px; --ly: 16px;
  font-size: var(--body); line-height: var(--body-lh); letter-spacing: var(--body-ls); font-weight: 500;
  color: inherit; text-decoration: none; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 400ms var(--fade);
}
@media (max-width: 864px) { .legal-link { --lx: 10px; --ly: 10px; } }
/* the corner: BL/BR/TL/TR, or Opposite = mirrored from the mail's corner */
/* bottom corners hang from the top of the SMALL viewport (100svh = Safari with its toolbar showing), never from the
   bottom: a bottom-anchored fixed element rides up and down as the toolbar collapses while the works scroll (Kai, 2026-11-15) */
body:is([data-lpos="bl"], [data-lpos="opp"][data-mail="br"]) .legal-link { left: var(--lx); top: calc(100svh - var(--ly) - env(safe-area-inset-bottom)); transform: translateY(-100%); }
body:is([data-lpos="br"], [data-lpos="opp"][data-mail="bl"]) .legal-link { right: var(--lx); top: calc(100svh - var(--ly) - env(safe-area-inset-bottom)); transform: translateY(-100%); }
body:is([data-lpos="tl"], [data-lpos="opp"][data-mail="tr"]) .legal-link { left: var(--lx); top: calc(var(--ly) + env(safe-area-inset-top)); }
body:is([data-lpos="tr"], [data-lpos="opp"][data-mail="tl"]) .legal-link { right: var(--lx); top: calc(var(--ly) + env(safe-area-inset-top)); }
/* French law wants it "easy, direct and permanent": All pages = faint on Work list, Content and About (hidden only in a film) */
body[data-lshow="all"]:is([data-mode="info"], [data-mode="list"], [data-mode="content"]) .legal-link,
body[data-lshow="about"][data-mode="info"] .legal-link { opacity: 0.4; pointer-events: auto; }
body[data-lshow="all"]:is([data-mode="info"], [data-mode="list"], [data-mode="content"]) .legal-link:hover,
body[data-lshow="about"][data-mode="info"] .legal-link:hover { opacity: 1; }


/* ---------- 2026-11-15: Legal notice as its own page (text from legal/index.html, Tune → Legal page) ---------- */
.legal-pane { position: absolute; left: 0; right: 0; top: 0; bottom: 0; overflow: visible; }
.legal-down { display: none; }
.legal.is-scroll .legal-pane { overflow: hidden; bottom: auto; pointer-events: none; }   /* windows, clipped at the band */
.legal.is-scroll .legal-down { display: block; }
.legal-flow { position: relative; will-change: transform; }
.legal-scroller { display: none; }
.legal.is-scroll .legal-scroller {                  /* invisible: it only gives the page its native (momentum) scroll */
  display: block; position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.legal-spacer { width: 1px; }
.legal-scroll { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.legal-scroller::-webkit-scrollbar, .legal-scroll::-webkit-scrollbar { display: none; }
.legal-title { margin: 0 0 18px; font-size: var(--body); line-height: var(--body-lh); letter-spacing: var(--body-ls); font-weight: 500; }
.legal .legal-rows { margin: 0; row-gap: 10px; grid-template-columns: 14em 1fr; }   /* one label column for every block */
.legal-low .legal-b + .legal-b { margin-top: 10px; }
.legal .legal-rows dd { margin: 0; }
.legal .legal-rows p { margin: 0; text-wrap: pretty; }
.legal .legal-rows p + p { margin-top: 0.6em; }
.legal .en { opacity: 0.4; }
.legal:is([data-lay="top"], [data-lay="stair"]) .legal-rows { grid-template-columns: 1fr; row-gap: 2px; }   /* narrow columns: label over value */
.legal:is([data-lay="top"], [data-lay="stair"]) .legal-rows dd + dt { margin-top: 10px; }
@media (max-width: 864px) {
  .legal .legal-rows { grid-template-columns: 1fr; row-gap: 2px; }
  .legal .legal-rows dd + dt { margin-top: 10px; }
  /* Legal uses the same mode change, duration and easing as the strip/page fade.
     Keep the logo paintable until fade-out ends; reveal it before fade-in starts. */
  .isl-name { opacity: 1; visibility: visible; transition: opacity 400ms var(--fade), visibility 0s; }
  body[data-mode="legal"] .isl-name {
    opacity: 0; visibility: hidden;
    transition: opacity 400ms var(--fade), visibility 0s 400ms;
  }
  body[data-mode="legal"] .isl-title,
  body[data-mode="legal"] .isl-plus,
  body[data-mode="legal"] .isl-surface,
  body[data-mode="legal"] .isl-face { visibility: hidden; }
  body[data-mode="legal"] .tune-toggle { display: none; }
  .legal.is-column .legal-up {
    left: var(--legal-column-left, 80px); right: 10px;
    top: calc(10px + env(safe-area-inset-top)); bottom: auto;
    height: calc(100svh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    overflow-x: hidden; overflow-y: auto; touch-action: pan-y;
  }
  .legal.is-column .legal-down, .legal.is-column .legal-scroller { display: none !important; }
  .legal.is-column .legal-flow { transform: none !important; will-change: auto; padding-bottom: 16px; overflow-wrap: anywhere; }
  .legal.is-column .legal-low { margin-top: 30px; }
}
/* (Kai, 2026-11-15) Legal page only (works keep the wheel + the top Back): Back in the wheel's place. The wheel's words fade out where
   they stand (no turn) with the screen you leave; Back fades in with the work (once fully open) or the legal text */
.isl-wheel .wheel { transition: opacity 400ms var(--fade); }
body.wheel-off .isl-wheel .wheel { opacity: 0; }
.isl-part > .isl-back {                           /* sits exactly where the current wheel word sits: same size, same baseline fix */
  position: absolute; right: 2px; top: 50%; height: 1em; margin-top: -0.5em; transform: translateY(var(--fix, 0.03em));
  line-height: 1; white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 400ms var(--fade);
}
body.back-in.wheel-off .isl-back { opacity: 1; }   /* only where the wheel has stepped out (Legal, Work back = Wheel) */
body[data-wsize="small"] .isl-back { font-size: 0.75em; right: 4px; }
body.wheel-off .isl-wheel, body.wheel-off .isl-wheel * { cursor: pointer !important; }
.legal:is([data-lay="top"], [data-lay="stair"]) .legal-low .legal-b + .legal-b { margin-top: 0; }   /* own column: no stack gap */

/* Tune → Facts type = Caps: the About facts' values in the island's voice, on every layout (Kai, 2026-11-15) */
body[data-ftype="caps"] #info .info-rows dd { font-size: var(--lab); letter-spacing: var(--lab-ls); font-weight: 700; text-transform: uppercase; }
body[data-ftype="caps"] #info .info-rows dd a { border-bottom: 0; }

/* desktop (Kai, 2026-11-15): "Legal notice" can be there at any time, inside a work too. Phone: hidden while a film is open */
@media (min-width: 865px) {
  body[data-lshow="all"]:is([data-mode="film"], [data-mode="more"]) .legal-link { opacity: 0.4; pointer-events: auto; }
  body[data-lshow="all"]:is([data-mode="film"], [data-mode="more"]) .legal-link:hover { opacity: 1; }
}

/* Tune → Work back = Wheel: no Back at the top, it's in the wheel's place instead */
body:is([data-wback="wheel"], [data-wback="text"]) .work-back { display: none !important; }
/* Work back = Text (Kai, 2026-11-15): Back sits just above the work's title line, flush left with the text */
.desc-back { display: none; }
body[data-wback="text"] .desc-back {
  display: block; padding: 0; margin: 0 0 1em; line-height: 1; font-size: var(--isl-ui); letter-spacing: inherit; text-align: left;
  opacity: 0; transition: opacity 400ms var(--fade); pointer-events: none;
}
body[data-wsize="small"][data-wback="text"] .desc-back { font-size: calc(var(--isl-ui) * 0.75); }
body[data-wback="text"].back-in .desc-back { opacity: 1; pointer-events: auto; }

/* Work back = Line (desktop, Kai 2026-11-15): on the line, level with "kai levan.", flush right against the film */
@media (min-width: 865px) {
  body[data-wback="line"] .work-back, body.is-grow[data-wback="line"] .work-back {
    top: var(--wbl-t, 50%); bottom: auto; left: auto; right: var(--wbl-r, 50%); transform: translateY(-50%);
  }
}

/* ---------- phone: an open work scrolls as one page (Tune → Work scroll = Page) ---------- */
.film-scroller { display: none; }
body.film-page .film-scroller {
  display: block; position: fixed; inset: 0; z-index: 19; overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; touch-action: pan-y;
}
body.film-page.is-zooming .film-scroller { pointer-events: none; }
.film-scroller::-webkit-scrollbar { display: none; }
.film-spacer { width: 1px; }
.film-up { position: fixed; left: 0; right: 0; top: 0; overflow: hidden; pointer-events: none; z-index: 3; display: none; }
body.film-page .film-up { display: block; }
body.film-page #desc { overflow: hidden !important; max-height: none !important; }
body.film-page #desc > *, .desc-clone > * { translate: 0 var(--ds, 0px); }
.desc-clone { pointer-events: none !important; overflow: visible !important; }   /* only the upper window clips it */
.document-scroll .desc-clone { position: absolute !important; }   /* inside the clipped upper window, not fixed to the screen */
#film.is-unscrolling { transition: translate 400ms var(--fade); }

/* ---------- 2026-11-15: fade timing, all the type of a work arriving together (Kai) ----------
   The island's idle rule (.isl-row > .isl-part > :not(.isl-face), 444ms glide) was beating the Back and the wheel's
   own fades: they now use the page fade, like the text they belong with. */
.isl-row > .isl-part > .isl-back, .isl-row > .isl-part > .wheel { transition: opacity 400ms var(--fade); }
/* In a work, every Back (top, wheel, text, line) and NEXT arrive with the work's text:
   phone (and desktop Open = Phone): after the text has risen in from the bottom (its 200ms + 800ms rise), then fade;
   desktop Open = Grow: the text's own 450ms-delayed 500ms fade. Leaving uses their plain fades (no delay). */
body[data-mode="film"]:has(#desc.is-on:not(.is-wiped)) .work-back:not(.is-closing) {
  opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 400ms var(--fade) 1000ms, visibility 0s;
}
body[data-mode="film"]:not([data-zoom="full"]):not(.isl-dynamic):has(#desc.is-on:not(.is-wiped)) .isl-next { transition: opacity 400ms var(--fade) 1000ms; }
body[data-mode="film"].back-in.wheel-off .isl-row > .isl-part > .isl-back { transition: opacity 400ms var(--fade) 1000ms; }
body[data-mode="film"][data-wback="text"].back-in .desc-back { transition: opacity 400ms var(--fade) 1000ms; }
body.is-grow[data-mode="film"]:has(#desc.is-on:not(.is-wiped)) .work-back:not(.is-closing),
body.is-grow[data-mode="film"]:not([data-zoom="full"]):not(.isl-dynamic):has(#desc.is-on:not(.is-wiped)) .isl-next,
body.is-grow[data-mode="film"].back-in.wheel-off .isl-row > .isl-part > .isl-back { transition: opacity 500ms var(--fade) 450ms, visibility 0s; }
body.is-grow[data-mode="film"][data-wback="text"].back-in .desc-back { transition: none; }   /* it's inside the text: the text's own fade carries it */
/* the wheel: a bigger target for the thumb on the phone */
@media (max-width: 864px) { .isl-wheel::after { content: ''; position: absolute; top: -26px; bottom: -26px; left: -14px; right: 0; } }

.plate-in .frozen-frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }   /* the held frame while a plate fades out */

/* Kai (2026-11-15: desktop zoom + scroll laggy, iPhone smooth): a backdrop-filter is a full backdrop pass every frame in
   Chrome even at blur(0px), over the playing film and the scrolling strip. Only Frost actually blurs: the others get none. */
body:not([data-colour="frost"]) :is(.isl-surface, .isl-face, .side-face, .isl-more) { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* desktop step (Kai, 2026-11-15): the work fades out, then the next one fades in, slower than before */
#film.is-leaving, #desc.is-leaving, body.is-grow #desc.is-on.is-leaving { opacity: 0 !important; transition: opacity 380ms var(--fade) !important; }
body[data-device="desktop"] #film.is-swapping, body[data-device="desktop"] #desc.is-swapping { animation-duration: 600ms; }

/* ---------- phone: the page of all works ---------- */
body.film-page #desc > :not(.feed-layer) { display: none !important; }   /* the text lives in the feed blocks now */
body.film-page #desc > .feed-layer { translate: none; }
.feed-layer { position: absolute; left: 0; top: 0; width: 100%; will-change: transform; }
.feed-block { position: absolute; left: 0; display: flex; flex-direction: column; }
.feed-high, .document-scroll .feed-high { position: absolute !important; top: 0; overflow: visible !important; pointer-events: none !important; padding: 0 !important; transition: none !important; animation: none !important; }
.feed-films { position: fixed; inset: 0; z-index: 1; pointer-events: none; display: none; overflow: hidden; }
body.film-page .feed-films { display: block; }
.feed-poster { position: absolute; top: 0; object-fit: cover; border-radius: var(--plate-r); will-change: transform; }

#film.is-arriving, #desc.is-arriving, body.is-grow #desc.is-on.is-arriving { transition: opacity 600ms var(--fade) !important; animation: none !important; }

/* the film made big: the text and the other films step out, the island (name + Close) stays */
body.film-max #desc, body.film-max .film-up, body.film-max .feed-films, body.film-max .isl-next, body.film-max .side,
body.film-max .legal-link { opacity: 0 !important; pointer-events: none !important; transition: opacity 300ms var(--fade) !important; }
body.film-max .film-scroller { pointer-events: none !important; }
body.film-max #film { z-index: 18; }

/* Tune → Left wheel / Right wheel = flush to the margins: the words align to that edge */
body[data-lflush="edge"] .wheel-i { text-align: left; }
body[data-lflush="edge"] .isl-row > .isl-part > .isl-back { right: auto; left: 12px; }
body[data-rflush="edge"] .side-i { text-align: right; }

/* Tune → Text & name (phone page) */
body.film-page .feed-layer { transition: opacity 250ms var(--fade); }
body.film-page[data-ltext="dim"] .feed-layer { opacity: 0.55; }
body.film-page[data-ltext="scroll"].feed-moving .feed-layer { opacity: 0.3; }

/* desktop Work scroll = Strip */
.dstrip { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 300ms var(--fade); }
body.dstrip-on .dstrip { opacity: 1; }
.dstrip-poster { position: absolute; object-fit: cover; border-radius: var(--plate-r); will-change: transform; }
body.dstrip-on .isl-next { opacity: 0 !important; }

/* the last work: NEXT steps out */
body.at-last .isl-next { opacity: 0 !important; pointer-events: none; transition: opacity 300ms var(--fade) !important; }

/* Tune in sections (2026-11-16) */
.tune-group { margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.tune-group[hidden] { display: none; }
.tune-gh {
  display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 8px 0 2px; margin: 0;
  background: none; border: 0; color: inherit; font: inherit; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  opacity: 0.75; cursor: pointer; text-align: left;
}
.tune-gh::after { content: '+'; font-size: 13px; letter-spacing: 0; }
.tune-group.is-open .tune-gh { opacity: 1; }
.tune-group.is-open .tune-gh::after { content: '−'; }
.tune-gb { display: none; padding-bottom: 6px; }
.tune-group.is-open .tune-gb { display: block; }

/* ---------- 2026-11-16: the work's text, a Swiss scale (Kai) ----------
   The question is the headline (large, may run to two lines), the body a step smaller than before, the credits'
   values in caps like their labels (the About facts' caps). Ratio ≈ 1.85 between question and body. */
.desc .desc-idea { font-size: 24px; line-height: 1.08; letter-spacing: -0.015em; font-weight: 500; text-wrap: balance; }
.desc .desc-built { font-size: 13px; line-height: 17px; letter-spacing: 0.15px; }
.desc .desc-credits dd { font-size: var(--lab, 10px); letter-spacing: var(--lab-ls, 0.25px); font-weight: 700; text-transform: uppercase; line-height: var(--body-lh, 16px); }
@media (min-width: 865px) { .desc .desc-built { line-height: 16.5px; } }
/* "kai levan." keeps its size whatever the island size (S / M / L change only the wheels and the island) */
.isl-name .isl-t { font-size: 13px; }
@media (max-width: 864px) { .isl-name .isl-t { font-size: 14px; } }

/* the phone page scrolls the document now: the old overlay scroller is never shown; the spacer gives the length */
.film-scroller, body.film-page .film-scroller { display: none !important; }
.feed-spacer { position: absolute; left: 0; top: 0; width: 1px; pointer-events: none; visibility: hidden; }
/* Name gap: Auto = wider at island size L · Wide = wider always */
body[data-size="l"][data-ngap="auto"]:not([data-wheel="off"]) .isl-name { padding-left: 16px; }
body[data-ngap="wide"]:not([data-wheel="off"]) .isl-name { padding-left: 18px; }
body[data-size="l"][data-ngap="wide"]:not([data-wheel="off"]) .isl-name { padding-left: 24px; }

/* ---------- phone · One work as a real page (doc-page) ---------- */
html.document-scroll #film.film-doc { position: absolute !important; }
html.document-scroll #desc.desc-doc { position: absolute !important; overflow: visible !important; }
body.doc-page #desc { overflow: visible !important; max-height: none !important; }
body.doc-page #film { z-index: 4; }
.doc-fade { position: fixed; inset: 0; z-index: 3; pointer-events: none; display: none; }
body.doc-page:is([data-ltext="near"], [data-ltext="dim"], [data-ltext="scroll"]) .doc-fade { display: block; }
body.doc-page[data-ltext="dim"] #desc > * { opacity: 0.55; }
body.doc-page #desc > * { transition: opacity 250ms var(--fade); }
body.doc-page[data-ltext="scroll"].feed-moving #desc > * { opacity: 0.3; }
body.doc-page .half { pointer-events: none !important; }

/* "kai.": the short name gets more air from the wheel (Kai: CONTENT read as part of it) */
body[data-ntext="short"]:not([data-wheel="off"]) .isl-name { padding-left: 20px; }
body[data-ntext="short"][data-size="l"]:not([data-wheel="off"]) .isl-name { padding-left: 28px; }
body[data-ntext="short"][data-ngap="wide"]:not([data-wheel="off"]) .isl-name { padding-left: 30px; }
/* Zoom = Stack: the text fades in where it stands (no rise from below); Close and NEXT follow once it's in */
body[data-zoom="stack"] .desc, body[data-zoom="stack"] .desc.is-on { transform: none !important; }
body[data-zoom="stack"] .desc { transition: opacity 400ms var(--fade), visibility 0s linear 400ms !important; }
body[data-zoom="stack"] .desc.is-on { transition: opacity 500ms var(--fade) 150ms, visibility 0s !important; }
body[data-zoom="stack"][data-mode="film"]:has(#desc.is-on:not(.is-wiped)) .work-back:not(.is-closing),
body[data-zoom="stack"][data-mode="film"]:not(.isl-dynamic):has(#desc.is-on:not(.is-wiped)) .isl-next,
body[data-zoom="stack"][data-mode="film"].back-in.wheel-off .isl-row > .isl-part > .isl-back { transition: opacity 400ms var(--fade) 550ms, visibility 0s; }

/* Zoom = Sheet: the film above the text (it slides over it), the island above the film; the text fades in in place */
body.sheet-page #film, body[data-zoom="sheet"][data-mode="film"] #film { z-index: 4; }
body[data-zoom="sheet"] .desc, body[data-zoom="sheet"] .desc.is-on { transform: none !important; }
body[data-zoom="sheet"] .desc { transition: opacity 400ms var(--fade), visibility 0s linear 400ms !important; }
body[data-zoom="sheet"] .desc.is-on { transition: opacity 500ms var(--fade) 150ms, visibility 0s !important; }
body[data-zoom="sheet"][data-mode="film"]:has(#desc.is-on:not(.is-wiped)) .work-back:not(.is-closing),
body[data-zoom="sheet"][data-mode="film"]:not(.isl-dynamic):has(#desc.is-on:not(.is-wiped)) .isl-next,
body[data-zoom="sheet"][data-mode="film"].back-in.wheel-off .isl-row > .isl-part > .isl-back { transition: opacity 400ms var(--fade) 550ms, visibility 0s; }
body.sheet-page .half { pointer-events: none !important; }

/* ---------- phone · Zoom = Page: the work is the document ---------- */
/* the strip leaves the document's length but stays measurable (display:none made its plates 0px wide, so any
   relayout while a work was open moved the island; closing then moved it back: Kai saw the name and wheel shift) */
body.work-doc .list { height: 0 !important; overflow: hidden !important; visibility: hidden !important; }
html.document-scroll body.work-doc #film { position: absolute !important; z-index: 4; }
html.document-scroll body.work-doc #desc { position: absolute !important; overflow: visible !important; max-height: none !important; }
body.work-doc .half { pointer-events: none !important; }
body[data-zoom="page"] .desc, body[data-zoom="page"] .desc.is-on { transform: none !important; }
body[data-zoom="page"] .desc { transition: opacity 400ms var(--fade), visibility 0s linear 400ms !important; }
body[data-zoom="page"] .desc.is-on { transition: opacity 500ms var(--fade) 150ms, visibility 0s !important; }
body[data-zoom="page"][data-mode="film"]:has(#desc.is-on:not(.is-wiped)) .work-back:not(.is-closing),
body[data-zoom="page"][data-mode="film"]:not(.isl-dynamic):has(#desc.is-on:not(.is-wiped)) .isl-next,
body[data-zoom="page"][data-mode="film"].back-in.wheel-off .isl-row > .isl-part > .isl-back { transition: opacity 400ms var(--fade) 550ms, visibility 0s; }

/* ---------- Page: all the works as one document ---------- */
.pf { position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 500ms var(--fade); }
.pf.pf-in { opacity: 1; }
.pf.pf-now { transition: none; }
.pf .pf-text, html.document-scroll .pf .pf-text {
  position: absolute !important; transform: none !important; opacity: 1 !important; visibility: visible !important;
  overflow: visible !important; max-height: none !important; animation: none !important; transition: none !important; pointer-events: auto;
}
.pf-poster { position: absolute; object-fit: cover; }
body.work-doc #desc { display: none !important; }      /* the page's own blocks carry every work's text */
body[data-zoom="page"][data-mode="film"]:has(#desc.is-on:not(.is-wiped)) .work-back:not(.is-closing),
body[data-zoom="page"][data-mode="film"]:not(.isl-dynamic):has(#desc.is-on:not(.is-wiped)) .isl-next,
body[data-zoom="page"][data-mode="film"].back-in.wheel-off .isl-row > .isl-part > .isl-back { transition: opacity 500ms var(--fade) 0ms, visibility 0s; }   /* Close and NEXT with the text */

/* Page scroll = Film only: the text block is fixed, only the film (in the document) scrolls over it */
.pf.pf-fixed { position: fixed !important; top: 0 !important; }
/* the work's document is exactly its own length (the strip's 110lvh stage would add scroll past the lock) */
html.document-scroll body.work-doc .stage { min-height: 0 !important; }

html.document-scroll body.work-doc.pf-film .stage { overflow: hidden !important; }

/* Kai (2026-11-16): the lists already own their moving layers. Promoting their small,
   overflow-visible fixed wrapper too adds a nested 3D/backface surface around the
   sliding and fading names. Keep the phone wrapper flat, as in the known-good wheel;
   ?fx=before restores that extra surface for an otherwise identical iPhone A/B. */
.island { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
@media (min-width: 865px) {
  .side { -webkit-backface-visibility: hidden; backface-visibility: hidden; transform: translateZ(0); }
}
body.wheel-layer-before .side { -webkit-backface-visibility: hidden; backface-visibility: hidden; transform: translateZ(0); }
/* …and while the page loads, the name never slides: if the screen is measured again (Safari's bar, the strip coming
   in), it simply is in its place. Its slides (Enter, widths) start once the strip has arrived */
body:not(.is-settled) .island, body:not(.is-settled) .isl-title { transition: opacity 500ms var(--fade) !important; }

/* Tune → Name side = Name · wheel (Kai, 2026-11-16): "kai levan." outside, the wheel next to the strip */
body[data-lorder="nw"] .isl-name { order: 0; }
body[data-lorder="nw"] .isl-wheel { order: 1; }
body[data-lorder="nw"] .isl-title { order: 2; }
body[data-lorder="nw"] .isl-plus { order: 3; }
/* phone page · Page layout = Question: the rest of the text (under the film) fades in once the film has risen */
.pf .pf-rest { opacity: 0; transition: opacity 500ms var(--fade); }
.pf.pf-rest-in .pf-rest { opacity: 1; }
.pf .pf-rest > .desc-built:first-child { margin-top: 0; }


/* ---------- the names wheel in two layers (Kai, 2026-11-16: the flicker) ----------
   .side-lit = the current name at 1; .side-dim = the other names at the strip's dim.
   While the names glide to the opened work, the dim group stays; it fades once they land.
   Mobile positioning below also avoids the transformed-text dropout seen in the recording. */
.side-dim { display: block; will-change: opacity; transition: opacity 300ms var(--fade); }
.side-lit { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; }
.side-dim .side-i.is-on { opacity: 0; }                                   /* the lit layer shows it */
.side-lit .side-i { opacity: 0; }
.side-lit .side-i.is-on { opacity: 1; }
body:not([data-mode="list"]) .side-dim .side-i:not(.is-on) { opacity: calc(var(--names-off, var(--wheel-off, 0.2)) * var(--k, 0)); }   /* no per-name fade… */
body:not([data-mode="list"]) .side-dim { opacity: 0; }                                                                                  /* …the layer fades */
body.side-gliding .side-dim { opacity: 1; }
body[data-mode="list"].is-zooming .side-dim { transition-duration: 400ms; }

/* Kai (2026-11-16): Safari's toolbar must not size or re-anchor individual pieces
   of the navigation. One persistent, bounded surface uses the measured large
   viewport (--vh from 100lvh), never bottom/inset:0 or the visual viewport height.
   Its children are ordinary absolute boxes, not independently fixed surfaces.
   Paint containment bounds the long wheel lists to this screen-sized surface. */
.navigation-plane { display: contents; }
@media (max-width: 864px) {
  .navigation-plane {
    display: block; position: fixed; z-index: 20; top: 0; left: 0;
    width: 100%; height: var(--vh, 100lvh);
    contain: layout paint; isolation: isolate; transform: translateZ(0);
    pointer-events: none;
  }
  .navigation-plane > .island, .navigation-plane > .side { position: absolute; }
  .tune-toggle, .tune { top: calc(var(--vh, 100lvh) / 2); }
  .tune { max-height: calc(100svh - 20px); }
}

/* Kai (2026-11-16): screen recording, 1.02s: the whole names wheel drops out
   as Safari reveals its toolbar. Keep mobile text out of translated compositor
   layers, including the baseline offset. Same distance, 400ms and easing; the
   transition completion code waits for top on phones and transform on desktop. */
@media (max-width: 864px) {
  .side-names { transform: none; top: var(--fix, 0.03em); }
  .side-list { position: relative; top: var(--side-y, 0px); transform: none; will-change: auto; }
  .side-lit { position: absolute; }
  .side-list.is-glide { transition: top 400ms var(--fade); }
  .side-dim { will-change: auto; }
}

/* Kai (2026-11-16): opening a work from another tile, the left side (Work / Content / About and Legal notice) waits
   for the names wheel: it stays while the names glide (body.side-gliding, set by zoomIn until the glide has landed),
   then fades out exactly with the wheel's other names, 300ms on the same curve. The right wheel itself is unchanged. */
body.side-gliding.wheel-off .isl-row > .isl-part > .wheel { opacity: 1; }
body[data-lshow="all"].side-gliding .legal-link { opacity: 0.4; pointer-events: none; }
body[data-mode="film"] .isl-row > .isl-part > .wheel,
body[data-mode="film"] .legal-link { transition: opacity 300ms var(--fade); }
