/* ──────────────────────────────────────────────────────────────
   Leeann Sheely — portfolio
   Default: a faint pill dock with one 3D object per chapter. Hover
   raises a big version behind the pill. Open: the pill shrinks
   around the object and floats up to become the nav; the big object
   becomes the page header. Also: List and Catalog. No page scroll.
   ────────────────────────────────────────────────────────────── */
:root {
  --bg: #ececea; --ink: #0b0b0b; --mute: rgba(11,11,11,.5); --line: rgba(11,11,11,.12); --paper: #f6f6f4; --on: #fff;
  --g: clamp(16px, 2.4vw, 32px);
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --head: var(--serif); --head-ls: -0.015em; --head-k: 1;   /* headline face; the Aa toggle swaps it */
  --display: 'Inter Tight', 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}
* { box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
html { background: var(--bg); color: var(--ink); transition: background-color .9s ease, color .7s ease; }
body { margin: 0; background: transparent; font: 400 15px/1.5 var(--sans); letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, video { display: block; max-width: 100%; }
p { margin: 0 0 .9em; }
.serif { font-family: var(--display); font-style: normal; font-weight: 400; letter-spacing: -0.03em; }
em { font-style: normal; }
.ext { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ── canvases ──────────────────────────────────────────────── */
#back { position: fixed; inset: 0; width: 100%; height: 100%;   /* the visible viewport, exactly what the renderer draws (100vh is taller on iOS and stretched the 3D) */ z-index: 0; pointer-events: none; display: block; }
#front { position: fixed; inset: 0; width: 100%; height: 100%;   /* the visible viewport, exactly what the renderer draws (100vh is taller on iOS and stretched the 3D) */ z-index: 31; pointer-events: none; display: block; }
#front { filter: drop-shadow(0 2px 2.5px rgba(0,0,0,.16)); }
html[data-theme="dark"] #front { filter: drop-shadow(0 2px 3px rgba(0,0,0,.55)); }
#back.no-gl { background: radial-gradient(22vmin 22vmin at 50% 50%, rgba(255,255,255,.75), rgba(255,255,255,0) 70%); }

/* ── mouse follower ────────────────────────────────────────── */
.cursor { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; display: none; mix-blend-mode: difference; }
.has-cursor .cursor { display: block; }
.cursor__dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; }
.cursor__ring { position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 999px; border: 1px solid rgba(255,255,255,.9); display: grid; place-items: center; will-change: transform; }
.cursor__label { font-size: 10px; letter-spacing: .02em; color: #fff; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-label .cursor__label { opacity: 1; }

/* ── top bar ───────────────────────────────────────────────── */
.top { position: fixed; left: 0; right: 0; top: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; padding: 18px var(--g); pointer-events: none; }
.top > * { pointer-events: auto; }
.chip {
  appearance: none; cursor: pointer; padding: 8px 15px; border-radius: 999px; font-size: 13px; letter-spacing: -0.01em;
  border: 1px solid rgba(11,11,11,.1); background: rgba(250,250,248,.55); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  transition: background .3s, color .3s;
}
 .chip[aria-expanded="true"] { background: var(--ink); color: var(--on); }
@media (hover: hover) { .chip:hover { background: var(--ink); color: var(--on); } }
.logo { position: absolute; left: 50%; top: 19px; transform: translateX(-50%); display: grid; justify-items: center; padding: 2px 6px; text-align: center; white-space: nowrap;
  font-size: 12.5px; line-height: 1.38; letter-spacing: -0.005em; color: var(--mute); transition: opacity .4s, transform .6s var(--ease-spring); }
.logo b { font-weight: 500; color: var(--ink); }
/* third line: a little slot machine (see main.js) */
.logo__swap { display: block; overflow: hidden; height: 1.38em; }
.logo__role { display: inline-block; }
@media (hover: hover) { .logo:hover { transform: translateX(-50%) translateY(-1px); } }
@media (max-width: 520px) { .logo { font-size: 11.5px; top: 68px; } }
body:not([data-chapter=""]) .logo, body[data-view="catalog"] .logo { opacity: 0; pointer-events: none; }

/* ── dock (the timeline) ───────────────────────────────────── */
.dock { position: fixed; left: 0; top: 0; z-index: 30; height: 84px; width: 10px; will-change: transform, width; }
.dock__glass {
  position: absolute; inset: 0; border-radius: 44px;
  transition: border-radius .55s var(--ease-out);
  background: rgba(250,250,248,.38); border: 1px solid rgba(11,11,11,.07);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.7);
}
.dock__b { position: absolute; top: 0; left: 0; width: 72px; height: 84px; appearance: none; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 999px; }
.dock__x {
  position: absolute; right: 9px; top: 50%; width: 32px; height: 32px; margin-top: -16px; z-index: 2;
  appearance: none; border: 0; border-radius: 9px; background: rgba(11,11,11,.06); color: var(--ink); cursor: pointer;
  display: grid; place-items: center; opacity: 0; transform: scale(.6); pointer-events: none;
  transition: opacity .3s, transform .5s var(--ease-spring), background .25s;
}
@media (hover: hover) { .dock__x:hover { background: var(--ink); color: var(--on); } }
body[data-view="default"]:not([data-chapter=""]) .dock__x { opacity: 1; transform: none; pointer-events: auto; transition-delay: .15s; }
body[data-view="default"]:not([data-chapter=""]) .dock__glass { border-radius: 16px; }
.dock__on { position: absolute; left: 0; top: 0; width: 14px; height: 1.5px; border-radius: 1px; background: var(--ink); opacity: 0; transition: opacity .3s; pointer-events: none; }
.dock__div { position: absolute; top: 22%; bottom: 22%; left: 0; width: 1px; background: rgba(11,11,11,.14); transition: opacity .3s; }
.dock__b:focus-visible { outline: 1.5px solid var(--ink); outline-offset: -8px; }
body[data-view="list"] .dock { opacity: 0; pointer-events: none; transition: opacity .3s; }
.dock { transition: opacity .4s; }

/* ── stage + views ─────────────────────────────────────────── */
.stage { position: fixed; inset: 0; z-index: 2; }
.view { position: absolute; inset: 0; visibility: hidden; opacity: 0; transition: opacity .45s, visibility 0s .45s; }
body[data-view="default"]:not([data-chapter=""]) .view--chapter,
body[data-view="list"] .view--list, body[data-view="catalog"] .view--catalog { visibility: visible; opacity: 1; transition: opacity .6s; }

/* chapter page: big object header + name, content below */
.chap { position: absolute; inset: 0; visibility: hidden; pointer-events: none; display: grid; grid-template-rows: 50vh 1fr; }
.chap.is-on { visibility: visible; pointer-events: auto; }
.chap__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 4vw;
  padding: 0 var(--g) 2.4vh; pointer-events: none;
}
.chap__t, .chap__y {
  margin: 0; font: 400 clamp(56px, 8.2vw, 160px)/.9 var(--head); font-style: normal; letter-spacing: var(--head-ls);
}
.chap__t { max-width: 68%; }
.chap__y { white-space: nowrap; font-variant-numeric: tabular-nums; opacity: 0; transform: translateY(.3em); transition: opacity .3s, transform .3s; }
.chap.is-on .chap__y { opacity: 1; transform: none; transition: opacity .5s .35s, transform .9s var(--ease-spring) .35s; }
.chap__t .ch { display: inline-block; opacity: 0; transform: translateY(-.5em) rotate(var(--r, 6deg)); }
.chap.is-on .chap__t .ch { opacity: 1; transform: none; transition: opacity .25s calc(.25s + var(--i) * 28ms), transform .9s var(--ease-spring) calc(.25s + var(--i) * 28ms); }
.chap__text {
  grid-row: 2; grid-column: 1; align-self: start; max-width: 25em; padding: 3vh 0 0 var(--g);
  opacity: 0; transform: translateY(20px); transition: opacity .3s, transform .3s;
}
.chap.is-on .chap__text { opacity: 1; transform: none; transition: opacity .6s .55s, transform .9s var(--ease-spring) .55s; }
.chap__meta { font-size: 13px; color: var(--mute); margin-bottom: 14px; }
.chap__n { font-size: 12.5px; letter-spacing: .01em; color: var(--mute); margin: 0 0 10px; }
.chap__text p:not([class]) { font-size: 14.5px; line-height: 1.55; }
.chap__links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chap > .reel { grid-row: 2; grid-column: 1; margin-left: calc(25em + var(--g) * 2.4); }
.pill { display: inline-flex; padding: 7px 13px; border-radius: 999px; font-size: 12.5px; border: 1px solid var(--line); background: rgba(255,255,255,.4); transition: background .3s, color .3s; }
@media (hover: hover) { .pill:hover { background: var(--ink); color: var(--on); } }

/* media reel */
.reel { position: relative; height: calc(50vh - 120px); align-self: start; margin-top: 3vh; overflow: hidden; touch-action: pan-y; cursor: grab; opacity: 0; transition: opacity .3s; }
.chap.is-on .reel { opacity: 1; transition: opacity .7s .65s; }
.reel.is-drag { cursor: grabbing; }
.reel__track { height: 100%; display: flex; gap: 12px; align-items: flex-start; width: max-content; will-change: transform; padding-right: var(--g); }
.m { position: relative; margin: 0; flex: none; height: 100%; aspect-ratio: var(--ar, 4/3); border-radius: 6px; overflow: hidden; background: rgba(255,255,255,.5); }
.m img, .m video { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.m figcaption { position: absolute; left: 8px; bottom: 8px; padding: 4px 9px; border-radius: 999px; font-size: 11px; background: rgba(255,255,255,.85); }

/* list view */
.list { list-style: none; margin: 0; padding: 0; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%); width: min(980px, calc(100vw - var(--g) * 2)); border-bottom: 1px solid var(--line); }
.list__row { position: relative; isolation: isolate; width: 100%; appearance: none; border: 0; border-top: 1px solid var(--line); background: none; cursor: pointer; text-align: left; display: grid; grid-template-columns: 44px minmax(0, 1.3fr) minmax(0, 1.2fr) 100px; gap: 16px; align-items: baseline; padding: 16px 8px; }


.list__n, .list__r, .list__y { font-size: 12.5px; color: var(--mute); }
.list__y { text-align: right; font-variant-numeric: tabular-nums; }
.list__c { font-size: 13.5px; }
.list__t { font: 400 clamp(30px, 3.4vw, 48px)/1 var(--head); letter-spacing: var(--head-ls); }

.list__forever .list__row { border-top-style: dashed; }
.view--list .list li { opacity: 0; transform: translateY(14px); transition: opacity .3s, transform .3s; }
body[data-view="list"] .view--list .list li { opacity: 1; transform: none; transition: opacity .5s, transform .8s var(--ease-spring); }
body[data-view="list"] .list li:nth-child(2) { transition-delay: .04s; } body[data-view="list"] .list li:nth-child(3) { transition-delay: .08s; }
body[data-view="list"] .list li:nth-child(4) { transition-delay: .12s; } body[data-view="list"] .list li:nth-child(5) { transition-delay: .16s; }
body[data-view="list"] .list li:nth-child(6) { transition-delay: .2s; }

/* catalog */
.cat { position: absolute; left: 0; right: 0; top: 0; }
.cat__head { position: absolute; left: 0; top: 0; appearance: none; border: 0; background: none; padding: 0; cursor: default; font: 400 clamp(22px, 2vw, 30px)/1 var(--display); letter-spacing: -0.035em; transition: opacity .3s; }
.cat__head sup { font-size: 11px; letter-spacing: 0; color: var(--mute); vertical-align: top; margin-left: 2px; }

.threads { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .5s; }
body[data-view="catalog"] .threads { opacity: 1; }
.threads path { fill: none; stroke: var(--ink); stroke-width: 1; stroke-opacity: .09; transition: stroke-opacity .3s; }
.threads path.is-hot { stroke-opacity: .85; }
.card { position: absolute; left: 0; top: 0; display: block; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 14px 30px -18px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.06); cursor: grab; user-select: none; touch-action: none; will-change: transform; transition: opacity .35s, filter .35s; }
.card img, .card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.card__t { position: absolute; left: 6px; bottom: 6px; right: 6px; font-size: 11px; line-height: 1.2; opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .4s var(--ease-spring); }
.card__t span { display: inline-block; max-width: 100%; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
 .card.is-hot .card__t { opacity: 1; transform: none; }
@media (hover: hover) { .card:hover .card__t { opacity: 1; transform: none; } }
.card.is-drag { cursor: grabbing; z-index: 5; }

/* ── footer toggle ─────────────────────────────────────────── */
.foot { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 40; }

/* segmented control (after the [cafeteria] category switcher) */
.cmt { --c-text: #232020; --c-mute: rgba(35,32,32,.42); position: relative; display: inline-flex; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(35,32,32,.05); border: 1px solid rgba(35,32,32,.1); user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.cmt__b { position: relative; z-index: 1; appearance: none; border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 36px; padding: 0 11px; border-radius: 999px; font: 500 13.5px/1 var(--sans); color: var(--c-mute); transition: color .3s; }
 .cmt__b.is-on { color: var(--c-text); }
@media (hover: hover) { .cmt__b:hover { color: var(--c-text); } }
.cmt__b svg { flex: none; transition: transform .28s var(--ease-spring); }
@media (hover: hover) { .cmt__b:hover svg { transform: scale(1.12); } }
.cmt__l { display: inline-block; overflow: hidden; white-space: nowrap; max-width: 0; opacity: 0; transition: max-width .5s var(--ease-out), opacity .25s, margin-left .5s var(--ease-out); }
.cmt__b.is-on .cmt__l { max-width: 7em; opacity: 1; margin-left: 7px; }
.cmt__thumb { position: absolute; z-index: 0; left: 0; top: 5px; bottom: 5px; width: 40px; border-radius: 999px; background: rgb(252,252,252); box-shadow: 0 1px 3px rgba(35,32,32,.12); will-change: transform, width; pointer-events: none; transition: background .25s, box-shadow .25s; }
.cmt.is-press .cmt__thumb, .cmt.is-pull .cmt__thumb { background: rgba(252,252,252,.42); -webkit-backdrop-filter: saturate(1.9) blur(18px); backdrop-filter: url(#lgRefract) saturate(1.9) blur(1px); box-shadow: 0 6px 18px rgba(35,32,32,.2), 0 1px 3px rgba(35,32,32,.14), inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 1px rgba(255,255,255,.5), inset 0 0 0 1px rgba(255,255,255,.35); }
.cmt.is-pull { cursor: grabbing; }
.cmt--float { background: rgba(248,248,246,.55); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); box-shadow: 0 10px 26px -14px rgba(0,0,0,.3); }
.cmt--float .cmt__b { min-width: 46px; height: 38px; padding: 0 14px; }
.cmt--float .cmt__b.is-on { padding: 0 16px 0 14px; }

/* kinetic tooltip: grows from a dot, letters roll in, leans with the pointer */
.tip { position: fixed; left: 0; top: 0; z-index: 96; pointer-events: none; will-change: transform; }
.tip__in { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); height: 30px; max-width: 30px; padding: 0; border-radius: 999px; overflow: hidden; opacity: 0; display: flex; align-items: center; justify-content: center; white-space: nowrap; font: 500 12.5px/1 var(--sans); color: #232020; background: rgba(252,252,252,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 8px 22px rgba(35,32,32,.16), 0 0 0 1px rgba(35,32,32,.07); transition: max-width .45s var(--ease-spring), padding .45s var(--ease-spring), opacity .18s; }
.tip__in b { font-weight: 500; display: inline-flex; }
.tip__in b i { font-style: normal; display: inline-block; white-space: pre; opacity: 0; transform: translateY(110%) rotate(12deg); }
.tip.is-on .tip__in { opacity: 1; max-width: 18em; padding: 0 14px; }
.tip.is-on .tip__in b i { opacity: 1; transform: none; transition: opacity .2s calc(.1s + var(--i) * 22ms), transform .55s var(--ease-spring) calc(.1s + var(--i) * 22ms); }

/* ── contact tag ───────────────────────────────────────────── */
.tag { position: fixed; left: 0; top: 0; z-index: 75; width: 0; height: 0; pointer-events: none; visibility: hidden; }
.tag.is-live { visibility: visible; }
.tag.is-open .tag__card { pointer-events: auto; }
.tag__string { position: absolute; left: -.5px; top: 0; width: 1px; height: 60px; background: var(--ink); }
.tag__card { position: absolute; left: -46px; top: 60px; width: 290px; padding: 26px 20px 16px; border-radius: 14px; background: #fbfbf9; box-shadow: 0 30px 60px -24px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.07); }
.tag__hole { position: absolute; left: 41px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 1px 2px rgba(0,0,0,.35); }
.tag__k { font: 400 28px/1 var(--display); letter-spacing: -0.035em; margin: 8px 0 12px; }
.tag__mail { display: block; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; margin-bottom: 6px; }
.tag__loc { font-size: 12px; color: var(--mute); margin-bottom: 14px; }
.tag__links { display: flex; gap: 14px; font-size: 12.5px; border-top: 1px solid var(--line); padding-top: 12px; }

/* (About styles are at the end of the file) */

/* ── small screens ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .chap { grid-template-rows: 44vh auto 1fr; overflow-y: auto; }
  .chap__t, .chap__y { font-size: clamp(44px, 13vw, 76px); }
  .chap__t { max-width: 72%; }
  .chap__text { grid-row: 2; padding: 2vh var(--g) 0; }
  .chap > .reel { grid-row: 3; margin: 2vh 0 110px var(--g); height: 34vh; }
  .list__row { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 4px 10px; }
  .list__r { display: none; }
  .list__y { grid-column: 3; grid-row: 1; }
  .view--catalog { overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .chap__t .ch, .chap__text, .tip__in b i { transition-duration: .01s !important; transition-delay: 0s !important; }
}

/* ── dark mode (html[data-theme="dark"], toggled from the top bar) ── */
html[data-theme="dark"] {
  --bg: #0f0f10; --ink: #f1f1ee; --mute: rgba(241,241,238,.52); --line: rgba(241,241,238,.13); --paper: #18181a; --on: #0f0f10;
  color-scheme: dark;
}
html[data-theme="dark"] .chip { background: rgba(32,32,34,.55); border-color: rgba(255,255,255,.1); color: var(--ink); }
 html[data-theme="dark"] .chip[aria-expanded="true"] { background: var(--ink); color: var(--on); }
@media (hover: hover) { html[data-theme="dark"] .chip:hover { background: var(--ink); color: var(--on); } }
html[data-theme="dark"] .dock__glass { background: rgba(30,30,32,.42); border-color: rgba(255,255,255,.08); box-shadow: 0 24px 60px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.08); }
html[data-theme="dark"] .dock__x { background: rgba(255,255,255,.08); }
@media (hover: hover) { html[data-theme="dark"] .dock__x:hover { background: var(--ink); color: var(--on); } }
html[data-theme="dark"] .dock__div { background: rgba(255,255,255,.14); }
html[data-theme="dark"] .cmt { --c-text: #f1f1ee; --c-mute: rgba(241,241,238,.42); background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .cmt--float { background: rgba(30,30,32,.6); box-shadow: 0 10px 26px -14px rgba(0,0,0,.8); }
html[data-theme="dark"] .cmt__thumb { background: rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
html[data-theme="dark"] .pill { background: rgba(255,255,255,.06); }
@media (hover: hover) { html[data-theme="dark"] .pill:hover { background: var(--ink); color: var(--on); } }
html[data-theme="dark"] .m { background: rgba(255,255,255,.05); }
html[data-theme="dark"] .m figcaption, html[data-theme="dark"] .card__t span { background: rgba(20,20,22,.85); color: var(--ink); }

html[data-theme="dark"] .card { background: #1a1a1c; box-shadow: 0 14px 30px -18px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.06); }
html[data-theme="dark"] .tag__card { background: #1b1b1d; box-shadow: 0 30px 60px -24px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08); }
html[data-theme="dark"] .tip__in { color: #f1f1ee; background: rgba(34,34,36,.94); box-shadow: 0 8px 22px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08); }
/* theme changes fade; never put transform here (cards and the drawer are moved by script) */
.dock__glass, .tag__card { transition: background-color .6s, border-color .6s, box-shadow .6s, border-radius .55s var(--ease-out); }

/* theme toggle */
.top__r { display: flex; gap: 8px; align-items: center; }
.chip--icon { width: 37px; height: 37px; padding: 0; display: grid; place-items: center; }
.chip--icon svg { transition: transform .6s var(--ease-spring); }
@media (hover: hover) { .chip--icon:hover svg { transform: rotate(-20deg) scale(1.08); } }
.theme__moon { display: block; } .theme__sun { display: none; }
html[data-theme="dark"] .theme__moon { display: none; } html[data-theme="dark"] .theme__sun { display: block; }

/* dock icons: plain line icons; the 3D appears big, behind the bar */
.dock__slot { position: absolute; left: 50%; top: 50%; width: var(--is, 24px); height: var(--is, 24px); color: var(--ink); opacity: calc(.62 * var(--vis, 1));
  transform: translate(-50%, -50%) scale(calc(var(--mag, 1) * var(--tmag, 1))); transition: opacity .25s, color .25s; pointer-events: none; }
.dock__slot svg { display: block; width: 100%; height: 100%; overflow: visible; transition: transform .5s var(--ease-spring); }
 .dock__b.is-on .dock__slot, .dock__b.is-hover .dock__slot { opacity: var(--vis, 1); }
@media (hover: hover) { .dock__b:hover .dock__slot { opacity: var(--vis, 1); } }
@media (hover: hover) { .dock__b:hover .dock__slot svg { transform: translateY(-1.5px); } }
.dock__b.is-pop .dock__slot svg { animation: dockPop .55s var(--ease-spring); }
@keyframes dockPop { 0% { transform: scale(1); } 35% { transform: scale(.82, .9); } 100% { transform: scale(1); } }
#front { display: none; }

/* caption under the timeline (home only): a label, a rule the width of the bar, the years */
.dock__cap { position: absolute; left: 18px; right: 18px; top: calc(100% + 12px); margin: 0; display: flex; align-items: center; gap: 14px; white-space: nowrap;
  font-size: 12.5px; letter-spacing: .01em; color: var(--mute); pointer-events: none; transition: opacity .35s, transform .5s var(--ease-spring); }
.dock__cap i { flex: 1; height: 1px; background: var(--line); }
.dock__cap span { display: inline-block; }
body:not([data-view="default"]) .dock__cap, body:not([data-chapter=""]) .dock__cap { opacity: 0; transform: translateY(-6px); }

/* touch: the caption opens into the full chapter list while one is previewed */
.dock__list { position: absolute; left: 18px; right: 18px; top: calc(100% + 10px); display: grid; pointer-events: none; }
.dock__row { appearance: none; border: 0; background: none; padding: 6px 0; margin: 0; display: flex; align-items: center; gap: 14px; white-space: nowrap;
  font: 12.5px/1.2 var(--sans); letter-spacing: .01em; color: var(--mute); cursor: pointer; text-align: left;
  opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s, color .25s; }
.dock__row i { flex: 1; height: 1px; background: var(--line); transition: background .25s; }
.dock__row.is-on { color: var(--ink); }
.dock__row.is-on i { background: color-mix(in srgb, var(--ink) 45%, transparent); }
body.is-preview .dock__list { pointer-events: auto; }
body.is-preview .dock__row { opacity: 1; transform: none; transition: opacity .3s calc(var(--i) * 28ms), transform .5s var(--ease-spring) calc(var(--i) * 28ms), color .25s; }
body.is-preview .dock__cap { opacity: 0; }
#dock { touch-action: none; }

/* ── About: takes over the whole page; the glass blob swells behind it ── */
.about { position: fixed; inset: 0; z-index: 85; overflow-y: auto; overscroll-behavior: contain; outline: none; visibility: hidden; pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 88%, transparent) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 62%, color-mix(in srgb, var(--bg) 15%, transparent) 100%);
  opacity: 0; transition: opacity .45s ease, visibility 0s .45s; }
body.is-about .about { visibility: visible; pointer-events: auto; opacity: 1; transition: opacity .5s ease; }
body.is-about .top, body.is-about #dock, body.is-about .foot, body.is-about .stage { opacity: 0; pointer-events: none; }
.top, #dock, .foot, .stage { transition: opacity .4s ease; }
.about__bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 18px var(--g); }
.about__k { font-size: 12.5px; letter-spacing: .01em; color: var(--mute); margin: 0; }
.about__x span { margin-left: 4px; }
.about__in { padding: clamp(28px, 7vh, 90px) var(--g) 64px; max-width: 1440px; }
.about__h { font: 400 clamp(40px, 5.4vw, 96px)/1 var(--head); letter-spacing: var(--head-ls); margin: 0 0 clamp(36px, 8vh, 96px); max-width: 15.5em; }
.about__h .w { display: inline-block; white-space: pre; opacity: 0; transform: translateY(.45em); filter: blur(8px); }
body.is-about .about__h .w { opacity: 1; transform: none; filter: none;
  transition: opacity .5s calc(.12s + var(--i) * 32ms), transform .9s var(--ease-spring) calc(.12s + var(--i) * 32ms), filter .6s calc(.12s + var(--i) * 32ms); }
[data-a] { opacity: 0; transform: translateY(14px); }
body.is-about [data-a] { opacity: 1; transform: none; transition: opacity .6s calc(var(--d) * 70ms), transform .9s var(--ease-spring) calc(var(--d) * 70ms); }
.about__grid { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, .85fr); gap: clamp(22px, 3vw, 56px); align-items: start; }
.about__pic { margin: 0; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--line); }
.about__pic img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); transition: filter .6s, transform .8s var(--ease-spring); }
@media (hover: hover) { .about__pic:hover img { filter: none; transform: scale(1.04); } }
.about__bio p { font-size: 15px; line-height: 1.55; margin: 0 0 14px; max-width: 34em; }
.about__bio .ext { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.about__col .about__k { margin-bottom: 8px; }
.about__rows { display: grid; grid-template-columns: minmax(0, 1fr); }
.about__row { appearance: none; border: 0; background: none; padding: 7px 0; margin: 0; display: flex; align-items: center; gap: 12px; white-space: nowrap;
  font: 13.5px/1.2 var(--sans); color: var(--mute); cursor: pointer; text-align: left; transition: color .25s; }
.about__row i { flex: 1; height: 1px; background: var(--line); transform-origin: left; transition: background .25s, transform .5s var(--ease-spring); }
@media (hover: hover) { .about__row:hover { color: var(--ink); } }
@media (hover: hover) { .about__row:hover i { background: color-mix(in srgb, var(--ink) 50%, transparent); } }
.about__links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: clamp(36px, 7vh, 80px); font: 400 clamp(22px, 2.2vw, 34px)/1.2 var(--head); letter-spacing: var(--head-ls); }
.about__links a { position: relative; color: var(--ink); }
.about__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
@media (hover: hover) { .about__links a:hover::after { transform: scaleX(1); transform-origin: left; } }
@media (max-width: 1100px) { .about__grid { grid-template-columns: 130px minmax(0, 1fr); } .about__col { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .about { background: color-mix(in srgb, var(--bg) 78%, transparent); }
  .about__grid { grid-template-columns: 1fr; }
  .about__pic { width: 110px; }
  .about__h { font-size: clamp(34px, 10vw, 48px); }
}

/* Aa toggle: headlines in serif or sans */
html[data-font="sans"] { --head: var(--display); --head-ls: -0.03em; }
.fontBtn { display: none; }
body:not([data-chapter=""])[data-view="default"] .top .fontBtn, body[data-view="list"] .top .fontBtn, .about .fontBtn { display: grid; }
.fontBtn b { font: 500 14px/1 var(--display); letter-spacing: -0.04em; transition: transform .6s var(--ease-spring); }   /* shows the face you'd switch to */
html[data-font="sans"] .fontBtn b { font: 400 17px/1 var(--serif); letter-spacing: -0.01em; }
@media (hover: hover) { .fontBtn:hover b { transform: scale(1.12); } }
.about__bar > div { display: flex; gap: 8px; }

div.about__row { cursor: default; }
.about__row > span:first-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.about__row > span:last-child { flex: none; }
.about__row i { min-width: 12px; }
.about__col, .about__row { min-width: 0; }


/* page load: caption arrives after the bar has unrolled */
body.is-intro .dock__cap { opacity: 0; transform: translateY(-4px); }
.dock__cap { transition: opacity .6s .1s, transform .7s var(--ease-spring) .1s; }

/* ⤢ bigger timeline: home only */
#sizeBtn { display: none; }
body[data-view="default"] #sizeBtn { display: grid; }   /* home: bigger timeline · chapter page: expand the pieces */
.size__in { display: none; }
body[data-chapter=""] .size__out, body:not([data-chapter=""]) .size__out { display: block; }
html[data-size="lg"] body[data-chapter=""] .size__out, body.is-x .size__out { display: none; }
html[data-size="lg"] body[data-chapter=""] .size__in, body.is-x .size__in { display: block; }
/* the caption and list scale with the bar (--dk is set while you pull an end) */
.dock__cap, .dock__row { font-size: calc(12.5px * var(--dk, 1)); }
.dock__cap { top: calc(100% + 12px * var(--dk, 1)); }
.dock__list { top: calc(100% + 10px * var(--dk, 1)); }
.dock__row { padding: calc(6px * var(--dk, 1)) 0; }
/* pull handles at each end of the bar (home only) */
.dock__grip { position: absolute; top: 0; bottom: 0; width: 22px; cursor: ew-resize; touch-action: none; display: none; z-index: 3; }
.dock__grip--l { left: -11px; } .dock__grip--r { right: -11px; }
body[data-chapter=""][data-view="default"] .dock__grip { display: block; }
.dock__grip::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 26%; min-height: 14px; margin: 0 0 0 -1.5px; transform: translateY(-50%) scaleY(.6);
  border-radius: 3px; background: var(--ink); opacity: 0; transition: opacity .25s, transform .45s var(--ease-spring); }
@media (hover: hover) { #dock:hover .dock__grip::after { opacity: .22; } }
 .dock__grip.is-on::after { opacity: .7; transform: translateY(-50%) scaleY(1); }
@media (hover: hover) { .dock__grip:hover::after { opacity: .7; transform: translateY(-50%) scaleY(1); } }
body.is-pulling, body.is-pulling * { cursor: ew-resize !important; user-select: none; }
body.is-pulling .dock__glass { box-shadow: 0 30px 70px -30px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.12); }

/* font swap ghosts: the old headline, fading out in place */
.fontGhost { z-index: 2; }
.fontGhost .ch, .fontGhost .w, .fontGhost [data-a] { transform: none !important; filter: none !important; }
.fontGhost .ch, .fontGhost .w, .fontGhost [data-a], .fontGhost .dl { opacity: 1; }

/* when the bar is pulled bigger, the icon lines get finer instead of chunkier */
body[data-chapter=""][data-view="default"] .dock__slot svg * { stroke-width: calc(1.4px / var(--dk, 1)); }

/* earlier titles inside the same role, tucked under it */
.about__row--sub { padding-top: 3px; padding-bottom: 5px; padding-left: 16px; font-size: 12.5px; }
.about__row--sub i { opacity: .5; }


/* list rows: a quiet hover. The row's text comes up to full strength (the cursor draws its outline). */
.list__row, .list__row .list__n, .list__row .list__r, .list__row .list__y { transition: color .3s ease, border-color .3s ease; }
@media (hover: hover) { .list__row:hover .list__n, .list__row:hover .list__r, .list__row:hover .list__y { color: var(--ink); } }

/* ── expanded chapter: click any piece and the strip becomes a vertical stack you scroll through.
   The headline and years shrink and stack at the top left, above the description. ── */
.chap { --xT: clamp(38px, 3.6vw, 60px); }
.chap__t, .chap__y { transition-property: font-size, opacity, transform; }
.chap.is-x { display: block; overflow-y: auto; overscroll-behavior: contain; }
.chap.is-x .chap__head { position: fixed; z-index: 3; left: var(--g); top: 96px; width: 26em; padding: 0; flex-direction: column; align-items: flex-start; gap: 6px; }
.chap.is-x .chap__t { font-size: var(--xT); max-width: none; transition: font-size .7s var(--ease-out); }
.chap.is-x .chap__y { font-size: var(--xT); transition: font-size .7s var(--ease-out); }
.chap.is-x .chap__text { position: fixed; z-index: 3; left: 0; top: calc(126px + var(--xT) * 1.8); max-width: 25em; padding: 0 0 0 var(--g); }
.chap.is-x > .reel { margin: 0 var(--g) 0 calc(var(--g) * 2 + 26em); padding: 96px 0 140px; height: auto; overflow: visible; cursor: default; touch-action: auto; opacity: 1; }
.chap.is-x .reel__track { flex-direction: column; width: auto; gap: 16px; padding-right: 0; transform: none !important; }
.chap.is-x .m { width: 100%; height: auto; transform: none !important; cursor: default; animation: stackIn .9s var(--ease-spring) calc(var(--k, 0) * 60ms) both; }
@keyframes stackIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.chap .m { cursor: zoom-in; }
/* the chapter line stays put in the expanded view, so nothing under it jumps */
@media (max-width: 900px) {
  .chap.is-x .chap__head, .chap.is-x .chap__text { position: static; width: auto; }
  .chap.is-x .chap__head { padding: 118px var(--g) 0; }
  .chap.is-x .chap__text { padding: 14px var(--g) 0; }
  .chap.is-x > .reel { margin: 0 var(--g); padding: 24px 0 120px; }
}

/* years: ’21–’23, with the dash nudged so the space around it looks even */
.chap__y .dl--dash { margin: 0 .07em 0 .03em; }

/* scroll-scrubbed expand: while scrubbing, pieces may travel outside the strip's box */
.chap.is-scrub > .reel { overflow: visible; }
.chap { grid-template-columns: minmax(0, 1fr); }   /* so the strip's overflow can never widen the page's column */
.chap.is-scrub .chap__t .ch, .chap.is-scrub .chap__y, .chap.is-scrub .chap__text, .chap.is-scrub .m { transition: none !important; }
.chap.is-scrub .chap__t, .chap.is-scrub .chap__y { transition: none !important; }
/* landing in the stack from a scrub (or measuring it): no fly-in, no font-size easing */
.chap.is-x-still .m { animation: none !important; }
.chap.is-x-still .chap__t, .chap.is-x-still .chap__y, .chap.is-x-still .chap__text { transition: none !important; }
.chap.is-scrub .chap__head, .chap.is-scrub .chap__text { position: relative; z-index: 4; }

/* ── bottom corners on the home views: tenure (left), views + say hi (right) ── */
.tenure, .views { position: fixed; z-index: 41; bottom: calc(30px + env(safe-area-inset-bottom, 0px)); font-size: 12.5px; letter-spacing: .01em; color: var(--mute); transition: opacity .4s; }
.tenure { left: var(--g); margin: 0; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.tenure i { width: 18px; height: 1px; background: var(--line); }
.views { right: var(--g); }
body:not([data-chapter=""]) .tenure, body:not([data-chapter=""]) .views, body.is-about .tenure, body.is-about .views { opacity: 0; pointer-events: none; }
.views__btn { appearance: none; border: 0; background: none; padding: 6px 0; font: inherit; color: inherit; cursor: pointer; transition: color .25s; display: inline-flex; align-items: center; gap: 7px; }
.views__eye { display: block; transition: transform .5s var(--ease-spring); }
 .views.is-open .views__eye { transform: scale(1.12); }
@media (hover: hover) { .views__btn:hover .views__eye { transform: scale(1.12); } }
 .views.is-open .views__btn { color: var(--ink); }
@media (hover: hover) { .views__btn:hover { color: var(--ink); } }
.views__n { font-variant-numeric: tabular-nums; color: var(--ink); }
.views__pop { position: absolute; right: 0; bottom: calc(100% + 10px); width: 260px; padding: 16px 16px 14px; border-radius: 14px;
  background: color-mix(in srgb, var(--paper) 97%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.5), 0 0 0 1px var(--line); color: var(--ink);
  opacity: 0; transform: translateY(8px) scale(.97); transform-origin: 100% 100%; pointer-events: none; transition: opacity .25s, transform .45s var(--ease-spring); }
.views.is-open .views__pop { opacity: 1; transform: none; pointer-events: auto; }
.views__h { font: 400 22px/1.1 var(--head); letter-spacing: var(--head-ls); margin: 0 0 12px; }
.views form { display: grid; gap: 6px; }
.views input { font: 13px/1.2 var(--sans); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 8px 0; outline: none; border-radius: 0; }
.views input:focus { border-bottom-color: color-mix(in srgb, var(--ink) 55%, transparent); }
.views input::placeholder { color: var(--mute); }
.views form .chip { justify-self: start; margin-top: 8px; font-size: 12.5px; padding: 7px 14px; }
.views__done { margin: 0; font-size: 13.5px; }
.views__fine { margin: 10px 0 0; font-size: 11px; color: var(--mute); }
.views__list { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); max-height: 180px; overflow-y: auto; }
.views__k { margin: 0 0 6px; font-size: 11px; color: var(--mute); }
.views__list p:not(.views__k) { margin: 0; padding: 4px 0; display: flex; align-items: center; gap: 8px; font-size: 12.5px; white-space: nowrap; }
.views__list p span:first-child { overflow: hidden; text-overflow: ellipsis; }
.views__list p i { flex: 1; min-width: 10px; height: 1px; background: var(--line); }
.views__list p span:last-child:not(:first-child) { color: var(--mute); }
@media (max-width: 640px) { .tenure, .views { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); } .tenure { font-size: 11.5px; } }

.chap.is-x-landed .m { animation: none !important; }
/* expanded stack: the bottom of the column melts into a soft blur, so it reads as "keeps going" */
.chap.is-x::after, .chap.is-scrub::after { content: ""; position: fixed; z-index: 5; left: calc(var(--g) * 2 + 26em); right: 0; bottom: 0; height: 160px; pointer-events: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--bg) 85%, transparent));
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 75%); mask-image: linear-gradient(to bottom, transparent, #000 75%); }
@media (max-width: 900px) { .chap.is-x::after { left: 0; height: 120px; } }
.views [hidden] { display: none !important; }

/* …and the top, once you've scrolled down */
.chap.is-x::before { content: ""; position: fixed; z-index: 5; left: calc(var(--g) * 2 + 26em); right: 0; top: 0; height: 150px; pointer-events: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  background: linear-gradient(to top, transparent, color-mix(in srgb, var(--bg) 85%, transparent));
  -webkit-mask-image: linear-gradient(to top, transparent, #000 75%); mask-image: linear-gradient(to top, transparent, #000 75%);
  opacity: 0; transition: opacity .35s ease; }
.chap.is-x.is-scrolled::before { opacity: 1; }
@media (max-width: 900px) { .chap.is-x::before { left: 0; height: 110px; } }

/* the bottom blur fades in with the layout change: tied to the scroll while scrubbing, a quick fade on click */
.chap.is-scrub::after { opacity: var(--xp, 0); }
.chap.is-x::after { animation: blurIn .6s ease both; }
.chap.is-x.is-x-landed::after { animation: none; }
@keyframes blurIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Fine art: the inquiry form waits at the end of the expanded stack ── */
.inquire { display: none; }
.chap.is-x .inquire { display: block; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.chap.is-x .chap__text { max-height: calc(100vh - 140px - var(--xT) * 1.8); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding-bottom: 24px; }
.chap.is-x .chap__text::-webkit-scrollbar { display: none; }
.inquire__h { font: 400 clamp(32px, 3.4vw, 54px)/1 var(--head); letter-spacing: var(--head-ls); margin: 0 0 10px; }
.inquire__sub { margin: 0 0 18px; color: var(--mute); font-size: 13.5px; }
.inquire__form { display: grid; gap: 14px; }
.inquire__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inquire label > span, .inquire legend { display: block; font-size: 12px; letter-spacing: .01em; color: var(--mute); margin-bottom: 6px; }
.inquire input[type=text], .inquire input[type=email], .inquire textarea { width: 100%; font: 15px/1.4 var(--sans); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 8px 0; outline: none; border-radius: 0; resize: vertical; }
.inquire input:focus, .inquire textarea:focus { border-bottom-color: color-mix(in srgb, var(--ink) 55%, transparent); }
.inquire__type { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.inquire__type legend { width: 100%; padding: 0; }
.inquire__type label { cursor: pointer; position: relative; }
.inquire__type input { position: absolute; opacity: 0; pointer-events: none; }
.inquire__type label span { display: inline-flex; padding: 7px 13px; border-radius: 999px; font-size: 12.5px; color: var(--ink); border: 1px solid var(--line); margin: 0; transition: background .25s, color .25s, border-color .25s; }
.inquire__type input:checked + span { background: var(--ink); color: var(--on); border-color: var(--ink); }
.inquire__type input:focus-visible + span { outline: 1.5px solid var(--ink); outline-offset: 2px; }
.inquire__send { justify-self: start; font-size: 13px; padding: 9px 18px; }
.inquire__status { margin: 0; font-size: 13.5px; min-height: 1.4em; }
.inquire__status.is-error { color: #ff8a7a; }
@media (max-width: 900px) { .chap.is-x .chap__text { max-height: none; overflow: visible; } }

/* expanded view: phone-shaped pieces sit framed in a soft full-width matte instead of filling the column */
.chap.is-x .m.is-tall { --th: min(84vh, 880px); box-sizing: border-box; aspect-ratio: auto; height: var(--th); background: transparent; display: flex; justify-content: center; overflow: visible; }
/* the matte takes the piece's own background colour when it has a plain one, so the mock sits seamlessly in it */
.chap.is-x .m.is-tall::before { content: ""; position: absolute; inset: 0; border-radius: 6px; background: var(--matte, color-mix(in srgb, var(--ink) 5%, transparent)); z-index: 0; animation: matteIn .7s ease both; }
.chap.is-x .m.is-tall > img, .chap.is-x .m.is-tall > video { position: relative; z-index: 1; width: auto; height: 100%; aspect-ratio: var(--ar); border-radius: 6px; object-fit: cover; }
/* bare screen recordings keep the soft tint, but get room above and below and lift off it with a shadow */
.chap.is-x .m.is-screen { padding-block: calc(var(--th) * .07); }
.chap.is-x .m.is-screen > img, .chap.is-x .m.is-screen > video { border-radius: 10px; box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 18px 44px -12px rgba(0,0,0,.32); }
html[data-theme="dark"] .chap.is-x .m.is-screen > img, html[data-theme="dark"] .chap.is-x .m.is-screen > video { box-shadow: 0 2px 6px rgba(0,0,0,.3), 0 22px 50px -10px rgba(0,0,0,.6); }
.chap.is-x .m.is-tall > figcaption { z-index: 2; }
@keyframes matteIn { from { opacity: 0; } to { opacity: 1; } }

/* ── inside Fine art / Experiments: the bar becomes that chapter's icon + one dot per page ── */
.dock__p { position: absolute; top: 0; left: 0; appearance: none; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; opacity: var(--vis, 0); }
.dock__p i { display: block; width: 6px; height: 6px; border-radius: 3px; background: var(--ink); opacity: .26; transform: scale(calc(.4 + .6 * var(--vis, 0))); transition: opacity .25s, width .45s var(--ease-spring), transform .45s var(--ease-spring); }
@media (hover: hover) { .dock__p:hover i { opacity: .75; transform: scale(1.3); } }
.dock__p.is-on i { width: 16px; opacity: 1; transform: none; }   /* the painting you're on stretches into the "you are here" line */
.dock__p:focus-visible { outline: 1.5px solid var(--ink); outline-offset: -6px; border-radius: 8px; }
.dock__slot svg { transition: transform .5s var(--ease-spring), opacity .22s; }
.dock__slot .dock__back { position: absolute; inset: 0; opacity: 0; transform: translateX(7px); pointer-events: none; }

body.in-sub .dock__b.is-parent:focus-visible .dock__slot svg:not(.dock__back) { opacity: 0; transform: translateX(-7px) rotate(-18deg); }
@media (hover: hover) { body.in-sub .dock__b.is-parent:hover .dock__slot svg:not(.dock__back) { opacity: 0; transform: translateX(-7px) rotate(-18deg); } }

body.in-sub .dock__b.is-parent:focus-visible .dock__back { opacity: 1; transform: none; }
@media (hover: hover) { body.in-sub .dock__b.is-parent:hover .dock__back { opacity: 1; transform: none; } }
body.in-sub .dock__b.is-parent .dock__slot { opacity: 1; }

/* ── project list in the text column (chapters with several projects) ── */
.chap__pjs { margin: 26px 0 0; display: grid; max-width: 23em; }
.chap__pk { margin: 0 0 4px; font-size: 12px; letter-spacing: .01em; color: var(--mute); }
.chap__pj { appearance: none; border: 0; background: none; padding: 7px 0; margin: 0; display: flex; align-items: center; gap: 12px; font: inherit; font-size: 13.5px; line-height: 1.2; color: var(--mute); text-align: left; cursor: pointer; transition: color .25s; }
.chap__pj i { flex: 1; height: 1px; background: var(--line); transition: background .3s; }
.chap__pj b { font-weight: 400; font-size: 12px; font-variant-numeric: tabular-nums; }
 .chap__pj.is-on { color: var(--ink); }
@media (hover: hover) { .chap__pj:hover { color: var(--ink); } }
 .chap__pj.is-on i { background: color-mix(in srgb, var(--ink) 45%, transparent); }
@media (hover: hover) { .chap__pj:hover i { background: color-mix(in srgb, var(--ink) 45%, transparent); } }
.chap__pj:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* where one project ends and the next begins */
.reel__sec { flex: none; align-self: stretch; width: 1px; margin: 0 10px; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: zoom-in; transition: opacity .3s; }
.reel__sec span { display: none; }   /* before scrolling the rule is enough; the piece's own label names it */
.reel__sec b { display: none; }
.reel__sec::after { content: ""; flex: 1; width: 1px; background: var(--line); }
.chap.has-secs.is-x .m.is-start > figcaption { display: none; }   /* in the stack the heading names the project */
.chap.is-scrub .reel__sec { opacity: 0; }
.chap.is-x .reel__sec { width: auto; margin: 0; align-self: stretch; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 16px; padding: 64px 0 12px; border-bottom: 1px solid var(--line); cursor: default; animation: matteIn .6s ease both; }
.chap.is-x .reel__sec:first-child { padding-top: 4px; }
.chap.is-x .reel__sec::after { display: none; }
.chap.is-x .reel__sec span { display: block; writing-mode: horizontal-tb; transform: none; font: 400 clamp(28px, 2.6vw, 42px)/1.05 var(--head); letter-spacing: var(--head-ls); color: var(--ink); white-space: normal; }
.chap.is-x .reel__sec b { display: block; font-weight: 400; font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.chap.is-x-landed .reel__sec, .chap.is-x-still .reel__sec { animation: none; }
.chap:not(.is-x) .reel__sec:first-child { display: none; }   /* no rule before the very first piece */

/* ── films: a "Watch" button on the piece, and the full film with sound over everything ── */
.m .film__play { position: absolute; right: 8px; bottom: 8px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 11px; border: 0; border-radius: 999px; background: var(--ink); color: var(--on); font: 500 12px/1 var(--sans); letter-spacing: 0; white-space: nowrap; cursor: pointer; pointer-events: auto; transition: background .25s, box-shadow .3s; }
.m .film__play i { font-style: normal; font-weight: 400; opacity: .6; }
@media (hover: hover) { .m .film__play:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 18%, transparent); } }
.m .film__play:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }
.film { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(6,6,7,.88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); opacity: 0; transition: opacity .35s ease; }
.film[hidden] { display: none; }
.film.is-on { opacity: 1; }
.film__v { width: min(92vw, calc(82vh * 16 / 9)); aspect-ratio: 16 / 9; background: #000; border-radius: 8px; transform: scale(.965); transition: transform .55s var(--ease-spring); }
.film.is-on .film__v { transform: none; }
.film__close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .25s, color .25s; }
@media (hover: hover) { .film__close:hover { background: #fff; color: #000; } }
body.is-film .cursor { opacity: 0; }
@media (max-width: 900px) { .m .film__play i { display: none; } }

/* videos in a colour-matched frame: browsers render video colour a touch differently from the page, so feather the sides into the frame instead of meeting it at a hard edge */
.chap.is-x .m.is-tall[style*="--matte"] > video { -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent); border-radius: 0; }

/* every piece gets a hairline edge, so dark-on-dark and light-on-light still read as objects */
.m::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 11%, transparent); pointer-events: none; z-index: 3; }
.m--film { cursor: pointer; }

/* chapter snapshot: black & white, colour fades in on hover */
.m--snap .m__c { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
@media (hover: hover) { .m--snap:hover .m__c { opacity: 1; } }
.m--snap figcaption { z-index: 2; }

/* inquiry form: one-line message that grows, then scrolls with soft edges; livelier focus and selection */
.inquire textarea { resize: none; overflow-y: auto; scrollbar-width: none; min-height: 0; transition: height .35s var(--ease-out), border-color .3s; }
.inquire textarea::-webkit-scrollbar { display: none; }
.inquire textarea.is-over { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%); }
.inquire textarea.is-over.at-top { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 14px), transparent 100%); mask-image: linear-gradient(to bottom, #000 calc(100% - 14px), transparent 100%); }
.inquire textarea.is-over.at-end { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14px); mask-image: linear-gradient(to bottom, transparent 0, #000 14px); }
.inquire input[type=text], .inquire input[type=email], .inquire textarea {
  background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 100% / 0% 1px;
  transition: background-size .6s var(--ease-out), border-color .3s, height .35s var(--ease-out);
}
.inquire input[type=text]:focus, .inquire input[type=email]:focus, .inquire textarea:focus { background-size: 100% 1px; }
.inquire label > span, .inquire legend { transition: color .3s, transform .45s var(--ease-spring); transform-origin: 0 50%; }
.inquire label:focus-within > span { color: var(--ink); transform: translateY(-1px); }
.inquire__type label span {
  background: linear-gradient(var(--ink), var(--ink)) no-repeat 50% 50% / 0% 100%;
  transition: background-size .5s var(--ease-out), color .3s, border-color .3s, transform .45s var(--ease-spring);
}
@media (hover: hover) { .inquire__type label:hover span { border-color: color-mix(in srgb, var(--ink) 40%, transparent); transform: translateY(-1px); } }
.inquire__type input:checked + span { background-color: transparent; background-image: linear-gradient(var(--ink), var(--ink)); background-size: 100% 100%; color: var(--on); border-color: var(--ink); animation: pillOn .5s var(--ease-spring); }
@keyframes pillOn { 0% { transform: scale(.94); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
.inquire__send { transition: transform .45s var(--ease-spring), background .25s, color .25s; }
.inquire__send:active { transform: scale(.96); }

/* "Lee — Today" — my face on a hairline, pointing at the current chapter on the home timeline */
.here { position: fixed; left: 0; top: 0; z-index: 32; pointer-events: none; }
.here__line { position: absolute; left: 0; top: 0; height: 1px; transform-origin: 0 50%; background: color-mix(in srgb, var(--ink) 34%, transparent); }
.here__pill, .list__here { display: block; width: 30px; height: 30px; padding: 2px; border-radius: 50%; box-sizing: border-box;
  background: rgba(252,252,252,.94); box-shadow: 0 8px 22px rgba(35,32,32,.16), 0 0 0 1px rgba(35,32,32,.07); }
.here__pill { position: absolute; left: 0; top: 0; transform-origin: 50% 50%; will-change: transform; cursor: pointer; }
.here__pill img, .list__here img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
html[data-theme="dark"] .here__pill, html[data-theme="dark"] .list__here { background: rgba(34,34,36,.94); box-shadow: 0 8px 22px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.1); }
.list__here { display: inline-block; vertical-align: middle; margin-left: 14px; transform: translateY(-5px); transition: opacity .35s ease, transform .5s var(--ease-spring); }
@media (hover: hover) { .list__row:hover .list__here { transform: translateY(-5px) scale(1.08); } }
@media (hover: hover) { .list:has(.list__row:hover:not([data-chapter="cafeteria"])) .list__here { opacity: 0; transform: translateY(-5px) scale(.6); } }
@media (max-width: 900px) { .list__here { width: 24px; height: 24px; margin-left: 8px; } }

/* pieces that open a page of their own */
.chap .m[data-piece] { cursor: pointer; }
.m[data-piece] > img, .m[data-piece] > video { transition: transform .8s var(--ease-out), filter .5s ease; }
@media (hover: hover) { .m[data-piece]:hover > img, .m[data-piece]:hover > video { transform: scale(1.035); } }
.m__open { position: absolute; top: 10px; right: 10px; z-index: 4; display: inline-flex; align-items: center; justify-content: flex-end; gap: 0; height: 28px; min-width: 28px; max-width: 28px; padding: 0 8px; box-sizing: border-box; border-radius: 999px; overflow: hidden; white-space: nowrap; pointer-events: none;
  font: 500 12px/1 var(--sans); color: #232020; background: rgba(252,252,252,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 6px 18px rgba(0,0,0,.18), 0 0 0 1px rgba(35,32,32,.06);
  transition: max-width .5s var(--ease-spring), padding .5s var(--ease-spring), gap .5s var(--ease-spring), opacity .3s; }
.m__open span { opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .45s var(--ease-spring); }
.m__open svg { flex: none; transition: transform .45s var(--ease-spring); }
 .m[data-piece]:focus-visible .m__open { max-width: 12em; padding: 0 10px 0 12px; gap: 6px; }
@media (hover: hover) { .m[data-piece]:hover .m__open { max-width: 12em; padding: 0 10px 0 12px; gap: 6px; } }
 .m[data-piece]:focus-visible .m__open span { opacity: 1; transform: none; transition-delay: .06s; }
@media (hover: hover) { .m[data-piece]:hover .m__open span { opacity: 1; transform: none; transition-delay: .06s; } }
@media (hover: hover) { .m[data-piece]:hover .m__open svg { transform: translate(1px, -1px); } }
.m[data-piece]:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }
html[data-theme="dark"] .m__open { color: #f1f1ee; background: rgba(34,34,36,.9); box-shadow: 0 6px 18px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08); }
.chap.is-scrub .m__open { opacity: 0; }
.chap__hint { font-size: 12.5px; color: var(--mute); margin: 14px 0 0; }
.list__here { cursor: pointer; }

/* kinetic scrolling: pieces that trail the scroll get their own layer while they move, so the page never repaints */
.chap.is-x .reel__track > [style*="translate"], .about__in > [style*="translate"], .reel__track > [style*="translate"] { will-change: translate; }

/* font swap: letters are their own boxes so each one can morph from the old face into the new */
.chap__y .dl, .about__links a .dl, .list__t .dl, .about__h .w .dl { display: inline-block; }
.about__links a, .list__t { white-space: nowrap; }
.fontGhost .dl { display: inline-block; }

/* the art inquiry form arrives with the stack: its rule draws across, then each line rises out of a soft blur in turn */
@keyframes inqRule { from { transform: scaleX(0); } to { transform: none; } }
@keyframes inqIn { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.chap.is-x .inquire { position: relative; border-top-color: transparent; }
.chap.is-x .inquire::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--line); transform-origin: 0 50%; animation: inqRule .9s var(--ease-out) .15s both; }
.chap.is-x .inquire__h, .chap.is-x .inquire__sub, .chap.is-x .inquire__form > * { animation: inqIn .8s var(--ease-out) both; }
.chap.is-x .inquire__h { animation-delay: .25s; }
.chap.is-x .inquire__sub { animation-delay: .33s; }
.chap.is-x .inquire__form > :nth-child(1) { animation-delay: .41s; }
.chap.is-x .inquire__form > :nth-child(2) { animation-delay: .49s; }
.chap.is-x .inquire__form > :nth-child(3) { animation-delay: .57s; }
.chap.is-x .inquire__form > :nth-child(4) { animation-delay: .65s; }
.chap.is-x .inquire__form > :nth-child(n+5) { animation-delay: .73s; }
@media (prefers-reduced-motion: reduce) { .chap.is-x .inquire::before, .chap.is-x .inquire__h, .chap.is-x .inquire__sub, .chap.is-x .inquire__form > * { animation: none; } }

/* ── Contact: the chip grows into a card ───────────────────── */
.ct { position: fixed; z-index: 76; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.ct__card { position: absolute; left: 0; top: 0; width: min(400px, calc(100vw - var(--g) * 2)); box-sizing: border-box; padding: 0 22px 18px;
  border-radius: 20px; background: color-mix(in srgb, var(--paper) 97%, transparent); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 40px 80px -36px rgba(0,0,0,.45), 0 0 0 1px var(--line); color: var(--ink);
  clip-path: inset(0 calc(100% - var(--cw, 90px)) calc(100% - var(--ch, 38px)) 0 round 19px); opacity: 0; visibility: hidden;
  transition: clip-path .55s var(--ease-out), opacity .2s ease, visibility 0s .55s; }
.ct.is-open .ct__card { clip-path: inset(0 0 0 0 round 20px); opacity: 1; visibility: visible; pointer-events: auto; transition: clip-path .7s var(--ease-out), opacity .12s ease, visibility 0s; }
.ct__top { display: flex; align-items: center; justify-content: space-between; height: 38px; margin: 0 -8px 0 -7px; }
.ct__k { font-size: 13px; }
.ct__x { appearance: none; border: 0; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); width: 26px; height: 26px; border-radius: 50%; font-size: 16px; line-height: 1; cursor: pointer; transition: background .25s, color .25s, transform .4s var(--ease-spring); }
@media (hover: hover) { .ct__x:hover { background: var(--ink); color: var(--on); transform: rotate(90deg); } }
.ct__in > * { opacity: 0; transform: translateY(10px); filter: blur(4px); transition: opacity .25s, transform .3s, filter .25s; }
.ct.is-open .ct__in > * { opacity: 1; transform: none; filter: none; transition: opacity .6s ease calc(.18s + var(--d) * 70ms), transform .8s var(--ease-out) calc(.18s + var(--d) * 70ms), filter .6s ease calc(.18s + var(--d) * 70ms); }
.ct__me { display: flex; align-items: center; gap: 14px; margin: 14px 0 16px; }
.ct__ava { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #d9f7e6; box-shadow: 0 0 0 1px var(--line); }
.ct__h { margin: 0; font: 400 30px/1 var(--head); letter-spacing: var(--head-ls); }
.ct__st { margin: 0; font-size: 12.5px; color: var(--mute); display: flex; align-items: center; gap: 7px; }
.ct__st i { width: 7px; height: 7px; border-radius: 50%; background: #3dfa9a; box-shadow: 0 0 0 0 rgba(61,250,154,.6); animation: ctPulse 2.4s ease-out infinite; }
@keyframes ctPulse { 0% { box-shadow: 0 0 0 0 rgba(61,250,154,.55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(61,250,154,0); } }
.ct__mail { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 6px 11px 14px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 5%, transparent); margin-bottom: 18px; }
.ct__mail a { font-size: 15px; letter-spacing: -.005em; }
.ct__copy { appearance: none; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 12px/1 var(--sans); padding: 7px 11px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
 .ct__copy.is-done { background: var(--ink); color: var(--on); border-color: var(--ink); }
@media (hover: hover) { .ct__copy:hover { background: var(--ink); color: var(--on); border-color: var(--ink); } }
.ct .ct__form { display: block; margin: 0; padding: 0; border: 0; }
.ct .inquire__form { gap: 14px; }
.ct .inquire__type label span { padding: 6px 11px; font-size: 12px; }
.ct__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); }
.ct__foot b { font-weight: 400; color: var(--ink); font-variant-numeric: tabular-nums; }
.ct__links { display: flex; gap: 12px; }
.ct__links a { color: var(--ink); }
@media (hover: hover) { .ct__links a:hover { text-decoration: underline; text-underline-offset: 3px; } }
html[data-theme="dark"] .ct__card { background: color-mix(in srgb, #1b1b1d 97%, transparent); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.09); }
@media (prefers-reduced-motion: reduce) { .ct__card, .ct.is-open .ct__card, .ct__in > *, .ct.is-open .ct__in > * { transition-duration: .01s !important; transition-delay: 0s !important; } }
/* while the card is open the chip steps aside, and the card needs no label */
#contactBtn { transition: opacity .25s ease, background .25s, color .25s; }
body.is-contact #contactBtn { opacity: 0; pointer-events: none; }
.ct__k { visibility: hidden; }
/* contact runs the full height of the window: the note sits up top, the details settle at the bottom */
.ct__card { width: min(390px, calc(100vw - var(--g) * 2));   /* the expanded view's text column: g + 26em, up to where the stack begins */ height: calc(100vh - 36px); height: calc(100dvh - 36px); display: flex; flex-direction: column; }
.ct__in { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.ct__in::-webkit-scrollbar { display: none; }
.ct__foot { margin-top: auto; }
.ct__form { margin-bottom: 18px !important; }

/* phones: a liquid tab under the open chapter in the top bar, draggable like the bottom switcher */
.dock__thumb { position: absolute; z-index: 0; left: 0; top: 7px; bottom: 7px; width: 44px; border-radius: 999px; background: rgb(252,252,252); box-shadow: 0 1px 3px rgba(35,32,32,.12);
  opacity: 0; pointer-events: none; transform-origin: 50% 50%; will-change: transform, width; display: none; transition: background .25s, box-shadow .25s, opacity .3s; }
.dock.has-thumb .dock__thumb { display: block; }
.dock.has-thumb .dock__on { display: none; }
.dock.has-thumb .dock__b, .dock.has-thumb .dock__p { z-index: 1; }
.dock.is-tpress .dock__thumb, .dock.is-tpull .dock__thumb { background: rgba(252,252,252,.42); -webkit-backdrop-filter: saturate(1.9) blur(18px); backdrop-filter: saturate(1.9) blur(18px); box-shadow: 0 6px 18px -6px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.5); }
html[data-theme="dark"] .dock__thumb { background: rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
html[data-theme="dark"] .dock.is-tpress .dock__thumb, html[data-theme="dark"] .dock.is-tpull .dock__thumb { background: rgba(255,255,255,.2); }
.dock.has-thumb { touch-action: pan-y; }
.dock.is-tpull .dock__b.is-on:not(.is-tover) .dock__slot { opacity: calc(.62 * var(--vis, 1)); }
.dock.is-tpull .dock__b.is-tover .dock__slot { opacity: var(--vis, 1); }
.dock.is-tpull .dock__p.is-on:not(.is-tover) i { width: 6px; opacity: .26; }
.dock.is-tpull .dock__p.is-tover i { width: 16px; opacity: 1; transform: none; }

/* About: a word on desktop, an icon on phones */
.chip--about .about__ico { display: none; }
@media (max-width: 640px) {
  /* bigger, easier targets everywhere */
  .chip { padding: 11px 18px; font-size: 15px; }
  .chip--icon, .chip--about { width: 46px; height: 46px; padding: 0; display: grid; place-items: center; }
  .chip--icon svg, .chip--about svg { width: 19px; height: 19px; }
  .chip--icon b { font-size: 16px; }
  .chip--about .about__ico { display: block; }
  .chip--about .about__t { display: none; }
  .top { padding: 14px 16px; align-items: flex-start; }
  .top__r { gap: 10px; }
  /* home: the name reads at a proper size, and the three buttons stack down the right edge */
  /* home: the name sits under Contact on the left, at a size you can read */
  body[data-chapter=""] .logo { left: 16px; top: 78px; transform: none; justify-items: start; text-align: left; font-size: 17px; line-height: 1.35; padding: 0; }
  body[data-chapter=""] .logo:hover { transform: none; }
  body[data-chapter=""] .logo b { font-size: 19px; margin-bottom: 2px; }
  body[data-view="list"] .logo, body[data-view="catalog"] .logo { opacity: 0; pointer-events: none; }
  body[data-chapter=""][data-view="default"] .top .fontBtn { display: none; }
  .top__r .chip--about { order: -2; }
  .top__r #themeBtn { order: -1; }
  /* the bottom switcher, thumb-sized */
  .cmt--float { padding: 6px; }
  .cmt--float .cmt__b { min-width: 60px; height: 52px; padding: 0 18px; font-size: 16px; }
  .cmt--float .cmt__b.is-on { padding: 0 20px 0 18px; }
  .cmt--float .cmt__b svg { width: 20px; height: 20px; }
  .cmt--float .cmt__thumb { top: 6px; bottom: 6px; }
  .tenure, .views { bottom: calc(104px + env(safe-area-inset-bottom, 0px)); font-size: 13px; }
  .dock__p, .dock__b { min-height: 48px; }
}

/* ── mobile: tapping a chapter in the tab bar swaps the view toggle for an Open button ── */
#views { transition: opacity .25s, scale .35s cubic-bezier(.34,1.4,.64,1); }
body.is-tprev #views { opacity: 0; scale: .9; pointer-events: none; }
@media (max-width: 900px), (pointer: coarse) { .card { touch-action: auto; cursor: pointer; } }
body.is-tprev .tenure, body.is-tprev .views { opacity: 0; pointer-events: none; transition: opacity .25s; }

/* ── phones: big bar by default, no size / expand toggle, chapter pages always expanded ── */
@media (max-width: 900px) {
  #sizeBtn { display: none !important; }
  body[data-view="default"]:not([data-chapter=""]) .dock__glass { border-radius: 22px; }
  .dock.has-thumb .dock__thumb { border-radius: 15px; }
  body[data-view="default"]:not([data-chapter=""]) .dock__x { width: 40px; height: 40px; margin-top: -20px; right: 8px; border-radius: 14px; }
  .chap.is-x .chap__head { padding-top: 300px; }
  /* the big bar keeps its caption + chapter list at a fixed size so the list clears the Open button */
  .dock__cap, .dock__row { font-size: 14px; }
  .dock__row { padding: 4px 0; }
}
@media (max-width: 640px) {
  /* list + catalog: the buttons stack down the right edge, like home */
  .list { top: 104px; transform: translateX(-50%); }
  .list__row { padding: 11px 8px; }
  .list__t { font-size: 29px; }
  body[data-view="list"] .tenure, body[data-view="list"] .views, body[data-view="catalog"] .tenure, body[data-view="catalog"] .views { opacity: 0; pointer-events: none; }
}


/* ── phones: tap a chapter in the bar and a × + an outlined pill fused to its arrow circle come up ── */
.openBar { position: absolute; left: 50%; bottom: 4px; translate: -50% 0; width: calc(100vw - 32px); max-width: 560px; height: 56px; display: flex; align-items: center; gap: 8px;
  opacity: 0; scale: .92; pointer-events: none; transition: opacity .28s, scale .5s var(--ease-spring); }
body.is-tprev .openBar { opacity: 1; scale: 1; pointer-events: auto; }
.openX, .openCh { appearance: none; border: 0; background: none; padding: 0; color: var(--ink); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: scale .3s var(--ease-spring); }
.openX { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 80%, transparent); box-shadow: inset 0 0 0 1.5px var(--ink); transition: background .2s, color .2s, scale .3s var(--ease-spring); }
.openX:active { background: var(--ink); color: var(--bg); scale: .94; }
.openCh { position: relative; flex: 1; min-width: 0; height: 56px; padding: 0 0 0 24px; display: flex; align-items: center; font-size: 18px; letter-spacing: -.01em; text-align: left; }
.openCh__shape { position: absolute; left: 0; top: 0; overflow: visible; z-index: -1; }
.openCh__shape path { fill: color-mix(in srgb, var(--bg) 80%, transparent); stroke: var(--ink); stroke-width: 1.5px; transition: fill .2s; }
.openCh__l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 76px; transition: color .2s; }
.openCh__a { position: absolute; right: 0; top: 0; width: 56px; height: 56px; display: grid; place-items: center; transition: transform .45s var(--ease-spring), color .2s; }
.openCh:active { scale: .98; }
.openCh:active .openCh__shape path { fill: var(--ink); }
.openCh:active .openCh__l, .openCh:active .openCh__a { color: var(--bg); }
.openCh:active .openCh__a { transform: translateX(3px); }
/* home: the glass tab sits under the chapter you picked, and slides like the one on chapter pages */
body[data-chapter=""] .dock.has-thumb .dock__thumb { border-radius: 24px; }
.dock.is-tpull .dock__b.is-hover:not(.is-tover) .dock__slot { opacity: calc(.62 * var(--vis, 1)); }
/* the icon under the sliding glass tab swells */
.dock.has-thumb .dock__p i { scale: var(--tmag, 1); }
/* phones: the top buttons are bigger and all icons, in one row (Contact included) */
.contact__ico { display: none; }
@media (max-width: 640px) {
  .top { padding: 14px 16px; }
  .top__r { gap: 10px; }
  .chip--icon, .chip--about, .chip--contact { width: 54px; height: 54px; padding: 0; display: grid; place-items: center; }
  .chip--icon svg, .chip--about svg, .chip--contact svg { width: 22px; height: 22px; }
  .chip--icon b { font-size: 19px; }
  .chip--contact .contact__ico { display: block; }
  .chip--contact .contact__t { display: none; }
  body[data-chapter=""] .logo { left: 50%; top: 86px; transform: translateX(-50%); justify-items: center; text-align: center; font-size: 17px; }
  body[data-chapter=""] .logo:hover { transform: translateX(-50%); }
  body[data-chapter=""] .logo b { font-size: 17px; margin-bottom: 0; }
}
/* "you are here": on phones the face is a bit bigger, and says so once when it lands */
.here__say { position: absolute; left: 0; top: 0; translate: -50% -100%; padding: 6px 11px; border-radius: 999px; white-space: nowrap; font-size: 13px; line-height: 1;
  background: var(--ink); color: var(--bg); opacity: 0; scale: .8; transform-origin: 50% 100%; pointer-events: none; transition: opacity .45s ease, scale .5s var(--ease-spring); }
.here__say::after { content: ''; position: absolute; left: 50%; top: 100%; width: 8px; height: 8px; margin: -5px 0 0 -4px; background: inherit; transform: rotate(45deg); border-radius: 1px; }
.here.is-say .here__say { opacity: 1; scale: 1; }
@media (max-width: 900px) { .here__pill { width: 42px; height: 42px; } }
/* the face: a squircle with a hairline edge instead of the thick ring */
.here__pill, .list__here { padding: 0; background: none !important; box-shadow: none !important; -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20100%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M100.0%2050.0L99.9%2069.7L99.6%2076.0L99.1%2080.5L98.4%2084.0L97.5%2087.0L96.4%2089.5L95.1%2091.7L93.5%2093.5L91.7%2095.1L89.5%2096.4L87.0%2097.5L84.0%2098.4L80.5%2099.1L76.0%2099.6L69.7%2099.9L50.0%20100.0L30.3%2099.9L24.0%2099.6L19.5%2099.1L16.0%2098.4L13.0%2097.5L10.5%2096.4L8.3%2095.1L6.5%2093.5L4.9%2091.7L3.6%2089.5L2.5%2087.0L1.6%2084.0L0.9%2080.5L0.4%2076.0L0.1%2069.7L0.0%2050.0L0.1%2030.3L0.4%2024.0L0.9%2019.5L1.6%2016.0L2.5%2013.0L3.6%2010.5L4.9%208.3L6.5%206.5L8.3%204.9L10.5%203.6L13.0%202.5L16.0%201.6L19.5%200.9L24.0%200.4L30.3%200.1L50.0%200.0L69.7%200.1L76.0%200.4L80.5%200.9L84.0%201.6L87.0%202.5L89.5%203.6L91.7%204.9L93.5%206.5L95.1%208.3L96.4%2010.5L97.5%2013.0L98.4%2016.0L99.1%2019.5L99.6%2024.0L99.9%2030.3Z%22/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20100%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M100.0%2050.0L99.9%2069.7L99.6%2076.0L99.1%2080.5L98.4%2084.0L97.5%2087.0L96.4%2089.5L95.1%2091.7L93.5%2093.5L91.7%2095.1L89.5%2096.4L87.0%2097.5L84.0%2098.4L80.5%2099.1L76.0%2099.6L69.7%2099.9L50.0%20100.0L30.3%2099.9L24.0%2099.6L19.5%2099.1L16.0%2098.4L13.0%2097.5L10.5%2096.4L8.3%2095.1L6.5%2093.5L4.9%2091.7L3.6%2089.5L2.5%2087.0L1.6%2084.0L0.9%2080.5L0.4%2076.0L0.1%2069.7L0.0%2050.0L0.1%2030.3L0.4%2024.0L0.9%2019.5L1.6%2016.0L2.5%2013.0L3.6%2010.5L4.9%208.3L6.5%206.5L8.3%204.9L10.5%203.6L13.0%202.5L16.0%201.6L19.5%200.9L24.0%200.4L30.3%200.1L50.0%200.0L69.7%200.1L76.0%200.4L80.5%200.9L84.0%201.6L87.0%202.5L89.5%203.6L91.7%204.9L93.5%206.5L95.1%208.3L96.4%2010.5L97.5%2013.0L98.4%2016.0L99.1%2019.5L99.6%2024.0L99.9%2030.3Z%22/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
html[data-theme="dark"] .here__pill, html[data-theme="dark"] .list__here { background: none; box-shadow: none; }
.here__pill img, .list__here img { border-radius: 0; }
.here__pill, .list__here { position: relative; border-radius: 0 !important; overflow: visible; }
.here__pill { position: absolute; }
.sq__b { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.sq__b path { fill: none; stroke: rgba(11,11,11,.16); stroke-width: 2px; vector-effect: non-scaling-stroke; }
html[data-theme="dark"] .sq__b path { stroke: rgba(255,255,255,.22); }
/* phones: chapter + project pages read at a real size (text and buttons ~1.5x) */
@media (max-width: 640px) {
  .chap { --xT: 54px; }
  .chap__n, .chap__meta { font-size: 18px; }
  .chap__n { margin-bottom: 14px; }
  .chap__meta { margin-bottom: 20px; }
  .chap__text p:not([class]) { font-size: 20px; line-height: 1.5; }
  .chap__links { gap: 10px; }
  .chap .pill { font-size: 18px; padding: 12px 20px; }
  .chap__pk { font-size: 17px; margin-bottom: 8px; }
  .chap__pj { font-size: 21px; padding: 12px 0; gap: 14px; }
  .chap__pj b { font-size: 17px; }
  .chap .m figcaption { font-size: 15px; padding: 6px 12px; left: 10px; bottom: 10px; }
  .chap.is-x .reel__sec span { font-size: 40px; }
  .chap.is-x .reel__sec b { font-size: 16px; }
  .m__open { height: 40px; min-width: 40px; max-width: 40px; font-size: 15px; }
  .m__open svg { width: 15px; height: 15px; }
}
/* phones: every form runs full width — fields stack, the send button spans the row, and inputs are 16px+ so iOS doesn't zoom */
@media (max-width: 640px) {
  .inquire__row { grid-template-columns: 1fr; gap: 14px; }
  .inquire input[type=text], .inquire input[type=email], .inquire textarea { font-size: 17px; padding: 10px 0; }
  .inquire label > span, .inquire legend { font-size: 15px; }
  .list { top: 50%; transform: translate(-50%, -50%); }
}
/* the view switcher while you drag: the stop under your finger opens up with its label, the old one folds */
.cmt.is-pull .cmt__b.is-on:not(.is-tover) .cmt__l { max-width: 0; opacity: 0; margin-left: 0; }
.cmt.is-pull .cmt__b.is-tover .cmt__l { max-width: 7em; opacity: 1; margin-left: 7px; }
.cmt.is-pull .cmt__b.is-tover { color: var(--c-text); }
.cmt.is-pull .cmt__b.is-on:not(.is-tover) { color: var(--c-mute); }
.cmt.is-pull .cmt__l { transition: max-width .32s var(--ease-out), opacity .2s, margin-left .32s var(--ease-out); }
.cmt.is-pull .cmt__b.is-tover svg { transform: scale(1.1); }
.cmt--float.is-pull .cmt__b.is-tover { padding: 0 16px 0 14px; }
.cmt--float.is-pull .cmt__b.is-on:not(.is-tover) { padding: 0 14px; }
@media (max-width: 640px) {
  .cmt--float.is-pull .cmt__b.is-tover { padding: 0 20px 0 18px; }
  .cmt--float.is-pull .cmt__b.is-on:not(.is-tover) { padding: 0 18px; }
}
/* phones: the stack's own section headings name the projects, so the project list on a chapter page goes */
@media (max-width: 900px) { .chap__pjs { display: none !important; } }
/* phones: the bar is one rounded rectangle everywhere, its corners concentric with the glass tab inside (22 = 15 + the 7px inset) */
@media (max-width: 900px) {
  .dock__glass, body[data-view="default"]:not([data-chapter=""]) .dock__glass { border-radius: 22px; }
  .dock.has-thumb .dock__thumb, body[data-chapter=""] .dock.has-thumb .dock__thumb { border-radius: 15px; }
  body[data-view="default"]:not([data-chapter=""]) .dock__x { width: 38px; height: 38px; margin-top: -19px; right: 7px; border-radius: 15px; }
}
/* phones: list view reads bigger — names and especially the small labels */
@media (max-width: 640px) {
  .list__t { font-size: 36px; }
  .list__n, .list__y { font-size: 17px; }
  .list__row { padding: 13px 4px; grid-template-columns: 34px minmax(0, 1fr) auto; }
  .list__here { width: 34px; height: 34px; margin-left: 10px; }
}
/* phones: forms match the page's link buttons, and the contact card reads at full phone size */
@media (max-width: 640px) {
  .chap.is-x .chap__text { max-width: none; }
  .inquire__send, .ct .inquire__send, .inquire .inquire__type label span, .ct .inquire__type label span { font-size: 18px; padding: 12px 20px; }
  .ct__mail a { font-size: 18px; }
  .inquire__send, .ct .inquire__send { justify-self: start; width: auto; }
  .inquire__type, .ct .inquire__type { gap: 8px; }
  .inquire input[type=text], .inquire input[type=email], .inquire textarea { font-size: 18px; }
  .inquire label > span, .inquire legend { font-size: 16px; margin-bottom: 8px; }
  .ct__card { padding: 0 20px 20px; }
  .ct__top { height: 70px; margin: 0 -6px 0 0; }
  .ct__x { width: 54px; height: 54px; font-size: 24px; }
  .ct__me { gap: 16px; margin: 6px 0 20px; }
  .ct__ava { width: 64px; height: 64px; }
  .ct__h { font-size: 38px; }
  .ct__mail { padding: 14px 8px 14px 18px; border-radius: 16px; font-size: 18px; margin-bottom: 24px; }
  .ct__copy { font-size: 16px; padding: 10px 16px; }
  .ct .inquire__form { gap: 20px; }
  .ct__foot { font-size: 15px; gap: 12px; padding-top: 16px; }
  .ct__links { gap: 16px; }
}
/* phones: "Who are ya'" is a bottom sheet */
.sheet-dim { display: none; }
@media (max-width: 640px) {
  .views.is-open { z-index: 95; }
  .sheet-dim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.34); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); opacity: 0; pointer-events: none; transition: opacity .4s ease; }
  .views.is-open .sheet-dim { opacity: 1; pointer-events: auto; }
  .views__pop { position: fixed; left: 0; right: 0; bottom: 0; width: auto; box-sizing: border-box; padding: 12px 22px calc(30px + env(safe-area-inset-bottom, 0px)); border-radius: 28px 28px 0 0;
    opacity: 1; transform: translateY(110%); transform-origin: 50% 100%; transition: transform .55s var(--ease-out); touch-action: none; }
  .views.is-open .views__pop { transform: none; }
  .views__pop.is-drag { transition: none; }
  .views__pop::before { content: ''; display: block; width: 42px; height: 5px; border-radius: 3px; margin: 0 auto 22px; background: color-mix(in srgb, var(--ink) 22%, transparent); }
  .views__h { font-size: 38px; margin-bottom: 18px; }
  .views form { gap: 10px; }
  .views input { font-size: 18px; padding: 12px 0; }
  .views form .chip { font-size: 18px; padding: 12px 20px; width: auto; height: auto; margin-top: 12px; }
  .views__done { font-size: 18px; }
  .views__fine { font-size: 15px; margin-top: 16px; }
  .views__list { max-height: 34vh; margin-top: 18px; padding-top: 14px; }
  .views__k { font-size: 15px; margin-bottom: 8px; }
  .views__list p:not(.views__k) { font-size: 17px; padding: 6px 0; }
  #back, .stage { transition: scale .55s var(--ease-out), opacity .4s ease; }
  body.is-sheet #back, body.is-sheet .stage { scale: .94; }
  /* home: the caption, chapter list and footer read a size up */
  .dock__cap { font-size: 17px; }
  .dock__row { font-size: 16px; }
  .tenure, .views { font-size: 16px; }
  .views__eye { width: 19px; height: 19px; }
}
/* phones: the About page reads ~1.5x bigger — labels, bio, experience and press */
@media (max-width: 640px) {
  .about__k { font-size: 18px; }
  .about__col .about__k { margin-bottom: 12px; }
  .about__bio p { font-size: 20px; line-height: 1.5; margin-bottom: 18px; }
  .about__row { font-size: 18px; padding: 11px 0; gap: 14px; white-space: normal; }
  .about__row > span:first-child { min-width: 0; }
  .about__row > span:last-child { white-space: nowrap; }
  .about__row--sub { font-size: 16px; padding: 4px 0 8px 18px; }
  .about__links { font-size: 32px; gap: 8px 24px; }
}
@media (max-width: 640px) {
  /* the face sits on the name's optical centre (half the cap height), not the x-height */
  .list__here { vertical-align: calc(.34em - 17px); transform: none; }
  .list:has(.list__row:hover:not([data-chapter="cafeteria"])) .list__here { transform: none; }
}
/* the switcher labels clip sideways as they open; give the descenders (Catalog's g) room below */
.cmt__l { line-height: 1.25; padding: .12em 0 .18em; margin-top: -.12em; margin-bottom: -.18em; }
@media (max-width: 640px) { .ct .inquire__send { justify-self: stretch; width: 100%; justify-content: center; text-align: center; } }
/* phones: form fields are taller and never under 16px (iOS zooms into anything smaller); every send button spans the row */
@media (max-width: 900px) {
  input, textarea, select { font-size: max(16px, 1em); }
}
@media (max-width: 640px) {
  .inquire input[type=text], .inquire input[type=email], .inquire textarea, .views input { font-size: 18px; padding: 16px 0 14px; min-height: 56px; box-sizing: border-box; }
  .inquire textarea { min-height: 64px; }
  .views form .chip, .inquire__send, .ct .inquire__send { justify-self: stretch; width: 100%; display: flex; justify-content: center; text-align: center; padding: 15px 20px; }
}
/* the "view project" arrow sits dead centre in its circle until the label opens */
.m__open { justify-content: center; padding: 0; }
.m__open span { max-width: 0; overflow: hidden; transition: opacity .25s, transform .45s var(--ease-spring), max-width .45s var(--ease-out); }
.m[data-piece]:focus-visible .m__open span { max-width: 10em; }
@media (hover: hover) { .m[data-piece]:hover .m__open span { max-width: 10em; } }
/* phones: the stack is already vertical, so nothing is framed or cropped — every piece shows whole, at full width, at its own shape */
@media (max-width: 900px) {
  .chap.is-x .m, .chap.is-x .m.is-tall, .chap.is-x .m.is-screen { height: auto; aspect-ratio: auto; padding: 0; display: block; background: transparent; overflow: hidden; }
  .chap.is-x .m.is-tall::before { display: none; }
  .chap.is-x .m > img, .chap.is-x .m > video, .chap.is-x .m.is-tall > img, .chap.is-x .m.is-tall > video {
    display: block; width: 100%; height: auto; aspect-ratio: auto var(--ar); object-fit: contain; border-radius: 6px; box-shadow: none;
    -webkit-mask-image: none; mask-image: none; }
  .chap.is-x .m > video { aspect-ratio: var(--ar); }
}
/* contact: the content scrolls under soft fades at the top and bottom edge of the card instead of being cut off by its padding */
.ct__card { padding-bottom: 0; }
.ct__top { position: absolute; z-index: 3; top: 0; left: 15px; right: 14px; margin: 0; }
.ct__in { --ft: 38px; padding-top: var(--ft); padding-bottom: 22px; overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent calc(var(--ft) * .45), #000 calc(var(--ft) + 14px), #000 calc(100% - 34px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, transparent calc(var(--ft) * .45), #000 calc(var(--ft) + 14px), #000 calc(100% - 34px), transparent 100%); }
@media (max-width: 640px) {
  .ct__card { padding-bottom: 0; }
  .ct__top { left: 20px; right: 14px; }
  .ct__in { --ft: 70px; padding-bottom: 28px; }
}
/* Who are ya': rows and spacing match the contact form; the grab handle floats just above the sheet */
@media (max-width: 640px) {
  .views form { gap: 20px; }
  .views__pop { overflow: visible; padding-top: 26px; }
  .views__pop::before { position: absolute; left: 50%; top: -14px; margin: 0 0 0 -21px; background: rgba(255,255,255,.7); }
  html:not([data-theme="dark"]) .views__pop::before { background: rgba(255,255,255,.85); }
  .views form .chip { margin-top: 4px; }
}
@media (max-width: 900px) { body[data-chapter=""][data-view="default"] .dock__grip, .dock__grip { display: none !important; } }
