@font-face {
  font-family: Inter;
  src: url('/assets/fonts/inter-latin-variable.dd8a4575.cache.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #202020;
  --secondary: #626262;
  --muted: #727272;
  --line: #e9e9e9;
  --surface: #f8f8f8;
  --soft: #f1f1f1;
  --annotation: #4668ce;
  --column: 600px;
  --section-gap: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
:root[data-theme=dark] {
  color-scheme: dark;
  --paper: #080808;
  --ink: #f5f5f5;
  --secondary: #bfbfbf;
  --muted: #949494;
  --line: #262626;
  --surface: #121212;
  --soft: #1b1b1b;
  --annotation: #9bb1ff;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; transition: scale 140ms, background-color 180ms, color 180ms; }
button:active:not(:disabled) { scale: .96; }
button:disabled { opacity: .3; cursor: default; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 28%, transparent); transition: text-decoration-color 180ms, color 180ms; }
a:hover { text-decoration-color: currentColor; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--annotation); outline-offset: 5px; border-radius: 4px; }
p, h1, h2, h3, figure { margin: 0; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
img { max-width: 100%; height: auto; }
.hero-icon { display: inline-block; flex: 0 0 auto; vertical-align: -.17em; }
.section-aside .hero-icon, .socials .hero-icon { width: 12px; height: 12px; margin-left: 2px; }
.text-link .hero-icon { width: 14px; height: 14px; margin-left: 6px; }
.read-article { gap: 8px; }
.preview-tag .hero-icon { width: 11px; height: 11px; margin-left: 3px; }
#rotate-left .hero-icon { transform: scaleX(-1); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 20; top: 12px; left: 12px; padding: 10px; background: var(--surface); translate: 0 -180%; }
.skip-link:focus { translate: 0 0; }
.folio { position: relative; max-width: var(--column); margin: 0 auto; padding: 48px 0 32px; }
.masthead, .place, .page-controls, .language { display: flex; align-items: center; }
.masthead { justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.place { gap: 10px; }
.place time { font-variant-numeric: tabular-nums; }
.quiet { color: var(--line); }
.page-controls { gap: 8px; }
.language-picker { position: relative; }
.language-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: var(--secondary); font-size: 11px; }
.language-toggle:hover, .language-toggle[aria-expanded=true] { color: var(--ink); background: var(--soft); }
.language-toggle .hero-icon:last-child { width: 11px; height: 11px; opacity: .6; transition: transform 200ms var(--ease); }
.language-toggle[aria-expanded=true] .hero-icon:last-child { transform: rotate(180deg); }
.language-menu { position: absolute; z-index: 30; right: 0; top: calc(100% + 7px); width: 230px; padding: 7px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 4px 8px #00000004,0 12px 36px #00000012; animation: menu-in 180ms var(--ease); }
.menu-heading { display: block; padding: 8px 10px; color: var(--muted); font-size: 10px; }
.language-menu button { width: 100%; min-height: 40px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 10px; border: 0; border-radius: 6px; text-align: left; color: var(--secondary); background: transparent; font-size: 12px; line-height: 1.5; }
.language-menu button:hover, .language-menu button:focus-visible { outline: none; background: var(--soft); color: var(--ink); }
.language-menu button:focus-visible { outline: 2px solid var(--annotation); outline-offset: -2px; }
.language-menu button[aria-checked=true] { color: var(--ink); }
.language-menu button > .hero-icon { opacity: 0; width: 14px; height: 14px; }
.language-menu button[aria-checked=true] > .hero-icon { opacity: 1; }
.language-menu small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.menu-divider { border-top: 1px solid var(--line); margin: 6px 10px; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
:root[lang=ja] .intro-copy p, :root[lang=ja] .about-section > p, :root[lang=ja] .contact-section > p, :root[lang=ja] .role, :root[lang=ja] h2, :root[lang=ja] .inspection-copy p { letter-spacing: 0; line-height: 1.8; }
.language { gap: 0; }
.language button { border: 0; background: transparent; min-width: 38px; min-height: 40px; color: var(--muted); font-size: 11px; letter-spacing: .02em; border-radius: 6px; }
.language button[aria-pressed=true] { color: var(--ink); font-weight: 550; }
.language button:hover { background: var(--surface); }
.control-divider { height: 14px; width: 1px; background: var(--line); margin-right: 4px; }
.theme-control { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; }
.theme-control:hover { background: var(--soft); }
.theme-icon {
  grid-area: 1 / 1;
  transition: opacity 220ms, transform 300ms var(--ease), filter 220ms,
    rotate 180ms var(--ease), translate 180ms var(--ease);
}
.icon-moon { opacity: 0; transform: scale(.25) rotate(-40deg); filter: blur(4px); }
:root[data-theme=dark] .icon-sun { opacity: 0; transform: scale(.25) rotate(40deg); filter: blur(4px); }
:root[data-theme=dark] .icon-moon { opacity: 1; transform: scale(1) rotate(0); filter: blur(0); }
.theme-control:focus-visible .icon-sun { rotate: 8deg; }
.theme-control:focus-visible .icon-moon { translate: 0 -1px; }
@media (hover: hover) {
  .theme-control:hover .icon-sun { rotate: 8deg; }
  .theme-control:hover .icon-moon { translate: 0 -1px; }
}
.control-tooltip { position: absolute; top: calc(100% + 5px); right: 0; padding: 7px 9px; border-radius: 5px; white-space: nowrap; background: var(--ink); color: var(--paper); font-size: 11px; opacity: 0; visibility: hidden; transition: opacity 150ms, visibility 150ms; pointer-events: none; z-index: 5; }
.theme-control:hover .control-tooltip, .theme-control:focus-visible .control-tooltip { opacity: 1; visibility: visible; }
.portrait-line { display: flex; align-items: center; gap: 32px; margin: 34px 0 24px; }
.portrait { flex: 0 0 auto; }
.portrait-atmosphere { position: relative; flex: 1; height: 120px; display: grid; align-items: end; justify-items: end; padding: 0 4px 12px 0; }
.slogan { position: relative; z-index: 1; font-size: 11px; line-height: 1.7; letter-spacing: -.01em; text-align: right; color: var(--muted); text-wrap: balance; }
.starfield { position: absolute; inset: -18px 0 20px; overflow: hidden; pointer-events: none; mask-image: linear-gradient(90deg,transparent,#000 18%,#000 90%,transparent); }
.star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: var(--ink); opacity: .13; animation: twinkle 7s ease-in-out infinite; animation-play-state: paused; }
.star-a { top: 21%; left: 38%; }
.star-b { top: 44%; left: 73%; animation-delay: -2s; }
.star-c { top: 65%; left: 22%; width: 1px; height: 1px; animation-delay: -4s; }
.star-d { top: 15%; left: 89%; width: 1px; height: 1px; animation-delay: -6s; }
.star-e { top: 60%; left: 56%; width: 1px; height: 1px; animation-delay: -3s; }
.shooting-star { position: absolute; top: 12px; right: 15px; width: 76px; height: 1px; border-radius: 100%; background: linear-gradient(90deg,currentColor,transparent); color: var(--ink); opacity: 0; transform: rotate(-32deg); animation: shooting-star 12s linear infinite; animation-delay: 2s; animation-play-state: paused; }
.shooting-two { right: 120px; top: 4px; width: 46px; animation-duration: 19s; animation-delay: 8s; }
.is-visible .star, .is-visible .shooting-star { animation-play-state: running; }
@keyframes twinkle { 0%,100% { opacity: .12; } 50% { opacity: .4; } }
@keyframes shooting-star { 0%,3% { opacity: 0; transform: translate(26px,-18px) rotate(-32deg); } 4% { opacity: .45; } 10% { opacity: 0; transform: translate(-180px,110px) rotate(-32deg); } 100% { opacity: 0; transform: translate(-180px,110px) rotate(-32deg); } }
.portrait { position: relative; width: 120px; height: 120px; overflow: hidden; border-radius: 50%; transform: perspective(600px) rotateX(var(--gaze-pitch,0deg)) rotateY(var(--gaze-yaw,0deg)); transition: transform 180ms var(--ease); mask-image: radial-gradient(ellipse at 50% 45%, #000 52%, transparent 73%); }
.portrait-theme, .portrait-fallback, .portrait-sprite { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait-theme { overflow: hidden; }
.portrait-light { mix-blend-mode: multiply; }
/* Match the dark sheet's larger crop to the light portrait's head size and position. */
.portrait-dark { display: none; mix-blend-mode: screen; transform: translate(-3.5%, -4.5%) scale(.93); }
:root[data-theme=dark] .portrait-dark { display: block; }
:root[data-theme=dark] .portrait-light { display: none; }
.portrait-fallback { inset: -100%; width: 300%; height: 300%; max-width: none; }
.portrait-sprite { opacity: 0; background-size: 300% 300%; background-position: var(--frame-x,50%) var(--frame-y,50%); background-repeat: no-repeat; transition: opacity 110ms ease-out; }
.portrait-theme[data-ready=true] .portrait-sprite.is-active { opacity: 1; }
.portrait-theme[data-ready=true] .portrait-fallback { opacity: 0; }
h1 { font-size: 28px; line-height: 1.25; font-weight: 620; letter-spacing: -.055em; }
.role { color: var(--secondary); font-size: 24px; line-height: 1.35; font-weight: 450; letter-spacing: -.045em; margin-top: 7px; text-wrap: balance; }
.intro-copy { margin-top: 30px; }
.intro-copy p, .about-section > p, .contact-section > p { color: var(--secondary); font-size: 16px; line-height: 1.8; letter-spacing: -.014em; }
.intro-copy p + p, .about-section > p + p { margin-top: 21px; }
.inline-company { display: inline; white-space: nowrap; color: var(--ink); }
.inline-company img { display: inline-block; width: 20px; height: 20px; vertical-align: -.25em; object-fit: contain; margin: 0 4px 0 1px; mix-blend-mode: multiply; }
:root[data-theme=dark] .inline-company img { filter: invert(1); mix-blend-mode: screen; }
.intro-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.contact-link { display: inline-flex; align-items: center; gap: 18px; min-height: 40px; font-size: 14px; font-weight: 500; text-decoration: none; }
.contact-link span { transition: transform 180ms var(--ease); }
.contact-link:hover span { transform: translate(2px,-2px); }
.notes-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 11px; color: var(--muted); padding: 0 11px; background: transparent; border: 1px solid var(--line); border-radius: 7px; }
.notes-toggle:hover { color: var(--ink); background: var(--surface); }
.notes-toggle[aria-pressed=true] { color: var(--annotation); border-color: color-mix(in srgb,var(--annotation) 35%,transparent); background: color-mix(in srgb,var(--annotation) 5%,var(--paper)); }
.section { margin-top: var(--section-gap); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 19px; }
h2 { font-size: 16px; line-height: 1.4; font-weight: 560; letter-spacing: -.03em; }
.section-aside { color: var(--muted); font-size: 11px; line-height: 1.5; font-weight: 400; text-decoration: none; }
a.section-aside:hover { color: var(--ink); }
.section-intro { color: var(--secondary); font-size: 14px; line-height: 1.7; margin-top: -5px; }
.work-list { display: grid; }
.work-item { display: flex; align-items: center; gap: 22px; padding: 23px 0; text-decoration: none; border-top: 1px solid var(--line); }
.work-item:last-child { border-bottom: 1px solid var(--line); }
.work-preview { position: relative; display: grid; place-items: center; flex: 0 0 88px; height: 78px; background: var(--surface); border-radius: 8px; overflow: hidden; }
.work-copy { flex: 1; min-width: 0; }
.work-title { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; line-height: 1.4; font-weight: 550; letter-spacing: -.02em; }
.work-arrow { color: var(--muted); font-weight: 400; transition: transform 180ms var(--ease), color 180ms; }
.work-item:hover .work-arrow { color: var(--ink); transform: translate(2px,-2px); }
.work-description { display: block; color: var(--secondary); font-size: 13px; line-height: 1.6; margin-top: 5px; text-wrap: pretty; }
.work-kind { display: block; color: var(--muted); font-size: 10px; line-height: 1.5; margin-top: 8px; }
.loading-orbit { position: relative; width: 28px; height: 28px; }
.loading-orbit i { position: absolute; left: 12px; top: 0; width: 3px; height: 8px; border-radius: 2px; background: var(--ink); transform-origin: 1.5px 14px; }
.loading-orbit i:nth-child(1) { transform: rotate(0deg); opacity: 1; }
.loading-orbit i:nth-child(2) { transform: rotate(45deg); opacity: .87; }
.loading-orbit i:nth-child(3) { transform: rotate(90deg); opacity: .74; }
.loading-orbit i:nth-child(4) { transform: rotate(135deg); opacity: .61; }
.loading-orbit i:nth-child(5) { transform: rotate(180deg); opacity: .48; }
.loading-orbit i:nth-child(6) { transform: rotate(225deg); opacity: .35; }
.loading-orbit i:nth-child(7) { transform: rotate(270deg); opacity: .22; }
.loading-orbit i:nth-child(8) { transform: rotate(315deg); opacity: .09; }
.work-item:hover .loading-orbit, .work-item:focus-visible .loading-orbit { animation: spin 1s steps(8) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.layout-demo { width: 40px; height: 36px; border: 1px solid var(--secondary); border-radius: 3px; padding: 5px; display: grid; grid-template-columns: 10px 1fr; gap: 3px; transition: gap 260ms var(--ease); }
.layout-demo i { display: block; background: color-mix(in srgb,var(--ink) 15%,transparent); border-radius: 1px; transition: transform 260ms var(--ease); }
.layout-demo i:nth-child(1) { grid-row: span 3; background: color-mix(in srgb,var(--ink) 55%,transparent); }
.layout-demo i:nth-child(3) { transform: translateX(2px); }
.layout-demo i:nth-child(4) { transform: translateY(2px); }
.work-item:hover .layout-demo { gap: 4px; }
.work-item:hover .layout-demo i { transform: none; }
.book-stage { display: none; }
.shelf-ready .book-stage { display: block; margin-top: 18px; }
.book-lineup { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; padding: 22px 7px 14px 3px; }
.publication { min-width: 0; --book-w: 100%; --book-h: 226px; --book-depth: 10px; }
.shelf-book { display: block; position: relative; width: 100%; height: var(--book-h); border: 0; background: transparent; padding: 0; perspective: 1000px; text-align: left; }
.shelf-book:active { scale: 1 !important; }
.book-object { position: relative; width: var(--book-w); height: var(--book-h); transform-style: preserve-3d; transform: rotateY(0deg); transform-origin: 50% 50%; transition: transform 520ms cubic-bezier(.22,.75,.2,1); color: #202020; user-select: none; pointer-events: none; }
.shelf-book[data-open=true] .book-object { transform: translateY(-5px) rotateY(-8deg) rotateX(2deg); }
.book-face { position: absolute; backface-visibility: hidden; }
.book-front, .book-back { inset: 0; border-radius: 1px 3px 3px 1px; background: var(--book-cover, #f5f5f5); overflow: hidden; box-shadow: 0 1px 1px #0000000f, 0 8px 16px -8px #00000038, inset 0 0 0 1px #0000000c; }
.book-front { transform: translateZ(calc(var(--book-depth) / 2)); }
.book-front::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#0000000b,transparent 3%,#ffffff40 4%,transparent 6%); pointer-events: none; box-shadow: inset -1px 0 0 #0000000c; }
.cover-content { display: flex; flex-direction: column; height: 100%; }
.cover-edition { display: flex; justify-content: space-between; align-items: center; padding: 11px 13px 9px 15px; color: #666; font-size: 6.5px; letter-spacing: .06em; text-transform: uppercase; }
.cover-image { display: block; width: 100%; height: 97px; object-fit: cover; }
.cover-title { display: block; padding: 13px 12px 5px 15px; font-size: 16px; line-height: 1.2; letter-spacing: -.04em; font-weight: 520; text-wrap: balance; }
.cover-bottom { display: flex; justify-content: space-between; margin-top: auto; padding: 9px 12px 12px 15px; font-size: 6.5px; color: #666; letter-spacing: .03em; }
.book-back { transform: rotateY(180deg) translateZ(calc(var(--book-depth) / 2)); display: flex; flex-direction: column; justify-content: space-between; padding: 20px; }
.book-back .back-mark { font-size: 24px; letter-spacing: -.06em; }
.book-back p { font-size: 10px; line-height: 1.6; color: #626262; }
.book-back small { font-size: 8px; color: #626262; }
.book-spine { left: calc(var(--book-depth) / -2); top: 0; width: var(--book-depth); height: 100%; background: var(--book-cover, #e4e4e4); box-shadow: inset 0 0 0 100px #0000000d; transform: rotateY(-90deg); display: flex; align-items: center; justify-content: space-between; padding: 9px 1px; writing-mode: vertical-rl; font-size: 6px; }
.book-spine b { font-weight: 450; max-height: 78%; min-height: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-edge { right: calc(var(--book-depth) / -2); top: 2px; bottom: 2px; width: var(--book-depth); background: repeating-linear-gradient(90deg,#f6f6f6 0,#f6f6f6 1px,#cfcfcf 1px,#eee 2px); transform: rotateY(90deg); }
.book-top, .book-bottom { height: var(--book-depth); left: 1px; right: 2px; background: repeating-linear-gradient(0deg,#f6f6f6 0,#f6f6f6 1px,#cfcfcf 1px,#eee 2px); }
.book-top { top: calc(var(--book-depth) / -2); transform: rotateX(90deg); }
.book-bottom { bottom: calc(var(--book-depth) / -2); transform: rotateX(-90deg); }
.preview-tag { position: absolute; bottom: -10px; left: 50%; transform: translate(-50%,5px); opacity: 0; background: var(--ink); color: var(--paper); border-radius: 4px; padding: 6px 9px; white-space: nowrap; font-size: 10px; transition: opacity 180ms, transform 180ms; pointer-events: none; }
.shelf-book:hover .preview-tag, .shelf-book:focus-visible .preview-tag { opacity: 1; transform: translate(-50%,0); }
.publication-title { display: block; margin-top: 20px; color: var(--ink); text-decoration: none; font-size: 12px; font-weight: 450; line-height: 1.65; letter-spacing: -.014em; text-wrap: pretty; }
.publication-title:hover { text-decoration: underline; }
.publication-meta { display: block; font-size: 10px; line-height: 1.5; color: var(--muted); margin-top: 8px; }
.shelf-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 12px; }
.shelf-hint { font-size: 11px; color: var(--muted); }
.shelf-navigation { display: flex; gap: 4px; align-items: center; }
.book-counter { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; padding-right: 12px; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 7px; background: transparent; font-size: 16px; }
.icon-button:hover:not(:disabled) { background: var(--soft); }
.shelf-fallback { display: grid; gap: 16px; padding: 24px 0; font-size: 14px; }
.text-link { display: inline-flex; align-items: center; min-height: 40px; margin-top: 14px; font-size: 13px; }
.contact-section { border-top: 1px solid var(--line); padding-top: 33px; }
.contact-section > p { margin-top: 13px; }
.email-link { display: inline-flex; gap: 18px; align-items: center; min-height: 40px; font-size: 16px; letter-spacing: -.025em; margin-top: 20px; }
.socials { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; color: var(--secondary); font-size: 11px; }
.socials a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.socials a:hover { color: var(--ink); }
.colophon { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 10px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; }
.annotated { position: relative; }
.margin-note { position: absolute; top: 0; width: 144px; color: var(--annotation); font-size: 11px; line-height: 1.65; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity 200ms, transform 200ms, visibility 200ms; pointer-events: none; }
.margin-note b { display: block; font-size: 9px; font-weight: 500; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .02em; }
.note-left { right: calc(100% + 42px); }
.note-right { left: calc(100% + 42px); }
.margin-note::before { content: ''; position: absolute; width: 18px; top: 7px; border-top: 1px solid currentColor; opacity: .5; }
.note-left::before { right: -28px; }
.note-right::before { left: -28px; }
.column-measure { position: absolute; top: 26px; bottom: 15px; left: -16px; right: -16px; border-inline: 1px dashed color-mix(in srgb,var(--annotation) 30%,transparent); opacity: 0; visibility: hidden; pointer-events: none; }
.column-measure span { position: absolute; top: 0; left: 0; right: 0; text-align: center; color: var(--annotation); border-top: 1px solid color-mix(in srgb,var(--annotation) 30%,transparent); font-size: 9px; padding-top: 5px; }
.notes-open .margin-note { opacity: 1; visibility: visible; transform: translateY(0); }
.notes-open .column-measure { opacity: 1; visibility: visible; }
.book-dialog { width: min(840px,calc(100% - 48px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 100px #00000025; }
.book-dialog::backdrop { background: #00000055; backdrop-filter: blur(8px); }
.book-dialog-inner { padding: 24px 30px 36px; }
.dialog-close { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 0; background: transparent; border: 0; color: var(--secondary); font-size: 12px; }
.dialog-close kbd { font: inherit; font-size: 10px; border: 1px solid var(--line); border-radius: 3px; padding: 2px 5px; margin-left: 6px; color: var(--muted); }
.book-inspection { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); align-items: center; gap: 34px; padding-top: 16px; }
.inspection-stage { --book-w: 210px; --book-h: 290px; --book-depth: 15px; min-height: 340px; display: grid; place-items: center; perspective: 1100px; touch-action: pan-y; cursor: grab; }
.inspection-stage.dragging { cursor: grabbing; }
.inspection-stage .book-object { transform: translateX(var(--swipe-x, 0px)) rotateX(var(--inspect-x,-4deg)) rotateY(var(--inspect-y,-24deg)); transition: transform 300ms var(--ease); }
.inspection-stage.dragging .book-object { transition: none; }
.inspection-stage .cover-edition { padding: 16px 17px 12px 19px; font-size: 8px; }
.inspection-stage .cover-image { height: 122px; }
.inspection-stage .cover-title { font-size: 22px; padding: 18px 15px 8px 19px; }
.inspection-stage .cover-bottom { font-size: 8px; padding: 13px 17px 17px 19px; }
.inspection-stage .book-back { padding: 24px; }
.inspection-stage .book-back p { font-size: 12px; }
.inspection-stage .book-back small { font-size: 9px; }
.inspection-stage .book-spine { font-size: 8px; }
.rotate-actions {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  width: fit-content; max-width: 100%; margin: 12px auto 0; padding: 0;
}
.rotate-actions > span { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0 4px; font-size: 10px; line-height: 1.4; color: var(--muted); text-align: center; }
.rotate-actions > span::before { content: ""; width: 32px; height: 3px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--muted) 0 2px, transparent 2px 6px); opacity: .5; }
.rotate-actions .icon-button {
  width: 40px; height: 40px; min-width: 40px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--secondary);
  transition: background-color 160ms ease, color 160ms ease, scale 160ms ease;
}
.rotate-actions .icon-button:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
.rotate-actions .icon-button:active { scale: .96; }
.rotate-actions .icon-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.rotate-actions .hero-icon { width: 18px; height: 18px; }

.book-kicker { color: var(--muted); font-size: 11px; }
.inspection-copy h2 { font-size: 25px; letter-spacing: -.045em; line-height: 1.3; font-weight: 550; text-wrap: pretty; margin-top: 15px; }
.inspection-copy p { font-size: 14px; line-height: 1.75; color: var(--secondary); margin-top: 18px; }
.byline { display: block; margin-top: 18px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.read-article { display: inline-flex; align-items: center; margin-top: 24px; min-height: 42px; padding: 0 14px; border-radius: 7px; font-size: 12px; text-decoration: none; color: var(--paper); background: var(--ink); }
.dialog-open { overflow: hidden; }
.book-dialog[open] { animation: arrive 220ms var(--ease); }
.book-dialog[data-closing=true] { animation: leave 180ms ease-in forwards; }
.book-dialog::backdrop { animation: backdrop-in 220ms ease-out; }
.book-dialog[data-closing=true]::backdrop { animation: backdrop-out 180ms ease-in forwards; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes leave { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(5px); } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@media (max-width: 1050px) {
  .notes-open .portrait-line { flex-wrap: wrap; }
  .notes-open .portrait-line > .margin-note { flex-basis: 100%; }
  .margin-note { display: none; }
  .notes-open .margin-note { display: block; position: relative; inset: auto; width: auto; max-width: 400px; margin-top: 18px; border-left: 1px solid color-mix(in srgb,var(--annotation) 35%,transparent); padding-left: 12px; }
  .margin-note::before { display: none; }
  .margin-note b { margin-bottom: 3px; }
  .notes-open .section > .margin-note { margin: -3px 0 20px; }
}
@media (max-width: 680px) {
  :root { --section-gap: 54px; }
  .folio { margin-inline: 24px; padding-top: 24px; }
  .portrait-line { margin-top: 27px; }
  .portrait { width: 112px; height: 112px; }
  h1 { font-size: 27px; }
  .role { font-size: 22px; }
  .intro-copy { margin-top: 26px; }
  .intro-copy p, .about-section > p, .contact-section > p { font-size: 15px; }
  .work-item { gap: 17px; }
  .work-preview { flex-basis: 68px; height: 70px; }
  .section-heading { gap: 12px; }
  .book-stage {
    --shelf-gutter: 24px;
    margin-inline: calc(var(--shelf-gutter) * -1);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    /* The first snap point is the page grid, not the viewport edge. */
    scroll-padding-inline: var(--shelf-gutter);
    scrollbar-width: none;
  }
  .book-stage::-webkit-scrollbar { display: none; }
  .book-lineup { grid-template-columns: repeat(3,174px); gap: 28px; width: max-content; padding: 20px var(--shelf-gutter) 16px; }
  .publication { scroll-snap-align: center; --book-h: 230px; }
  .publication-title { font-size: 13px; }
  .shelf-toolbar { gap: 5px; }
  .book-counter { padding-right: 7px; }
  .shelf-hint { max-width: 150px; line-height: 1.6; }
  .book-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 12px; }
  .book-dialog-inner { padding: 13px 22px 26px; }
  .book-inspection { grid-template-columns: 1fr; gap: 25px; padding-top: 0; }
  .inspection-stage { --book-w: 180px; --book-h: 248px; min-height: 285px; }
  .inspection-stage .cover-edition { font-size: 7px; padding: 12px 14px 10px 17px; }
  .inspection-stage .cover-image { height: 102px; }
  .inspection-stage .cover-title { font-size: 19px; padding: 15px 14px 7px 17px; }
  .inspection-stage .cover-bottom { font-size: 7px; padding: 11px 14px 14px 17px; }
  .inspection-stage .book-back p { font-size: 10px; }
  .inspection-copy h2 { font-size: 22px; margin-top: 10px; }
  .inspection-copy p { margin-top: 13px; }
  .read-article { margin-top: 18px; }
  .column-measure { left: -12px; right: -12px; top: 6px; }
  .socials { gap: 18px; }
}
@media (max-width: 360px) {
  .folio { margin-inline: 20px; }
  .role { font-size: 20px; }
  .section-aside { font-size: 10px; }
  .work-preview { flex-basis: 54px; height: 60px; }
  .work-item { gap: 14px; }
  .work-title { font-size: 13px; }
  .work-description { font-size: 12px; }
  .book-stage { --shelf-gutter: 20px; }
  .shelf-hint { font-size: 10px; max-width: 130px; }
  .book-counter { display: none; }
  .email-link { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .portrait { transform: none; }
  .shelf-book[data-open=true] .book-object { transform: none; }
}
@media print {
  .page-controls, .notes-toggle, .margin-note, .column-measure, .shelf-toolbar, .book-dialog { display: none !important; }
  :root { --paper: #fff; --ink: #111; --secondary: #555; --muted: #666; }
  .folio { max-width: 600px; }
  .section { break-inside: avoid; }
}

/* Preserve layout and readable article titles when an image cannot load. */
img.image-unavailable { visibility: hidden; }
.portrait-theme.image-unavailable::after { content: 'DA'; position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--muted); font: 500 28px/1 Inter, sans-serif; letter-spacing: -.04em; }
.connection-status { flex-basis: 100%; color: var(--muted); font-size: 12px; line-height: 1.5; }
.connection-status[hidden] { display: none; }

/* Keep the light snapshot above dark, revealing or closing it at the theme button. */
:root[data-theme-transition]::view-transition-old(root),
:root[data-theme-transition]::view-transition-new(root) {
  animation: none; mix-blend-mode: normal;
}
:root[data-theme-transition]::view-transition-group(root) { animation: none; }
:root[data-theme-transition=light]::view-transition-new(root),
:root[data-theme-transition=dark]::view-transition-old(root) { z-index: 2; }
:root[data-theme-transition=light]::view-transition-old(root),
:root[data-theme-transition=dark]::view-transition-new(root) { z-index: 1; }
:root[data-theme-transition]::view-transition { pointer-events: none; }

/* Capture settled colors and gaze rather than partially blended frames. */
:root[data-theme-transition] *,
:root[data-theme-transition] *::before,
:root[data-theme-transition] *::after { transition: none !important; }

@keyframes theme-circle-open {
  from { clip-path: circle(0px at var(--theme-origin-x) var(--theme-origin-y)); }
  to { clip-path: circle(var(--theme-radius) at var(--theme-origin-x) var(--theme-origin-y)); }
}
:root[data-theme-transition=light]::view-transition-new(root) {
  clip-path: circle(0px at var(--theme-origin-x) var(--theme-origin-y));
}
:root[data-theme-transition=dark]::view-transition-old(root) {
  clip-path: circle(var(--theme-radius) at var(--theme-origin-x) var(--theme-origin-y));
}
:root[data-theme-animating][data-theme-transition=light]::view-transition-new(root) {
  animation: theme-circle-open 680ms cubic-bezier(.4, 0, .2, 1) both;
}
:root[data-theme-animating][data-theme-transition=dark]::view-transition-old(root) {
  animation: theme-circle-open 680ms cubic-bezier(.4, 0, .2, 1) reverse both;
}

/* Full-cover editorial artwork includes its own title and author. */
.book-object--illustrated .cover-edition,
.book-object--illustrated .cover-title,
.book-object--illustrated .cover-bottom { display: none; }
.book-object--illustrated .cover-image { width: 100%; height: 100%; object-fit: contain; }
