@font-face { font-family: 'Schibsted Grotesk'; src: url('/assets/schibsted-grotesk.woff2') format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Martian Mono'; src: url('/assets/martian-mono.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }
:root {
  color-scheme: light;
  --bg: #f5f4f0; --ink: #282a27; --mute: #595e55; --faint: #676a61;
  --line: #dedfd6; --plate: #eaeae3; --paper: #fcfcf8; --cell0: #dbdfd5; --cell: 48 71 48;
  --ease: cubic-bezier(.2,.7,.2,1);
  --monitor-pixel: 6px;
  --sans: 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Martian Mono', ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid #ffd890; outline-offset: 2px; box-shadow: 0 0 0 6px #171d34 !important; border-radius: 2px; }
[tabindex="-1"]:focus { outline: none; }
h1,h2,h3,p,ol,dl,dd,figure { margin: 0; }
::selection { background: #ccd4bd; color: #20261b; }
.skip-link { position: fixed; left: 18px; top: -100px; z-index: 100; padding: 10px 16px; background: var(--paper); color: var(--ink); }
.skip-link:focus { top: 12px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 26px 32px; font-size: 13px; }
.desk-role { display: none; font-weight: 400; letter-spacing: normal; }
.mark { display: flex; align-items: center; gap: 32px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.top nav { display: flex; gap: 23px; margin-left: auto; color: var(--mute); }
.site-header nav a:nth-child(4) { border-left: 1px solid var(--line); padding-left: 23px; margin-left: 6px; }
.top a { text-underline-offset: 5px; }
.top nav a[href^="https:"]::after { content: '↗'; margin-left: 4px; }
.top a:hover, .top a[aria-current] { text-decoration: underline; }
/* Only the name is underlined, never the role line beside or under it. */
.top .mark:hover, .top .mark[aria-current] { text-decoration: none; }
.top .mark:hover > span:first-child, .top .mark[aria-current] > span:first-child { text-decoration: underline; }
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb,var(--bg) 94%,transparent); backdrop-filter: blur(12px); }
.no-js .mode-toggle { display: none; }
.mode-toggle { font-size: 12px; white-space: nowrap; border: 1px solid var(--line); border-radius: 3px; padding: 7px 12px; }
.reading-intro { max-width: 960px; margin: 76px auto 38px; padding: 0 28px; }
.eyebrow { font: 400 12px/1.6 var(--sans); color: var(--faint); margin-bottom: 20px; }
.reading-intro h1 { font-size: clamp(36px,5vw,64px); font-weight: 500; letter-spacing: -.055em; line-height: 1.05; margin-bottom: 16px; }
.reading-intro > p:last-child { color: var(--mute); font-size: 18px; }
.desk-stage { position: relative; max-width: 904px; margin: 0 auto; overflow: hidden; background: #0a0a14; }
.desk-poster { display: block; width: 100%; height: auto; image-rendering: pixelated; }
/* Reduced motion's global duration must not animate measured scene geometry. */
.desk-stage,.desk-poster,.scene-canvas,.scene-sheet,.content-section { transition-property: none; }
.scene-sheet { display: contents; }
.scene-canvas,#desk-canvas,.hotspot-labels,.desk-hint { display: none; }
.content { max-width: 960px; margin: 0 auto; padding: 0 28px; }
.content-section { scroll-margin-top: 105px; margin: 80px 0 0; }
.panel-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding: 24px 0 28px; }
.panel-bar h2 { font-size: 24px; font-weight: 500; line-height: 1.2; letter-spacing: -.03em; }
.panel-end { display: none; }
.back-desk { display: none; white-space: nowrap; font-size: 12px; color: var(--mute); }
.back-desk:hover { color: var(--ink); }
.back-desk span { margin-right: 4px; }
.intro h3 { max-width: 40ch; font-size: clamp(24px,2.5vw,34px); font-weight: 500; line-height: 1.23; letter-spacing: -.035em; text-wrap: pretty; }
.intro h3 span { color: var(--faint); }
.facts { display: grid; grid-template-columns: 1.3fr .9fr 1.3fr; gap: 26px; margin-top: 38px; font-size: 13px; }
.facts dt { color: var(--faint); margin-bottom: 6px; font-size: 12px; }
.belief { max-width: 460px; margin-top: 32px; }
.belief h3 { font-size: 12px; font-weight: 400; color: var(--faint); margin-bottom: 8px; }
.belief p { font-size: 14px; }
.resume-contacts { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 24px; font-size: 14px; color: var(--ink); }
.resume-contacts a,.copy-address,.methods-note a,.belief a,.writing-index a,.paper-source a { text-decoration: underline; text-underline-offset: 4px; }
.resume-contacts a[href^="https:"]::after { content: '↗'; margin-left: 6px; font-weight: 400; }
.resume-contacts a:hover { text-decoration-thickness: 2px; }
.end a:hover { text-decoration: underline; text-underline-offset: 4px; }
.copy-address { color: var(--mute); text-underline-offset: 4px; }
.methods-note,.paper-lede { max-width: 60ch; margin: 18px 0; font-size: 14px; }
.paper-source { margin-top: 12px; }
.research-invite { border-top: 4px solid #303b5c; background: #e8e9df; padding: clamp(20px,4vw,36px); }
.research-invite > p:first-child { font: 500 12px/1.5 var(--mono); color: #3c4a40; }
.research-invite h3 { max-width: 19ch; margin: 12px 0; font-size: clamp(23px,3vw,38px); line-height: 1.1; letter-spacing: -.035em; }
.research-invite > p { max-width: 48ch; }
.case-action { display: inline-flex; align-items: center; gap: 15px; min-height: 44px; margin-top: 18px; padding: 8px 16px; color: #fff4d9; background: #24304a; font-weight: 600; }
.case-action:hover { background: #364a6d; }
.practice { margin-top: 10px; }
.practice > summary { cursor: pointer; padding: 10px 0; font-size: 14px; }
.picture-link { display: none; }
.work { display: grid; grid-template-columns: 1fr; gap: 46px; }
.item { min-width: 0; }
.plate { position: relative; display: block; overflow: hidden; border-radius: 6px; background: var(--plate); aspect-ratio: 16/10; isolation: isolate; }
.cap { margin-top: 15px; max-width: 460px; }
.cap h3 { font-size: 15px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 5px; }
.cap h3 a[href^="https:"]::after { content: '↗'; margin-left: 6px; color: var(--faint); font-weight: 400; }
.cap h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cap p { color: var(--mute); font-size: 14px; }
.cap .project-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 16px; margin-top: 7px; font-size: 13px; }
.project-links a { text-decoration: underline; text-underline-offset: 4px; }
.cap .project-links .meta { margin: 0; }
.cap .meta { margin-top: 7px; font-size: 12px; color: var(--faint); }
.plate-shot { padding: 0; }

.plate-shot .shot {
  position: absolute;
  display: block;
  width: 96%;
  height: 96%;
  left: 2%;
  top: 2%;
  object-fit: contain;
}

/* The tour is a recording of the whole app. Show its 3D view only: the menus round it are unreadable at this size. */
.plate-shot:not(.plate-pm) .shot { width: 143%; height: auto; aspect-ratio: 16/9; left: 0; top: 0; transform: translateY(-16%); object-fit: fill; }
.plate.plate-pm { aspect-ratio: 9/4; background: #eee7d7; }
.plate-pm .shot {
  width: 100%;
  height: auto;
  left: 0;
  top: 0;
  transform: translateY(-10%);
  /* Leave the headline and labelled drawing; the small paragraph sits below them. */
  clip-path: polygon(0 0,100% 0,100% 100%,38% 100%,38% 48%,0 48%);
}
.pm-headline,.pm-drawing { display: none; }

[data-scrub] { cursor: ew-resize; }
.hint {
  position: absolute; left: 16px; bottom: 14px;
  font-size: 12px; color: #55565c;
  padding: 5px 10px; border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .05);
  transition: opacity .4s;
}
[data-scrub].touched .hint { opacity: 0; }
@media (hover: none) { .hint { display: none; } [data-scrub] { cursor: pointer; } }

.plate.plate-ov { display: grid; place-items: center; aspect-ratio: auto; padding: clamp(24px,4vw,44px) 0; }
.ov {
  width: min(84%, 460px);
  padding: 22px 24px 18px;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .04), 0 10px 30px -10px rgb(0 0 0 / .14);
  font-size: 14px;
  line-height: 1.5;
}
.ov-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); margin-bottom: 4px; }
.ov-source { color: var(--mute); margin-bottom: 16px; }
.ov-summary { font-size: 16px; line-height: 2.3; text-wrap: balance; letter-spacing: -0.01em; }
.ov-summary button { font: inherit; display: inline; padding: 8px 0; border-radius: 4px; cursor: pointer; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background-color .2s, color .2s, opacity .3s; }
.ov-summary button:hover { background: rgb(var(--cell) / .07); }
.ov-summary button.no { color: var(--faint); }
.ov-summary button.yes { background: #ffe2d6; color: #b4280c; text-decoration: line-through; text-decoration-thickness: 1.5px; }

.ov-result:empty { display: none; }
.ov-result { margin-top: 12px; font-size: 13px; color: var(--mute); }
.ov-result button { text-decoration: underline; text-underline-offset: 2px; color: var(--ink); }

.plate.plate-study { aspect-ratio: auto; padding: clamp(20px, 3vw, 30px); background: var(--paper); border: 1px solid var(--line); }
.study-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 14px; }
.study-kicker { font: 500 11px/1.4 var(--mono); color: #303b5c; text-transform: uppercase; letter-spacing: .04em; }
.study-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; color: var(--mute); }
.study-legend span { display: inline-flex; align-items: center; gap: 5px; }
.study-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; }
.study-rows { display: grid; gap: 11px; }
.study-row { display: grid; grid-template-columns: 116px minmax(0, 1fr) 46px; align-items: center; gap: 10px; font-size: 12px; }
.study-model { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.study-track { position: relative; height: 22px; background: var(--plate); border-radius: 2px; }
.study-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: rgb(0 0 0 / .08); }
.study-bar { position: absolute; top: 4px; height: 14px; border-radius: 2px; opacity: .28; background: #303b5c; }
.study-dot { position: absolute; top: 50%; width: 9px; height: 9px; border-radius: 50%; transform: translate(-50%, -50%); }
.study-dot.d-neu { background: #595e55; }
.study-dot.d-aut { background: #303b5c; }
.study-dot.d-usr { background: #b44b2c; }
.study-delta { font: 500 11px/1 var(--mono); text-align: right; color: var(--mute); }
.study-scale { display: flex; justify-content: space-between; margin: 10px 46px 0 126px; font: 400 10px/1 var(--mono); color: var(--faint); }

.plate-heat { aspect-ratio: auto !important; padding: clamp(20px, 3.4vw, 40px); }
.heat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.heat-total { font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; letter-spacing: -0.03em; }
.heat-total span { display: inline-block; min-width: 2.45em; }
.heat-read { font-size: 13px; color: var(--mute); text-align: right; }
.heat { touch-action: none; display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, auto); gap: 3px; }
.heat i {
  display: block; aspect-ratio: 1; border-radius: 2px;
  background: var(--cell0);
  transition: transform .15s;
}
.heat i[data-n] { background: rgb(var(--cell) / var(--a)); }
.heat i.pad { visibility: hidden; }
.heat i:hover { transform: scale(1.5); position: relative; z-index: 1; }


.heat-months { position: relative; height: 20px; margin-top: 10px; font-size: 12px; color: var(--faint); }
.heat-months span { position: absolute; top: 0; }

.plate.plate-term { display: grid; place-items: center; aspect-ratio: auto; padding: 32px 0; }
.term {
  width: 86%; min-height: 240px;
  border-radius: 10px;
  background: #151514;
  color: #c9c7c1;
  box-shadow: 0 0 0 1px rgb(0 0 0 / .2), 0 18px 40px -14px rgb(0 0 0 / .35);
  overflow: hidden;
}
.term-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.term-dots { display: flex; gap: 6px; }
.term-dots i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a37; }
.term-tabs { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.term-tabs button { padding: 3px 8px; border: 1px solid #3a3a37; border-radius: 3px; color: #9c9a92; font: 400 11px/1.3 var(--mono); }
.term-tabs button:hover { border-color: #6b6a64; color: #e2e0da; }
.term-tabs button[aria-pressed="true"] { background: #2c2d2a; border-color: #89877f; color: #f5f4ec; }
.term pre {
  margin: 0; padding: 4px 16px 16px;
  font: 400 12px/1.75 var(--mono);
  white-space: pre-wrap; word-break: break-word;
}
.term .p { color: #89877f; }
.term .err { color: #ff8a70; }
.term .ok { color: #9fdc9a; }
.term .cur { display: inline-block; width: .6em; height: 1.1em; vertical-align: -0.2em; background: #c9c7c1; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.plate-wal { width: 100%; min-height: 300px; --wb-bg: #120b24; --wb-fg: #f4e9f2; --wb-a: #ff6fa5; --wb-b: #ffd59a; --wb-c: #c78bff; }
.wal-paper { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; transition: opacity .6s; }
.wal-win {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: 78%;
  border-radius: 10px;
  background: var(--wb-bg);
  color: var(--wb-fg);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--wb-a) 40%, transparent), 0 20px 40px -16px rgb(0 0 0 / .45);
  transition: background-color .7s, color .7s, box-shadow .7s;
  overflow: hidden;
}
.wal-bar { display: flex; gap: 4px; align-items: center; padding: 8px 10px; font: 500 12px/1 var(--mono); border-bottom: 1px solid color-mix(in srgb, var(--wb-fg) 10%, transparent); }
.wal-bar span { padding: 4px 6px; border-radius: 4px; transition: background-color .7s, color .7s; }
.wal-bar span.on { background: var(--wb-a); color: var(--wb-bg); }
.wal-bar b { margin-left: auto; width: 40px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--wb-b), var(--wb-c)); transition: background .7s; }
.wal-win pre { margin: 0; padding: 12px 14px 6px; font: 400 12px/1.75 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.wal-win pre em { font-style: normal; color: var(--wb-a); transition: color .7s; }
.wal-win pre s { text-decoration: none; color: var(--wb-b); transition: color .7s; }
.wal-swatches { display: flex; gap: 4px; padding: 4px 14px 14px; }
.wal-swatches span { flex: 1; height: 12px; border-radius: 3px; transition: background-color .7s; }
.wal-picks { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 6px; }
.wal-picks button { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1.5px rgb(255 255 255 / .35); transition: box-shadow .25s, transform .25s var(--ease); }
.wal-picks button:hover { transform: scale(1.08); }
.wal-picks button[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 2px 10px rgb(0 0 0 / .3); }
.wal-picks canvas { width: 100%; height: 100%; display: block; }


.posts-list h3,.essays-list h3,.papers-list h3,.reading-list h3 { font-size: 12px; color: var(--faint); font-weight: 400; margin-bottom: 14px; }
.writing-panel .panel-body { display: flex; flex-direction: column; gap: 40px; }
.writing-panel .panel-body:not(:has(.posts li)) .essays-list { order: -2; }
.writing-panel .panel-body:not(:has(.posts li)) .papers-list { order: -1; }
.posts,.essays,.papers { list-style: none; padding: 0; }
.posts li,.essays li,.papers li { border-top: 1px solid var(--line); }
.posts li:last-child,.essays li:last-child,.papers li:last-child { border-bottom: 1px solid var(--line); }
.posts a,.essays a { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 16px 10px; }
.essays a:hover,.essays a:focus-visible { background: var(--plate); }
.essays .t { font-size: 15px; font-weight: 500; line-height: 1.45; }
.posts .d,.essays .d { grid-column: 1; color: var(--mute); font-size: 13px; max-width: 460px; }
.posts .y,.essays .y { grid-column: 2; grid-row: 1/3; color: var(--faint); font-size: 12px; white-space: nowrap; }
.posts a:hover .t,.essays a:hover .t { text-decoration: underline; text-underline-offset: 4px; }
.posts-note { color: var(--mute); font-size: 13px; }
.posts-note a { text-decoration: underline; text-underline-offset: 4px; }
.papers summary { display: grid; grid-template-columns: 1fr auto; gap: 7px 20px; padding: 18px 10px; cursor: pointer; list-style: none; }
.papers summary:hover,.papers summary:focus-visible { background: var(--plate); }
.papers summary::-webkit-details-marker { display: none; }
.papers .t { max-width: 460px; font-size: 14px; line-height: 1.5; }
.papers .w { grid-column: 1; grid-row: 2; font-size: 12px; color: var(--mute); }
.papers .y { grid-column: 2; grid-row: 1; justify-self: end; color: var(--faint); font-size: 12px; }
.paper-toggle { display: inline-flex; align-items: center; align-self: center; justify-self: end; grid-column: 2; grid-row: 2; gap: 8px; padding: 4px 8px; border: 1px solid var(--faint); border-radius: 3px; background: var(--paper); color: var(--ink); font-size: 12px; line-height: 1.5; white-space: nowrap; }
.paper-toggle::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease); }
.papers details[open] .paper-toggle::after { transform: translateY(2px) rotate(225deg); }
.reading { list-style: none; padding: 0; }
.reading li { display: grid; gap: 6px; border-top: 1px solid var(--line); padding: 18px 10px; }
.reading li:last-child { border-bottom: 1px solid var(--line); }
.reading .t { max-width: 460px; width: fit-content; font-size: 14px; line-height: 1.5; text-decoration: underline; text-underline-offset: 4px; }
.reading .t::after { content: '↗'; display: inline-block; margin-left: 6px; color: var(--faint); }
.reading .t:hover { text-decoration-thickness: 2px; }
.reading .w,.reading-from { font-size: 12px; color: var(--mute); }
.reading blockquote { max-width: 480px; margin: 6px 0 0; padding-left: 14px; border-left: 3px solid var(--line); font-size: 14px; color: var(--mute); }
.reading-note { max-width: 480px; margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink); }
.reading-from { max-width: 480px; padding-left: 17px; }
.reading-from a { text-decoration: underline; text-underline-offset: 4px; }
.abs { max-width: 480px; padding: 16px 10px 22px; font-size: 14px; color: var(--mute); }
.abs p + p { margin-top: 10px; }
.abs :is(b,strong) { color: var(--ink); font-weight: 500; margin-right: 4px; }
.end { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--line); padding: 24px 0 36px; margin-top: 80px; font-size: 12px; }
.end .meta { color: var(--faint); }
.page-end { max-width: 904px; margin-left: auto; margin-right: auto; }
.page { max-width: 960px; padding: 0 28px; margin: 0 auto; }
.page .top { padding-left: 0; padding-right: 0; }
.page .intro { padding: 70px 0; }
.page .intro h1 { font-size: 38px; font-weight: 500; letter-spacing: -.04em; }
.page .list { margin: 25px 0 70px; }
.page .list h2 { font-size: 13px; margin-bottom: 18px; font-weight: 400; }

@media (width > 900px) and (aspect-ratio > 1/1) {
  html[data-mode="desk"] { overflow: hidden; }
  [data-mode="desk"] body { background: #0a0a14; }
  [data-mode="desk"] .site-header { position: fixed; inset: 0 0 auto; height: 48px; padding: 0 24px; background: #0a0a14; color: #f5f4ec; backdrop-filter: none; pointer-events: none; }
  [data-mode="desk"] .site-header a { pointer-events: auto; }
  [data-mode="desk"] .desk-role { display: block; color: #b9bbc8; font-size: 13px; white-space: nowrap; }
  .desk-location { display: none; }
  [data-mode="desk"] :focus-visible { border-radius: 0; }
  [data-mode="desk"] .site-header nav { color: #e0e3d7; }
  [data-mode="desk"] .site-header nav a:nth-child(4) { border-color: #595e73; }
  [data-mode="desk"] .mode-toggle { border-color: rgb(255 255 255/.3); background: rgb(15 22 15/.35); }
  html:not([data-mode="desk"]) .desk-stage { display: none; }
  html:not([data-mode="desk"]) .reading-intro { margin-block: 38px 10px; min-height: 130px; padding-right: 255px; background: url('/assets/scene/poster.png') right 28px center / 206px auto no-repeat; }
  html:not([data-mode="desk"]) .content-section:first-child { margin-top: 24px; }
  [data-mode="desk"] .reading-intro,[data-mode="desk"] .page-end { display: none; }
  [data-mode="desk"] .desk-stage { position: fixed; inset: 48px 0 0; width: 100%; height: calc(100dvh - 48px); max-width: none; margin: 0; }
  [data-mode="desk"] .desk-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
  [data-mode="desk"] :is(#desk-canvas,.scene-canvas) { position: absolute; left: 0; top: 0; display: block; opacity: 0; image-rendering: pixelated; transform-origin: 0 0; touch-action: pan-y pinch-zoom; pointer-events: auto; }
  [data-mode="desk"][data-status="ready"] .desk-poster { opacity: 0; pointer-events: none; }
  [data-mode="desk"] .scene-sheet[data-sheet="desk"]::after { content: ''; position: absolute; inset: 0; background: #0a0d1c; z-index: 3; opacity: var(--scrim-opacity, 0); pointer-events: none; }
  [data-mode="desk"] .hotspot-labels { z-index: 4; display: block; position: absolute; inset: 0; pointer-events: none; visibility: hidden; }
  [data-status="ready"][data-view="desk"]:not([data-moving]) .hotspot-labels { visibility: visible; }
  .hotspot-labels a { position: absolute; top: 0; left: 0; display: flex; align-items: center; gap: 12px; padding: 7px 11px; border: 2px solid #d3b98c; background: #171d34; color: #fff4d9; font-size: 13px; font-weight: 600; line-height: 1.4; white-space: nowrap; box-shadow: 3px 3px 0 #0a0d1c; pointer-events: auto; cursor: pointer; }
  .hotspot-labels a::after { content: '→'; color: #ffd890; font-size: 15px; line-height: 1; }
  .hotspot-labels a.is-hovered,.hotspot-labels a:hover,.hotspot-labels a:focus-visible { background: #fff4d9; border-color: #fff4d9; color: #171d34; }
  .hotspot-labels a.is-hovered::after,.hotspot-labels a:hover::after,.hotspot-labels a:focus-visible::after { color: #171d34; }
  [data-mode="desk"] .picture-link { display: inline-flex; position: absolute; left: 16px; bottom: 16px; z-index: 1; align-items: center; min-height: 40px; padding: 6px 12px; background: #171d34; border: 2px solid #d3b98c; color: #fff4d9; box-shadow: 3px 3px 0 #0a0d1c; font-size: 13px; pointer-events: auto; }
  [data-mode="desk"] .object-tip { position: absolute; left: 0; top: 0; z-index: 5; padding: 5px 10px; border: 2px solid #ffd890; background: #171d34; color: #fff4d9; font-size: 12px; font-weight: 600; line-height: 1.35; white-space: nowrap; box-shadow: 3px 3px 0 #0a0d1c; pointer-events: none; }
  .picture-link:hover { text-decoration: underline; text-underline-offset: 3px; }
  [data-mode="desk"] .desk-hint { display: block; position: fixed; left: 24px; right: 24px; bottom: 18px; z-index: 3; text-align: center; color: #f2f3e9; font-size: 13px; pointer-events: none; }
  [data-mode="desk"] .desk-hint { left: 50%; right: auto; transform: translateX(-50%); padding: 4px 12px; background: #0a0d1c; white-space: nowrap; }
  [data-mode="desk"] .desk-hint[data-margin="true"] { padding: 0; background: none; }
  [data-mode="desk"]:not([data-status="ready"]) .desk-hint { visibility: hidden; }
  [data-mode="desk"]:not([data-view="desk"]) .desk-hint,
  [data-moving] .desk-hint { display: none; }
  [data-mode="desk"] .content { padding: 0; }
  [data-mode="desk"] .scene-sheet { display: block; visibility: hidden; position: absolute; inset: 0; overflow: hidden; background: transparent; pointer-events: none; }
  [data-mode="desk"] .scene-picture { position: absolute; top: 0; bottom: 0; overflow: hidden; will-change: transform; pointer-events: auto; }
  [data-mode="desk"][data-status="ready"] .scene-sheet { visibility: visible; }
  [data-mode="desk"] #desk-canvas { will-change: transform; }
  [data-mode="desk"] .content-section { display: block; position: absolute; z-index: 10; margin: 0; background: var(--paper); color: var(--ink); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; box-shadow: none; pointer-events: auto; }
  [data-mode="desk"] .content-section { will-change: transform; }
  [data-mode="desk"] .content-section[data-present="true"] { display: block; }
  [data-mode="desk"] .content-section:not([data-active="true"]) { pointer-events: none; }
  [data-mode="desk"] .panel-bar { position: sticky; z-index: 2; top: 0; border-top: 0; border-bottom: 1px solid var(--line); background: var(--paper); padding: 16px 26px; }
  [data-mode="desk"] .panel-bar h2 { font-size: 13px; line-height: 1.6; letter-spacing: normal; }
  [data-mode="desk"] .panel-body { padding: 26px; }
  [data-mode="desk"] .back-desk { display: block; }
  [data-mode="desk"] .resume-panel { transform-origin: 0 0; left: 0; top: 0; overflow: visible; grid-template-rows: auto minmax(0,1fr); box-shadow: 0 0 0 var(--monitor-pixel) #171d34, 0 0 0 calc(2 * var(--monitor-pixel)) #0a0d1c; }
  [data-mode="desk"] .resume-panel { display: grid; visibility: hidden; }
  /* The grid is what holds the body inside the monitor frame, so it has to outrank the rule that shows a present panel as a block. */
  [data-mode="desk"] .resume-panel[data-present="true"] { display: grid; visibility: visible; }
  [data-mode="desk"] .resume-panel::after { content: ''; position: absolute; top: calc(100% + 2 * var(--monitor-pixel)); left: var(--monitor-stand-left); width: calc(30 * var(--monitor-pixel)); height: calc(10 * var(--monitor-pixel)); background: #303b5c; box-shadow: inset 0 calc(-1 * var(--monitor-pixel)) #0a0d1c; clip-path: polygon(40% 0,60% 0,60% 70%,100% 70%,100% 100%,0 100%,0 70%,40% 70%); }
  [data-mode="desk"] .panel-bar { justify-content: flex-start; height: calc(10 * var(--monitor-pixel)); padding: 0 calc(4 * var(--monitor-pixel)); background: #303b5c; border-bottom: var(--monitor-pixel) solid #171d34; color: #fff4d9; }
  [data-mode="desk"] .panel-bar::before { content: ''; flex: 0 0 var(--monitor-pixel); height: var(--monitor-pixel); margin-right: calc(4 * var(--monitor-pixel)); background: #d36d70; box-shadow: calc(2 * var(--monitor-pixel)) 0 #e3b765, calc(4 * var(--monitor-pixel)) 0 #96ba7a; }
  [data-mode="desk"] .panel-bar .back-desk { margin-left: auto; margin-right: -10px; padding: 6px 10px; color: #fff4d9; }
  [data-mode="desk"] .panel-bar .back-desk:hover { text-decoration: underline; text-underline-offset: 4px; }
  [data-mode="desk"] .resume-panel .panel-body { overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  [data-mode="desk"] .resume-panel .panel-body { padding: 20px 26px; }
  [data-mode="desk"] .resume-panel .intro h3 { max-width: 46ch; font-size: clamp(20px,1.7vw,25px); }
  [data-mode="desk"] .resume-panel .facts { margin-top: 20px; }
  [data-mode="desk"] .resume-panel .methods-note { margin: 14px 0; }
  [data-mode="desk"] .resume-panel .resume-contacts { margin-top: 16px; }
  [data-mode="desk"] .resume-panel .belief { max-width: 600px; margin-top: 16px; }
  /* Each panel is a full column against its window edge, so no sliver of the scene shows round it. */
  [data-mode="desk"] .projects-panel { top: 0; bottom: 0; left: 52%; right: 0; border-left: var(--monitor-pixel) solid #171d34; }
  [data-mode="desk"] .writing-panel { top: 0; bottom: 0; left: 0; right: 52%; border-right: var(--monitor-pixel) solid #171d34; }
  [data-mode="desk"] .writing-panel .panel-body { padding-top: 28px; }
  [data-mode="desk"] .work { gap: 34px; }
  [data-mode="desk"] .plate { border-radius: 2px; }
  [data-mode="desk"] :is(.ov,.term,.wal-win) { border: 1px solid #171d34; border-radius: 2px; box-shadow: none; }
  [data-mode="desk"] :is(.hint,.paper-toggle,.wal-picks button) { border-radius: 2px; box-shadow: none; }
  [data-mode="desk"] .hint { border: 1px solid var(--line); }
  [data-mode="desk"] :is(.term-dots i,.wal-bar span,.wal-bar b,.wal-swatches span,.ov-summary button,.term-tabs button) { border-radius: 0; }
  [data-mode="desk"] .wal-picks button { border: 1px solid #fff4d9; }
  [data-mode="desk"] .wal-picks button[aria-pressed="true"] { border: 2px solid #ffd890; }
  [data-mode="desk"] .paper-toggle { border-color: #303b5c; }
  [data-mode="desk"] .reading blockquote { border-left-color: #303b5c; }
  [data-mode="desk"] .papers summary:hover,[data-mode="desk"] .papers details[open] > summary { background: var(--plate); box-shadow: inset 3px 0 #303b5c; }
  [data-mode="desk"] .panel-end { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 2px solid #303b5c; padding: 20px 0 36px; font-size: 12px; color: var(--mute); }
  [data-mode="desk"] .panel-end .back-desk { border: 1px solid #303b5c; padding: 0 12px; border-radius: 2px; }
  [data-mode="desk"] .panel-end nav { display: flex; gap: 16px; }
  [data-mode="desk"] .panel-end :is(a,button) { display: inline-flex; align-items: center; min-height: 44px; }
  [data-mode="desk"] .panel-end a:hover { text-decoration: underline; text-underline-offset: 4px; }
}
@media (width > 900px) and (max-width: 1199px) and (aspect-ratio > 1/1) {
  [data-mode="desk"] .site-header { gap: 12px; }
  [data-mode="desk"] .site-header nav { gap: 12px; }
  [data-mode="desk"] .site-header nav a:nth-child(4) { padding-left: 12px; margin-left: 4px; }
}
@media (min-width: 1200px) {
  [data-mode="desk"] .desk-location { display: inline; }
}
@media (max-width: 900px) {
  .top { gap: 18px; padding: 22px 20px; }
  .top nav { gap: 16px; }
}
@media (width <= 900px), (aspect-ratio <= 1/1) {
  html { scroll-padding-top: 20px; }
  .top { flex-wrap: wrap; }
  .site-header { position: relative; padding: 12px 28px 0; gap: 0; backdrop-filter: none; }
  .site-header .mark { flex-wrap: wrap; justify-content: flex-start; gap: 0 20px; min-height: 44px; }
  .site-header .desk-role { display: block; font-size: 13px; color: var(--mute); }
  .site-header nav { flex: 0 0 100%; justify-content: flex-start; gap: 16px; margin: 0; }
  .site-header nav a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
  .site-header nav a:nth-child(4) { border-left: 1px solid var(--line); padding-left: 16px; margin-left: 6px; }
  .site-header .mode-toggle { display: none; }
  .reading-intro { display: none; }
  .desk-stage { position: relative; width: calc(100% - 56px); max-width: 904px; aspect-ratio: 8/5; margin: 0 auto; }
  .desk-poster { position: absolute; width: 100%; height: 100%; object-fit: contain; }
  #desk-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; image-rendering: pixelated; touch-action: pan-y pinch-zoom; pointer-events: auto; }
  [data-status="ready"] #desk-canvas { opacity: 1; }
  [data-status="ready"] .desk-poster { opacity: 0; pointer-events: none; }
  .content-section { scroll-margin-top: 0; }
  .content-section:first-child { margin-top: 32px; }
}
@media (max-width: 640px) {
  .ov { width: 92%; padding: 16px; font-size: 12px; }
  .ov-summary { font-size: 14px; }
  .ov-label { font-size: 12px; }
  .papers .w { grid-column: 1/-1; }
  .paper-toggle { grid-column: 1/-1; grid-row: 3; justify-self: start; }

  .top { flex-wrap: wrap; gap: 8px 10px; padding: 12px 18px 10px; font-size: 12px; }
  .top .mark { min-height: 44px; font-size: 14px; }
  .top nav { flex: 0 0 100%; justify-content: space-between; gap: 5px; margin: 0; font-size: 12px; }
  .top nav a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
  .top nav a[href^="https:"]::after { margin-left: 2px; }
  .top nav a:nth-child(4) { border-left: 1px solid var(--line); padding-left: 8px; margin-left: 2px; }
  .site-header { padding: 10px 22px 0; gap: 0; }
  .site-header .mark { flex-direction: column; align-items: flex-start; justify-content: center; min-height: 50px; gap: 0; }
  .site-header .desk-role { font-size: 12px; }
  .site-header .desk-location { display: none; }
  .site-header nav { justify-content: space-between; gap: 3px; font-size: 12px; }
  .site-header nav a:nth-child(4) { padding-left: 5px; margin-left: 0; }
  .reading-intro { margin: 42px auto 28px; padding: 0 22px; }
  .reading-intro h1 { font-size: 46px; }
  .reading-intro > p:last-child { font-size: 15px; }
  .eyebrow { margin-bottom: 16px; }
  .desk-stage { width: 100%; max-width: none; margin: 0; }
  .desk-poster { aspect-ratio: 8/5; object-fit: contain; }
  .content { padding: 0 22px; }
  .content-section { margin-top: 52px; }
  .intro h3 { font-size: 22px; }
  .facts { grid-template-columns: 1fr; gap: 18px; margin-top: 28px; }
  .facts dt { margin-bottom: 3px; }
  .belief { margin-top: 26px; }
  .resume-contacts { display: grid; grid-template-columns: max-content max-content; justify-content: start; gap: 0 20px; }
  .resume-contacts { grid-template-columns: repeat(2, max-content); }
  .copy-address { min-height: 44px; text-align: left; }
  .resume-contacts a,.cap h3 a,.project-links a,.end a,.posts-note a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 0; }
  .term-tabs button { min-height: 36px; padding: 4px 8px; }
  .papers summary { min-height: 44px; }
  .reading li { gap: 0; }
  .reading .t { padding-block: 12px; }
  .reading .w { margin-bottom: 6px; }
  .reading-from { margin-top: 8px; }
  .reading-from a { padding-block: 13px; }
  /* Inline links keep their line height; the padding only enlarges where a thumb can land. */
  :is(.methods-note,.paper-source,.writing-index) a { padding-block: 13px; }
  .ov-result button { min-height: 32px; padding: 6px 2px; }
  .wal-picks button { width: 44px; height: 44px; }
  .page-end { margin: 56px 22px 0; font-size: 12px; }
  .plate { aspect-ratio: 4/3.6; }
  .plate-shot { aspect-ratio: 16/10; }
  .plate.plate-pm { aspect-ratio: 1/1.6; }
  .plate-pm > .shot { display: none; }
  .pm-headline,.pm-drawing { display: block; position: absolute; left: 6%; width: 88%; overflow: hidden; }
  .pm-headline { top: 6%; aspect-ratio: 46/32; }
  .pm-drawing { bottom: 5%; aspect-ratio: 64/52; clip-path: polygon(41% 0,68% 2%,88% 12%,97% 31%,97% 54%,91% 63%,97% 76%,92% 84%,76% 84%,68% 99%,62% 97%,63% 80%,57% 68%,30% 62%,11% 51%,3% 34%,8% 20%,20% 10%); }
  .pm-headline img,.pm-drawing img { position: absolute; height: auto; max-width: none; }
  .pm-headline img { width: 313.0435%; left: -10.8696%; top: -31.25%; }
  .pm-drawing img { width: 225%; left: -95.3125%; top: -38.4615%; }
  .hint { display: none; }
  .work { gap: 34px; }
  .ov { padding: 18px; }
  .heat { gap: 2px; }
  .heat-head { gap: 6px; }
  .heat-read { font-size: 12px; }
  .heat-total { font-size: 22px; }
  .heat-months { font-size: 12px; }
  .wal-win { width: 90%; }
  .plate-wal { min-height: 340px; }
  .plate-term { aspect-ratio: auto; padding: 28px 0; }
  .term pre { font-size: 12px; }
  .plate.plate-study { padding: 16px; }
  .study-row { grid-template-columns: 96px minmax(0, 1fr) 40px; gap: 8px; font-size: 11.5px; }
  .study-scale { margin: 8px 48px 0 104px; }
  .reading-note { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header,.desk-stage,.reading-intro,.desk-hint,.back-desk,.skip-link { display: none !important; }
  html[data-mode="desk"] { overflow: visible; }
  [data-mode="desk"] body { background: white; }
  [data-mode="desk"] .content { max-width: 100%; padding: 20px; }
  [data-mode="desk"] .content-section { display: block; position: static; width: auto !important; height: auto !important; transform: none !important; visibility: visible !important; opacity: 1 !important; box-shadow: none; margin-bottom: 30px; }
}
